@omnara/sdk 0.1.38 → 0.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +2 -2
- package/dist/{chunk-5VXC3YQG.js → chunk-43OBJDTP.js} +2 -2
- package/dist/{chunk-O3N2UQVS.js → chunk-NUU6DY46.js} +90 -2
- package/dist/chunk-NUU6DY46.js.map +1 -0
- package/dist/{chunk-2LTFYXMO.js → chunk-P6QIAFYS.js} +128 -29
- package/dist/chunk-P6QIAFYS.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/{sdk.gen-DMp2YYmW.d.ts → sdk.gen-PMvhgCZ2.d.ts} +357 -16
- package/dist/tanstack.d.ts +51 -3
- package/dist/tanstack.js +63 -2
- package/dist/tanstack.js.map +1 -1
- package/dist/zod.d.ts +1 -1
- package/dist/{zod.gen-BYkTArGb.d.ts → zod.gen-D18VayDm.d.ts} +325 -287
- package/dist/zod.js +45 -5
- package/package.json +1 -1
- package/dist/chunk-2LTFYXMO.js.map +0 -1
- package/dist/chunk-O3N2UQVS.js.map +0 -1
- /package/dist/{chunk-5VXC3YQG.js.map → chunk-43OBJDTP.js.map} +0 -0
package/dist/tanstack.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/generated/@tanstack/react-query.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport { type InfiniteData, infiniteQueryOptions, queryOptions, type UseMutationOptions } from '@tanstack/react-query';\n\nimport { client } from '../client.gen';\nimport { acceptInvitation, archiveAgent, bootstrapDaemon, cancelAgent, cancelQueuedBacklogInput, checkMachinePoolConnection, configureIntegration, connectByoMachine, createAgent, createAgentConfig, createAgentInput, createAgentProfile, createByoMachineDaemonToken, createConfiguredModel, createCronTrigger, createIntegration, createIntegrationGitHubSetup, createIntegrationOAuthSetup, createIntegrationSlackSetup, createIntegrationSubscription, createMachine, createMachinePool, createMemoryStore, createModelProviderConfig, createOrganization, createOrgApiKey, createOrgInvitation, createPersonalAccessToken, createProject, createProjectMachineGrant, createProjectMachinePoolGrant, createProjectModelGrant, createSecret, createSecretGrant, createSecretVersion, createSkill, createSkillGrant, declineInvitation, deleteAgentProfile, deleteConfiguredModel, deleteCronTrigger, deleteCurrentUser, deleteIntegration, deleteIntegrationSubscription, deleteMachine, deleteMachinePool, deleteMemoryFile, deleteMemoryStore, deleteModelProviderConfig, deleteOrganization, deleteOrgInvitation, deleteProject, deleteProjectMachineGrant, deleteProjectMachinePoolGrant, deleteProjectModelGrant, deleteSecret, deleteSecretGrant, deleteSkill, deleteSkillGrant, demoteSteeringInputToQueued, disconnectIntegration, downloadDaemonFile, downloadMemoryFile, endMachineDaemonRuntime, getActor, getAgent, getAgentConfig, getAgentConfigGeneratedSource, getAgentProfile, getAgentProfileUsage, getAgentUsage, getArtifact, getArtifactContent, getCronTrigger, getCurrentUser, getDaemonGitCredentials, getDaemonSkillArchive, getIntegration, getMachine, getMachinePool, getMemoryStore, getModelCatalog, getModelProviderConfig, getOrgApiKey, getOrgOverview, getOrgUsage, getOrgUsageTimeseries, getProjectAvailableSecret, getProjectMachinePoolGrant, getProjectUsage, getSecret, getSkill, getToolCatalog, inspectIntegrationGitHubInstallations, listActors, listAgentInteractions, listAgentProfiles, listAgents, listByoMachineDaemonTokens, listConfiguredModels, listCronTriggers, listEvents, listIntegrationDefinitions, listIntegrationGitHubRepositories, listIntegrations, listIntegrationSubscriptions, listMachinePools, listMcpServers, listMcpServerTools, listMemberProjectAccess, listMemoryFiles, listMemoryStores, listModelProviderConfigs, listOrgAgentProfiles, listOrgAgents, listOrganizations, listOrgApiKeyProjectAccess, listOrgApiKeys, listOrgIntegrations, listOrgInvitations, listOrgMembers, listOrgMemoryStores, listPendingInvitations, listPersonalAccessTokens, listProjectAvailableSecrets, listProjectAvailableSkills, listProjectMachineGrants, listProjectMachinePoolGrants, listProjectModelGrants, listQueuedBacklogInputs, listSecretGrants, listSecrets, listSkillGrants, listSkills, listToolCalls, listTurnEvents, listTurns, listVisibleMachines, listVisibleProjectMachines, listVisibleProjects, moveQueuedBacklogInput, type Options, promoteQueuedInputToSteering, putActor, recordMachineFailure, registerMachineDaemonRuntime, removeMemberProjectAccess, removeOrgApiKeyProjectRole, removeOrgMember, renameAgentProfile, resolveAgentConfigTools, resolveAgentInteraction, revokeMachineDaemonToken, revokeOrgApiKey, revokePersonalAccessToken, setMemberProjectAccess, setOrgApiKeyProjectRole, sleepMachineDaemonRuntime, socketMachineDaemonRuntime, startSecretMcpoAuth, submitToolCallResult, updateAgentConfig, updateAgentProfile, updateConfiguredModel, updateCronTrigger, updateIntegration, updateMachine, updateMachinePool, updateMemoryStore, updateModelProviderConfig, updateOrgApiKey, updateOrgMember, updateProjectMachinePoolGrant, updateProjectModelGrant, updateSecret, updateSkill, uploadDaemonFile, writeMemoryFile } from '../sdk.gen';\nimport type { AcceptInvitationData, AcceptInvitationError, AcceptInvitationResponse, ArchiveAgentData, ArchiveAgentError, ArchiveAgentResponse, BootstrapDaemonData, BootstrapDaemonError, BootstrapDaemonResponse2, CancelAgentData, CancelAgentError, CancelAgentResponse2, CancelQueuedBacklogInputData, CancelQueuedBacklogInputError, CancelQueuedBacklogInputResponse, CheckMachinePoolConnectionData, CheckMachinePoolConnectionError, CheckMachinePoolConnectionResponse, ConfigureIntegrationData, ConfigureIntegrationError, ConfigureIntegrationResponse, ConnectByoMachineData, ConnectByoMachineError, ConnectByoMachineResponse2, CreateAgentConfigData, CreateAgentConfigError, CreateAgentConfigResponse, CreateAgentData, CreateAgentError, CreateAgentInputData, CreateAgentInputError, CreateAgentInputResponse, CreateAgentProfileData, CreateAgentProfileError, CreateAgentProfileResponse, CreateAgentResponse, CreateByoMachineDaemonTokenData, CreateByoMachineDaemonTokenError, CreateByoMachineDaemonTokenResponse, CreateConfiguredModelData, CreateConfiguredModelError, CreateConfiguredModelResponse, CreateCronTriggerData, CreateCronTriggerError, CreateCronTriggerResponse, CreateIntegrationData, CreateIntegrationError, CreateIntegrationGitHubSetupData, CreateIntegrationGitHubSetupError, CreateIntegrationGitHubSetupResponse, CreateIntegrationOAuthSetupData, CreateIntegrationOAuthSetupError, CreateIntegrationOAuthSetupResponse, CreateIntegrationResponse, CreateIntegrationSlackSetupData, CreateIntegrationSlackSetupError, CreateIntegrationSlackSetupResponse, CreateIntegrationSubscriptionData, CreateIntegrationSubscriptionError, CreateIntegrationSubscriptionResponse, CreateMachineData, CreateMachineError, CreateMachinePoolData, CreateMachinePoolError, CreateMachinePoolResponse, CreateMachineResponse, CreateMemoryStoreData, CreateMemoryStoreError, CreateMemoryStoreResponse, CreateModelProviderConfigData, CreateModelProviderConfigError, CreateModelProviderConfigResponse2, CreateOrganizationData, CreateOrganizationError, CreateOrganizationResponse2, CreateOrgApiKeyData, CreateOrgApiKeyError, CreateOrgApiKeyResponse2, CreateOrgInvitationData, CreateOrgInvitationError, CreateOrgInvitationResponse, CreatePersonalAccessTokenData, CreatePersonalAccessTokenError, CreatePersonalAccessTokenResponse2, CreateProjectData, CreateProjectError, CreateProjectMachineGrantData, CreateProjectMachineGrantError, CreateProjectMachineGrantResponse2, CreateProjectMachinePoolGrantData, CreateProjectMachinePoolGrantError, CreateProjectMachinePoolGrantResponse, CreateProjectModelGrantData, CreateProjectModelGrantError, CreateProjectModelGrantResponse, CreateProjectResponse, CreateSecretData, CreateSecretError, CreateSecretGrantData, CreateSecretGrantError, CreateSecretGrantResponse, CreateSecretResponse, CreateSecretVersionData, CreateSecretVersionError, CreateSecretVersionResponse, CreateSkillData, CreateSkillError, CreateSkillGrantData, CreateSkillGrantError, CreateSkillGrantResponse, CreateSkillResponse, DeclineInvitationData, DeclineInvitationError, DeclineInvitationResponse, DeleteAgentProfileData, DeleteAgentProfileError, DeleteAgentProfileResponse, DeleteConfiguredModelData, DeleteConfiguredModelError, DeleteConfiguredModelResponse, DeleteCronTriggerData, DeleteCronTriggerError, DeleteCronTriggerResponse, DeleteCurrentUserData, DeleteCurrentUserError, DeleteCurrentUserResponse, DeleteIntegrationData, DeleteIntegrationError, DeleteIntegrationResponse, DeleteIntegrationSubscriptionData, DeleteIntegrationSubscriptionError, DeleteIntegrationSubscriptionResponse, DeleteMachineData, DeleteMachineError, DeleteMachinePoolData, DeleteMachinePoolError, DeleteMachinePoolResponse, DeleteMachineResponse, DeleteMemoryFileData, DeleteMemoryFileError, DeleteMemoryFileResponse, DeleteMemoryStoreData, DeleteMemoryStoreError, DeleteMemoryStoreResponse, DeleteModelProviderConfigData, DeleteModelProviderConfigError, DeleteModelProviderConfigResponse, DeleteOrganizationData, DeleteOrganizationError, DeleteOrganizationResponse, DeleteOrgInvitationData, DeleteOrgInvitationError, DeleteOrgInvitationResponse, DeleteProjectData, DeleteProjectError, DeleteProjectMachineGrantData, DeleteProjectMachineGrantError, DeleteProjectMachineGrantResponse, DeleteProjectMachinePoolGrantData, DeleteProjectMachinePoolGrantError, DeleteProjectMachinePoolGrantResponse, DeleteProjectModelGrantData, DeleteProjectModelGrantError, DeleteProjectModelGrantResponse, DeleteProjectResponse, DeleteSecretData, DeleteSecretError, DeleteSecretGrantData, DeleteSecretGrantError, DeleteSecretGrantResponse, DeleteSecretResponse, DeleteSkillData, DeleteSkillError, DeleteSkillGrantData, DeleteSkillGrantError, DeleteSkillGrantResponse, DeleteSkillResponse, DemoteSteeringInputToQueuedData, DemoteSteeringInputToQueuedError, DemoteSteeringInputToQueuedResponse, DisconnectIntegrationData, DisconnectIntegrationError, DisconnectIntegrationResponse, DownloadDaemonFileData, DownloadDaemonFileError, DownloadDaemonFileResponse, DownloadMemoryFileData, DownloadMemoryFileError, DownloadMemoryFileResponse, EndMachineDaemonRuntimeData, EndMachineDaemonRuntimeError, EndMachineDaemonRuntimeResponse, GetActorData, GetActorError, GetActorResponse, GetAgentConfigData, GetAgentConfigError, GetAgentConfigGeneratedSourceData, GetAgentConfigGeneratedSourceError, GetAgentConfigGeneratedSourceResponse, GetAgentConfigResponse, GetAgentData, GetAgentError, GetAgentProfileData, GetAgentProfileError, GetAgentProfileResponse, GetAgentProfileUsageData, GetAgentProfileUsageError, GetAgentProfileUsageResponse, GetAgentResponse2, GetAgentUsageData, GetAgentUsageError, GetAgentUsageResponse, GetArtifactContentData, GetArtifactContentError, GetArtifactContentResponse, GetArtifactData, GetArtifactError, GetArtifactResponse, GetCronTriggerData, GetCronTriggerError, GetCronTriggerResponse, GetCurrentUserData, GetCurrentUserError, GetCurrentUserResponse, GetDaemonGitCredentialsData, GetDaemonGitCredentialsError, GetDaemonGitCredentialsResponse, GetDaemonSkillArchiveData, GetDaemonSkillArchiveError, GetDaemonSkillArchiveResponse, GetIntegrationData, GetIntegrationError, GetIntegrationResponse, GetMachineData, GetMachineError, GetMachinePoolData, GetMachinePoolError, GetMachinePoolResponse, GetMachineResponse, GetMemoryStoreData, GetMemoryStoreError, GetMemoryStoreResponse, GetModelCatalogData, GetModelCatalogError, GetModelCatalogResponse, GetModelProviderConfigData, GetModelProviderConfigError, GetModelProviderConfigResponse, GetOrgApiKeyData, GetOrgApiKeyError, GetOrgApiKeyResponse, GetOrgOverviewData, GetOrgOverviewError, GetOrgOverviewResponse, GetOrgUsageData, GetOrgUsageError, GetOrgUsageResponse, GetOrgUsageTimeseriesData, GetOrgUsageTimeseriesError, GetOrgUsageTimeseriesResponse, GetProjectAvailableSecretData, GetProjectAvailableSecretError, GetProjectAvailableSecretResponse, GetProjectMachinePoolGrantData, GetProjectMachinePoolGrantError, GetProjectMachinePoolGrantResponse, GetProjectUsageData, GetProjectUsageError, GetProjectUsageResponse, GetSecretData, GetSecretError, GetSecretResponse, GetSkillData, GetSkillError, GetSkillResponse, GetToolCatalogData, GetToolCatalogError, GetToolCatalogResponse, InspectIntegrationGitHubInstallationsData, InspectIntegrationGitHubInstallationsError, InspectIntegrationGitHubInstallationsResponse, ListActorsData, ListActorsError, ListActorsResponse2, ListAgentInteractionsData, ListAgentInteractionsError, ListAgentInteractionsResponse2, ListAgentProfilesData, ListAgentProfilesError, ListAgentProfilesResponse2, ListAgentsData, ListAgentsError, ListAgentsResponse2, ListByoMachineDaemonTokensData, ListByoMachineDaemonTokensError, ListByoMachineDaemonTokensResponse, ListConfiguredModelsData, ListConfiguredModelsError, ListConfiguredModelsResponse, ListCronTriggersData, ListCronTriggersError, ListCronTriggersResponse2, ListEventsData, ListEventsError, ListEventsResponse, ListIntegrationDefinitionsData, ListIntegrationDefinitionsError, ListIntegrationDefinitionsResponse2, ListIntegrationGitHubRepositoriesData, ListIntegrationGitHubRepositoriesError, ListIntegrationGitHubRepositoriesResponse, ListIntegrationsData, ListIntegrationsError, ListIntegrationsResponse2, ListIntegrationSubscriptionsData, ListIntegrationSubscriptionsError, ListIntegrationSubscriptionsResponse2, ListMachinePoolsData, ListMachinePoolsError, ListMachinePoolsResponse2, ListMcpServersData, ListMcpServersError, ListMcpServersResponse2, ListMcpServerToolsData, ListMcpServerToolsError, ListMcpServerToolsResponse, ListMemberProjectAccessData, ListMemberProjectAccessError, ListMemberProjectAccessResponse, ListMemoryFilesData, ListMemoryFilesError, ListMemoryFilesResponse, ListMemoryStoresData, ListMemoryStoresError, ListMemoryStoresResponse, ListModelProviderConfigsData, ListModelProviderConfigsError, ListModelProviderConfigsResponse, ListOrgAgentProfilesData, ListOrgAgentProfilesError, ListOrgAgentProfilesResponse, ListOrgAgentsData, ListOrgAgentsError, ListOrgAgentsResponse, ListOrganizationsData, ListOrganizationsError, ListOrganizationsResponse2, ListOrgApiKeyProjectAccessData, ListOrgApiKeyProjectAccessError, ListOrgApiKeyProjectAccessResponse, ListOrgApiKeysData, ListOrgApiKeysError, ListOrgApiKeysResponse2, ListOrgIntegrationsData, ListOrgIntegrationsError, ListOrgIntegrationsResponse, ListOrgInvitationsData, ListOrgInvitationsError, ListOrgInvitationsResponse2, ListOrgMembersData, ListOrgMembersError, ListOrgMembersResponse2, ListOrgMemoryStoresData, ListOrgMemoryStoresError, ListOrgMemoryStoresResponse, ListPendingInvitationsData, ListPendingInvitationsError, ListPendingInvitationsResponse, ListPersonalAccessTokensData, ListPersonalAccessTokensError, ListPersonalAccessTokensResponse2, ListProjectAvailableSecretsData, ListProjectAvailableSecretsError, ListProjectAvailableSecretsResponse, ListProjectAvailableSkillsData, ListProjectAvailableSkillsError, ListProjectAvailableSkillsResponse, ListProjectMachineGrantsData, ListProjectMachineGrantsError, ListProjectMachineGrantsResponse2, ListProjectMachinePoolGrantsData, ListProjectMachinePoolGrantsError, ListProjectMachinePoolGrantsResponse2, ListProjectModelGrantsData, ListProjectModelGrantsError, ListProjectModelGrantsResponse2, ListQueuedBacklogInputsData, ListQueuedBacklogInputsError, ListQueuedBacklogInputsResponse, ListSecretGrantsData, ListSecretGrantsError, ListSecretGrantsResponse2, ListSecretsData, ListSecretsError, ListSecretsResponse2, ListSkillGrantsData, ListSkillGrantsError, ListSkillGrantsResponse2, ListSkillsData, ListSkillsError, ListSkillsResponse2, ListToolCallsData, ListToolCallsError, ListToolCallsResponse2, ListTurnEventsData, ListTurnEventsError, ListTurnEventsResponse2, ListTurnsData, ListTurnsError, ListTurnsResponse, ListVisibleMachinesData, ListVisibleMachinesError, ListVisibleMachinesResponse2, ListVisibleProjectMachinesData, ListVisibleProjectMachinesError, ListVisibleProjectMachinesResponse, ListVisibleProjectsData, ListVisibleProjectsError, ListVisibleProjectsResponse, MoveQueuedBacklogInputData, MoveQueuedBacklogInputError, MoveQueuedBacklogInputResponse, PromoteQueuedInputToSteeringData, PromoteQueuedInputToSteeringError, PromoteQueuedInputToSteeringResponse, PutActorData, PutActorError, PutActorResponse, RecordMachineFailureData, RecordMachineFailureError, RecordMachineFailureResponse, RegisterMachineDaemonRuntimeData, RegisterMachineDaemonRuntimeError, RegisterMachineDaemonRuntimeResponse, RemoveMemberProjectAccessData, RemoveMemberProjectAccessError, RemoveMemberProjectAccessResponse, RemoveOrgApiKeyProjectRoleData, RemoveOrgApiKeyProjectRoleError, RemoveOrgApiKeyProjectRoleResponse, RemoveOrgMemberData, RemoveOrgMemberError, RemoveOrgMemberResponse, RenameAgentProfileData, RenameAgentProfileError, RenameAgentProfileResponse, ResolveAgentConfigToolsData, ResolveAgentConfigToolsError, ResolveAgentConfigToolsResponse, ResolveAgentInteractionData, ResolveAgentInteractionError, ResolveAgentInteractionResponse, RevokeMachineDaemonTokenData, RevokeMachineDaemonTokenError, RevokeMachineDaemonTokenResponse, RevokeOrgApiKeyData, RevokeOrgApiKeyError, RevokeOrgApiKeyResponse, RevokePersonalAccessTokenData, RevokePersonalAccessTokenError, RevokePersonalAccessTokenResponse, SetMemberProjectAccessData, SetMemberProjectAccessError, SetMemberProjectAccessResponse, SetOrgApiKeyProjectRoleData, SetOrgApiKeyProjectRoleError, SetOrgApiKeyProjectRoleResponse, SleepMachineDaemonRuntimeData, SleepMachineDaemonRuntimeError, SleepMachineDaemonRuntimeResponse, SocketMachineDaemonRuntimeData, SocketMachineDaemonRuntimeError, StartSecretMcpoAuthData, StartSecretMcpoAuthError, StartSecretMcpoAuthResponse, SubmitToolCallResultData, SubmitToolCallResultError, SubmitToolCallResultResponse2, UpdateAgentConfigData, UpdateAgentConfigError, UpdateAgentConfigResponse2, UpdateAgentProfileData, UpdateAgentProfileError, UpdateAgentProfileResponse, UpdateConfiguredModelData, UpdateConfiguredModelError, UpdateConfiguredModelResponse, UpdateCronTriggerData, UpdateCronTriggerError, UpdateCronTriggerResponse, UpdateIntegrationData, UpdateIntegrationError, UpdateIntegrationResponse, UpdateMachineData, UpdateMachineError, UpdateMachinePoolData, UpdateMachinePoolError, UpdateMachinePoolResponse, UpdateMachineResponse, UpdateMemoryStoreData, UpdateMemoryStoreError, UpdateMemoryStoreResponse, UpdateModelProviderConfigData, UpdateModelProviderConfigError, UpdateModelProviderConfigResponse, UpdateOrgApiKeyData, UpdateOrgApiKeyError, UpdateOrgApiKeyResponse, UpdateOrgMemberData, UpdateOrgMemberError, UpdateOrgMemberResponse, UpdateProjectMachinePoolGrantData, UpdateProjectMachinePoolGrantError, UpdateProjectMachinePoolGrantResponse, UpdateProjectModelGrantData, UpdateProjectModelGrantError, UpdateProjectModelGrantResponse, UpdateSecretData, UpdateSecretError, UpdateSecretResponse, UpdateSkillData, UpdateSkillError, UpdateSkillResponse, UploadDaemonFileData, UploadDaemonFileError, UploadDaemonFileResponse, WriteMemoryFileData, WriteMemoryFileError, WriteMemoryFileResponse } from '../types.gen';\n\nexport type QueryKey<TOptions extends Options> = [\n Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {\n _id: string;\n _infinite?: boolean;\n tags?: ReadonlyArray<string>;\n }\n];\n\nconst createQueryKey = <TOptions extends Options>(id: string, options?: TOptions, infinite?: boolean, tags?: ReadonlyArray<string>): [\n QueryKey<TOptions>[0]\n] => {\n const params: QueryKey<TOptions>[0] = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl } as QueryKey<TOptions>[0];\n if (infinite) {\n params._infinite = infinite;\n }\n if (tags) {\n params.tags = tags;\n }\n if (options?.body) {\n params.body = options.body;\n }\n if (options?.headers) {\n params.headers = options.headers;\n }\n if (options?.path) {\n params.path = options.path;\n }\n if (options?.query) {\n params.query = options.query;\n }\n return [params];\n};\n\nexport const listPersonalAccessTokensQueryKey = (options?: Options<ListPersonalAccessTokensData>) => createQueryKey('listPersonalAccessTokens', options);\n\n/**\n * List the authenticated user's personal access tokens\n *\n * Items are ordered by created_at descending, then id descending.\n */\nexport const listPersonalAccessTokensOptions = (options?: Options<ListPersonalAccessTokensData>) => queryOptions<ListPersonalAccessTokensResponse2, ListPersonalAccessTokensError, ListPersonalAccessTokensResponse2, ReturnType<typeof listPersonalAccessTokensQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listPersonalAccessTokens({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listPersonalAccessTokensQueryKey(options)\n});\n\nconst createInfiniteParams = <K extends Pick<QueryKey<Options>[0], 'body' | 'headers' | 'path' | 'query'>>(queryKey: QueryKey<Options>, page: K) => {\n const params = { ...queryKey[0] };\n if (page.body) {\n params.body = {\n ...queryKey[0].body as any,\n ...page.body as any\n };\n }\n if (page.headers) {\n params.headers = {\n ...queryKey[0].headers,\n ...page.headers\n };\n }\n if (page.path) {\n params.path = {\n ...queryKey[0].path as any,\n ...page.path as any\n };\n }\n if (page.query) {\n params.query = {\n ...queryKey[0].query as any,\n ...page.query as any\n };\n }\n return params as unknown as typeof page;\n};\n\nexport const listPersonalAccessTokensInfiniteQueryKey = (options?: Options<ListPersonalAccessTokensData>): QueryKey<Options<ListPersonalAccessTokensData>> => createQueryKey('listPersonalAccessTokens', options, true);\n\n/**\n * List the authenticated user's personal access tokens\n *\n * Items are ordered by created_at descending, then id descending.\n */\nexport const listPersonalAccessTokensInfiniteOptions = (options?: Options<ListPersonalAccessTokensData>) => {\n const opts = infiniteQueryOptions<ListPersonalAccessTokensResponse2, ListPersonalAccessTokensError, InfiniteData<ListPersonalAccessTokensResponse2>, QueryKey<Options<ListPersonalAccessTokensData>>, string | Pick<QueryKey<Options<ListPersonalAccessTokensData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListPersonalAccessTokensData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listPersonalAccessTokens({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listPersonalAccessTokensInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create personal access token\n */\nexport const createPersonalAccessTokenMutation = (options?: Partial<Options<CreatePersonalAccessTokenData>>): UseMutationOptions<CreatePersonalAccessTokenResponse2, CreatePersonalAccessTokenError, Options<CreatePersonalAccessTokenData>> => {\n const mutationOptions: UseMutationOptions<CreatePersonalAccessTokenResponse2, CreatePersonalAccessTokenError, Options<CreatePersonalAccessTokenData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createPersonalAccessToken({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Revoke a personal access token\n */\nexport const revokePersonalAccessTokenMutation = (options?: Partial<Options<RevokePersonalAccessTokenData>>): UseMutationOptions<RevokePersonalAccessTokenResponse, RevokePersonalAccessTokenError, Options<RevokePersonalAccessTokenData>> => {\n const mutationOptions: UseMutationOptions<RevokePersonalAccessTokenResponse, RevokePersonalAccessTokenError, Options<RevokePersonalAccessTokenData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await revokePersonalAccessToken({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Bootstrap daemon\n */\nexport const bootstrapDaemonMutation = (options?: Partial<Options<BootstrapDaemonData>>): UseMutationOptions<BootstrapDaemonResponse2, BootstrapDaemonError, Options<BootstrapDaemonData>> => {\n const mutationOptions: UseMutationOptions<BootstrapDaemonResponse2, BootstrapDaemonError, Options<BootstrapDaemonData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await bootstrapDaemon({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Record machine failure\n */\nexport const recordMachineFailureMutation = (options?: Partial<Options<RecordMachineFailureData>>): UseMutationOptions<RecordMachineFailureResponse, RecordMachineFailureError, Options<RecordMachineFailureData>> => {\n const mutationOptions: UseMutationOptions<RecordMachineFailureResponse, RecordMachineFailureError, Options<RecordMachineFailureData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await recordMachineFailure({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listOrganizationsQueryKey = (options?: Options<ListOrganizationsData>) => createQueryKey('listOrganizations', options);\n\n/**\n * List the authenticated principal's organizations\n *\n * Users get every organization they belong to; org API keys get the organization that issued them. Items are ordered by organization name ascending.\n */\nexport const listOrganizationsOptions = (options?: Options<ListOrganizationsData>) => queryOptions<ListOrganizationsResponse2, ListOrganizationsError, ListOrganizationsResponse2, ReturnType<typeof listOrganizationsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrganizations({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrganizationsQueryKey(options)\n});\n\n/**\n * Create organization\n *\n * Creates the organization and its local default resources atomically.\n * An idempotency key determines the proposed organization ID; replaying it\n * returns the existing organization. Without a key, each request is a fresh\n * attempt. Optional default-provider provisioning begins after commit and\n * retries asynchronously without failing organization creation.\n *\n */\nexport const createOrganizationMutation = (options?: Partial<Options<CreateOrganizationData>>): UseMutationOptions<CreateOrganizationResponse2, CreateOrganizationError, Options<CreateOrganizationData>> => {\n const mutationOptions: UseMutationOptions<CreateOrganizationResponse2, CreateOrganizationError, Options<CreateOrganizationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createOrganization({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete organization\n *\n * Deletes the organization and everything in it: projects, memberships, pending invitations, profiles, integrations, machine pools and machines, model provider configs and configured models, and all skills. Agents are archived and their runtimes and queued work are stopped. Secrets are permanently deleted once machine teardown no longer needs them. Deletion fails if project agent teardown cannot complete. Only organization owners can delete an organization.\n */\nexport const deleteOrganizationMutation = (options?: Partial<Options<DeleteOrganizationData>>): UseMutationOptions<DeleteOrganizationResponse, DeleteOrganizationError, Options<DeleteOrganizationData>> => {\n const mutationOptions: UseMutationOptions<DeleteOrganizationResponse, DeleteOrganizationError, Options<DeleteOrganizationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteOrganization({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete the authenticated user's account\n *\n * Deletes the account, revokes all personal access tokens and browser sessions, removes all organization and project memberships, and releases the account's sign-in identity (emails, linked auth identities, and password credentials) so the same email can register a new account. Personal secrets and skills owned by the user are deleted with the account. Deletion is blocked while the user is the last owner of any organization (add another owner or delete the organization first), while a personal skill is referenced by an active agent's configuration, or while a personal secret is referenced by a model provider config, machine pool, or integration. Organization and project resources are unaffected, and agents, machines, and other records the user created are kept with their attribution.\n */\nexport const deleteCurrentUserMutation = (options?: Partial<Options<DeleteCurrentUserData>>): UseMutationOptions<DeleteCurrentUserResponse, DeleteCurrentUserError, Options<DeleteCurrentUserData>> => {\n const mutationOptions: UseMutationOptions<DeleteCurrentUserResponse, DeleteCurrentUserError, Options<DeleteCurrentUserData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteCurrentUser({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getCurrentUserQueryKey = (options?: Options<GetCurrentUserData>) => createQueryKey('getCurrentUser', options);\n\n/**\n * Get the authenticated user and their organizations\n */\nexport const getCurrentUserOptions = (options?: Options<GetCurrentUserData>) => queryOptions<GetCurrentUserResponse, GetCurrentUserError, GetCurrentUserResponse, ReturnType<typeof getCurrentUserQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getCurrentUser({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getCurrentUserQueryKey(options)\n});\n\nexport const listPendingInvitationsQueryKey = (options?: Options<ListPendingInvitationsData>) => createQueryKey('listPendingInvitations', options);\n\n/**\n * List pending invitations\n *\n * Items are ordered by created_at ascending, then id ascending.\n */\nexport const listPendingInvitationsOptions = (options?: Options<ListPendingInvitationsData>) => queryOptions<ListPendingInvitationsResponse, ListPendingInvitationsError, ListPendingInvitationsResponse, ReturnType<typeof listPendingInvitationsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listPendingInvitations({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listPendingInvitationsQueryKey(options)\n});\n\nexport const listPendingInvitationsInfiniteQueryKey = (options?: Options<ListPendingInvitationsData>): QueryKey<Options<ListPendingInvitationsData>> => createQueryKey('listPendingInvitations', options, true);\n\n/**\n * List pending invitations\n *\n * Items are ordered by created_at ascending, then id ascending.\n */\nexport const listPendingInvitationsInfiniteOptions = (options?: Options<ListPendingInvitationsData>) => {\n const opts = infiniteQueryOptions<ListPendingInvitationsResponse, ListPendingInvitationsError, InfiniteData<ListPendingInvitationsResponse>, QueryKey<Options<ListPendingInvitationsData>>, string | Pick<QueryKey<Options<ListPendingInvitationsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListPendingInvitationsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listPendingInvitations({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listPendingInvitationsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Accept invitation\n */\nexport const acceptInvitationMutation = (options?: Partial<Options<AcceptInvitationData>>): UseMutationOptions<AcceptInvitationResponse, AcceptInvitationError, Options<AcceptInvitationData>> => {\n const mutationOptions: UseMutationOptions<AcceptInvitationResponse, AcceptInvitationError, Options<AcceptInvitationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await acceptInvitation({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Decline invitation\n */\nexport const declineInvitationMutation = (options?: Partial<Options<DeclineInvitationData>>): UseMutationOptions<DeclineInvitationResponse, DeclineInvitationError, Options<DeclineInvitationData>> => {\n const mutationOptions: UseMutationOptions<DeclineInvitationResponse, DeclineInvitationError, Options<DeclineInvitationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await declineInvitation({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getOrgOverviewQueryKey = (options: Options<GetOrgOverviewData>) => createQueryKey('getOrgOverview', options);\n\n/**\n * Get org overview\n *\n * Returns the data backing the web app's overview page: the caller's visible projects, the most recently active agents, and the most recently updated agent profiles. Internal to the web app and subject to change without notice.\n */\nexport const getOrgOverviewOptions = (options: Options<GetOrgOverviewData>) => queryOptions<GetOrgOverviewResponse, GetOrgOverviewError, GetOrgOverviewResponse, ReturnType<typeof getOrgOverviewQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getOrgOverview({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getOrgOverviewQueryKey(options)\n});\n\nexport const getOrgUsageQueryKey = (options: Options<GetOrgUsageData>) => createQueryKey('getOrgUsage', options);\n\n/**\n * Get org usage\n *\n * Tallies model token usage and provider-reported cost across every project the caller can read in the organization, broken down by configured model. Optionally limits the tally to a time window or to a subset of those projects; including a project the caller can't read is not found.\n */\nexport const getOrgUsageOptions = (options: Options<GetOrgUsageData>) => queryOptions<GetOrgUsageResponse, GetOrgUsageError, GetOrgUsageResponse, ReturnType<typeof getOrgUsageQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getOrgUsage({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getOrgUsageQueryKey(options)\n});\n\nexport const getOrgUsageTimeseriesQueryKey = (options: Options<GetOrgUsageTimeseriesData>) => createQueryKey('getOrgUsageTimeseries', options);\n\n/**\n * Get usage timeseries\n *\n * Buckets model usage over time for one metric, optionally broken down by configured model or agent profile. Covers every project the caller can read in the organization; `project_ids` and `agent_profile_ids` narrow that scope. Buckets are calendar days, weeks (starting Monday), or months in `timezone`.\n */\nexport const getOrgUsageTimeseriesOptions = (options: Options<GetOrgUsageTimeseriesData>) => queryOptions<GetOrgUsageTimeseriesResponse, GetOrgUsageTimeseriesError, GetOrgUsageTimeseriesResponse, ReturnType<typeof getOrgUsageTimeseriesQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getOrgUsageTimeseries({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getOrgUsageTimeseriesQueryKey(options)\n});\n\nexport const listOrgAgentsQueryKey = (options: Options<ListOrgAgentsData>) => createQueryKey('listOrgAgents', options);\n\n/**\n * List agents across projects\n *\n * Lists agents in every project of the organization where the caller can read agents. Each agent carries its project_id. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgAgentsOptions = (options: Options<ListOrgAgentsData>) => queryOptions<ListOrgAgentsResponse, ListOrgAgentsError, ListOrgAgentsResponse, ReturnType<typeof listOrgAgentsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgAgents({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgAgentsQueryKey(options)\n});\n\nexport const listOrgAgentsInfiniteQueryKey = (options: Options<ListOrgAgentsData>): QueryKey<Options<ListOrgAgentsData>> => createQueryKey('listOrgAgents', options, true);\n\n/**\n * List agents across projects\n *\n * Lists agents in every project of the organization where the caller can read agents. Each agent carries its project_id. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgAgentsInfiniteOptions = (options: Options<ListOrgAgentsData>) => {\n const opts = infiniteQueryOptions<ListOrgAgentsResponse, ListOrgAgentsError, InfiniteData<ListOrgAgentsResponse>, QueryKey<Options<ListOrgAgentsData>>, string | Pick<QueryKey<Options<ListOrgAgentsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListOrgAgentsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listOrgAgents({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgAgentsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const listOrgAgentProfilesQueryKey = (options: Options<ListOrgAgentProfilesData>) => createQueryKey('listOrgAgentProfiles', options);\n\n/**\n * List agent profiles across projects\n *\n * Lists agent profiles in every project of the organization the caller can read. Each profile carries its project_id. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgAgentProfilesOptions = (options: Options<ListOrgAgentProfilesData>) => queryOptions<ListOrgAgentProfilesResponse, ListOrgAgentProfilesError, ListOrgAgentProfilesResponse, ReturnType<typeof listOrgAgentProfilesQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgAgentProfiles({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgAgentProfilesQueryKey(options)\n});\n\nexport const listOrgAgentProfilesInfiniteQueryKey = (options: Options<ListOrgAgentProfilesData>): QueryKey<Options<ListOrgAgentProfilesData>> => createQueryKey('listOrgAgentProfiles', options, true);\n\n/**\n * List agent profiles across projects\n *\n * Lists agent profiles in every project of the organization the caller can read. Each profile carries its project_id. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgAgentProfilesInfiniteOptions = (options: Options<ListOrgAgentProfilesData>) => {\n const opts = infiniteQueryOptions<ListOrgAgentProfilesResponse, ListOrgAgentProfilesError, InfiniteData<ListOrgAgentProfilesResponse>, QueryKey<Options<ListOrgAgentProfilesData>>, string | Pick<QueryKey<Options<ListOrgAgentProfilesData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListOrgAgentProfilesData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listOrgAgentProfiles({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgAgentProfilesInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const listVisibleProjectsQueryKey = (options: Options<ListVisibleProjectsData>) => createQueryKey('listVisibleProjects', options);\n\n/**\n * List visible projects\n *\n * Lists the projects the caller can access in the organization, newest first, with the caller's permissions on each.\n */\nexport const listVisibleProjectsOptions = (options: Options<ListVisibleProjectsData>) => queryOptions<ListVisibleProjectsResponse, ListVisibleProjectsError, ListVisibleProjectsResponse, ReturnType<typeof listVisibleProjectsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listVisibleProjects({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listVisibleProjectsQueryKey(options)\n});\n\nexport const listVisibleProjectsInfiniteQueryKey = (options: Options<ListVisibleProjectsData>): QueryKey<Options<ListVisibleProjectsData>> => createQueryKey('listVisibleProjects', options, true);\n\n/**\n * List visible projects\n *\n * Lists the projects the caller can access in the organization, newest first, with the caller's permissions on each.\n */\nexport const listVisibleProjectsInfiniteOptions = (options: Options<ListVisibleProjectsData>) => {\n const opts = infiniteQueryOptions<ListVisibleProjectsResponse, ListVisibleProjectsError, InfiniteData<ListVisibleProjectsResponse>, QueryKey<Options<ListVisibleProjectsData>>, string | Pick<QueryKey<Options<ListVisibleProjectsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListVisibleProjectsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listVisibleProjects({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listVisibleProjectsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create project\n *\n * Creates a project, makes the caller its admin, and returns it. The new project has no grants to organization models, machines, skills, or secrets.\n */\nexport const createProjectMutation = (options?: Partial<Options<CreateProjectData>>): UseMutationOptions<CreateProjectResponse, CreateProjectError, Options<CreateProjectData>> => {\n const mutationOptions: UseMutationOptions<CreateProjectResponse, CreateProjectError, Options<CreateProjectData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createProject({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete project\n *\n * Deletes the project, its memberships, profiles and profile versions, integrations and their interaction targets, project-owned skills and revisions, and grants owned by or targeting the project. Project-owned secrets are permanently deleted with their versions and grants. The project's agents are archived and their runtimes and queued work are stopped. Machine, machine-pool, and model grants are removed without deleting the shared machine, pool, or model. Deletion fails if agent teardown cannot complete.\n */\nexport const deleteProjectMutation = (options?: Partial<Options<DeleteProjectData>>): UseMutationOptions<DeleteProjectResponse, DeleteProjectError, Options<DeleteProjectData>> => {\n const mutationOptions: UseMutationOptions<DeleteProjectResponse, DeleteProjectError, Options<DeleteProjectData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteProject({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getProjectUsageQueryKey = (options: Options<GetProjectUsageData>) => createQueryKey('getProjectUsage', options);\n\n/**\n * Get project usage\n *\n * Tallies model token usage and provider-reported cost across every agent in the project, including subagents, broken down by configured model. Optionally limits the tally to a time window.\n */\nexport const getProjectUsageOptions = (options: Options<GetProjectUsageData>) => queryOptions<GetProjectUsageResponse, GetProjectUsageError, GetProjectUsageResponse, ReturnType<typeof getProjectUsageQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getProjectUsage({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getProjectUsageQueryKey(options)\n});\n\nexport const listOrgMembersQueryKey = (options: Options<ListOrgMembersData>) => createQueryKey('listOrgMembers', options);\n\n/**\n * List organization members\n *\n * List organization members with server-side display-name filtering, sorting, and cursor pagination.\n */\nexport const listOrgMembersOptions = (options: Options<ListOrgMembersData>) => queryOptions<ListOrgMembersResponse2, ListOrgMembersError, ListOrgMembersResponse2, ReturnType<typeof listOrgMembersQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgMembers({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgMembersQueryKey(options)\n});\n\nexport const listOrgMembersInfiniteQueryKey = (options: Options<ListOrgMembersData>): QueryKey<Options<ListOrgMembersData>> => createQueryKey('listOrgMembers', options, true);\n\n/**\n * List organization members\n *\n * List organization members with server-side display-name filtering, sorting, and cursor pagination.\n */\nexport const listOrgMembersInfiniteOptions = (options: Options<ListOrgMembersData>) => {\n const opts = infiniteQueryOptions<ListOrgMembersResponse2, ListOrgMembersError, InfiniteData<ListOrgMembersResponse2>, QueryKey<Options<ListOrgMembersData>>, string | Pick<QueryKey<Options<ListOrgMembersData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListOrgMembersData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listOrgMembers({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgMembersInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Remove org member\n *\n * Removes the user's organization membership and all project memberships in the organization. The member's personal secrets and skills in the organization are deleted with the membership. Removal is blocked when the user is the organization's last owner, while a personal skill is referenced by an active agent's configuration, or while a personal secret is referenced by a model provider config, machine pool, or integration.\n */\nexport const removeOrgMemberMutation = (options?: Partial<Options<RemoveOrgMemberData>>): UseMutationOptions<RemoveOrgMemberResponse, RemoveOrgMemberError, Options<RemoveOrgMemberData>> => {\n const mutationOptions: UseMutationOptions<RemoveOrgMemberResponse, RemoveOrgMemberError, Options<RemoveOrgMemberData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await removeOrgMember({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Update org member role\n */\nexport const updateOrgMemberMutation = (options?: Partial<Options<UpdateOrgMemberData>>): UseMutationOptions<UpdateOrgMemberResponse, UpdateOrgMemberError, Options<UpdateOrgMemberData>> => {\n const mutationOptions: UseMutationOptions<UpdateOrgMemberResponse, UpdateOrgMemberError, Options<UpdateOrgMemberData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateOrgMember({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listMemberProjectAccessQueryKey = (options: Options<ListMemberProjectAccessData>) => createQueryKey('listMemberProjectAccess', options);\n\n/**\n * List a member's explicit project role grants\n *\n * Lists the member's explicit per-project role grants. Org owners and admins implicitly have admin access to every project and will not appear here for those projects.\n */\nexport const listMemberProjectAccessOptions = (options: Options<ListMemberProjectAccessData>) => queryOptions<ListMemberProjectAccessResponse, ListMemberProjectAccessError, ListMemberProjectAccessResponse, ReturnType<typeof listMemberProjectAccessQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listMemberProjectAccess({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMemberProjectAccessQueryKey(options)\n});\n\n/**\n * Remove a member's project role grant\n *\n * Removes only the member's explicit role grant for this project. No other memberships, grants, or resources are deleted, and there are no dependency blockers.\n */\nexport const removeMemberProjectAccessMutation = (options?: Partial<Options<RemoveMemberProjectAccessData>>): UseMutationOptions<RemoveMemberProjectAccessResponse, RemoveMemberProjectAccessError, Options<RemoveMemberProjectAccessData>> => {\n const mutationOptions: UseMutationOptions<RemoveMemberProjectAccessResponse, RemoveMemberProjectAccessError, Options<RemoveMemberProjectAccessData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await removeMemberProjectAccess({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Set a member's role on a project\n *\n * Creates or updates the member's explicit role grant on the project.\n */\nexport const setMemberProjectAccessMutation = (options?: Partial<Options<SetMemberProjectAccessData>>): UseMutationOptions<SetMemberProjectAccessResponse, SetMemberProjectAccessError, Options<SetMemberProjectAccessData>> => {\n const mutationOptions: UseMutationOptions<SetMemberProjectAccessResponse, SetMemberProjectAccessError, Options<SetMemberProjectAccessData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await setMemberProjectAccess({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listOrgApiKeysQueryKey = (options: Options<ListOrgApiKeysData>) => createQueryKey('listOrgApiKeys', options);\n\n/**\n * List org API keys\n *\n * Items are ordered by created_at descending, then id descending. Revoked keys are included.\n */\nexport const listOrgApiKeysOptions = (options: Options<ListOrgApiKeysData>) => queryOptions<ListOrgApiKeysResponse2, ListOrgApiKeysError, ListOrgApiKeysResponse2, ReturnType<typeof listOrgApiKeysQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgApiKeys({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgApiKeysQueryKey(options)\n});\n\nexport const listOrgApiKeysInfiniteQueryKey = (options: Options<ListOrgApiKeysData>): QueryKey<Options<ListOrgApiKeysData>> => createQueryKey('listOrgApiKeys', options, true);\n\n/**\n * List org API keys\n *\n * Items are ordered by created_at descending, then id descending. Revoked keys are included.\n */\nexport const listOrgApiKeysInfiniteOptions = (options: Options<ListOrgApiKeysData>) => {\n const opts = infiniteQueryOptions<ListOrgApiKeysResponse2, ListOrgApiKeysError, InfiniteData<ListOrgApiKeysResponse2>, QueryKey<Options<ListOrgApiKeysData>>, string | Pick<QueryKey<Options<ListOrgApiKeysData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListOrgApiKeysData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listOrgApiKeys({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgApiKeysInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create org API key\n *\n * Mints an org API key. The plaintext token is returned once and never stored.\n */\nexport const createOrgApiKeyMutation = (options?: Partial<Options<CreateOrgApiKeyData>>): UseMutationOptions<CreateOrgApiKeyResponse2, CreateOrgApiKeyError, Options<CreateOrgApiKeyData>> => {\n const mutationOptions: UseMutationOptions<CreateOrgApiKeyResponse2, CreateOrgApiKeyError, Options<CreateOrgApiKeyData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createOrgApiKey({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getOrgApiKeyQueryKey = (options: Options<GetOrgApiKeyData>) => createQueryKey('getOrgApiKey', options);\n\n/**\n * Get an org API key\n */\nexport const getOrgApiKeyOptions = (options: Options<GetOrgApiKeyData>) => queryOptions<GetOrgApiKeyResponse, GetOrgApiKeyError, GetOrgApiKeyResponse, ReturnType<typeof getOrgApiKeyQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getOrgApiKey({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getOrgApiKeyQueryKey(options)\n});\n\n/**\n * Update an org API key\n *\n * Renames the key and/or changes its org role. Revoked keys cannot be updated.\n */\nexport const updateOrgApiKeyMutation = (options?: Partial<Options<UpdateOrgApiKeyData>>): UseMutationOptions<UpdateOrgApiKeyResponse, UpdateOrgApiKeyError, Options<UpdateOrgApiKeyData>> => {\n const mutationOptions: UseMutationOptions<UpdateOrgApiKeyResponse, UpdateOrgApiKeyError, Options<UpdateOrgApiKeyData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateOrgApiKey({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Revoke an org API key\n *\n * Terminally revokes the key and removes its org and project roles. Idempotent.\n */\nexport const revokeOrgApiKeyMutation = (options?: Partial<Options<RevokeOrgApiKeyData>>): UseMutationOptions<RevokeOrgApiKeyResponse, RevokeOrgApiKeyError, Options<RevokeOrgApiKeyData>> => {\n const mutationOptions: UseMutationOptions<RevokeOrgApiKeyResponse, RevokeOrgApiKeyError, Options<RevokeOrgApiKeyData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await revokeOrgApiKey({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listOrgApiKeyProjectAccessQueryKey = (options: Options<ListOrgApiKeyProjectAccessData>) => createQueryKey('listOrgApiKeyProjectAccess', options);\n\n/**\n * List an org API key's explicit project role grants\n *\n * Lists the key's explicit per-project role grants. Keys with the admin org role implicitly have admin access to every project and will not appear here for those projects.\n */\nexport const listOrgApiKeyProjectAccessOptions = (options: Options<ListOrgApiKeyProjectAccessData>) => queryOptions<ListOrgApiKeyProjectAccessResponse, ListOrgApiKeyProjectAccessError, ListOrgApiKeyProjectAccessResponse, ReturnType<typeof listOrgApiKeyProjectAccessQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgApiKeyProjectAccess({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgApiKeyProjectAccessQueryKey(options)\n});\n\n/**\n * Remove an org API key's project role grant\n */\nexport const removeOrgApiKeyProjectRoleMutation = (options?: Partial<Options<RemoveOrgApiKeyProjectRoleData>>): UseMutationOptions<RemoveOrgApiKeyProjectRoleResponse, RemoveOrgApiKeyProjectRoleError, Options<RemoveOrgApiKeyProjectRoleData>> => {\n const mutationOptions: UseMutationOptions<RemoveOrgApiKeyProjectRoleResponse, RemoveOrgApiKeyProjectRoleError, Options<RemoveOrgApiKeyProjectRoleData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await removeOrgApiKeyProjectRole({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Set an org API key's role on a project\n *\n * Creates or updates the key's explicit role grant on the project.\n */\nexport const setOrgApiKeyProjectRoleMutation = (options?: Partial<Options<SetOrgApiKeyProjectRoleData>>): UseMutationOptions<SetOrgApiKeyProjectRoleResponse, SetOrgApiKeyProjectRoleError, Options<SetOrgApiKeyProjectRoleData>> => {\n const mutationOptions: UseMutationOptions<SetOrgApiKeyProjectRoleResponse, SetOrgApiKeyProjectRoleError, Options<SetOrgApiKeyProjectRoleData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await setOrgApiKeyProjectRole({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listOrgInvitationsQueryKey = (options: Options<ListOrgInvitationsData>) => createQueryKey('listOrgInvitations', options);\n\n/**\n * List org invitations\n *\n * Every listed invitation is pending: accepting, declining, revoking, or organization deletion removes the invitation. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgInvitationsOptions = (options: Options<ListOrgInvitationsData>) => queryOptions<ListOrgInvitationsResponse2, ListOrgInvitationsError, ListOrgInvitationsResponse2, ReturnType<typeof listOrgInvitationsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgInvitations({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgInvitationsQueryKey(options)\n});\n\nexport const listOrgInvitationsInfiniteQueryKey = (options: Options<ListOrgInvitationsData>): QueryKey<Options<ListOrgInvitationsData>> => createQueryKey('listOrgInvitations', options, true);\n\n/**\n * List org invitations\n *\n * Every listed invitation is pending: accepting, declining, revoking, or organization deletion removes the invitation. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgInvitationsInfiniteOptions = (options: Options<ListOrgInvitationsData>) => {\n const opts = infiniteQueryOptions<ListOrgInvitationsResponse2, ListOrgInvitationsError, InfiniteData<ListOrgInvitationsResponse2>, QueryKey<Options<ListOrgInvitationsData>>, string | Pick<QueryKey<Options<ListOrgInvitationsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListOrgInvitationsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listOrgInvitations({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgInvitationsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create org invitation\n */\nexport const createOrgInvitationMutation = (options?: Partial<Options<CreateOrgInvitationData>>): UseMutationOptions<CreateOrgInvitationResponse, CreateOrgInvitationError, Options<CreateOrgInvitationData>> => {\n const mutationOptions: UseMutationOptions<CreateOrgInvitationResponse, CreateOrgInvitationError, Options<CreateOrgInvitationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createOrgInvitation({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete org invitation\n *\n * Deletes the pending invitation so it can no longer be accepted.\n */\nexport const deleteOrgInvitationMutation = (options?: Partial<Options<DeleteOrgInvitationData>>): UseMutationOptions<DeleteOrgInvitationResponse, DeleteOrgInvitationError, Options<DeleteOrgInvitationData>> => {\n const mutationOptions: UseMutationOptions<DeleteOrgInvitationResponse, DeleteOrgInvitationError, Options<DeleteOrgInvitationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteOrgInvitation({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listSkillsQueryKey = (options: Options<ListSkillsData>) => createQueryKey('listSkills', options);\n\n/**\n * List skills visible through ownership authority\n *\n * Items are ordered by created_at descending, then id descending. Without an owner filter, returns the deduplicated union of organization skills the caller may list, project skills the caller may list, and the caller's own user skills. Grants are managed separately and do not change ownership.\n */\nexport const listSkillsOptions = (options: Options<ListSkillsData>) => queryOptions<ListSkillsResponse2, ListSkillsError, ListSkillsResponse2, ReturnType<typeof listSkillsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listSkills({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSkillsQueryKey(options)\n});\n\nexport const listSkillsInfiniteQueryKey = (options: Options<ListSkillsData>): QueryKey<Options<ListSkillsData>> => createQueryKey('listSkills', options, true);\n\n/**\n * List skills visible through ownership authority\n *\n * Items are ordered by created_at descending, then id descending. Without an owner filter, returns the deduplicated union of organization skills the caller may list, project skills the caller may list, and the caller's own user skills. Grants are managed separately and do not change ownership.\n */\nexport const listSkillsInfiniteOptions = (options: Options<ListSkillsData>) => {\n const opts = infiniteQueryOptions<ListSkillsResponse2, ListSkillsError, InfiniteData<ListSkillsResponse2>, QueryKey<Options<ListSkillsData>>, string | Pick<QueryKey<Options<ListSkillsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListSkillsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listSkills({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSkillsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create skill\n *\n * Uploads a skill archive. If a skill with the archive's name already exists for the requested owner, the upload becomes the skill's next revision. The owner is immutable after creation.\n */\nexport const createSkillMutation = (options?: Partial<Options<CreateSkillData>>): UseMutationOptions<CreateSkillResponse, CreateSkillError, Options<CreateSkillData>> => {\n const mutationOptions: UseMutationOptions<CreateSkillResponse, CreateSkillError, Options<CreateSkillData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createSkill({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete skill\n *\n * Deletes the skill together with all of its revisions and project grants; uploaded archive content is destroyed. No other resources are deleted. Deletion is blocked while an active agent's configuration references the skill.\n */\nexport const deleteSkillMutation = (options?: Partial<Options<DeleteSkillData>>): UseMutationOptions<DeleteSkillResponse, DeleteSkillError, Options<DeleteSkillData>> => {\n const mutationOptions: UseMutationOptions<DeleteSkillResponse, DeleteSkillError, Options<DeleteSkillData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteSkill({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getSkillQueryKey = (options: Options<GetSkillData>) => createQueryKey('getSkill', options);\n\n/**\n * Get skill through ownership authority\n *\n * Returns one skill with its latest SKILL.md text and file listing.\n */\nexport const getSkillOptions = (options: Options<GetSkillData>) => queryOptions<GetSkillResponse, GetSkillError, GetSkillResponse, ReturnType<typeof getSkillQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getSkill({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getSkillQueryKey(options)\n});\n\n/**\n * Update skill by uploading a new revision\n *\n * Creates the skill's next revision from either a replacement archive or replacement SKILL.md content (which keeps every other file from the current revision). The SKILL.md frontmatter `name` must match the skill's existing name.\n */\nexport const updateSkillMutation = (options?: Partial<Options<UpdateSkillData>>): UseMutationOptions<UpdateSkillResponse, UpdateSkillError, Options<UpdateSkillData>> => {\n const mutationOptions: UseMutationOptions<UpdateSkillResponse, UpdateSkillError, Options<UpdateSkillData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateSkill({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listSkillGrantsQueryKey = (options: Options<ListSkillGrantsData>) => createQueryKey('listSkillGrants', options);\n\n/**\n * List skill grants\n *\n * Lists the projects a skill is shared with, one grant per project, most recently shared first by default.\n */\nexport const listSkillGrantsOptions = (options: Options<ListSkillGrantsData>) => queryOptions<ListSkillGrantsResponse2, ListSkillGrantsError, ListSkillGrantsResponse2, ReturnType<typeof listSkillGrantsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listSkillGrants({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSkillGrantsQueryKey(options)\n});\n\nexport const listSkillGrantsInfiniteQueryKey = (options: Options<ListSkillGrantsData>): QueryKey<Options<ListSkillGrantsData>> => createQueryKey('listSkillGrants', options, true);\n\n/**\n * List skill grants\n *\n * Lists the projects a skill is shared with, one grant per project, most recently shared first by default.\n */\nexport const listSkillGrantsInfiniteOptions = (options: Options<ListSkillGrantsData>) => {\n const opts = infiniteQueryOptions<ListSkillGrantsResponse2, ListSkillGrantsError, InfiniteData<ListSkillGrantsResponse2>, QueryKey<Options<ListSkillGrantsData>>, string | Pick<QueryKey<Options<ListSkillGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListSkillGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listSkillGrants({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSkillGrantsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create skill grant\n *\n * Shares a skill with another project so its agent configs can attach it, and returns the grant; ownership doesn't change.\n */\nexport const createSkillGrantMutation = (options?: Partial<Options<CreateSkillGrantData>>): UseMutationOptions<CreateSkillGrantResponse, CreateSkillGrantError, Options<CreateSkillGrantData>> => {\n const mutationOptions: UseMutationOptions<CreateSkillGrantResponse, CreateSkillGrantError, Options<CreateSkillGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createSkillGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete skill grant\n *\n * Deletes only this project grant. The skill, its revisions, the target project, and other grants are retained, and there are no dependency blockers.\n */\nexport const deleteSkillGrantMutation = (options?: Partial<Options<DeleteSkillGrantData>>): UseMutationOptions<DeleteSkillGrantResponse, DeleteSkillGrantError, Options<DeleteSkillGrantData>> => {\n const mutationOptions: UseMutationOptions<DeleteSkillGrantResponse, DeleteSkillGrantError, Options<DeleteSkillGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteSkillGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listProjectAvailableSkillsQueryKey = (options: Options<ListProjectAvailableSkillsData>) => createQueryKey('listProjectAvailableSkills', options);\n\n/**\n * List skills available to project\n *\n * Includes directly owned project skills and granted skills, ordered by created_at descending, then id descending.\n */\nexport const listProjectAvailableSkillsOptions = (options: Options<ListProjectAvailableSkillsData>) => queryOptions<ListProjectAvailableSkillsResponse, ListProjectAvailableSkillsError, ListProjectAvailableSkillsResponse, ReturnType<typeof listProjectAvailableSkillsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listProjectAvailableSkills({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectAvailableSkillsQueryKey(options)\n});\n\nexport const listProjectAvailableSkillsInfiniteQueryKey = (options: Options<ListProjectAvailableSkillsData>): QueryKey<Options<ListProjectAvailableSkillsData>> => createQueryKey('listProjectAvailableSkills', options, true);\n\n/**\n * List skills available to project\n *\n * Includes directly owned project skills and granted skills, ordered by created_at descending, then id descending.\n */\nexport const listProjectAvailableSkillsInfiniteOptions = (options: Options<ListProjectAvailableSkillsData>) => {\n const opts = infiniteQueryOptions<ListProjectAvailableSkillsResponse, ListProjectAvailableSkillsError, InfiniteData<ListProjectAvailableSkillsResponse>, QueryKey<Options<ListProjectAvailableSkillsData>>, string | Pick<QueryKey<Options<ListProjectAvailableSkillsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListProjectAvailableSkillsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listProjectAvailableSkills({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectAvailableSkillsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const listOrgMemoryStoresQueryKey = (options: Options<ListOrgMemoryStoresData>) => createQueryKey('listOrgMemoryStores', options);\n\n/**\n * List memory stores across projects\n *\n * Lists memory stores in every project of the organization the caller can read. Each store carries its project_id. Items are ordered by name, then id.\n */\nexport const listOrgMemoryStoresOptions = (options: Options<ListOrgMemoryStoresData>) => queryOptions<ListOrgMemoryStoresResponse, ListOrgMemoryStoresError, ListOrgMemoryStoresResponse, ReturnType<typeof listOrgMemoryStoresQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgMemoryStores({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgMemoryStoresQueryKey(options)\n});\n\nexport const listOrgMemoryStoresInfiniteQueryKey = (options: Options<ListOrgMemoryStoresData>): QueryKey<Options<ListOrgMemoryStoresData>> => createQueryKey('listOrgMemoryStores', options, true);\n\n/**\n * List memory stores across projects\n *\n * Lists memory stores in every project of the organization the caller can read. Each store carries its project_id. Items are ordered by name, then id.\n */\nexport const listOrgMemoryStoresInfiniteOptions = (options: Options<ListOrgMemoryStoresData>) => {\n const opts = infiniteQueryOptions<ListOrgMemoryStoresResponse, ListOrgMemoryStoresError, InfiniteData<ListOrgMemoryStoresResponse>, QueryKey<Options<ListOrgMemoryStoresData>>, string | Pick<QueryKey<Options<ListOrgMemoryStoresData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListOrgMemoryStoresData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listOrgMemoryStores({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgMemoryStoresInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const listMemoryStoresQueryKey = (options: Options<ListMemoryStoresData>) => createQueryKey('listMemoryStores', options);\n\n/**\n * List memory stores\n */\nexport const listMemoryStoresOptions = (options: Options<ListMemoryStoresData>) => queryOptions<ListMemoryStoresResponse, ListMemoryStoresError, ListMemoryStoresResponse, ReturnType<typeof listMemoryStoresQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listMemoryStores({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMemoryStoresQueryKey(options)\n});\n\nexport const listMemoryStoresInfiniteQueryKey = (options: Options<ListMemoryStoresData>): QueryKey<Options<ListMemoryStoresData>> => createQueryKey('listMemoryStores', options, true);\n\n/**\n * List memory stores\n */\nexport const listMemoryStoresInfiniteOptions = (options: Options<ListMemoryStoresData>) => {\n const opts = infiniteQueryOptions<ListMemoryStoresResponse, ListMemoryStoresError, InfiniteData<ListMemoryStoresResponse>, QueryKey<Options<ListMemoryStoresData>>, string | Pick<QueryKey<Options<ListMemoryStoresData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListMemoryStoresData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listMemoryStores({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMemoryStoresInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create memory store\n */\nexport const createMemoryStoreMutation = (options?: Partial<Options<CreateMemoryStoreData>>): UseMutationOptions<CreateMemoryStoreResponse, CreateMemoryStoreError, Options<CreateMemoryStoreData>> => {\n const mutationOptions: UseMutationOptions<CreateMemoryStoreResponse, CreateMemoryStoreError, Options<CreateMemoryStoreData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createMemoryStore({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete memory store\n */\nexport const deleteMemoryStoreMutation = (options?: Partial<Options<DeleteMemoryStoreData>>): UseMutationOptions<DeleteMemoryStoreResponse, DeleteMemoryStoreError, Options<DeleteMemoryStoreData>> => {\n const mutationOptions: UseMutationOptions<DeleteMemoryStoreResponse, DeleteMemoryStoreError, Options<DeleteMemoryStoreData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteMemoryStore({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getMemoryStoreQueryKey = (options: Options<GetMemoryStoreData>) => createQueryKey('getMemoryStore', options);\n\n/**\n * Get memory store\n */\nexport const getMemoryStoreOptions = (options: Options<GetMemoryStoreData>) => queryOptions<GetMemoryStoreResponse, GetMemoryStoreError, GetMemoryStoreResponse, ReturnType<typeof getMemoryStoreQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getMemoryStore({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getMemoryStoreQueryKey(options)\n});\n\n/**\n * Update memory store\n */\nexport const updateMemoryStoreMutation = (options?: Partial<Options<UpdateMemoryStoreData>>): UseMutationOptions<UpdateMemoryStoreResponse, UpdateMemoryStoreError, Options<UpdateMemoryStoreData>> => {\n const mutationOptions: UseMutationOptions<UpdateMemoryStoreResponse, UpdateMemoryStoreError, Options<UpdateMemoryStoreData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateMemoryStore({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listMemoryFilesQueryKey = (options: Options<ListMemoryFilesData>) => createQueryKey('listMemoryFiles', options);\n\n/**\n * List memory files\n *\n * List a directory's immediate children in name order. Omit path to list the store root.\n */\nexport const listMemoryFilesOptions = (options: Options<ListMemoryFilesData>) => queryOptions<ListMemoryFilesResponse, ListMemoryFilesError, ListMemoryFilesResponse, ReturnType<typeof listMemoryFilesQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listMemoryFiles({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMemoryFilesQueryKey(options)\n});\n\nexport const listMemoryFilesInfiniteQueryKey = (options: Options<ListMemoryFilesData>): QueryKey<Options<ListMemoryFilesData>> => createQueryKey('listMemoryFiles', options, true);\n\n/**\n * List memory files\n *\n * List a directory's immediate children in name order. Omit path to list the store root.\n */\nexport const listMemoryFilesInfiniteOptions = (options: Options<ListMemoryFilesData>) => {\n const opts = infiniteQueryOptions<ListMemoryFilesResponse, ListMemoryFilesError, InfiniteData<ListMemoryFilesResponse>, QueryKey<Options<ListMemoryFilesData>>, string | Pick<QueryKey<Options<ListMemoryFilesData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListMemoryFilesData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listMemoryFiles({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMemoryFilesInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Delete memory file\n */\nexport const deleteMemoryFileMutation = (options?: Partial<Options<DeleteMemoryFileData>>): UseMutationOptions<DeleteMemoryFileResponse, DeleteMemoryFileError, Options<DeleteMemoryFileData>> => {\n const mutationOptions: UseMutationOptions<DeleteMemoryFileResponse, DeleteMemoryFileError, Options<DeleteMemoryFileData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteMemoryFile({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const downloadMemoryFileQueryKey = (options: Options<DownloadMemoryFileData>) => createQueryKey('downloadMemoryFile', options);\n\n/**\n * Download memory file\n */\nexport const downloadMemoryFileOptions = (options: Options<DownloadMemoryFileData>) => queryOptions<DownloadMemoryFileResponse, DownloadMemoryFileError, DownloadMemoryFileResponse, ReturnType<typeof downloadMemoryFileQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await downloadMemoryFile({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: downloadMemoryFileQueryKey(options)\n});\n\n/**\n * Write memory file\n */\nexport const writeMemoryFileMutation = (options?: Partial<Options<WriteMemoryFileData>>): UseMutationOptions<WriteMemoryFileResponse, WriteMemoryFileError, Options<WriteMemoryFileData>> => {\n const mutationOptions: UseMutationOptions<WriteMemoryFileResponse, WriteMemoryFileError, Options<WriteMemoryFileData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await writeMemoryFile({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listSecretsQueryKey = (options: Options<ListSecretsData>) => createQueryKey('listSecrets', options);\n\n/**\n * List secrets visible through ownership authority\n *\n * Items are ordered by created_at descending, then id descending. Without an owner filter, returns the deduplicated union of organization secrets the caller may list, project secrets the caller may list, and the caller's own user secrets.\n */\nexport const listSecretsOptions = (options: Options<ListSecretsData>) => queryOptions<ListSecretsResponse2, ListSecretsError, ListSecretsResponse2, ReturnType<typeof listSecretsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listSecrets({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSecretsQueryKey(options)\n});\n\nexport const listSecretsInfiniteQueryKey = (options: Options<ListSecretsData>): QueryKey<Options<ListSecretsData>> => createQueryKey('listSecrets', options, true);\n\n/**\n * List secrets visible through ownership authority\n *\n * Items are ordered by created_at descending, then id descending. Without an owner filter, returns the deduplicated union of organization secrets the caller may list, project secrets the caller may list, and the caller's own user secrets.\n */\nexport const listSecretsInfiniteOptions = (options: Options<ListSecretsData>) => {\n const opts = infiniteQueryOptions<ListSecretsResponse2, ListSecretsError, InfiniteData<ListSecretsResponse2>, QueryKey<Options<ListSecretsData>>, string | Pick<QueryKey<Options<ListSecretsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListSecretsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listSecrets({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSecretsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create secret\n *\n * Creates an encrypted secret holding one credential and returns its metadata; the value is never returned. owner sets whether the organization, a project, or the caller owns it.\n */\nexport const createSecretMutation = (options?: Partial<Options<CreateSecretData>>): UseMutationOptions<CreateSecretResponse, CreateSecretError, Options<CreateSecretData>> => {\n const mutationOptions: UseMutationOptions<CreateSecretResponse, CreateSecretError, Options<CreateSecretData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createSecret({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Start MCP OAuth for a new secret\n */\nexport const startSecretMcpoAuthMutation = (options?: Partial<Options<StartSecretMcpoAuthData>>): UseMutationOptions<StartSecretMcpoAuthResponse, StartSecretMcpoAuthError, Options<StartSecretMcpoAuthData>> => {\n const mutationOptions: UseMutationOptions<StartSecretMcpoAuthResponse, StartSecretMcpoAuthError, Options<StartSecretMcpoAuthData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await startSecretMcpoAuth({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete secret\n *\n * Deletes the secret and permanently destroys all of its versions and project grants; the ciphertext cannot be recovered. Deletion is blocked while the secret is the credential of a model provider config, machine pool, or integration.\n */\nexport const deleteSecretMutation = (options?: Partial<Options<DeleteSecretData>>): UseMutationOptions<DeleteSecretResponse, DeleteSecretError, Options<DeleteSecretData>> => {\n const mutationOptions: UseMutationOptions<DeleteSecretResponse, DeleteSecretError, Options<DeleteSecretData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteSecret({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getSecretQueryKey = (options: Options<GetSecretData>) => createQueryKey('getSecret', options);\n\n/**\n * Get secret through ownership authority\n *\n * Returns a secret's owner, kind, name, and current version; the secret value is never returned.\n */\nexport const getSecretOptions = (options: Options<GetSecretData>) => queryOptions<GetSecretResponse, GetSecretError, GetSecretResponse, ReturnType<typeof getSecretQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getSecret({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getSecretQueryKey(options)\n});\n\n/**\n * Update secret metadata\n *\n * Renames a secret or replaces its metadata, and returns the updated secret without its value. The value, kind, and owner can't be changed here. References use the secret ID, so renaming doesn't break them.\n */\nexport const updateSecretMutation = (options?: Partial<Options<UpdateSecretData>>): UseMutationOptions<UpdateSecretResponse, UpdateSecretError, Options<UpdateSecretData>> => {\n const mutationOptions: UseMutationOptions<UpdateSecretResponse, UpdateSecretError, Options<UpdateSecretData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateSecret({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Create secret version\n */\nexport const createSecretVersionMutation = (options?: Partial<Options<CreateSecretVersionData>>): UseMutationOptions<CreateSecretVersionResponse, CreateSecretVersionError, Options<CreateSecretVersionData>> => {\n const mutationOptions: UseMutationOptions<CreateSecretVersionResponse, CreateSecretVersionError, Options<CreateSecretVersionData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createSecretVersion({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listSecretGrantsQueryKey = (options: Options<ListSecretGrantsData>) => createQueryKey('listSecretGrants', options);\n\n/**\n * List secret grants\n *\n * Lists the projects a secret is shared with, one grant per project, most recently shared first by default.\n */\nexport const listSecretGrantsOptions = (options: Options<ListSecretGrantsData>) => queryOptions<ListSecretGrantsResponse2, ListSecretGrantsError, ListSecretGrantsResponse2, ReturnType<typeof listSecretGrantsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listSecretGrants({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSecretGrantsQueryKey(options)\n});\n\nexport const listSecretGrantsInfiniteQueryKey = (options: Options<ListSecretGrantsData>): QueryKey<Options<ListSecretGrantsData>> => createQueryKey('listSecretGrants', options, true);\n\n/**\n * List secret grants\n *\n * Lists the projects a secret is shared with, one grant per project, most recently shared first by default.\n */\nexport const listSecretGrantsInfiniteOptions = (options: Options<ListSecretGrantsData>) => {\n const opts = infiniteQueryOptions<ListSecretGrantsResponse2, ListSecretGrantsError, InfiniteData<ListSecretGrantsResponse2>, QueryKey<Options<ListSecretGrantsData>>, string | Pick<QueryKey<Options<ListSecretGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListSecretGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listSecretGrants({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSecretGrantsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create secret grant\n *\n * Shares a secret with another project so that project's resources can use it, and returns the grant; ownership doesn't change.\n */\nexport const createSecretGrantMutation = (options?: Partial<Options<CreateSecretGrantData>>): UseMutationOptions<CreateSecretGrantResponse, CreateSecretGrantError, Options<CreateSecretGrantData>> => {\n const mutationOptions: UseMutationOptions<CreateSecretGrantResponse, CreateSecretGrantError, Options<CreateSecretGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createSecretGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete secret grant\n *\n * Deletes only this project grant. The secret, its versions, the target project, and other grants are retained, and there are no dependency blockers.\n */\nexport const deleteSecretGrantMutation = (options?: Partial<Options<DeleteSecretGrantData>>): UseMutationOptions<DeleteSecretGrantResponse, DeleteSecretGrantError, Options<DeleteSecretGrantData>> => {\n const mutationOptions: UseMutationOptions<DeleteSecretGrantResponse, DeleteSecretGrantError, Options<DeleteSecretGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteSecretGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Resolve agent config tools\n *\n * Returns configured built-in and custom tools plus missing machine, skill, subagent, and retrieval defaults, including disabled entries. Accepts YAML/JSON source. Source previews validate tool-related fields only; they do not validate whether the config can be saved or launched. Does not resolve contextual integration tools, discover MCP tools, or change any configuration.\n */\nexport const resolveAgentConfigToolsMutation = (options?: Partial<Options<ResolveAgentConfigToolsData>>): UseMutationOptions<ResolveAgentConfigToolsResponse, ResolveAgentConfigToolsError, Options<ResolveAgentConfigToolsData>> => {\n const mutationOptions: UseMutationOptions<ResolveAgentConfigToolsResponse, ResolveAgentConfigToolsError, Options<ResolveAgentConfigToolsData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await resolveAgentConfigTools({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Create agent config\n *\n * Compiles and saves an immutable agent config (instruction, model, tools, machine_sources, and more) from YAML or JSON and returns it. Sending the same source again returns the existing config, as long as its names still resolve to the same resources.\n */\nexport const createAgentConfigMutation = (options?: Partial<Options<CreateAgentConfigData>>): UseMutationOptions<CreateAgentConfigResponse, CreateAgentConfigError, Options<CreateAgentConfigData>> => {\n const mutationOptions: UseMutationOptions<CreateAgentConfigResponse, CreateAgentConfigError, Options<CreateAgentConfigData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createAgentConfig({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getToolCatalogQueryKey = (options?: Options<GetToolCatalogData>) => createQueryKey('getToolCatalog', options);\n\n/**\n * Get tool catalog\n *\n * Lists the built-in tools agent configs can use, with each tool's description and permission settings, plus the permission modes for custom and MCP tools.\n */\nexport const getToolCatalogOptions = (options?: Options<GetToolCatalogData>) => queryOptions<GetToolCatalogResponse, GetToolCatalogError, GetToolCatalogResponse, ReturnType<typeof getToolCatalogQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getToolCatalog({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getToolCatalogQueryKey(options)\n});\n\nexport const listMcpServersQueryKey = (options?: Options<ListMcpServersData>) => createQueryKey('listMcpServers', options);\n\n/**\n * Search the MCP server registry\n *\n * Search the API's snapshot of the public MCP registry. The snapshot only holds active servers that publish a `streamable-http` remote. Results are ranked by relevance when `q` is set, otherwise ordered by name.\n */\nexport const listMcpServersOptions = (options?: Options<ListMcpServersData>) => queryOptions<ListMcpServersResponse2, ListMcpServersError, ListMcpServersResponse2, ReturnType<typeof listMcpServersQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listMcpServers({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMcpServersQueryKey(options)\n});\n\nexport const listMcpServersInfiniteQueryKey = (options?: Options<ListMcpServersData>): QueryKey<Options<ListMcpServersData>> => createQueryKey('listMcpServers', options, true);\n\n/**\n * Search the MCP server registry\n *\n * Search the API's snapshot of the public MCP registry. The snapshot only holds active servers that publish a `streamable-http` remote. Results are ranked by relevance when `q` is set, otherwise ordered by name.\n */\nexport const listMcpServersInfiniteOptions = (options?: Options<ListMcpServersData>) => {\n const opts = infiniteQueryOptions<ListMcpServersResponse2, ListMcpServersError, InfiniteData<ListMcpServersResponse2>, QueryKey<Options<ListMcpServersData>>, string | Pick<QueryKey<Options<ListMcpServersData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListMcpServersData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listMcpServers({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMcpServersInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * List an MCP server's tools\n *\n * Connects to a remote MCP server over streamable HTTP, negotiates the protocol version (stateless `server/discover` first, falling back to the `initialize` handshake for session-based servers), and returns the server's `tools/list` result. The request is not stored; use it to preview which tools a server exposes before referencing it from an agent config. Authentication mirrors the agent config `mcp_servers.<key>.auth` shape and resolves secrets available to the project. When the server does not speak MCP, the API responds 422 without an `auth` hint. When the server or its authorization server does not respond or fails, including a malformed MCP response or a JSON-RPC internal error from the server, the API responds 424; retrying may succeed once the server recovers. When the authorization server rejects the configured OAuth secret, the API responds 422 with an `oauth` hint so the caller can log in again. When Omnara times out reading or storing discovery state, the API responds 503. When the server rejects the connection with HTTP 401 or 403, the API probes the server's authorization requirements and responds 422 with an `auth` hint — `oauth` when the server advertises an OAuth authorization server, `bearer` when it expects a token but advertises no OAuth metadata. If that probe fails for a non-transient reason, the 422 carries no `auth` hint.\n */\nexport const listMcpServerToolsMutation = (options?: Partial<Options<ListMcpServerToolsData>>): UseMutationOptions<ListMcpServerToolsResponse, ListMcpServerToolsError, Options<ListMcpServerToolsData>> => {\n const mutationOptions: UseMutationOptions<ListMcpServerToolsResponse, ListMcpServerToolsError, Options<ListMcpServerToolsData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await listMcpServerTools({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getAgentConfigQueryKey = (options: Options<GetAgentConfigData>) => createQueryKey('getAgentConfig', options);\n\n/**\n * Get agent config\n *\n * Returns one agent config: its compiled definition with names resolved to IDs, and its source if it was saved with one. Configs Omnara derives on its own, such as those for subagents and integration launches, have no source.\n */\nexport const getAgentConfigOptions = (options: Options<GetAgentConfigData>) => queryOptions<GetAgentConfigResponse, GetAgentConfigError, GetAgentConfigResponse, ReturnType<typeof getAgentConfigQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getAgentConfig({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getAgentConfigQueryKey(options)\n});\n\nexport const getAgentConfigGeneratedSourceQueryKey = (options: Options<GetAgentConfigGeneratedSourceData>) => createQueryKey('getAgentConfigGeneratedSource', options);\n\n/**\n * Get generated agent config source\n *\n * Rebuilds a source from the config's compiled_definition, for configs saved without a source.\n */\nexport const getAgentConfigGeneratedSourceOptions = (options: Options<GetAgentConfigGeneratedSourceData>) => queryOptions<GetAgentConfigGeneratedSourceResponse, GetAgentConfigGeneratedSourceError, GetAgentConfigGeneratedSourceResponse, ReturnType<typeof getAgentConfigGeneratedSourceQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getAgentConfigGeneratedSource({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getAgentConfigGeneratedSourceQueryKey(options)\n});\n\nexport const listAgentProfilesQueryKey = (options: Options<ListAgentProfilesData>) => createQueryKey('listAgentProfiles', options);\n\n/**\n * List agent profiles\n *\n * Lists the project's agent profiles, newest first by default, filterable by name. Items include a summary of each profile's current config, not its full compiled definition.\n */\nexport const listAgentProfilesOptions = (options: Options<ListAgentProfilesData>) => queryOptions<ListAgentProfilesResponse2, ListAgentProfilesError, ListAgentProfilesResponse2, ReturnType<typeof listAgentProfilesQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listAgentProfiles({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listAgentProfilesQueryKey(options)\n});\n\nexport const listAgentProfilesInfiniteQueryKey = (options: Options<ListAgentProfilesData>): QueryKey<Options<ListAgentProfilesData>> => createQueryKey('listAgentProfiles', options, true);\n\n/**\n * List agent profiles\n *\n * Lists the project's agent profiles, newest first by default, filterable by name. Items include a summary of each profile's current config, not its full compiled definition.\n */\nexport const listAgentProfilesInfiniteOptions = (options: Options<ListAgentProfilesData>) => {\n const opts = infiniteQueryOptions<ListAgentProfilesResponse2, ListAgentProfilesError, InfiniteData<ListAgentProfilesResponse2>, QueryKey<Options<ListAgentProfilesData>>, string | Pick<QueryKey<Options<ListAgentProfilesData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListAgentProfilesData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listAgentProfiles({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listAgentProfilesInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create agent profile\n *\n * Creates a named profile that points at an agent config and returns the profile with its current config.\n */\nexport const createAgentProfileMutation = (options?: Partial<Options<CreateAgentProfileData>>): UseMutationOptions<CreateAgentProfileResponse, CreateAgentProfileError, Options<CreateAgentProfileData>> => {\n const mutationOptions: UseMutationOptions<CreateAgentProfileResponse, CreateAgentProfileError, Options<CreateAgentProfileData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createAgentProfile({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete agent profile\n *\n * Deletes the profile, all of its profile versions, and any cron triggers targeting the profile. Agents launched from the profile are retained and keep running: each agent holds an immutable snapshot of the configuration it was launched with, so its reference to the profile becomes historical provenance only. Integration settings may retain the public profile ID; future launches fail as unavailable until those settings reference an available profile.\n */\nexport const deleteAgentProfileMutation = (options?: Partial<Options<DeleteAgentProfileData>>): UseMutationOptions<DeleteAgentProfileResponse, DeleteAgentProfileError, Options<DeleteAgentProfileData>> => {\n const mutationOptions: UseMutationOptions<DeleteAgentProfileResponse, DeleteAgentProfileError, Options<DeleteAgentProfileData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteAgentProfile({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getAgentProfileQueryKey = (options: Options<GetAgentProfileData>) => createQueryKey('getAgentProfile', options);\n\n/**\n * Get agent profile\n *\n * Returns one agent profile with its current config, current_config_id, and current_generation.\n */\nexport const getAgentProfileOptions = (options: Options<GetAgentProfileData>) => queryOptions<GetAgentProfileResponse, GetAgentProfileError, GetAgentProfileResponse, ReturnType<typeof getAgentProfileQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getAgentProfile({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getAgentProfileQueryKey(options)\n});\n\n/**\n * Rename agent profile\n *\n * Renames an agent profile without changing its config. Agents and cron triggers reference the profile by ID and keep working, but configs that name the profile under subagents must use the new name the next time they're compiled.\n */\nexport const renameAgentProfileMutation = (options?: Partial<Options<RenameAgentProfileData>>): UseMutationOptions<RenameAgentProfileResponse, RenameAgentProfileError, Options<RenameAgentProfileData>> => {\n const mutationOptions: UseMutationOptions<RenameAgentProfileResponse, RenameAgentProfileError, Options<RenameAgentProfileData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await renameAgentProfile({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getAgentProfileUsageQueryKey = (options: Options<GetAgentProfileUsageData>) => createQueryKey('getAgentProfileUsage', options);\n\n/**\n * Get agent profile usage\n *\n * Tallies model token usage and provider-reported cost across the top-level agents launched from this profile, broken down by configured model. Usage from subagents those agents spawned is included only when `include_subagents` is true. Optionally limits the tally to a time window.\n */\nexport const getAgentProfileUsageOptions = (options: Options<GetAgentProfileUsageData>) => queryOptions<GetAgentProfileUsageResponse, GetAgentProfileUsageError, GetAgentProfileUsageResponse, ReturnType<typeof getAgentProfileUsageQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getAgentProfileUsage({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getAgentProfileUsageQueryKey(options)\n});\n\n/**\n * Update agent profile\n *\n * Points a profile at a different agent config. Existing agents keep their current config; agents launched from the profile afterward use the new one. Fails with 409 unless expected_current_config_id matches the profile's current config.\n */\nexport const updateAgentProfileMutation = (options?: Partial<Options<UpdateAgentProfileData>>): UseMutationOptions<UpdateAgentProfileResponse, UpdateAgentProfileError, Options<UpdateAgentProfileData>> => {\n const mutationOptions: UseMutationOptions<UpdateAgentProfileResponse, UpdateAgentProfileError, Options<UpdateAgentProfileData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateAgentProfile({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Connect an integration through OAuth\n *\n * Starts OAuth for this integration (currently Slack). The callback pins the integration and setup revision, records verified credentials, and returns integration_oauth=success and integration_id to the supplied local return_to route. It requires a browser session for the initiating user and current project management access. Replayed, stale, or deleted-integration callbacks are rejected.\n */\nexport const createIntegrationOAuthSetupMutation = (options?: Partial<Options<CreateIntegrationOAuthSetupData>>): UseMutationOptions<CreateIntegrationOAuthSetupResponse, CreateIntegrationOAuthSetupError, Options<CreateIntegrationOAuthSetupData>> => {\n const mutationOptions: UseMutationOptions<CreateIntegrationOAuthSetupResponse, CreateIntegrationOAuthSetupError, Options<CreateIntegrationOAuthSetupData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createIntegrationOAuthSetup({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Create a Slack provider app and connect it to an Omnara integration\n *\n * Creates a provider-side Slack app using the supplied configuration token, name and optional icon, then starts OAuth for this saved Omnara integration. The callback activates this integration only. It never creates another Omnara integration or changes launcher settings.\n */\nexport const createIntegrationSlackSetupMutation = (options?: Partial<Options<CreateIntegrationSlackSetupData>>): UseMutationOptions<CreateIntegrationSlackSetupResponse, CreateIntegrationSlackSetupError, Options<CreateIntegrationSlackSetupData>> => {\n const mutationOptions: UseMutationOptions<CreateIntegrationSlackSetupResponse, CreateIntegrationSlackSetupError, Options<CreateIntegrationSlackSetupData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createIntegrationSlackSetup({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Start registration of a customer-owned GitHub App\n *\n * Starts guided registration on github.com for a never-connected GitHub integration. Requires a browser session and project management access. Submit manifest as a JSON-encoded form field to registration_url. The callback saves a project credential secret and redirects to the canonical integration page with github_setup=credentials_saved and credential_secret_id (a public secret ID). It does not connect an installation or change launcher settings.\n */\nexport const createIntegrationGitHubSetupMutation = (options?: Partial<Options<CreateIntegrationGitHubSetupData>>): UseMutationOptions<CreateIntegrationGitHubSetupResponse, CreateIntegrationGitHubSetupError, Options<CreateIntegrationGitHubSetupData>> => {\n const mutationOptions: UseMutationOptions<CreateIntegrationGitHubSetupResponse, CreateIntegrationGitHubSetupError, Options<CreateIntegrationGitHubSetupData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createIntegrationGitHubSetup({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Inspect installations of a customer-owned GitHub App\n *\n * Verifies the supplied project-available GitHub credential secret using App authentication and returns one bounded page of installations. Requires a browser session and project management access. Inspection does not connect or change this integration. Explicit confirmation uses ConfigureIntegration with the returned provider_app_id, selected installation ID, credential secret ID and current expected setup revision. A saved secret remains usable while organization approval is pending; there is no expiring continuation. Guided links support github.com only.\n */\nexport const inspectIntegrationGitHubInstallationsMutation = (options?: Partial<Options<InspectIntegrationGitHubInstallationsData>>): UseMutationOptions<InspectIntegrationGitHubInstallationsResponse, InspectIntegrationGitHubInstallationsError, Options<InspectIntegrationGitHubInstallationsData>> => {\n const mutationOptions: UseMutationOptions<InspectIntegrationGitHubInstallationsResponse, InspectIntegrationGitHubInstallationsError, Options<InspectIntegrationGitHubInstallationsData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await inspectIntegrationGitHubInstallations({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listCronTriggersQueryKey = (options: Options<ListCronTriggersData>) => createQueryKey('listCronTriggers', options);\n\n/**\n * List cron triggers\n *\n * Lists the project's cron triggers, newest first by default, filterable by name, agent, profile, or integration. Each item includes its schedule and next_fire_at.\n */\nexport const listCronTriggersOptions = (options: Options<ListCronTriggersData>) => queryOptions<ListCronTriggersResponse2, ListCronTriggersError, ListCronTriggersResponse2, ReturnType<typeof listCronTriggersQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listCronTriggers({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listCronTriggersQueryKey(options)\n});\n\nexport const listCronTriggersInfiniteQueryKey = (options: Options<ListCronTriggersData>): QueryKey<Options<ListCronTriggersData>> => createQueryKey('listCronTriggers', options, true);\n\n/**\n * List cron triggers\n *\n * Lists the project's cron triggers, newest first by default, filterable by name, agent, profile, or integration. Each item includes its schedule and next_fire_at.\n */\nexport const listCronTriggersInfiniteOptions = (options: Options<ListCronTriggersData>) => {\n const opts = infiniteQueryOptions<ListCronTriggersResponse2, ListCronTriggersError, InfiniteData<ListCronTriggersResponse2>, QueryKey<Options<ListCronTriggersData>>, string | Pick<QueryKey<Options<ListCronTriggersData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListCronTriggersData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listCronTriggers({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listCronTriggersInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create cron trigger\n *\n * Creates a cron trigger that fires on a schedule. A trigger targeting an agent profile launches a new agent from the profile's current config on each firing; a trigger targeting an agent sends an input to that agent. Missed firings are coalesced, matching standard cron behavior: if one or more scheduled times pass while firing is delayed, the trigger fires once for the oldest missed time and then resumes its schedule from the current time, without retroactively firing for the other missed times.\n */\nexport const createCronTriggerMutation = (options?: Partial<Options<CreateCronTriggerData>>): UseMutationOptions<CreateCronTriggerResponse, CreateCronTriggerError, Options<CreateCronTriggerData>> => {\n const mutationOptions: UseMutationOptions<CreateCronTriggerResponse, CreateCronTriggerError, Options<CreateCronTriggerData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createCronTrigger({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete cron trigger\n *\n * Deletes a cron trigger so it never fires again; there is no undo. Agents it already launched keep running.\n */\nexport const deleteCronTriggerMutation = (options?: Partial<Options<DeleteCronTriggerData>>): UseMutationOptions<DeleteCronTriggerResponse, DeleteCronTriggerError, Options<DeleteCronTriggerData>> => {\n const mutationOptions: UseMutationOptions<DeleteCronTriggerResponse, DeleteCronTriggerError, Options<DeleteCronTriggerData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteCronTrigger({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getCronTriggerQueryKey = (options: Options<GetCronTriggerData>) => createQueryKey('getCronTrigger', options);\n\n/**\n * Get cron trigger\n *\n * Returns one cron trigger: its target, schedule, timezone, message template, enabled flag, and firing state (last_fired_at, next_fire_at, and any failure since the last successful firing).\n */\nexport const getCronTriggerOptions = (options: Options<GetCronTriggerData>) => queryOptions<GetCronTriggerResponse, GetCronTriggerError, GetCronTriggerResponse, ReturnType<typeof getCronTriggerQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getCronTrigger({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getCronTriggerQueryKey(options)\n});\n\n/**\n * Update cron trigger\n *\n * Updates the schedule, message template, or enabled state. The target is immutable; delete the trigger and create a new one to retarget.\n */\nexport const updateCronTriggerMutation = (options?: Partial<Options<UpdateCronTriggerData>>): UseMutationOptions<UpdateCronTriggerResponse, UpdateCronTriggerError, Options<UpdateCronTriggerData>> => {\n const mutationOptions: UseMutationOptions<UpdateCronTriggerResponse, UpdateCronTriggerError, Options<UpdateCronTriggerData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateCronTrigger({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listAgentsQueryKey = (options: Options<ListAgentsData>) => createQueryKey('listAgents', options);\n\n/**\n * List agents\n *\n * Lists the project's agents with their current activity, newest first by default. Archived agents and subagents are excluded unless requested.\n */\nexport const listAgentsOptions = (options: Options<ListAgentsData>) => queryOptions<ListAgentsResponse2, ListAgentsError, ListAgentsResponse2, ReturnType<typeof listAgentsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listAgents({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listAgentsQueryKey(options)\n});\n\nexport const listAgentsInfiniteQueryKey = (options: Options<ListAgentsData>): QueryKey<Options<ListAgentsData>> => createQueryKey('listAgents', options, true);\n\n/**\n * List agents\n *\n * Lists the project's agents with their current activity, newest first by default. Archived agents and subagents are excluded unless requested.\n */\nexport const listAgentsInfiniteOptions = (options: Options<ListAgentsData>) => {\n const opts = infiniteQueryOptions<ListAgentsResponse2, ListAgentsError, InfiniteData<ListAgentsResponse2>, QueryKey<Options<ListAgentsData>>, string | Pick<QueryKey<Options<ListAgentsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListAgentsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listAgents({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listAgentsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create agent\n *\n * Launch from a pinned config, optionally adding agent-local integration tools, subscriptions and interaction handlers and admitting an attributed initial text input in the same transaction. Adding integration capabilities requires project management permission; launching an existing config requires agent operate permission. Reusing an idempotency key returns the current agent even if the retry body differs. The retry body is not applied and integration references are not resolved again.\n */\nexport const createAgentMutation = (options?: Partial<Options<CreateAgentData>>): UseMutationOptions<CreateAgentResponse, CreateAgentError, Options<CreateAgentData>> => {\n const mutationOptions: UseMutationOptions<CreateAgentResponse, CreateAgentError, Options<CreateAgentData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createAgent({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getAgentQueryKey = (options: Options<GetAgentData>) => createQueryKey('getAgent', options);\n\n/**\n * Get agent\n *\n * Returns one agent's state, model, profile, current config ID, activity (running, waiting_on_interaction, idle, or archived), attached machines, and MCP connection states. The conversation isn't included.\n */\nexport const getAgentOptions = (options: Options<GetAgentData>) => queryOptions<GetAgentResponse2, GetAgentError, GetAgentResponse2, ReturnType<typeof getAgentQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getAgent({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getAgentQueryKey(options)\n});\n\nexport const getAgentUsageQueryKey = (options: Options<GetAgentUsageData>) => createQueryKey('getAgentUsage', options);\n\n/**\n * Get agent usage\n *\n * Tallies this agent's model token usage and provider-reported cost, broken down by configured model. Optionally limits the tally to a time window.\n */\nexport const getAgentUsageOptions = (options: Options<GetAgentUsageData>) => queryOptions<GetAgentUsageResponse, GetAgentUsageError, GetAgentUsageResponse, ReturnType<typeof getAgentUsageQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getAgentUsage({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getAgentUsageQueryKey(options)\n});\n\n/**\n * Archive agent\n *\n * Archives the agent: requests cancellation of its active runtime, cancels queued inputs and affected processes, removes its pending wakeup, releases explicit machine bindings, deletes pooled machines created for the agent, and deletes cron triggers targeting the agent. The agent and its full event history stay readable by id; archived agents leave listings. The agent's profile and configuration are retained, as are explicitly attached BYO machines. Archiving an already-archived agent is a no-op that returns the agent unchanged.\n */\nexport const archiveAgentMutation = (options?: Partial<Options<ArchiveAgentData>>): UseMutationOptions<ArchiveAgentResponse, ArchiveAgentError, Options<ArchiveAgentData>> => {\n const mutationOptions: UseMutationOptions<ArchiveAgentResponse, ArchiveAgentError, Options<ArchiveAgentData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await archiveAgent({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Update agent config\n *\n * Replaces an active agent's config without restarting its conversation and returns the new agent_config. Model, instruction, and tool changes apply at the agent's next model call; machine changes apply immediately, stopping processes on removed machines and deleting the agent's machines from removed pools. Send the complete config, not a patch.\n */\nexport const updateAgentConfigMutation = (options?: Partial<Options<UpdateAgentConfigData>>): UseMutationOptions<UpdateAgentConfigResponse2, UpdateAgentConfigError, Options<UpdateAgentConfigData>> => {\n const mutationOptions: UseMutationOptions<UpdateAgentConfigResponse2, UpdateAgentConfigError, Options<UpdateAgentConfigData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateAgentConfig({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Create agent input\n *\n * Sends a message to an agent and returns the stored input. Queued messages (the default) wait until the agent is ready for new work; steering messages reach it at its next model call.\n */\nexport const createAgentInputMutation = (options?: Partial<Options<CreateAgentInputData>>): UseMutationOptions<CreateAgentInputResponse, CreateAgentInputError, Options<CreateAgentInputData>> => {\n const mutationOptions: UseMutationOptions<CreateAgentInputResponse, CreateAgentInputError, Options<CreateAgentInputData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createAgentInput({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listToolCallsQueryKey = (options: Options<ListToolCallsData>) => createQueryKey('listToolCalls', options);\n\n/**\n * List tool calls\n *\n * Items are ordered by created_at ascending, then id ascending.\n */\nexport const listToolCallsOptions = (options: Options<ListToolCallsData>) => queryOptions<ListToolCallsResponse2, ListToolCallsError, ListToolCallsResponse2, ReturnType<typeof listToolCallsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listToolCalls({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listToolCallsQueryKey(options)\n});\n\nexport const listToolCallsInfiniteQueryKey = (options: Options<ListToolCallsData>): QueryKey<Options<ListToolCallsData>> => createQueryKey('listToolCalls', options, true);\n\n/**\n * List tool calls\n *\n * Items are ordered by created_at ascending, then id ascending.\n */\nexport const listToolCallsInfiniteOptions = (options: Options<ListToolCallsData>) => {\n const opts = infiniteQueryOptions<ListToolCallsResponse2, ListToolCallsError, InfiniteData<ListToolCallsResponse2>, QueryKey<Options<ListToolCallsData>>, string | Pick<QueryKey<Options<ListToolCallsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListToolCallsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listToolCalls({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listToolCallsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Submit a result for a ready custom tool call\n *\n * Only ready custom tool calls accept externally supplied results. The first accepted result completes the call. Any later submission, or a result for a non-custom tool call, returns 409.\n */\nexport const submitToolCallResultMutation = (options?: Partial<Options<SubmitToolCallResultData>>): UseMutationOptions<SubmitToolCallResultResponse2, SubmitToolCallResultError, Options<SubmitToolCallResultData>> => {\n const mutationOptions: UseMutationOptions<SubmitToolCallResultResponse2, SubmitToolCallResultError, Options<SubmitToolCallResultData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await submitToolCallResult({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listTurnsQueryKey = (options: Options<ListTurnsData>) => createQueryKey('listTurns', options);\n\n/**\n * List turns\n *\n * Returns turns newest first. Use the returned next_before_turn_sequence as before_turn_sequence to fetch older turns.\n */\nexport const listTurnsOptions = (options: Options<ListTurnsData>) => queryOptions<ListTurnsResponse, ListTurnsError, ListTurnsResponse, ReturnType<typeof listTurnsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listTurns({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listTurnsQueryKey(options)\n});\n\nexport const listTurnEventsQueryKey = (options: Options<ListTurnEventsData>) => createQueryKey('listTurnEvents', options);\n\n/**\n * List turn events\n *\n * Returns one older event page for a turn, ordered chronologically within the page. Use the returned next_before_sequence as before_sequence to fetch older events.\n */\nexport const listTurnEventsOptions = (options: Options<ListTurnEventsData>) => queryOptions<ListTurnEventsResponse2, ListTurnEventsError, ListTurnEventsResponse2, ReturnType<typeof listTurnEventsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listTurnEvents({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listTurnEventsQueryKey(options)\n});\n\nexport const listEventsQueryKey = (options: Options<ListEventsData>) => createQueryKey('listEvents', options);\n\n/**\n * List events\n *\n * Returns one page of agent events, chronological within the page. Forward pagination (after_sequence) walks from a known boundary toward the present using next_after_sequence. Backward pagination (before_sequence) starts at the latest events and walks toward the beginning using next_before_sequence; passing before_sequence takes precedence over after_sequence.\n */\nexport const listEventsOptions = (options: Options<ListEventsData>) => queryOptions<ListEventsResponse, ListEventsError, ListEventsResponse, ReturnType<typeof listEventsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listEvents({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listEventsQueryKey(options)\n});\n\n/**\n * Cancel agent\n *\n * Stops the agent's current turn: cancels its unfinished tool calls and open interactions, stops processes whose run_command hasn't returned yet, and discards pending steering messages. The agent stays active and keeps its queued messages, and processes whose run_command already returned keep running. Returns affected false and changes nothing when no turn is in progress.\n */\nexport const cancelAgentMutation = (options?: Partial<Options<CancelAgentData>>): UseMutationOptions<CancelAgentResponse2, CancelAgentError, Options<CancelAgentData>> => {\n const mutationOptions: UseMutationOptions<CancelAgentResponse2, CancelAgentError, Options<CancelAgentData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await cancelAgent({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listAgentInteractionsQueryKey = (options: Options<ListAgentInteractionsData>) => createQueryKey('listAgentInteractions', options);\n\n/**\n * List agent interactions\n *\n * Lists an agent's permission prompts and ask_question questions, oldest first, with each one's form and answers. state filters by open, resolved, or canceled.\n */\nexport const listAgentInteractionsOptions = (options: Options<ListAgentInteractionsData>) => queryOptions<ListAgentInteractionsResponse2, ListAgentInteractionsError, ListAgentInteractionsResponse2, ReturnType<typeof listAgentInteractionsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listAgentInteractions({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listAgentInteractionsQueryKey(options)\n});\n\nexport const listAgentInteractionsInfiniteQueryKey = (options: Options<ListAgentInteractionsData>): QueryKey<Options<ListAgentInteractionsData>> => createQueryKey('listAgentInteractions', options, true);\n\n/**\n * List agent interactions\n *\n * Lists an agent's permission prompts and ask_question questions, oldest first, with each one's form and answers. state filters by open, resolved, or canceled.\n */\nexport const listAgentInteractionsInfiniteOptions = (options: Options<ListAgentInteractionsData>) => {\n const opts = infiniteQueryOptions<ListAgentInteractionsResponse2, ListAgentInteractionsError, InfiniteData<ListAgentInteractionsResponse2>, QueryKey<Options<ListAgentInteractionsData>>, string | Pick<QueryKey<Options<ListAgentInteractionsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListAgentInteractionsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listAgentInteractions({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listAgentInteractionsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Resolve agent interaction\n *\n * Answers an open permission prompt or question so the paused agent resumes, and returns the resolved interaction. Send one answer per question with zero-based option_indices; permission prompts use 0 for Allow and 1 for Deny.\n */\nexport const resolveAgentInteractionMutation = (options?: Partial<Options<ResolveAgentInteractionData>>): UseMutationOptions<ResolveAgentInteractionResponse, ResolveAgentInteractionError, Options<ResolveAgentInteractionData>> => {\n const mutationOptions: UseMutationOptions<ResolveAgentInteractionResponse, ResolveAgentInteractionError, Options<ResolveAgentInteractionData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await resolveAgentInteraction({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listQueuedBacklogInputsQueryKey = (options: Options<ListQueuedBacklogInputsData>) => createQueryKey('listQueuedBacklogInputs', options);\n\n/**\n * List waiting backlog inputs\n *\n * Steering inputs are listed first, followed by queued inputs. Each group is ordered by input rank, queued_at ascending, then id ascending.\n */\nexport const listQueuedBacklogInputsOptions = (options: Options<ListQueuedBacklogInputsData>) => queryOptions<ListQueuedBacklogInputsResponse, ListQueuedBacklogInputsError, ListQueuedBacklogInputsResponse, ReturnType<typeof listQueuedBacklogInputsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listQueuedBacklogInputs({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listQueuedBacklogInputsQueryKey(options)\n});\n\nexport const listQueuedBacklogInputsInfiniteQueryKey = (options: Options<ListQueuedBacklogInputsData>): QueryKey<Options<ListQueuedBacklogInputsData>> => createQueryKey('listQueuedBacklogInputs', options, true);\n\n/**\n * List waiting backlog inputs\n *\n * Steering inputs are listed first, followed by queued inputs. Each group is ordered by input rank, queued_at ascending, then id ascending.\n */\nexport const listQueuedBacklogInputsInfiniteOptions = (options: Options<ListQueuedBacklogInputsData>) => {\n const opts = infiniteQueryOptions<ListQueuedBacklogInputsResponse, ListQueuedBacklogInputsError, InfiniteData<ListQueuedBacklogInputsResponse>, QueryKey<Options<ListQueuedBacklogInputsData>>, string | Pick<QueryKey<Options<ListQueuedBacklogInputsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListQueuedBacklogInputsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listQueuedBacklogInputs({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listQueuedBacklogInputsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Cancel queued backlog input\n */\nexport const cancelQueuedBacklogInputMutation = (options?: Partial<Options<CancelQueuedBacklogInputData>>): UseMutationOptions<CancelQueuedBacklogInputResponse, CancelQueuedBacklogInputError, Options<CancelQueuedBacklogInputData>> => {\n const mutationOptions: UseMutationOptions<CancelQueuedBacklogInputResponse, CancelQueuedBacklogInputError, Options<CancelQueuedBacklogInputData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await cancelQueuedBacklogInput({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Move queued backlog input\n */\nexport const moveQueuedBacklogInputMutation = (options?: Partial<Options<MoveQueuedBacklogInputData>>): UseMutationOptions<MoveQueuedBacklogInputResponse, MoveQueuedBacklogInputError, Options<MoveQueuedBacklogInputData>> => {\n const mutationOptions: UseMutationOptions<MoveQueuedBacklogInputResponse, MoveQueuedBacklogInputError, Options<MoveQueuedBacklogInputData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await moveQueuedBacklogInput({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Promote queued input to steering\n */\nexport const promoteQueuedInputToSteeringMutation = (options?: Partial<Options<PromoteQueuedInputToSteeringData>>): UseMutationOptions<PromoteQueuedInputToSteeringResponse, PromoteQueuedInputToSteeringError, Options<PromoteQueuedInputToSteeringData>> => {\n const mutationOptions: UseMutationOptions<PromoteQueuedInputToSteeringResponse, PromoteQueuedInputToSteeringError, Options<PromoteQueuedInputToSteeringData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await promoteQueuedInputToSteering({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Demote steering input to queued\n */\nexport const demoteSteeringInputToQueuedMutation = (options?: Partial<Options<DemoteSteeringInputToQueuedData>>): UseMutationOptions<DemoteSteeringInputToQueuedResponse, DemoteSteeringInputToQueuedError, Options<DemoteSteeringInputToQueuedData>> => {\n const mutationOptions: UseMutationOptions<DemoteSteeringInputToQueuedResponse, DemoteSteeringInputToQueuedError, Options<DemoteSteeringInputToQueuedData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await demoteSteeringInputToQueued({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getArtifactQueryKey = (options: Options<GetArtifactData>) => createQueryKey('getArtifact', options);\n\n/**\n * Get artifact\n */\nexport const getArtifactOptions = (options: Options<GetArtifactData>) => queryOptions<GetArtifactResponse, GetArtifactError, GetArtifactResponse, ReturnType<typeof getArtifactQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getArtifact({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getArtifactQueryKey(options)\n});\n\nexport const getArtifactContentQueryKey = (options: Options<GetArtifactContentData>) => createQueryKey('getArtifactContent', options);\n\n/**\n * Get artifact content\n */\nexport const getArtifactContentOptions = (options: Options<GetArtifactContentData>) => queryOptions<GetArtifactContentResponse, GetArtifactContentError, GetArtifactContentResponse, ReturnType<typeof getArtifactContentQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getArtifactContent({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getArtifactContentQueryKey(options)\n});\n\nexport const listVisibleProjectMachinesQueryKey = (options: Options<ListVisibleProjectMachinesData>) => createQueryKey('listVisibleProjectMachines', options);\n\n/**\n * List visible project machines\n *\n * Items are ordered by machine created_at descending, then machine id descending.\n */\nexport const listVisibleProjectMachinesOptions = (options: Options<ListVisibleProjectMachinesData>) => queryOptions<ListVisibleProjectMachinesResponse, ListVisibleProjectMachinesError, ListVisibleProjectMachinesResponse, ReturnType<typeof listVisibleProjectMachinesQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listVisibleProjectMachines({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listVisibleProjectMachinesQueryKey(options)\n});\n\nexport const listVisibleProjectMachinesInfiniteQueryKey = (options: Options<ListVisibleProjectMachinesData>): QueryKey<Options<ListVisibleProjectMachinesData>> => createQueryKey('listVisibleProjectMachines', options, true);\n\n/**\n * List visible project machines\n *\n * Items are ordered by machine created_at descending, then machine id descending.\n */\nexport const listVisibleProjectMachinesInfiniteOptions = (options: Options<ListVisibleProjectMachinesData>) => {\n const opts = infiniteQueryOptions<ListVisibleProjectMachinesResponse, ListVisibleProjectMachinesError, InfiniteData<ListVisibleProjectMachinesResponse>, QueryKey<Options<ListVisibleProjectMachinesData>>, string | Pick<QueryKey<Options<ListVisibleProjectMachinesData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListVisibleProjectMachinesData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listVisibleProjectMachines({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listVisibleProjectMachinesInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const listProjectMachineGrantsQueryKey = (options: Options<ListProjectMachineGrantsData>) => createQueryKey('listProjectMachineGrants', options);\n\n/**\n * List project machine grants\n *\n * Lists explicit machine grants that can be deleted directly. Pool-derived machine access is managed through project machine pool grants.\n */\nexport const listProjectMachineGrantsOptions = (options: Options<ListProjectMachineGrantsData>) => queryOptions<ListProjectMachineGrantsResponse2, ListProjectMachineGrantsError, ListProjectMachineGrantsResponse2, ReturnType<typeof listProjectMachineGrantsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listProjectMachineGrants({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectMachineGrantsQueryKey(options)\n});\n\nexport const listProjectMachineGrantsInfiniteQueryKey = (options: Options<ListProjectMachineGrantsData>): QueryKey<Options<ListProjectMachineGrantsData>> => createQueryKey('listProjectMachineGrants', options, true);\n\n/**\n * List project machine grants\n *\n * Lists explicit machine grants that can be deleted directly. Pool-derived machine access is managed through project machine pool grants.\n */\nexport const listProjectMachineGrantsInfiniteOptions = (options: Options<ListProjectMachineGrantsData>) => {\n const opts = infiniteQueryOptions<ListProjectMachineGrantsResponse2, ListProjectMachineGrantsError, InfiniteData<ListProjectMachineGrantsResponse2>, QueryKey<Options<ListProjectMachineGrantsData>>, string | Pick<QueryKey<Options<ListProjectMachineGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListProjectMachineGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listProjectMachineGrants({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectMachineGrantsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create project machine grant\n *\n * Lets a project's agent configs use one BYO machine by name and returns the grant with the machine's record. Pooled machines can't be granted this way and return 404.\n */\nexport const createProjectMachineGrantMutation = (options?: Partial<Options<CreateProjectMachineGrantData>>): UseMutationOptions<CreateProjectMachineGrantResponse2, CreateProjectMachineGrantError, Options<CreateProjectMachineGrantData>> => {\n const mutationOptions: UseMutationOptions<CreateProjectMachineGrantResponse2, CreateProjectMachineGrantError, Options<CreateProjectMachineGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createProjectMachineGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete project machine grant\n *\n * Removes the project's access to the machine. Processes that depended on the grant are stopped. The machine itself is retained, and there are no dependency blockers.\n */\nexport const deleteProjectMachineGrantMutation = (options?: Partial<Options<DeleteProjectMachineGrantData>>): UseMutationOptions<DeleteProjectMachineGrantResponse, DeleteProjectMachineGrantError, Options<DeleteProjectMachineGrantData>> => {\n const mutationOptions: UseMutationOptions<DeleteProjectMachineGrantResponse, DeleteProjectMachineGrantError, Options<DeleteProjectMachineGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteProjectMachineGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listProjectAvailableSecretsQueryKey = (options: Options<ListProjectAvailableSecretsData>) => createQueryKey('listProjectAvailableSecrets', options);\n\n/**\n * List secrets available to project\n *\n * Includes directly owned and granted secrets, ordered by created_at descending, then id descending.\n */\nexport const listProjectAvailableSecretsOptions = (options: Options<ListProjectAvailableSecretsData>) => queryOptions<ListProjectAvailableSecretsResponse, ListProjectAvailableSecretsError, ListProjectAvailableSecretsResponse, ReturnType<typeof listProjectAvailableSecretsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listProjectAvailableSecrets({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectAvailableSecretsQueryKey(options)\n});\n\nexport const listProjectAvailableSecretsInfiniteQueryKey = (options: Options<ListProjectAvailableSecretsData>): QueryKey<Options<ListProjectAvailableSecretsData>> => createQueryKey('listProjectAvailableSecrets', options, true);\n\n/**\n * List secrets available to project\n *\n * Includes directly owned and granted secrets, ordered by created_at descending, then id descending.\n */\nexport const listProjectAvailableSecretsInfiniteOptions = (options: Options<ListProjectAvailableSecretsData>) => {\n const opts = infiniteQueryOptions<ListProjectAvailableSecretsResponse, ListProjectAvailableSecretsError, InfiniteData<ListProjectAvailableSecretsResponse>, QueryKey<Options<ListProjectAvailableSecretsData>>, string | Pick<QueryKey<Options<ListProjectAvailableSecretsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListProjectAvailableSecretsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listProjectAvailableSecrets({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectAvailableSecretsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const getProjectAvailableSecretQueryKey = (options: Options<GetProjectAvailableSecretData>) => createQueryKey('getProjectAvailableSecret', options);\n\n/**\n * Get secret available to project\n */\nexport const getProjectAvailableSecretOptions = (options: Options<GetProjectAvailableSecretData>) => queryOptions<GetProjectAvailableSecretResponse, GetProjectAvailableSecretError, GetProjectAvailableSecretResponse, ReturnType<typeof getProjectAvailableSecretQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getProjectAvailableSecret({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getProjectAvailableSecretQueryKey(options)\n});\n\nexport const listActorsQueryKey = (options: Options<ListActorsData>) => createQueryKey('listActors', options);\n\n/**\n * List project actors\n *\n * Items are ordered by created_at ascending, then id ascending.\n */\nexport const listActorsOptions = (options: Options<ListActorsData>) => queryOptions<ListActorsResponse2, ListActorsError, ListActorsResponse2, ReturnType<typeof listActorsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listActors({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listActorsQueryKey(options)\n});\n\nexport const listActorsInfiniteQueryKey = (options: Options<ListActorsData>): QueryKey<Options<ListActorsData>> => createQueryKey('listActors', options, true);\n\n/**\n * List project actors\n *\n * Items are ordered by created_at ascending, then id ascending.\n */\nexport const listActorsInfiniteOptions = (options: Options<ListActorsData>) => {\n const opts = infiniteQueryOptions<ListActorsResponse2, ListActorsError, InfiniteData<ListActorsResponse2>, QueryKey<Options<ListActorsData>>, string | Pick<QueryKey<Options<ListActorsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListActorsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listActors({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listActorsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Upsert an external actor\n *\n * Upserts by (provider_tenant_id, provider_user_id). Omitted attributes keep their stored values; provided attributes are overwritten, including empty values. An unchanged actor is not rewritten. Actors written through this endpoint always have the external provider.\n */\nexport const putActorMutation = (options?: Partial<Options<PutActorData>>): UseMutationOptions<PutActorResponse, PutActorError, Options<PutActorData>> => {\n const mutationOptions: UseMutationOptions<PutActorResponse, PutActorError, Options<PutActorData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await putActor({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getActorQueryKey = (options: Options<GetActorData>) => createQueryKey('getActor', options);\n\n/**\n * Get a project actor\n */\nexport const getActorOptions = (options: Options<GetActorData>) => queryOptions<GetActorResponse, GetActorError, GetActorResponse, ReturnType<typeof getActorQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getActor({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getActorQueryKey(options)\n});\n\nexport const listVisibleMachinesQueryKey = (options: Options<ListVisibleMachinesData>) => createQueryKey('listVisibleMachines', options);\n\n/**\n * List visible machines\n *\n * Lists the machines the caller can see, both BYO and pooled, newest first by default, with each one's connection state. Items are summaries without execution defaults or metadata.\n */\nexport const listVisibleMachinesOptions = (options: Options<ListVisibleMachinesData>) => queryOptions<ListVisibleMachinesResponse2, ListVisibleMachinesError, ListVisibleMachinesResponse2, ReturnType<typeof listVisibleMachinesQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listVisibleMachines({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listVisibleMachinesQueryKey(options)\n});\n\nexport const listVisibleMachinesInfiniteQueryKey = (options: Options<ListVisibleMachinesData>): QueryKey<Options<ListVisibleMachinesData>> => createQueryKey('listVisibleMachines', options, true);\n\n/**\n * List visible machines\n *\n * Lists the machines the caller can see, both BYO and pooled, newest first by default, with each one's connection state. Items are summaries without execution defaults or metadata.\n */\nexport const listVisibleMachinesInfiniteOptions = (options: Options<ListVisibleMachinesData>) => {\n const opts = infiniteQueryOptions<ListVisibleMachinesResponse2, ListVisibleMachinesError, InfiniteData<ListVisibleMachinesResponse2>, QueryKey<Options<ListVisibleMachinesData>>, string | Pick<QueryKey<Options<ListVisibleMachinesData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListVisibleMachinesData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listVisibleMachines({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listVisibleMachinesInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create machine\n */\nexport const createMachineMutation = (options?: Partial<Options<CreateMachineData>>): UseMutationOptions<CreateMachineResponse, CreateMachineError, Options<CreateMachineData>> => {\n const mutationOptions: UseMutationOptions<CreateMachineResponse, CreateMachineError, Options<CreateMachineData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createMachine({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Connect a BYO machine\n *\n * Registers a machine you run yourself and returns its daemon token for installing omnarad on it; the token is shown only in this response. The machine stays offline until its daemon connects. project_ids grants it to those projects in the same call, and their agent configs reference it by display_name.\n */\nexport const connectByoMachineMutation = (options?: Partial<Options<ConnectByoMachineData>>): UseMutationOptions<ConnectByoMachineResponse2, ConnectByoMachineError, Options<ConnectByoMachineData>> => {\n const mutationOptions: UseMutationOptions<ConnectByoMachineResponse2, ConnectByoMachineError, Options<ConnectByoMachineData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await connectByoMachine({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete machine\n *\n * Deletes a BYO machine, ends its active daemon runtimes and work, revokes its daemon tokens and project grants, and releases agent bindings. Pooled machines are managed through their machine pool and cannot be deleted through this route. There are no dependency blockers for a BYO machine.\n */\nexport const deleteMachineMutation = (options?: Partial<Options<DeleteMachineData>>): UseMutationOptions<DeleteMachineResponse, DeleteMachineError, Options<DeleteMachineData>> => {\n const mutationOptions: UseMutationOptions<DeleteMachineResponse, DeleteMachineError, Options<DeleteMachineData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteMachine({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getMachineQueryKey = (options: Options<GetMachineData>) => createQueryKey('getMachine', options);\n\n/**\n * Get machine\n *\n * Returns one active machine's full record: connection state, execution defaults (secret IDs only, never values), metadata, and the latest failure report. Machines in other lifecycle states, such as pool machines still provisioning, aren't returned.\n */\nexport const getMachineOptions = (options: Options<GetMachineData>) => queryOptions<GetMachineResponse, GetMachineError, GetMachineResponse, ReturnType<typeof getMachineQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getMachine({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getMachineQueryKey(options)\n});\n\n/**\n * Update machine execution defaults\n *\n * Updates a machine's execution defaults: working directory, environment variables, and secret environment variables. env and secret_env replace the whole map, and changes apply to processes started afterward.\n */\nexport const updateMachineMutation = (options?: Partial<Options<UpdateMachineData>>): UseMutationOptions<UpdateMachineResponse, UpdateMachineError, Options<UpdateMachineData>> => {\n const mutationOptions: UseMutationOptions<UpdateMachineResponse, UpdateMachineError, Options<UpdateMachineData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateMachine({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listModelProviderConfigsQueryKey = (options: Options<ListModelProviderConfigsData>) => createQueryKey('listModelProviderConfigs', options);\n\n/**\n * List model provider configs\n *\n * List model provider configs with server-side filtering, sorting, and cursor pagination.\n */\nexport const listModelProviderConfigsOptions = (options: Options<ListModelProviderConfigsData>) => queryOptions<ListModelProviderConfigsResponse, ListModelProviderConfigsError, ListModelProviderConfigsResponse, ReturnType<typeof listModelProviderConfigsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listModelProviderConfigs({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listModelProviderConfigsQueryKey(options)\n});\n\nexport const listModelProviderConfigsInfiniteQueryKey = (options: Options<ListModelProviderConfigsData>): QueryKey<Options<ListModelProviderConfigsData>> => createQueryKey('listModelProviderConfigs', options, true);\n\n/**\n * List model provider configs\n *\n * List model provider configs with server-side filtering, sorting, and cursor pagination.\n */\nexport const listModelProviderConfigsInfiniteOptions = (options: Options<ListModelProviderConfigsData>) => {\n const opts = infiniteQueryOptions<ListModelProviderConfigsResponse, ListModelProviderConfigsError, InfiniteData<ListModelProviderConfigsResponse>, QueryKey<Options<ListModelProviderConfigsData>>, string | Pick<QueryKey<Options<ListModelProviderConfigsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListModelProviderConfigsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listModelProviderConfigs({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listModelProviderConfigsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create model provider config\n *\n * Create a model provider config, validate the configured credential where the provider exposes a validation endpoint, then probe the provider's /models endpoint. The result is returned as model_catalog; a failed probe does not fail creation.\n */\nexport const createModelProviderConfigMutation = (options?: Partial<Options<CreateModelProviderConfigData>>): UseMutationOptions<CreateModelProviderConfigResponse2, CreateModelProviderConfigError, Options<CreateModelProviderConfigData>> => {\n const mutationOptions: UseMutationOptions<CreateModelProviderConfigResponse2, CreateModelProviderConfigError, Options<CreateModelProviderConfigData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createModelProviderConfig({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete model provider config\n *\n * Deletes only the model provider config. Deletion is blocked while it has configured models. Cluster-managed provider configs cannot be deleted through this route.\n */\nexport const deleteModelProviderConfigMutation = (options?: Partial<Options<DeleteModelProviderConfigData>>): UseMutationOptions<DeleteModelProviderConfigResponse, DeleteModelProviderConfigError, Options<DeleteModelProviderConfigData>> => {\n const mutationOptions: UseMutationOptions<DeleteModelProviderConfigResponse, DeleteModelProviderConfigError, Options<DeleteModelProviderConfigData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteModelProviderConfig({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getModelProviderConfigQueryKey = (options: Options<GetModelProviderConfigData>) => createQueryKey('getModelProviderConfig', options);\n\n/**\n * Get model provider config\n *\n * Returns one model provider config's stored settings; secret values are never returned. The provider isn't contacted, so the response doesn't list its models.\n */\nexport const getModelProviderConfigOptions = (options: Options<GetModelProviderConfigData>) => queryOptions<GetModelProviderConfigResponse, GetModelProviderConfigError, GetModelProviderConfigResponse, ReturnType<typeof getModelProviderConfigQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getModelProviderConfig({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getModelProviderConfigQueryKey(options)\n});\n\n/**\n * Update model provider config\n *\n * Updates a model provider config's connection settings, such as its credential and headers, and returns the updated config; omitted fields keep their values. The credential secret is checked to exist and match auth_kind, but the provider isn't contacted, so a credential the provider rejects isn't caught here.\n */\nexport const updateModelProviderConfigMutation = (options?: Partial<Options<UpdateModelProviderConfigData>>): UseMutationOptions<UpdateModelProviderConfigResponse, UpdateModelProviderConfigError, Options<UpdateModelProviderConfigData>> => {\n const mutationOptions: UseMutationOptions<UpdateModelProviderConfigResponse, UpdateModelProviderConfigError, Options<UpdateModelProviderConfigData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateModelProviderConfig({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getModelCatalogQueryKey = (options: Options<GetModelCatalogData>) => createQueryKey('getModelCatalog', options);\n\n/**\n * Get model catalog\n *\n * Fetches the provider's live model catalog by validating the configured credential and probing the provider's /models endpoint. The call waits on the upstream provider, so it is slower than the other model provider config routes and can report failure as data.\n */\nexport const getModelCatalogOptions = (options: Options<GetModelCatalogData>) => queryOptions<GetModelCatalogResponse, GetModelCatalogError, GetModelCatalogResponse, ReturnType<typeof getModelCatalogQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getModelCatalog({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getModelCatalogQueryKey(options)\n});\n\nexport const listConfiguredModelsQueryKey = (options: Options<ListConfiguredModelsData>) => createQueryKey('listConfiguredModels', options);\n\n/**\n * List configured models\n *\n * Lists the models configured under one model provider config, newest first, with each model's slug, token limits, and reasoning support.\n */\nexport const listConfiguredModelsOptions = (options: Options<ListConfiguredModelsData>) => queryOptions<ListConfiguredModelsResponse, ListConfiguredModelsError, ListConfiguredModelsResponse, ReturnType<typeof listConfiguredModelsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listConfiguredModels({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listConfiguredModelsQueryKey(options)\n});\n\nexport const listConfiguredModelsInfiniteQueryKey = (options: Options<ListConfiguredModelsData>): QueryKey<Options<ListConfiguredModelsData>> => createQueryKey('listConfiguredModels', options, true);\n\n/**\n * List configured models\n *\n * Lists the models configured under one model provider config, newest first, with each model's slug, token limits, and reasoning support.\n */\nexport const listConfiguredModelsInfiniteOptions = (options: Options<ListConfiguredModelsData>) => {\n const opts = infiniteQueryOptions<ListConfiguredModelsResponse, ListConfiguredModelsError, InfiniteData<ListConfiguredModelsResponse>, QueryKey<Options<ListConfiguredModelsData>>, string | Pick<QueryKey<Options<ListConfiguredModelsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListConfiguredModelsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listConfiguredModels({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listConfiguredModelsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create configured model\n *\n * Adds a provider model to this provider config under the name agent configs use as model.name, and returns it. The model slug isn't checked against the provider's catalog, and no project can use the model yet.\n */\nexport const createConfiguredModelMutation = (options?: Partial<Options<CreateConfiguredModelData>>): UseMutationOptions<CreateConfiguredModelResponse, CreateConfiguredModelError, Options<CreateConfiguredModelData>> => {\n const mutationOptions: UseMutationOptions<CreateConfiguredModelResponse, CreateConfiguredModelError, Options<CreateConfiguredModelData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createConfiguredModel({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete configured model\n *\n * Deletes only the configured model. Deletion is blocked while it has active project grants. Cluster-managed configured models cannot be deleted through this route.\n */\nexport const deleteConfiguredModelMutation = (options?: Partial<Options<DeleteConfiguredModelData>>): UseMutationOptions<DeleteConfiguredModelResponse, DeleteConfiguredModelError, Options<DeleteConfiguredModelData>> => {\n const mutationOptions: UseMutationOptions<DeleteConfiguredModelResponse, DeleteConfiguredModelError, Options<DeleteConfiguredModelData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteConfiguredModel({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Update configured model\n *\n * Updates a configured model's settings and returns the updated model; omitted fields keep their values. Agents already using the model pick up the change on their next model call. The update isn't checked against project grants or agent configs, so lowering a limit below their overrides or turning off tools or reasoning they rely on makes those agents' next model call fail.\n */\nexport const updateConfiguredModelMutation = (options?: Partial<Options<UpdateConfiguredModelData>>): UseMutationOptions<UpdateConfiguredModelResponse, UpdateConfiguredModelError, Options<UpdateConfiguredModelData>> => {\n const mutationOptions: UseMutationOptions<UpdateConfiguredModelResponse, UpdateConfiguredModelError, Options<UpdateConfiguredModelData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateConfiguredModel({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listProjectModelGrantsQueryKey = (options: Options<ListProjectModelGrantsData>) => createQueryKey('listProjectModelGrants', options);\n\n/**\n * List project model grants\n *\n * Lists the configured models a project can use, most recently granted first by default, with each grant's overrides and the model's name and provider config.\n */\nexport const listProjectModelGrantsOptions = (options: Options<ListProjectModelGrantsData>) => queryOptions<ListProjectModelGrantsResponse2, ListProjectModelGrantsError, ListProjectModelGrantsResponse2, ReturnType<typeof listProjectModelGrantsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listProjectModelGrants({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectModelGrantsQueryKey(options)\n});\n\nexport const listProjectModelGrantsInfiniteQueryKey = (options: Options<ListProjectModelGrantsData>): QueryKey<Options<ListProjectModelGrantsData>> => createQueryKey('listProjectModelGrants', options, true);\n\n/**\n * List project model grants\n *\n * Lists the configured models a project can use, most recently granted first by default, with each grant's overrides and the model's name and provider config.\n */\nexport const listProjectModelGrantsInfiniteOptions = (options: Options<ListProjectModelGrantsData>) => {\n const opts = infiniteQueryOptions<ListProjectModelGrantsResponse2, ListProjectModelGrantsError, InfiniteData<ListProjectModelGrantsResponse2>, QueryKey<Options<ListProjectModelGrantsData>>, string | Pick<QueryKey<Options<ListProjectModelGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListProjectModelGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listProjectModelGrants({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectModelGrantsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create project model grant\n *\n * Lets a project's agent configs use a configured model and returns the new grant. Optional overrides can narrow the model for that project (lower token limits, tools or reasoning turned off, fewer reasoning efforts or modalities) and set its per-request defaults within those limits.\n */\nexport const createProjectModelGrantMutation = (options?: Partial<Options<CreateProjectModelGrantData>>): UseMutationOptions<CreateProjectModelGrantResponse, CreateProjectModelGrantError, Options<CreateProjectModelGrantData>> => {\n const mutationOptions: UseMutationOptions<CreateProjectModelGrantResponse, CreateProjectModelGrantError, Options<CreateProjectModelGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createProjectModelGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete project model grant\n *\n * Removes the project's access to the configured model. The grant is live policy: new launches can no longer select the model, and agents already using it lose access on their next model call. The model itself is retained, and there are no dependency blockers.\n */\nexport const deleteProjectModelGrantMutation = (options?: Partial<Options<DeleteProjectModelGrantData>>): UseMutationOptions<DeleteProjectModelGrantResponse, DeleteProjectModelGrantError, Options<DeleteProjectModelGrantData>> => {\n const mutationOptions: UseMutationOptions<DeleteProjectModelGrantResponse, DeleteProjectModelGrantError, Options<DeleteProjectModelGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteProjectModelGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Update project model grant\n *\n * Updates the project's overrides for the configured model. Omitted fields keep their current values; null, or [] for supported_reasoning_efforts, input_modalities, and output_modalities, clears an override so the project inherits from the configured model. Agents already using the model apply the updated overrides on their next model call. Updates are validated against the configured model's current revision but not against agent configs, so narrowing below a config's model settings, such as its context_window_tokens or reasoning effort, makes that agent's next model call fail.\n */\nexport const updateProjectModelGrantMutation = (options?: Partial<Options<UpdateProjectModelGrantData>>): UseMutationOptions<UpdateProjectModelGrantResponse, UpdateProjectModelGrantError, Options<UpdateProjectModelGrantData>> => {\n const mutationOptions: UseMutationOptions<UpdateProjectModelGrantResponse, UpdateProjectModelGrantError, Options<UpdateProjectModelGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateProjectModelGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listMachinePoolsQueryKey = (options: Options<ListMachinePoolsData>) => createQueryKey('listMachinePools', options);\n\n/**\n * List machine pools\n *\n * List machine pools with server-side filtering, sorting, and cursor pagination.\n */\nexport const listMachinePoolsOptions = (options: Options<ListMachinePoolsData>) => queryOptions<ListMachinePoolsResponse2, ListMachinePoolsError, ListMachinePoolsResponse2, ReturnType<typeof listMachinePoolsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listMachinePools({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMachinePoolsQueryKey(options)\n});\n\nexport const listMachinePoolsInfiniteQueryKey = (options: Options<ListMachinePoolsData>): QueryKey<Options<ListMachinePoolsData>> => createQueryKey('listMachinePools', options, true);\n\n/**\n * List machine pools\n *\n * List machine pools with server-side filtering, sorting, and cursor pagination.\n */\nexport const listMachinePoolsInfiniteOptions = (options: Options<ListMachinePoolsData>) => {\n const opts = infiniteQueryOptions<ListMachinePoolsResponse2, ListMachinePoolsError, InfiniteData<ListMachinePoolsResponse2>, QueryKey<Options<ListMachinePoolsData>>, string | Pick<QueryKey<Options<ListMachinePoolsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListMachinePoolsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listMachinePools({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMachinePoolsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create machine pool\n */\nexport const createMachinePoolMutation = (options?: Partial<Options<CreateMachinePoolData>>): UseMutationOptions<CreateMachinePoolResponse, CreateMachinePoolError, Options<CreateMachinePoolData>> => {\n const mutationOptions: UseMutationOptions<CreateMachinePoolResponse, CreateMachinePoolError, Options<CreateMachinePoolData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createMachinePool({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Check machine pool connection\n *\n * Checks a tenant-managed pool's provider credential and provider config by making read-only requests to the provider.\n */\nexport const checkMachinePoolConnectionMutation = (options?: Partial<Options<CheckMachinePoolConnectionData>>): UseMutationOptions<CheckMachinePoolConnectionResponse, CheckMachinePoolConnectionError, Options<CheckMachinePoolConnectionData>> => {\n const mutationOptions: UseMutationOptions<CheckMachinePoolConnectionResponse, CheckMachinePoolConnectionError, Options<CheckMachinePoolConnectionData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await checkMachinePoolConnection({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete machine pool\n *\n * Deletes the machine pool and its pooled machines, revokes generated machine grants and project machine-pool grants, and stops processes that depended on those grants. Deleting a cluster-managed machine pool is rejected with 409 Conflict; there are no other dependency blockers.\n */\nexport const deleteMachinePoolMutation = (options?: Partial<Options<DeleteMachinePoolData>>): UseMutationOptions<DeleteMachinePoolResponse, DeleteMachinePoolError, Options<DeleteMachinePoolData>> => {\n const mutationOptions: UseMutationOptions<DeleteMachinePoolResponse, DeleteMachinePoolError, Options<DeleteMachinePoolData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteMachinePool({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getMachinePoolQueryKey = (options: Options<GetMachinePoolData>) => createQueryKey('getMachinePool', options);\n\n/**\n * Get machine pool\n *\n * Returns one machine pool's configuration and current usage: provider, default machine settings, CPU, memory, and machine-count limits, and idle deletion policy.\n */\nexport const getMachinePoolOptions = (options: Options<GetMachinePoolData>) => queryOptions<GetMachinePoolResponse, GetMachinePoolError, GetMachinePoolResponse, ReturnType<typeof getMachinePoolQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getMachinePool({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getMachinePoolQueryKey(options)\n});\n\n/**\n * Update machine pool\n *\n * Tenant-managed pools support every request field. Cluster-managed pools only allow changes to default CPU and memory, environment and secret environment variables, provider-supported per-machine CPU and memory limits, and the idle deletion policy. Other cluster-managed changes are rejected with 409 Conflict.\n */\nexport const updateMachinePoolMutation = (options?: Partial<Options<UpdateMachinePoolData>>): UseMutationOptions<UpdateMachinePoolResponse, UpdateMachinePoolError, Options<UpdateMachinePoolData>> => {\n const mutationOptions: UseMutationOptions<UpdateMachinePoolResponse, UpdateMachinePoolError, Options<UpdateMachinePoolData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateMachinePool({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listProjectMachinePoolGrantsQueryKey = (options: Options<ListProjectMachinePoolGrantsData>) => createQueryKey('listProjectMachinePoolGrants', options);\n\n/**\n * List project machine pool grants\n *\n * Lists the machine pools a project can create machines from, one grant per pool, most recently granted first by default.\n */\nexport const listProjectMachinePoolGrantsOptions = (options: Options<ListProjectMachinePoolGrantsData>) => queryOptions<ListProjectMachinePoolGrantsResponse2, ListProjectMachinePoolGrantsError, ListProjectMachinePoolGrantsResponse2, ReturnType<typeof listProjectMachinePoolGrantsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listProjectMachinePoolGrants({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectMachinePoolGrantsQueryKey(options)\n});\n\nexport const listProjectMachinePoolGrantsInfiniteQueryKey = (options: Options<ListProjectMachinePoolGrantsData>): QueryKey<Options<ListProjectMachinePoolGrantsData>> => createQueryKey('listProjectMachinePoolGrants', options, true);\n\n/**\n * List project machine pool grants\n *\n * Lists the machine pools a project can create machines from, one grant per pool, most recently granted first by default.\n */\nexport const listProjectMachinePoolGrantsInfiniteOptions = (options: Options<ListProjectMachinePoolGrantsData>) => {\n const opts = infiniteQueryOptions<ListProjectMachinePoolGrantsResponse2, ListProjectMachinePoolGrantsError, InfiniteData<ListProjectMachinePoolGrantsResponse2>, QueryKey<Options<ListProjectMachinePoolGrantsData>>, string | Pick<QueryKey<Options<ListProjectMachinePoolGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListProjectMachinePoolGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listProjectMachinePoolGrants({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectMachinePoolGrantsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create project machine pool grant\n *\n * Lets a project create machines from a machine pool, optionally with its own defaults and usage caps within the pool's limits, and returns the grant. No machines are created by this call.\n */\nexport const createProjectMachinePoolGrantMutation = (options?: Partial<Options<CreateProjectMachinePoolGrantData>>): UseMutationOptions<CreateProjectMachinePoolGrantResponse, CreateProjectMachinePoolGrantError, Options<CreateProjectMachinePoolGrantData>> => {\n const mutationOptions: UseMutationOptions<CreateProjectMachinePoolGrantResponse, CreateProjectMachinePoolGrantError, Options<CreateProjectMachinePoolGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createProjectMachinePoolGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete project machine pool grant\n *\n * Removes the project's access to the machine pool, revokes machine grants generated through it, and stops processes that depended on those grants. The pool itself is retained, and there are no dependency blockers.\n */\nexport const deleteProjectMachinePoolGrantMutation = (options?: Partial<Options<DeleteProjectMachinePoolGrantData>>): UseMutationOptions<DeleteProjectMachinePoolGrantResponse, DeleteProjectMachinePoolGrantError, Options<DeleteProjectMachinePoolGrantData>> => {\n const mutationOptions: UseMutationOptions<DeleteProjectMachinePoolGrantResponse, DeleteProjectMachinePoolGrantError, Options<DeleteProjectMachinePoolGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteProjectMachinePoolGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getProjectMachinePoolGrantQueryKey = (options: Options<GetProjectMachinePoolGrantData>) => createQueryKey('getProjectMachinePoolGrant', options);\n\n/**\n * Get project machine pool grant\n *\n * Returns one project's grant for a machine pool, with the defaults and limits it sets on top of the pool's own. Null fields set no override, so the pool's value applies.\n */\nexport const getProjectMachinePoolGrantOptions = (options: Options<GetProjectMachinePoolGrantData>) => queryOptions<GetProjectMachinePoolGrantResponse, GetProjectMachinePoolGrantError, GetProjectMachinePoolGrantResponse, ReturnType<typeof getProjectMachinePoolGrantQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getProjectMachinePoolGrant({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getProjectMachinePoolGrantQueryKey(options)\n});\n\n/**\n * Update project machine pool grant\n *\n * Updates the grant's overrides and limits. Omitted fields keep their current values; null clears an override so the grant follows the machine pool again. Overlay objects and metadata are replaced whole when present. Existing machines keep their configuration; the updated defaults and limits apply to new launches.\n */\nexport const updateProjectMachinePoolGrantMutation = (options?: Partial<Options<UpdateProjectMachinePoolGrantData>>): UseMutationOptions<UpdateProjectMachinePoolGrantResponse, UpdateProjectMachinePoolGrantError, Options<UpdateProjectMachinePoolGrantData>> => {\n const mutationOptions: UseMutationOptions<UpdateProjectMachinePoolGrantResponse, UpdateProjectMachinePoolGrantError, Options<UpdateProjectMachinePoolGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateProjectMachinePoolGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listByoMachineDaemonTokensQueryKey = (options: Options<ListByoMachineDaemonTokensData>) => createQueryKey('listByoMachineDaemonTokens', options);\n\n/**\n * List byo machine daemon tokens\n *\n * Items are ordered by created_at descending, then id descending.\n */\nexport const listByoMachineDaemonTokensOptions = (options: Options<ListByoMachineDaemonTokensData>) => queryOptions<ListByoMachineDaemonTokensResponse, ListByoMachineDaemonTokensError, ListByoMachineDaemonTokensResponse, ReturnType<typeof listByoMachineDaemonTokensQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listByoMachineDaemonTokens({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listByoMachineDaemonTokensQueryKey(options)\n});\n\nexport const listByoMachineDaemonTokensInfiniteQueryKey = (options: Options<ListByoMachineDaemonTokensData>): QueryKey<Options<ListByoMachineDaemonTokensData>> => createQueryKey('listByoMachineDaemonTokens', options, true);\n\n/**\n * List byo machine daemon tokens\n *\n * Items are ordered by created_at descending, then id descending.\n */\nexport const listByoMachineDaemonTokensInfiniteOptions = (options: Options<ListByoMachineDaemonTokensData>) => {\n const opts = infiniteQueryOptions<ListByoMachineDaemonTokensResponse, ListByoMachineDaemonTokensError, InfiniteData<ListByoMachineDaemonTokensResponse>, QueryKey<Options<ListByoMachineDaemonTokensData>>, string | Pick<QueryKey<Options<ListByoMachineDaemonTokensData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListByoMachineDaemonTokensData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listByoMachineDaemonTokens({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listByoMachineDaemonTokensInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create byo machine daemon token\n */\nexport const createByoMachineDaemonTokenMutation = (options?: Partial<Options<CreateByoMachineDaemonTokenData>>): UseMutationOptions<CreateByoMachineDaemonTokenResponse, CreateByoMachineDaemonTokenError, Options<CreateByoMachineDaemonTokenData>> => {\n const mutationOptions: UseMutationOptions<CreateByoMachineDaemonTokenResponse, CreateByoMachineDaemonTokenError, Options<CreateByoMachineDaemonTokenData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createByoMachineDaemonToken({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Revoke machine daemon token\n */\nexport const revokeMachineDaemonTokenMutation = (options?: Partial<Options<RevokeMachineDaemonTokenData>>): UseMutationOptions<RevokeMachineDaemonTokenResponse, RevokeMachineDaemonTokenError, Options<RevokeMachineDaemonTokenData>> => {\n const mutationOptions: UseMutationOptions<RevokeMachineDaemonTokenResponse, RevokeMachineDaemonTokenError, Options<RevokeMachineDaemonTokenData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await revokeMachineDaemonToken({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Register machine daemon runtime\n */\nexport const registerMachineDaemonRuntimeMutation = (options?: Partial<Options<RegisterMachineDaemonRuntimeData>>): UseMutationOptions<RegisterMachineDaemonRuntimeResponse, RegisterMachineDaemonRuntimeError, Options<RegisterMachineDaemonRuntimeData>> => {\n const mutationOptions: UseMutationOptions<RegisterMachineDaemonRuntimeResponse, RegisterMachineDaemonRuntimeError, Options<RegisterMachineDaemonRuntimeData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await registerMachineDaemonRuntime({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const socketMachineDaemonRuntimeQueryKey = (options: Options<SocketMachineDaemonRuntimeData>) => createQueryKey('socketMachineDaemonRuntime', options);\n\n/**\n * Socket machine daemon runtime\n */\nexport const socketMachineDaemonRuntimeOptions = (options: Options<SocketMachineDaemonRuntimeData>) => queryOptions<unknown, SocketMachineDaemonRuntimeError, unknown, ReturnType<typeof socketMachineDaemonRuntimeQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await socketMachineDaemonRuntime({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: socketMachineDaemonRuntimeQueryKey(options)\n});\n\n/**\n * End machine daemon runtime\n */\nexport const endMachineDaemonRuntimeMutation = (options?: Partial<Options<EndMachineDaemonRuntimeData>>): UseMutationOptions<EndMachineDaemonRuntimeResponse, EndMachineDaemonRuntimeError, Options<EndMachineDaemonRuntimeData>> => {\n const mutationOptions: UseMutationOptions<EndMachineDaemonRuntimeResponse, EndMachineDaemonRuntimeError, Options<EndMachineDaemonRuntimeData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await endMachineDaemonRuntime({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Sleep machine daemon runtime\n *\n * Gracefully ends the daemon runtime and marks the machine asleep so new work queues and triggers an automatic wake. Rejected with 409 code pending_work when the machine has queued or live daemon work, and 409 code not_wake_capable when the machine has no sandbox URL.\n */\nexport const sleepMachineDaemonRuntimeMutation = (options?: Partial<Options<SleepMachineDaemonRuntimeData>>): UseMutationOptions<SleepMachineDaemonRuntimeResponse, SleepMachineDaemonRuntimeError, Options<SleepMachineDaemonRuntimeData>> => {\n const mutationOptions: UseMutationOptions<SleepMachineDaemonRuntimeResponse, SleepMachineDaemonRuntimeError, Options<SleepMachineDaemonRuntimeData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await sleepMachineDaemonRuntime({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Get Git credentials for an active daemon process\n *\n * Requires machine daemon authentication and an active, execution-granted process on that machine. The process's original config and the agent's current config must have the same Git credentials settings. Credentials are limited to those settings' repositories and permission and are reauthorized on every request.\n */\nexport const getDaemonGitCredentialsMutation = (options?: Partial<Options<GetDaemonGitCredentialsData>>): UseMutationOptions<GetDaemonGitCredentialsResponse, GetDaemonGitCredentialsError, Options<GetDaemonGitCredentialsData>> => {\n const mutationOptions: UseMutationOptions<GetDaemonGitCredentialsResponse, GetDaemonGitCredentialsError, Options<GetDaemonGitCredentialsData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await getDaemonGitCredentials({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getDaemonSkillArchiveQueryKey = (options: Options<GetDaemonSkillArchiveData>) => createQueryKey('getDaemonSkillArchive', options);\n\n/**\n * Get daemon skill archive\n *\n * Requires daemon authentication plus a short-lived capability bound to the authenticated machine, skill, and revision.\n */\nexport const getDaemonSkillArchiveOptions = (options: Options<GetDaemonSkillArchiveData>) => queryOptions<GetDaemonSkillArchiveResponse, GetDaemonSkillArchiveError, GetDaemonSkillArchiveResponse, ReturnType<typeof getDaemonSkillArchiveQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getDaemonSkillArchive({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getDaemonSkillArchiveQueryKey(options)\n});\n\nexport const downloadDaemonFileQueryKey = (options: Options<DownloadDaemonFileData>) => createQueryKey('downloadDaemonFile', options);\n\n/**\n * Download daemon file\n */\nexport const downloadDaemonFileOptions = (options: Options<DownloadDaemonFileData>) => queryOptions<DownloadDaemonFileResponse, DownloadDaemonFileError, DownloadDaemonFileResponse, ReturnType<typeof downloadDaemonFileQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await downloadDaemonFile({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: downloadDaemonFileQueryKey(options)\n});\n\n/**\n * Upload daemon file\n */\nexport const uploadDaemonFileMutation = (options?: Partial<Options<UploadDaemonFileData>>): UseMutationOptions<UploadDaemonFileResponse, UploadDaemonFileError, Options<UploadDaemonFileData>> => {\n const mutationOptions: UseMutationOptions<UploadDaemonFileResponse, UploadDaemonFileError, Options<UploadDaemonFileData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await uploadDaemonFile({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listOrgIntegrationsQueryKey = (options: Options<ListOrgIntegrationsData>) => createQueryKey('listOrgIntegrations', options);\n\n/**\n * List integrations across projects\n *\n * Lists integrations in every project of the organization the caller can read. Each integration carries its project_id. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgIntegrationsOptions = (options: Options<ListOrgIntegrationsData>) => queryOptions<ListOrgIntegrationsResponse, ListOrgIntegrationsError, ListOrgIntegrationsResponse, ReturnType<typeof listOrgIntegrationsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgIntegrations({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgIntegrationsQueryKey(options)\n});\n\nexport const listOrgIntegrationsInfiniteQueryKey = (options: Options<ListOrgIntegrationsData>): QueryKey<Options<ListOrgIntegrationsData>> => createQueryKey('listOrgIntegrations', options, true);\n\n/**\n * List integrations across projects\n *\n * Lists integrations in every project of the organization the caller can read. Each integration carries its project_id. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgIntegrationsInfiniteOptions = (options: Options<ListOrgIntegrationsData>) => {\n const opts = infiniteQueryOptions<ListOrgIntegrationsResponse, ListOrgIntegrationsError, InfiniteData<ListOrgIntegrationsResponse>, QueryKey<Options<ListOrgIntegrationsData>>, string | Pick<QueryKey<Options<ListOrgIntegrationsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListOrgIntegrationsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listOrgIntegrations({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgIntegrationsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const listIntegrationsQueryKey = (options: Options<ListIntegrationsData>) => createQueryKey('listIntegrations', options);\n\n/**\n * List project integrations\n */\nexport const listIntegrationsOptions = (options: Options<ListIntegrationsData>) => queryOptions<ListIntegrationsResponse2, ListIntegrationsError, ListIntegrationsResponse2, ReturnType<typeof listIntegrationsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listIntegrations({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listIntegrationsQueryKey(options)\n});\n\nexport const listIntegrationsInfiniteQueryKey = (options: Options<ListIntegrationsData>): QueryKey<Options<ListIntegrationsData>> => createQueryKey('listIntegrations', options, true);\n\n/**\n * List project integrations\n */\nexport const listIntegrationsInfiniteOptions = (options: Options<ListIntegrationsData>) => {\n const opts = infiniteQueryOptions<ListIntegrationsResponse2, ListIntegrationsError, InfiniteData<ListIntegrationsResponse2>, QueryKey<Options<ListIntegrationsData>>, string | Pick<QueryKey<Options<ListIntegrationsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListIntegrationsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listIntegrations({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listIntegrationsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create an integration and optional launcher\n */\nexport const createIntegrationMutation = (options?: Partial<Options<CreateIntegrationData>>): UseMutationOptions<CreateIntegrationResponse, CreateIntegrationError, Options<CreateIntegrationData>> => {\n const mutationOptions: UseMutationOptions<CreateIntegrationResponse, CreateIntegrationError, Options<CreateIntegrationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createIntegration({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete integration setup and revoke its capabilities\n *\n * Deletes the integration setup and its cron schedules, revokes its capabilities, and releases its credential reference. Existing agents, agent history, and provider messages are preserved.\n */\nexport const deleteIntegrationMutation = (options?: Partial<Options<DeleteIntegrationData>>): UseMutationOptions<DeleteIntegrationResponse, DeleteIntegrationError, Options<DeleteIntegrationData>> => {\n const mutationOptions: UseMutationOptions<DeleteIntegrationResponse, DeleteIntegrationError, Options<DeleteIntegrationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteIntegration({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getIntegrationQueryKey = (options: Options<GetIntegrationData>) => createQueryKey('getIntegration', options);\n\n/**\n * Get project integration\n */\nexport const getIntegrationOptions = (options: Options<GetIntegrationData>) => queryOptions<GetIntegrationResponse, GetIntegrationError, GetIntegrationResponse, ReturnType<typeof getIntegrationQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getIntegration({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getIntegrationQueryKey(options)\n});\n\n/**\n * Update integration settings\n *\n * Replaces integration-owned settings while preserving credentials. The request contains only settings; name and integration_kind are immutable and accepted only on create. Preserve integration-level fields when editing the launcher. Settings follow capabilities.settings.input_schema from the integration catalog.\n */\nexport const updateIntegrationMutation = (options?: Partial<Options<UpdateIntegrationData>>): UseMutationOptions<UpdateIntegrationResponse, UpdateIntegrationError, Options<UpdateIntegrationData>> => {\n const mutationOptions: UseMutationOptions<UpdateIntegrationResponse, UpdateIntegrationError, Options<UpdateIntegrationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateIntegration({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listIntegrationSubscriptionsQueryKey = (options: Options<ListIntegrationSubscriptionsData>) => createQueryKey('listIntegrationSubscriptions', options);\n\n/**\n * List integration conversation subscriptions\n *\n * Requires project read permission. Disconnected integrations retain their subscriptions and support listing.\n */\nexport const listIntegrationSubscriptionsOptions = (options: Options<ListIntegrationSubscriptionsData>) => queryOptions<ListIntegrationSubscriptionsResponse2, ListIntegrationSubscriptionsError, ListIntegrationSubscriptionsResponse2, ReturnType<typeof listIntegrationSubscriptionsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listIntegrationSubscriptions({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listIntegrationSubscriptionsQueryKey(options)\n});\n\nexport const listIntegrationSubscriptionsInfiniteQueryKey = (options: Options<ListIntegrationSubscriptionsData>): QueryKey<Options<ListIntegrationSubscriptionsData>> => createQueryKey('listIntegrationSubscriptions', options, true);\n\n/**\n * List integration conversation subscriptions\n *\n * Requires project read permission. Disconnected integrations retain their subscriptions and support listing.\n */\nexport const listIntegrationSubscriptionsInfiniteOptions = (options: Options<ListIntegrationSubscriptionsData>) => {\n const opts = infiniteQueryOptions<ListIntegrationSubscriptionsResponse2, ListIntegrationSubscriptionsError, InfiniteData<ListIntegrationSubscriptionsResponse2>, QueryKey<Options<ListIntegrationSubscriptionsData>>, string | Pick<QueryKey<Options<ListIntegrationSubscriptionsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListIntegrationSubscriptionsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listIntegrationSubscriptions({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listIntegrationSubscriptionsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Attach an agent to an integration conversation\n *\n * Requires project management permission. Repeating an active attachment returns the same subscription. Subscriptions do not change the agent config or grant sending tools.\n */\nexport const createIntegrationSubscriptionMutation = (options?: Partial<Options<CreateIntegrationSubscriptionData>>): UseMutationOptions<CreateIntegrationSubscriptionResponse, CreateIntegrationSubscriptionError, Options<CreateIntegrationSubscriptionData>> => {\n const mutationOptions: UseMutationOptions<CreateIntegrationSubscriptionResponse, CreateIntegrationSubscriptionError, Options<CreateIntegrationSubscriptionData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createIntegrationSubscription({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Stop forwarding an integration conversation to an agent\n *\n * Requires project management permission. Missing subscriptions are a no-op within an existing integration. Disconnected integrations support deletion. Stops future incoming forwarding for this subscription. The agent, sending tools, interaction handlers, and history remain available. Attaching the conversation again through the API resumes forwarding with a new subscription ID.\n */\nexport const deleteIntegrationSubscriptionMutation = (options?: Partial<Options<DeleteIntegrationSubscriptionData>>): UseMutationOptions<DeleteIntegrationSubscriptionResponse, DeleteIntegrationSubscriptionError, Options<DeleteIntegrationSubscriptionData>> => {\n const mutationOptions: UseMutationOptions<DeleteIntegrationSubscriptionResponse, DeleteIntegrationSubscriptionError, Options<DeleteIntegrationSubscriptionData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteIntegrationSubscription({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Verify and configure integration credentials\n *\n * Requires a user principal with project management permission. Slack credentials are configured through OAuth. A stale expected_setup_revision or a credential changed during verification returns 409; reload the integration and retry setup. Setup preserves integration settings; verified provider identity scopes incoming events.\n */\nexport const configureIntegrationMutation = (options?: Partial<Options<ConfigureIntegrationData>>): UseMutationOptions<ConfigureIntegrationResponse, ConfigureIntegrationError, Options<ConfigureIntegrationData>> => {\n const mutationOptions: UseMutationOptions<ConfigureIntegrationResponse, ConfigureIntegrationError, Options<ConfigureIntegrationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await configureIntegration({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Disconnect this integration without deleting its configuration\n */\nexport const disconnectIntegrationMutation = (options?: Partial<Options<DisconnectIntegrationData>>): UseMutationOptions<DisconnectIntegrationResponse, DisconnectIntegrationError, Options<DisconnectIntegrationData>> => {\n const mutationOptions: UseMutationOptions<DisconnectIntegrationResponse, DisconnectIntegrationError, Options<DisconnectIntegrationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await disconnectIntegration({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listIntegrationGitHubRepositoriesQueryKey = (options: Options<ListIntegrationGitHubRepositoriesData>) => createQueryKey('listIntegrationGitHubRepositories', options);\n\n/**\n * List repositories a GitHub integration can access\n *\n * Returns one page of up to 100 repositories the connected installation can access, for use in git_credentials.repository_ids. Requires project management access.\n */\nexport const listIntegrationGitHubRepositoriesOptions = (options: Options<ListIntegrationGitHubRepositoriesData>) => queryOptions<ListIntegrationGitHubRepositoriesResponse, ListIntegrationGitHubRepositoriesError, ListIntegrationGitHubRepositoriesResponse, ReturnType<typeof listIntegrationGitHubRepositoriesQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listIntegrationGitHubRepositories({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listIntegrationGitHubRepositoriesQueryKey(options)\n});\n\nexport const listIntegrationGitHubRepositoriesInfiniteQueryKey = (options: Options<ListIntegrationGitHubRepositoriesData>): QueryKey<Options<ListIntegrationGitHubRepositoriesData>> => createQueryKey('listIntegrationGitHubRepositories', options, true);\n\n/**\n * List repositories a GitHub integration can access\n *\n * Returns one page of up to 100 repositories the connected installation can access, for use in git_credentials.repository_ids. Requires project management access.\n */\nexport const listIntegrationGitHubRepositoriesInfiniteOptions = (options: Options<ListIntegrationGitHubRepositoriesData>) => {\n const opts = infiniteQueryOptions<ListIntegrationGitHubRepositoriesResponse, ListIntegrationGitHubRepositoriesError, InfiniteData<ListIntegrationGitHubRepositoriesResponse>, QueryKey<Options<ListIntegrationGitHubRepositoriesData>>, string | Pick<QueryKey<Options<ListIntegrationGitHubRepositoriesData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListIntegrationGitHubRepositoriesData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listIntegrationGitHubRepositories({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listIntegrationGitHubRepositoriesInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const listIntegrationDefinitionsQueryKey = (options: Options<ListIntegrationDefinitionsData>) => createQueryKey('listIntegrationDefinitions', options);\n\n/**\n * List installed integration implementations and their capabilities\n */\nexport const listIntegrationDefinitionsOptions = (options: Options<ListIntegrationDefinitionsData>) => queryOptions<ListIntegrationDefinitionsResponse2, ListIntegrationDefinitionsError, ListIntegrationDefinitionsResponse2, ReturnType<typeof listIntegrationDefinitionsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listIntegrationDefinitions({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listIntegrationDefinitionsQueryKey(options)\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAA4B,sBAAsB,oBAA6C;AAc/F,IAAM,iBAAiB,CAA2B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AAC,YAA4D;AACzH,QAAM,OAAO;AAAA;AAAA,IAEb;AAAA,MACI,SAAS,OAAO,EAAE,WAAW,UAAU,OAAO,MAAM;AAEhD,cAAM,OAAiH,OAAO,cAAc,WAAW,YAAY;AAAA,UAC/J,OAAO;AAAA,YACH,QAAQ;AAAA,UACZ;AAAA,QACJ;AACA,cAAM,SAAS,qBAAqB,UAAU,IAAI;AAClD,cAAM,EAAE,KAAK,IAAI,MAAM,kCAAkC;AAAA,UACrD,GAAG;AAAA,UACH,GAAG;AAAA,UACH;AAAA,UACA,cAAc;AAAA,QAClB,CAAC;AACD,eAAO;AAAA,MACX;AAAA,MACA,UAAU,kDAAkD,OAAO;AAAA,IACvE;AAAA,EAAC;AACD,SAAO;AACX;AAEO,IAAM,qCAAqC,CAAC,YAAqD,eAAe,8BAA8B,OAAO;AAKrJ,IAAM,oCAAoC,CAAC,YAAqD,aAA+K;AAAA,EAClR,SAAS,OAAO,EAAE,UAAU,OAAO,MAAM;AACrC,UAAM,EAAE,KAAK,IAAI,MAAM,2BAA2B;AAAA,MAC9C,GAAG;AAAA,MACH,GAAG,SAAS,CAAC;AAAA,MACb;AAAA,MACA,cAAc;AAAA,IAClB,CAAC;AACD,WAAO;AAAA,EACX;AAAA,EACA,UAAU,mCAAmC,OAAO;AACxD,CAAC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/generated/@tanstack/react-query.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport { type InfiniteData, infiniteQueryOptions, queryOptions, type UseMutationOptions } from '@tanstack/react-query';\n\nimport { client } from '../client.gen';\nimport { acceptInvitation, archiveAgent, bootstrapDaemon, cancelAgent, cancelQueuedBacklogInput, checkMachinePoolConnection, configureIntegration, connectByoMachine, createAgent, createAgentConfig, createAgentInput, createAgentProfile, createByoMachineDaemonToken, createConfiguredModel, createCronTrigger, createEventWebhook, createIntegration, createIntegrationGitHubSetup, createIntegrationOAuthSetup, createIntegrationSlackSetup, createIntegrationSubscription, createMachine, createMachinePool, createMemoryStore, createModelProviderConfig, createOrganization, createOrgApiKey, createOrgInvitation, createPersonalAccessToken, createProject, createProjectMachineGrant, createProjectMachinePoolGrant, createProjectModelGrant, createSecret, createSecretGrant, createSecretVersion, createSkill, createSkillGrant, declineInvitation, deleteAgentProfile, deleteConfiguredModel, deleteCronTrigger, deleteCurrentUser, deleteEventWebhook, deleteIntegration, deleteIntegrationSubscription, deleteMachine, deleteMachinePool, deleteMemoryFile, deleteMemoryStore, deleteModelProviderConfig, deleteOrganization, deleteOrgInvitation, deleteProject, deleteProjectMachineGrant, deleteProjectMachinePoolGrant, deleteProjectModelGrant, deleteSecret, deleteSecretGrant, deleteSkill, deleteSkillGrant, demoteSteeringInputToQueued, disconnectIntegration, downloadDaemonFile, downloadMemoryFile, endMachineDaemonRuntime, getActor, getAgent, getAgentConfig, getAgentConfigGeneratedSource, getAgentProfile, getAgentProfileUsage, getAgentUsage, getArtifact, getArtifactContent, getCronTrigger, getCurrentUser, getDaemonGitCredentials, getDaemonSkillArchive, getIntegration, getMachine, getMachinePool, getMemoryStore, getModelCatalog, getModelProviderConfig, getOrgApiKey, getOrgOverview, getOrgUsage, getOrgUsageTimeseries, getProjectAvailableSecret, getProjectMachinePoolGrant, getProjectUsage, getSecret, getSkill, getToolCatalog, inspectIntegrationGitHubInstallations, listActors, listAgentInteractions, listAgentProfiles, listAgents, listByoMachineDaemonTokens, listConfiguredModels, listCronTriggers, listEvents, listEventWebhooks, listIntegrationDefinitions, listIntegrationGitHubRepositories, listIntegrations, listIntegrationSubscriptions, listMachinePools, listMcpServers, listMcpServerTools, listMemberProjectAccess, listMemoryFiles, listMemoryStores, listModelProviderConfigs, listOrgAgentProfiles, listOrgAgents, listOrganizations, listOrgApiKeyProjectAccess, listOrgApiKeys, listOrgIntegrations, listOrgInvitations, listOrgMembers, listOrgMemoryStores, listPendingInvitations, listPersonalAccessTokens, listProjectAvailableSecrets, listProjectAvailableSkills, listProjectMachineGrants, listProjectMachinePoolGrants, listProjectModelGrants, listQueuedBacklogInputs, listSecretGrants, listSecrets, listSkillGrants, listSkills, listToolCalls, listTurnEvents, listTurns, listVisibleMachines, listVisibleProjectMachines, listVisibleProjects, moveQueuedBacklogInput, type Options, promoteQueuedInputToSteering, putActor, recordMachineFailure, registerMachineDaemonRuntime, removeMemberProjectAccess, removeOrgApiKeyProjectRole, removeOrgMember, renameAgentProfile, resolveAgentConfigTools, resolveAgentInteraction, revokeMachineDaemonToken, revokeOrgApiKey, revokePersonalAccessToken, setMemberProjectAccess, setOrgApiKeyProjectRole, sleepMachineDaemonRuntime, socketMachineDaemonRuntime, startSecretMcpoAuth, submitToolCallResult, updateAgentConfig, updateAgentProfile, updateConfiguredModel, updateCronTrigger, updateEventWebhook, updateIntegration, updateMachine, updateMachinePool, updateMemoryStore, updateModelProviderConfig, updateOrgApiKey, updateOrgMember, updateProjectMachinePoolGrant, updateProjectModelGrant, updateSecret, updateSkill, uploadDaemonFile, writeMemoryFile } from '../sdk.gen';\nimport type { AcceptInvitationData, AcceptInvitationError, AcceptInvitationResponse, ArchiveAgentData, ArchiveAgentError, ArchiveAgentResponse, BootstrapDaemonData, BootstrapDaemonError, BootstrapDaemonResponse2, CancelAgentData, CancelAgentError, CancelAgentResponse2, CancelQueuedBacklogInputData, CancelQueuedBacklogInputError, CancelQueuedBacklogInputResponse, CheckMachinePoolConnectionData, CheckMachinePoolConnectionError, CheckMachinePoolConnectionResponse, ConfigureIntegrationData, ConfigureIntegrationError, ConfigureIntegrationResponse, ConnectByoMachineData, ConnectByoMachineError, ConnectByoMachineResponse2, CreateAgentConfigData, CreateAgentConfigError, CreateAgentConfigResponse, CreateAgentData, CreateAgentError, CreateAgentInputData, CreateAgentInputError, CreateAgentInputResponse, CreateAgentProfileData, CreateAgentProfileError, CreateAgentProfileResponse, CreateAgentResponse, CreateByoMachineDaemonTokenData, CreateByoMachineDaemonTokenError, CreateByoMachineDaemonTokenResponse, CreateConfiguredModelData, CreateConfiguredModelError, CreateConfiguredModelResponse, CreateCronTriggerData, CreateCronTriggerError, CreateCronTriggerResponse, CreateEventWebhookData, CreateEventWebhookError, CreateEventWebhookResponse, CreateIntegrationData, CreateIntegrationError, CreateIntegrationGitHubSetupData, CreateIntegrationGitHubSetupError, CreateIntegrationGitHubSetupResponse, CreateIntegrationOAuthSetupData, CreateIntegrationOAuthSetupError, CreateIntegrationOAuthSetupResponse, CreateIntegrationResponse, CreateIntegrationSlackSetupData, CreateIntegrationSlackSetupError, CreateIntegrationSlackSetupResponse, CreateIntegrationSubscriptionData, CreateIntegrationSubscriptionError, CreateIntegrationSubscriptionResponse, CreateMachineData, CreateMachineError, CreateMachinePoolData, CreateMachinePoolError, CreateMachinePoolResponse, CreateMachineResponse, CreateMemoryStoreData, CreateMemoryStoreError, CreateMemoryStoreResponse, CreateModelProviderConfigData, CreateModelProviderConfigError, CreateModelProviderConfigResponse2, CreateOrganizationData, CreateOrganizationError, CreateOrganizationResponse2, CreateOrgApiKeyData, CreateOrgApiKeyError, CreateOrgApiKeyResponse2, CreateOrgInvitationData, CreateOrgInvitationError, CreateOrgInvitationResponse, CreatePersonalAccessTokenData, CreatePersonalAccessTokenError, CreatePersonalAccessTokenResponse2, CreateProjectData, CreateProjectError, CreateProjectMachineGrantData, CreateProjectMachineGrantError, CreateProjectMachineGrantResponse2, CreateProjectMachinePoolGrantData, CreateProjectMachinePoolGrantError, CreateProjectMachinePoolGrantResponse, CreateProjectModelGrantData, CreateProjectModelGrantError, CreateProjectModelGrantResponse, CreateProjectResponse, CreateSecretData, CreateSecretError, CreateSecretGrantData, CreateSecretGrantError, CreateSecretGrantResponse, CreateSecretResponse, CreateSecretVersionData, CreateSecretVersionError, CreateSecretVersionResponse, CreateSkillData, CreateSkillError, CreateSkillGrantData, CreateSkillGrantError, CreateSkillGrantResponse, CreateSkillResponse, DeclineInvitationData, DeclineInvitationError, DeclineInvitationResponse, DeleteAgentProfileData, DeleteAgentProfileError, DeleteAgentProfileResponse, DeleteConfiguredModelData, DeleteConfiguredModelError, DeleteConfiguredModelResponse, DeleteCronTriggerData, DeleteCronTriggerError, DeleteCronTriggerResponse, DeleteCurrentUserData, DeleteCurrentUserError, DeleteCurrentUserResponse, DeleteEventWebhookData, DeleteEventWebhookError, DeleteEventWebhookResponse, DeleteIntegrationData, DeleteIntegrationError, DeleteIntegrationResponse, DeleteIntegrationSubscriptionData, DeleteIntegrationSubscriptionError, DeleteIntegrationSubscriptionResponse, DeleteMachineData, DeleteMachineError, DeleteMachinePoolData, DeleteMachinePoolError, DeleteMachinePoolResponse, DeleteMachineResponse, DeleteMemoryFileData, DeleteMemoryFileError, DeleteMemoryFileResponse, DeleteMemoryStoreData, DeleteMemoryStoreError, DeleteMemoryStoreResponse, DeleteModelProviderConfigData, DeleteModelProviderConfigError, DeleteModelProviderConfigResponse, DeleteOrganizationData, DeleteOrganizationError, DeleteOrganizationResponse, DeleteOrgInvitationData, DeleteOrgInvitationError, DeleteOrgInvitationResponse, DeleteProjectData, DeleteProjectError, DeleteProjectMachineGrantData, DeleteProjectMachineGrantError, DeleteProjectMachineGrantResponse, DeleteProjectMachinePoolGrantData, DeleteProjectMachinePoolGrantError, DeleteProjectMachinePoolGrantResponse, DeleteProjectModelGrantData, DeleteProjectModelGrantError, DeleteProjectModelGrantResponse, DeleteProjectResponse, DeleteSecretData, DeleteSecretError, DeleteSecretGrantData, DeleteSecretGrantError, DeleteSecretGrantResponse, DeleteSecretResponse, DeleteSkillData, DeleteSkillError, DeleteSkillGrantData, DeleteSkillGrantError, DeleteSkillGrantResponse, DeleteSkillResponse, DemoteSteeringInputToQueuedData, DemoteSteeringInputToQueuedError, DemoteSteeringInputToQueuedResponse, DisconnectIntegrationData, DisconnectIntegrationError, DisconnectIntegrationResponse, DownloadDaemonFileData, DownloadDaemonFileError, DownloadDaemonFileResponse, DownloadMemoryFileData, DownloadMemoryFileError, DownloadMemoryFileResponse, EndMachineDaemonRuntimeData, EndMachineDaemonRuntimeError, EndMachineDaemonRuntimeResponse, GetActorData, GetActorError, GetActorResponse, GetAgentConfigData, GetAgentConfigError, GetAgentConfigGeneratedSourceData, GetAgentConfigGeneratedSourceError, GetAgentConfigGeneratedSourceResponse, GetAgentConfigResponse, GetAgentData, GetAgentError, GetAgentProfileData, GetAgentProfileError, GetAgentProfileResponse, GetAgentProfileUsageData, GetAgentProfileUsageError, GetAgentProfileUsageResponse, GetAgentResponse2, GetAgentUsageData, GetAgentUsageError, GetAgentUsageResponse, GetArtifactContentData, GetArtifactContentError, GetArtifactContentResponse, GetArtifactData, GetArtifactError, GetArtifactResponse, GetCronTriggerData, GetCronTriggerError, GetCronTriggerResponse, GetCurrentUserData, GetCurrentUserError, GetCurrentUserResponse, GetDaemonGitCredentialsData, GetDaemonGitCredentialsError, GetDaemonGitCredentialsResponse, GetDaemonSkillArchiveData, GetDaemonSkillArchiveError, GetDaemonSkillArchiveResponse, GetIntegrationData, GetIntegrationError, GetIntegrationResponse, GetMachineData, GetMachineError, GetMachinePoolData, GetMachinePoolError, GetMachinePoolResponse, GetMachineResponse, GetMemoryStoreData, GetMemoryStoreError, GetMemoryStoreResponse, GetModelCatalogData, GetModelCatalogError, GetModelCatalogResponse, GetModelProviderConfigData, GetModelProviderConfigError, GetModelProviderConfigResponse, GetOrgApiKeyData, GetOrgApiKeyError, GetOrgApiKeyResponse, GetOrgOverviewData, GetOrgOverviewError, GetOrgOverviewResponse, GetOrgUsageData, GetOrgUsageError, GetOrgUsageResponse, GetOrgUsageTimeseriesData, GetOrgUsageTimeseriesError, GetOrgUsageTimeseriesResponse, GetProjectAvailableSecretData, GetProjectAvailableSecretError, GetProjectAvailableSecretResponse, GetProjectMachinePoolGrantData, GetProjectMachinePoolGrantError, GetProjectMachinePoolGrantResponse, GetProjectUsageData, GetProjectUsageError, GetProjectUsageResponse, GetSecretData, GetSecretError, GetSecretResponse, GetSkillData, GetSkillError, GetSkillResponse, GetToolCatalogData, GetToolCatalogError, GetToolCatalogResponse, InspectIntegrationGitHubInstallationsData, InspectIntegrationGitHubInstallationsError, InspectIntegrationGitHubInstallationsResponse, ListActorsData, ListActorsError, ListActorsResponse2, ListAgentInteractionsData, ListAgentInteractionsError, ListAgentInteractionsResponse2, ListAgentProfilesData, ListAgentProfilesError, ListAgentProfilesResponse2, ListAgentsData, ListAgentsError, ListAgentsResponse2, ListByoMachineDaemonTokensData, ListByoMachineDaemonTokensError, ListByoMachineDaemonTokensResponse, ListConfiguredModelsData, ListConfiguredModelsError, ListConfiguredModelsResponse, ListCronTriggersData, ListCronTriggersError, ListCronTriggersResponse2, ListEventsData, ListEventsError, ListEventsResponse, ListEventWebhooksData, ListEventWebhooksError, ListEventWebhooksResponse2, ListIntegrationDefinitionsData, ListIntegrationDefinitionsError, ListIntegrationDefinitionsResponse2, ListIntegrationGitHubRepositoriesData, ListIntegrationGitHubRepositoriesError, ListIntegrationGitHubRepositoriesResponse, ListIntegrationsData, ListIntegrationsError, ListIntegrationsResponse2, ListIntegrationSubscriptionsData, ListIntegrationSubscriptionsError, ListIntegrationSubscriptionsResponse2, ListMachinePoolsData, ListMachinePoolsError, ListMachinePoolsResponse2, ListMcpServersData, ListMcpServersError, ListMcpServersResponse2, ListMcpServerToolsData, ListMcpServerToolsError, ListMcpServerToolsResponse, ListMemberProjectAccessData, ListMemberProjectAccessError, ListMemberProjectAccessResponse, ListMemoryFilesData, ListMemoryFilesError, ListMemoryFilesResponse, ListMemoryStoresData, ListMemoryStoresError, ListMemoryStoresResponse, ListModelProviderConfigsData, ListModelProviderConfigsError, ListModelProviderConfigsResponse, ListOrgAgentProfilesData, ListOrgAgentProfilesError, ListOrgAgentProfilesResponse, ListOrgAgentsData, ListOrgAgentsError, ListOrgAgentsResponse, ListOrganizationsData, ListOrganizationsError, ListOrganizationsResponse2, ListOrgApiKeyProjectAccessData, ListOrgApiKeyProjectAccessError, ListOrgApiKeyProjectAccessResponse, ListOrgApiKeysData, ListOrgApiKeysError, ListOrgApiKeysResponse2, ListOrgIntegrationsData, ListOrgIntegrationsError, ListOrgIntegrationsResponse, ListOrgInvitationsData, ListOrgInvitationsError, ListOrgInvitationsResponse2, ListOrgMembersData, ListOrgMembersError, ListOrgMembersResponse2, ListOrgMemoryStoresData, ListOrgMemoryStoresError, ListOrgMemoryStoresResponse, ListPendingInvitationsData, ListPendingInvitationsError, ListPendingInvitationsResponse, ListPersonalAccessTokensData, ListPersonalAccessTokensError, ListPersonalAccessTokensResponse2, ListProjectAvailableSecretsData, ListProjectAvailableSecretsError, ListProjectAvailableSecretsResponse, ListProjectAvailableSkillsData, ListProjectAvailableSkillsError, ListProjectAvailableSkillsResponse, ListProjectMachineGrantsData, ListProjectMachineGrantsError, ListProjectMachineGrantsResponse2, ListProjectMachinePoolGrantsData, ListProjectMachinePoolGrantsError, ListProjectMachinePoolGrantsResponse2, ListProjectModelGrantsData, ListProjectModelGrantsError, ListProjectModelGrantsResponse2, ListQueuedBacklogInputsData, ListQueuedBacklogInputsError, ListQueuedBacklogInputsResponse, ListSecretGrantsData, ListSecretGrantsError, ListSecretGrantsResponse2, ListSecretsData, ListSecretsError, ListSecretsResponse2, ListSkillGrantsData, ListSkillGrantsError, ListSkillGrantsResponse2, ListSkillsData, ListSkillsError, ListSkillsResponse2, ListToolCallsData, ListToolCallsError, ListToolCallsResponse2, ListTurnEventsData, ListTurnEventsError, ListTurnEventsResponse2, ListTurnsData, ListTurnsError, ListTurnsResponse, ListVisibleMachinesData, ListVisibleMachinesError, ListVisibleMachinesResponse2, ListVisibleProjectMachinesData, ListVisibleProjectMachinesError, ListVisibleProjectMachinesResponse, ListVisibleProjectsData, ListVisibleProjectsError, ListVisibleProjectsResponse, MoveQueuedBacklogInputData, MoveQueuedBacklogInputError, MoveQueuedBacklogInputResponse, PromoteQueuedInputToSteeringData, PromoteQueuedInputToSteeringError, PromoteQueuedInputToSteeringResponse, PutActorData, PutActorError, PutActorResponse, RecordMachineFailureData, RecordMachineFailureError, RecordMachineFailureResponse, RegisterMachineDaemonRuntimeData, RegisterMachineDaemonRuntimeError, RegisterMachineDaemonRuntimeResponse, RemoveMemberProjectAccessData, RemoveMemberProjectAccessError, RemoveMemberProjectAccessResponse, RemoveOrgApiKeyProjectRoleData, RemoveOrgApiKeyProjectRoleError, RemoveOrgApiKeyProjectRoleResponse, RemoveOrgMemberData, RemoveOrgMemberError, RemoveOrgMemberResponse, RenameAgentProfileData, RenameAgentProfileError, RenameAgentProfileResponse, ResolveAgentConfigToolsData, ResolveAgentConfigToolsError, ResolveAgentConfigToolsResponse, ResolveAgentInteractionData, ResolveAgentInteractionError, ResolveAgentInteractionResponse, RevokeMachineDaemonTokenData, RevokeMachineDaemonTokenError, RevokeMachineDaemonTokenResponse, RevokeOrgApiKeyData, RevokeOrgApiKeyError, RevokeOrgApiKeyResponse, RevokePersonalAccessTokenData, RevokePersonalAccessTokenError, RevokePersonalAccessTokenResponse, SetMemberProjectAccessData, SetMemberProjectAccessError, SetMemberProjectAccessResponse, SetOrgApiKeyProjectRoleData, SetOrgApiKeyProjectRoleError, SetOrgApiKeyProjectRoleResponse, SleepMachineDaemonRuntimeData, SleepMachineDaemonRuntimeError, SleepMachineDaemonRuntimeResponse, SocketMachineDaemonRuntimeData, SocketMachineDaemonRuntimeError, StartSecretMcpoAuthData, StartSecretMcpoAuthError, StartSecretMcpoAuthResponse, SubmitToolCallResultData, SubmitToolCallResultError, SubmitToolCallResultResponse2, UpdateAgentConfigData, UpdateAgentConfigError, UpdateAgentConfigResponse2, UpdateAgentProfileData, UpdateAgentProfileError, UpdateAgentProfileResponse, UpdateConfiguredModelData, UpdateConfiguredModelError, UpdateConfiguredModelResponse, UpdateCronTriggerData, UpdateCronTriggerError, UpdateCronTriggerResponse, UpdateEventWebhookData, UpdateEventWebhookError, UpdateEventWebhookResponse, UpdateIntegrationData, UpdateIntegrationError, UpdateIntegrationResponse, UpdateMachineData, UpdateMachineError, UpdateMachinePoolData, UpdateMachinePoolError, UpdateMachinePoolResponse, UpdateMachineResponse, UpdateMemoryStoreData, UpdateMemoryStoreError, UpdateMemoryStoreResponse, UpdateModelProviderConfigData, UpdateModelProviderConfigError, UpdateModelProviderConfigResponse, UpdateOrgApiKeyData, UpdateOrgApiKeyError, UpdateOrgApiKeyResponse, UpdateOrgMemberData, UpdateOrgMemberError, UpdateOrgMemberResponse, UpdateProjectMachinePoolGrantData, UpdateProjectMachinePoolGrantError, UpdateProjectMachinePoolGrantResponse, UpdateProjectModelGrantData, UpdateProjectModelGrantError, UpdateProjectModelGrantResponse, UpdateSecretData, UpdateSecretError, UpdateSecretResponse, UpdateSkillData, UpdateSkillError, UpdateSkillResponse, UploadDaemonFileData, UploadDaemonFileError, UploadDaemonFileResponse, WriteMemoryFileData, WriteMemoryFileError, WriteMemoryFileResponse } from '../types.gen';\n\nexport type QueryKey<TOptions extends Options> = [\n Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {\n _id: string;\n _infinite?: boolean;\n tags?: ReadonlyArray<string>;\n }\n];\n\nconst createQueryKey = <TOptions extends Options>(id: string, options?: TOptions, infinite?: boolean, tags?: ReadonlyArray<string>): [\n QueryKey<TOptions>[0]\n] => {\n const params: QueryKey<TOptions>[0] = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl } as QueryKey<TOptions>[0];\n if (infinite) {\n params._infinite = infinite;\n }\n if (tags) {\n params.tags = tags;\n }\n if (options?.body) {\n params.body = options.body;\n }\n if (options?.headers) {\n params.headers = options.headers;\n }\n if (options?.path) {\n params.path = options.path;\n }\n if (options?.query) {\n params.query = options.query;\n }\n return [params];\n};\n\nexport const listEventWebhooksQueryKey = (options: Options<ListEventWebhooksData>) => createQueryKey('listEventWebhooks', options);\n\n/**\n * List event webhooks for one scope\n *\n * Returns the webhooks directly attached to the requested scope, not inherited matches.\n */\nexport const listEventWebhooksOptions = (options: Options<ListEventWebhooksData>) => queryOptions<ListEventWebhooksResponse2, ListEventWebhooksError, ListEventWebhooksResponse2, ReturnType<typeof listEventWebhooksQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listEventWebhooks({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listEventWebhooksQueryKey(options)\n});\n\n/**\n * Create an event webhook\n *\n * Subscribes to future events from agents matching the scope. Each scope can have only one active webhook per URL; duplicates return 409. Matching scopes are additive. Requires project management permission.\n */\nexport const createEventWebhookMutation = (options?: Partial<Options<CreateEventWebhookData>>): UseMutationOptions<CreateEventWebhookResponse, CreateEventWebhookError, Options<CreateEventWebhookData>> => {\n const mutationOptions: UseMutationOptions<CreateEventWebhookResponse, CreateEventWebhookError, Options<CreateEventWebhookData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createEventWebhook({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete an event webhook\n *\n * Deletes the webhook and stops new deliveries and pending attempts. Requests already in flight may finish.\n */\nexport const deleteEventWebhookMutation = (options?: Partial<Options<DeleteEventWebhookData>>): UseMutationOptions<DeleteEventWebhookResponse, DeleteEventWebhookError, Options<DeleteEventWebhookData>> => {\n const mutationOptions: UseMutationOptions<DeleteEventWebhookResponse, DeleteEventWebhookError, Options<DeleteEventWebhookData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteEventWebhook({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Update event webhook settings\n *\n * Updates a webhook's URL, event filters, and signing settings. The scope cannot change. Omitted fields stay unchanged; set signing_secret_id to null to remove signing. Event filters affect newly queued deliveries; URL and signing changes also apply to pending attempts.\n */\nexport const updateEventWebhookMutation = (options?: Partial<Options<UpdateEventWebhookData>>): UseMutationOptions<UpdateEventWebhookResponse, UpdateEventWebhookError, Options<UpdateEventWebhookData>> => {\n const mutationOptions: UseMutationOptions<UpdateEventWebhookResponse, UpdateEventWebhookError, Options<UpdateEventWebhookData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateEventWebhook({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listPersonalAccessTokensQueryKey = (options?: Options<ListPersonalAccessTokensData>) => createQueryKey('listPersonalAccessTokens', options);\n\n/**\n * List the authenticated user's personal access tokens\n *\n * Items are ordered by created_at descending, then id descending.\n */\nexport const listPersonalAccessTokensOptions = (options?: Options<ListPersonalAccessTokensData>) => queryOptions<ListPersonalAccessTokensResponse2, ListPersonalAccessTokensError, ListPersonalAccessTokensResponse2, ReturnType<typeof listPersonalAccessTokensQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listPersonalAccessTokens({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listPersonalAccessTokensQueryKey(options)\n});\n\nconst createInfiniteParams = <K extends Pick<QueryKey<Options>[0], 'body' | 'headers' | 'path' | 'query'>>(queryKey: QueryKey<Options>, page: K) => {\n const params = { ...queryKey[0] };\n if (page.body) {\n params.body = {\n ...queryKey[0].body as any,\n ...page.body as any\n };\n }\n if (page.headers) {\n params.headers = {\n ...queryKey[0].headers,\n ...page.headers\n };\n }\n if (page.path) {\n params.path = {\n ...queryKey[0].path as any,\n ...page.path as any\n };\n }\n if (page.query) {\n params.query = {\n ...queryKey[0].query as any,\n ...page.query as any\n };\n }\n return params as unknown as typeof page;\n};\n\nexport const listPersonalAccessTokensInfiniteQueryKey = (options?: Options<ListPersonalAccessTokensData>): QueryKey<Options<ListPersonalAccessTokensData>> => createQueryKey('listPersonalAccessTokens', options, true);\n\n/**\n * List the authenticated user's personal access tokens\n *\n * Items are ordered by created_at descending, then id descending.\n */\nexport const listPersonalAccessTokensInfiniteOptions = (options?: Options<ListPersonalAccessTokensData>) => {\n const opts = infiniteQueryOptions<ListPersonalAccessTokensResponse2, ListPersonalAccessTokensError, InfiniteData<ListPersonalAccessTokensResponse2>, QueryKey<Options<ListPersonalAccessTokensData>>, string | Pick<QueryKey<Options<ListPersonalAccessTokensData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListPersonalAccessTokensData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listPersonalAccessTokens({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listPersonalAccessTokensInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create personal access token\n */\nexport const createPersonalAccessTokenMutation = (options?: Partial<Options<CreatePersonalAccessTokenData>>): UseMutationOptions<CreatePersonalAccessTokenResponse2, CreatePersonalAccessTokenError, Options<CreatePersonalAccessTokenData>> => {\n const mutationOptions: UseMutationOptions<CreatePersonalAccessTokenResponse2, CreatePersonalAccessTokenError, Options<CreatePersonalAccessTokenData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createPersonalAccessToken({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Revoke a personal access token\n */\nexport const revokePersonalAccessTokenMutation = (options?: Partial<Options<RevokePersonalAccessTokenData>>): UseMutationOptions<RevokePersonalAccessTokenResponse, RevokePersonalAccessTokenError, Options<RevokePersonalAccessTokenData>> => {\n const mutationOptions: UseMutationOptions<RevokePersonalAccessTokenResponse, RevokePersonalAccessTokenError, Options<RevokePersonalAccessTokenData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await revokePersonalAccessToken({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Bootstrap daemon\n */\nexport const bootstrapDaemonMutation = (options?: Partial<Options<BootstrapDaemonData>>): UseMutationOptions<BootstrapDaemonResponse2, BootstrapDaemonError, Options<BootstrapDaemonData>> => {\n const mutationOptions: UseMutationOptions<BootstrapDaemonResponse2, BootstrapDaemonError, Options<BootstrapDaemonData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await bootstrapDaemon({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Record machine failure\n */\nexport const recordMachineFailureMutation = (options?: Partial<Options<RecordMachineFailureData>>): UseMutationOptions<RecordMachineFailureResponse, RecordMachineFailureError, Options<RecordMachineFailureData>> => {\n const mutationOptions: UseMutationOptions<RecordMachineFailureResponse, RecordMachineFailureError, Options<RecordMachineFailureData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await recordMachineFailure({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listOrganizationsQueryKey = (options?: Options<ListOrganizationsData>) => createQueryKey('listOrganizations', options);\n\n/**\n * List the authenticated principal's organizations\n *\n * Users get every organization they belong to; org API keys get the organization that issued them. Items are ordered by organization name ascending.\n */\nexport const listOrganizationsOptions = (options?: Options<ListOrganizationsData>) => queryOptions<ListOrganizationsResponse2, ListOrganizationsError, ListOrganizationsResponse2, ReturnType<typeof listOrganizationsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrganizations({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrganizationsQueryKey(options)\n});\n\n/**\n * Create organization\n *\n * Creates the organization and its local default resources atomically.\n * An idempotency key determines the proposed organization ID; replaying it\n * returns the existing organization. Without a key, each request is a fresh\n * attempt. Optional default-provider provisioning begins after commit and\n * retries asynchronously without failing organization creation.\n *\n */\nexport const createOrganizationMutation = (options?: Partial<Options<CreateOrganizationData>>): UseMutationOptions<CreateOrganizationResponse2, CreateOrganizationError, Options<CreateOrganizationData>> => {\n const mutationOptions: UseMutationOptions<CreateOrganizationResponse2, CreateOrganizationError, Options<CreateOrganizationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createOrganization({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete organization\n *\n * Deletes the organization and everything in it: projects, memberships, pending invitations, profiles, integrations, machine pools and machines, model provider configs and configured models, and all skills. Agents are archived and their runtimes and queued work are stopped. Secrets are permanently deleted once machine teardown no longer needs them. Deletion fails if project agent teardown cannot complete. Only organization owners can delete an organization.\n */\nexport const deleteOrganizationMutation = (options?: Partial<Options<DeleteOrganizationData>>): UseMutationOptions<DeleteOrganizationResponse, DeleteOrganizationError, Options<DeleteOrganizationData>> => {\n const mutationOptions: UseMutationOptions<DeleteOrganizationResponse, DeleteOrganizationError, Options<DeleteOrganizationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteOrganization({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete the authenticated user's account\n *\n * Deletes the account, revokes all personal access tokens and browser sessions, removes all organization and project memberships, and releases the account's sign-in identity (emails, linked auth identities, and password credentials) so the same email can register a new account. Personal secrets and skills owned by the user are deleted with the account. Deletion is blocked while the user is the last owner of any organization (add another owner or delete the organization first), while a personal skill is referenced by an active agent's configuration, or while a personal secret is referenced by a model provider config, machine pool, or integration. Organization and project resources are unaffected, and agents, machines, and other records the user created are kept with their attribution.\n */\nexport const deleteCurrentUserMutation = (options?: Partial<Options<DeleteCurrentUserData>>): UseMutationOptions<DeleteCurrentUserResponse, DeleteCurrentUserError, Options<DeleteCurrentUserData>> => {\n const mutationOptions: UseMutationOptions<DeleteCurrentUserResponse, DeleteCurrentUserError, Options<DeleteCurrentUserData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteCurrentUser({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getCurrentUserQueryKey = (options?: Options<GetCurrentUserData>) => createQueryKey('getCurrentUser', options);\n\n/**\n * Get the authenticated user and their organizations\n */\nexport const getCurrentUserOptions = (options?: Options<GetCurrentUserData>) => queryOptions<GetCurrentUserResponse, GetCurrentUserError, GetCurrentUserResponse, ReturnType<typeof getCurrentUserQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getCurrentUser({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getCurrentUserQueryKey(options)\n});\n\nexport const listPendingInvitationsQueryKey = (options?: Options<ListPendingInvitationsData>) => createQueryKey('listPendingInvitations', options);\n\n/**\n * List pending invitations\n *\n * Items are ordered by created_at ascending, then id ascending.\n */\nexport const listPendingInvitationsOptions = (options?: Options<ListPendingInvitationsData>) => queryOptions<ListPendingInvitationsResponse, ListPendingInvitationsError, ListPendingInvitationsResponse, ReturnType<typeof listPendingInvitationsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listPendingInvitations({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listPendingInvitationsQueryKey(options)\n});\n\nexport const listPendingInvitationsInfiniteQueryKey = (options?: Options<ListPendingInvitationsData>): QueryKey<Options<ListPendingInvitationsData>> => createQueryKey('listPendingInvitations', options, true);\n\n/**\n * List pending invitations\n *\n * Items are ordered by created_at ascending, then id ascending.\n */\nexport const listPendingInvitationsInfiniteOptions = (options?: Options<ListPendingInvitationsData>) => {\n const opts = infiniteQueryOptions<ListPendingInvitationsResponse, ListPendingInvitationsError, InfiniteData<ListPendingInvitationsResponse>, QueryKey<Options<ListPendingInvitationsData>>, string | Pick<QueryKey<Options<ListPendingInvitationsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListPendingInvitationsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listPendingInvitations({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listPendingInvitationsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Accept invitation\n */\nexport const acceptInvitationMutation = (options?: Partial<Options<AcceptInvitationData>>): UseMutationOptions<AcceptInvitationResponse, AcceptInvitationError, Options<AcceptInvitationData>> => {\n const mutationOptions: UseMutationOptions<AcceptInvitationResponse, AcceptInvitationError, Options<AcceptInvitationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await acceptInvitation({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Decline invitation\n */\nexport const declineInvitationMutation = (options?: Partial<Options<DeclineInvitationData>>): UseMutationOptions<DeclineInvitationResponse, DeclineInvitationError, Options<DeclineInvitationData>> => {\n const mutationOptions: UseMutationOptions<DeclineInvitationResponse, DeclineInvitationError, Options<DeclineInvitationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await declineInvitation({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getOrgOverviewQueryKey = (options: Options<GetOrgOverviewData>) => createQueryKey('getOrgOverview', options);\n\n/**\n * Get org overview\n *\n * Returns the data backing the web app's overview page: the caller's visible projects, the most recently active agents, and the most recently updated agent profiles. Internal to the web app and subject to change without notice.\n */\nexport const getOrgOverviewOptions = (options: Options<GetOrgOverviewData>) => queryOptions<GetOrgOverviewResponse, GetOrgOverviewError, GetOrgOverviewResponse, ReturnType<typeof getOrgOverviewQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getOrgOverview({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getOrgOverviewQueryKey(options)\n});\n\nexport const getOrgUsageQueryKey = (options: Options<GetOrgUsageData>) => createQueryKey('getOrgUsage', options);\n\n/**\n * Get org usage\n *\n * Tallies model token usage and provider-reported cost across every project the caller can read in the organization, broken down by configured model. Optionally limits the tally to a time window or to a subset of those projects; including a project the caller can't read is not found.\n */\nexport const getOrgUsageOptions = (options: Options<GetOrgUsageData>) => queryOptions<GetOrgUsageResponse, GetOrgUsageError, GetOrgUsageResponse, ReturnType<typeof getOrgUsageQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getOrgUsage({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getOrgUsageQueryKey(options)\n});\n\nexport const getOrgUsageTimeseriesQueryKey = (options: Options<GetOrgUsageTimeseriesData>) => createQueryKey('getOrgUsageTimeseries', options);\n\n/**\n * Get usage timeseries\n *\n * Buckets model usage over time for one metric, optionally broken down by configured model or agent profile. Covers every project the caller can read in the organization; `project_ids` and `agent_profile_ids` narrow that scope. Buckets are calendar days, weeks (starting Monday), or months in `timezone`.\n */\nexport const getOrgUsageTimeseriesOptions = (options: Options<GetOrgUsageTimeseriesData>) => queryOptions<GetOrgUsageTimeseriesResponse, GetOrgUsageTimeseriesError, GetOrgUsageTimeseriesResponse, ReturnType<typeof getOrgUsageTimeseriesQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getOrgUsageTimeseries({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getOrgUsageTimeseriesQueryKey(options)\n});\n\nexport const listOrgAgentsQueryKey = (options: Options<ListOrgAgentsData>) => createQueryKey('listOrgAgents', options);\n\n/**\n * List agents across projects\n *\n * Lists agents in every project of the organization where the caller can read agents. Each agent carries its project_id. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgAgentsOptions = (options: Options<ListOrgAgentsData>) => queryOptions<ListOrgAgentsResponse, ListOrgAgentsError, ListOrgAgentsResponse, ReturnType<typeof listOrgAgentsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgAgents({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgAgentsQueryKey(options)\n});\n\nexport const listOrgAgentsInfiniteQueryKey = (options: Options<ListOrgAgentsData>): QueryKey<Options<ListOrgAgentsData>> => createQueryKey('listOrgAgents', options, true);\n\n/**\n * List agents across projects\n *\n * Lists agents in every project of the organization where the caller can read agents. Each agent carries its project_id. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgAgentsInfiniteOptions = (options: Options<ListOrgAgentsData>) => {\n const opts = infiniteQueryOptions<ListOrgAgentsResponse, ListOrgAgentsError, InfiniteData<ListOrgAgentsResponse>, QueryKey<Options<ListOrgAgentsData>>, string | Pick<QueryKey<Options<ListOrgAgentsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListOrgAgentsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listOrgAgents({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgAgentsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const listOrgAgentProfilesQueryKey = (options: Options<ListOrgAgentProfilesData>) => createQueryKey('listOrgAgentProfiles', options);\n\n/**\n * List agent profiles across projects\n *\n * Lists agent profiles in every project of the organization the caller can read. Each profile carries its project_id. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgAgentProfilesOptions = (options: Options<ListOrgAgentProfilesData>) => queryOptions<ListOrgAgentProfilesResponse, ListOrgAgentProfilesError, ListOrgAgentProfilesResponse, ReturnType<typeof listOrgAgentProfilesQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgAgentProfiles({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgAgentProfilesQueryKey(options)\n});\n\nexport const listOrgAgentProfilesInfiniteQueryKey = (options: Options<ListOrgAgentProfilesData>): QueryKey<Options<ListOrgAgentProfilesData>> => createQueryKey('listOrgAgentProfiles', options, true);\n\n/**\n * List agent profiles across projects\n *\n * Lists agent profiles in every project of the organization the caller can read. Each profile carries its project_id. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgAgentProfilesInfiniteOptions = (options: Options<ListOrgAgentProfilesData>) => {\n const opts = infiniteQueryOptions<ListOrgAgentProfilesResponse, ListOrgAgentProfilesError, InfiniteData<ListOrgAgentProfilesResponse>, QueryKey<Options<ListOrgAgentProfilesData>>, string | Pick<QueryKey<Options<ListOrgAgentProfilesData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListOrgAgentProfilesData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listOrgAgentProfiles({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgAgentProfilesInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const listVisibleProjectsQueryKey = (options: Options<ListVisibleProjectsData>) => createQueryKey('listVisibleProjects', options);\n\n/**\n * List visible projects\n *\n * Lists the projects the caller can access in the organization, newest first, with the caller's permissions on each.\n */\nexport const listVisibleProjectsOptions = (options: Options<ListVisibleProjectsData>) => queryOptions<ListVisibleProjectsResponse, ListVisibleProjectsError, ListVisibleProjectsResponse, ReturnType<typeof listVisibleProjectsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listVisibleProjects({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listVisibleProjectsQueryKey(options)\n});\n\nexport const listVisibleProjectsInfiniteQueryKey = (options: Options<ListVisibleProjectsData>): QueryKey<Options<ListVisibleProjectsData>> => createQueryKey('listVisibleProjects', options, true);\n\n/**\n * List visible projects\n *\n * Lists the projects the caller can access in the organization, newest first, with the caller's permissions on each.\n */\nexport const listVisibleProjectsInfiniteOptions = (options: Options<ListVisibleProjectsData>) => {\n const opts = infiniteQueryOptions<ListVisibleProjectsResponse, ListVisibleProjectsError, InfiniteData<ListVisibleProjectsResponse>, QueryKey<Options<ListVisibleProjectsData>>, string | Pick<QueryKey<Options<ListVisibleProjectsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListVisibleProjectsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listVisibleProjects({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listVisibleProjectsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create project\n *\n * Creates a project, makes the caller its admin, and returns it. The new project has no grants to organization models, machines, skills, or secrets.\n */\nexport const createProjectMutation = (options?: Partial<Options<CreateProjectData>>): UseMutationOptions<CreateProjectResponse, CreateProjectError, Options<CreateProjectData>> => {\n const mutationOptions: UseMutationOptions<CreateProjectResponse, CreateProjectError, Options<CreateProjectData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createProject({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete project\n *\n * Deletes the project, its memberships, profiles and profile versions, integrations and their interaction targets, project-owned skills and revisions, and grants owned by or targeting the project. Project-owned secrets are permanently deleted with their versions and grants. The project's agents are archived and their runtimes and queued work are stopped. Machine, machine-pool, and model grants are removed without deleting the shared machine, pool, or model. Deletion fails if agent teardown cannot complete.\n */\nexport const deleteProjectMutation = (options?: Partial<Options<DeleteProjectData>>): UseMutationOptions<DeleteProjectResponse, DeleteProjectError, Options<DeleteProjectData>> => {\n const mutationOptions: UseMutationOptions<DeleteProjectResponse, DeleteProjectError, Options<DeleteProjectData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteProject({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getProjectUsageQueryKey = (options: Options<GetProjectUsageData>) => createQueryKey('getProjectUsage', options);\n\n/**\n * Get project usage\n *\n * Tallies model token usage and provider-reported cost across every agent in the project, including subagents, broken down by configured model. Optionally limits the tally to a time window.\n */\nexport const getProjectUsageOptions = (options: Options<GetProjectUsageData>) => queryOptions<GetProjectUsageResponse, GetProjectUsageError, GetProjectUsageResponse, ReturnType<typeof getProjectUsageQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getProjectUsage({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getProjectUsageQueryKey(options)\n});\n\nexport const listOrgMembersQueryKey = (options: Options<ListOrgMembersData>) => createQueryKey('listOrgMembers', options);\n\n/**\n * List organization members\n *\n * List organization members with server-side display-name filtering, sorting, and cursor pagination.\n */\nexport const listOrgMembersOptions = (options: Options<ListOrgMembersData>) => queryOptions<ListOrgMembersResponse2, ListOrgMembersError, ListOrgMembersResponse2, ReturnType<typeof listOrgMembersQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgMembers({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgMembersQueryKey(options)\n});\n\nexport const listOrgMembersInfiniteQueryKey = (options: Options<ListOrgMembersData>): QueryKey<Options<ListOrgMembersData>> => createQueryKey('listOrgMembers', options, true);\n\n/**\n * List organization members\n *\n * List organization members with server-side display-name filtering, sorting, and cursor pagination.\n */\nexport const listOrgMembersInfiniteOptions = (options: Options<ListOrgMembersData>) => {\n const opts = infiniteQueryOptions<ListOrgMembersResponse2, ListOrgMembersError, InfiniteData<ListOrgMembersResponse2>, QueryKey<Options<ListOrgMembersData>>, string | Pick<QueryKey<Options<ListOrgMembersData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListOrgMembersData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listOrgMembers({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgMembersInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Remove org member\n *\n * Removes the user's organization membership and all project memberships in the organization. The member's personal secrets and skills in the organization are deleted with the membership. Removal is blocked when the user is the organization's last owner, while a personal skill is referenced by an active agent's configuration, or while a personal secret is referenced by a model provider config, machine pool, or integration.\n */\nexport const removeOrgMemberMutation = (options?: Partial<Options<RemoveOrgMemberData>>): UseMutationOptions<RemoveOrgMemberResponse, RemoveOrgMemberError, Options<RemoveOrgMemberData>> => {\n const mutationOptions: UseMutationOptions<RemoveOrgMemberResponse, RemoveOrgMemberError, Options<RemoveOrgMemberData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await removeOrgMember({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Update org member role\n */\nexport const updateOrgMemberMutation = (options?: Partial<Options<UpdateOrgMemberData>>): UseMutationOptions<UpdateOrgMemberResponse, UpdateOrgMemberError, Options<UpdateOrgMemberData>> => {\n const mutationOptions: UseMutationOptions<UpdateOrgMemberResponse, UpdateOrgMemberError, Options<UpdateOrgMemberData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateOrgMember({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listMemberProjectAccessQueryKey = (options: Options<ListMemberProjectAccessData>) => createQueryKey('listMemberProjectAccess', options);\n\n/**\n * List a member's explicit project role grants\n *\n * Lists the member's explicit per-project role grants. Org owners and admins implicitly have admin access to every project and will not appear here for those projects.\n */\nexport const listMemberProjectAccessOptions = (options: Options<ListMemberProjectAccessData>) => queryOptions<ListMemberProjectAccessResponse, ListMemberProjectAccessError, ListMemberProjectAccessResponse, ReturnType<typeof listMemberProjectAccessQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listMemberProjectAccess({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMemberProjectAccessQueryKey(options)\n});\n\n/**\n * Remove a member's project role grant\n *\n * Removes only the member's explicit role grant for this project. No other memberships, grants, or resources are deleted, and there are no dependency blockers.\n */\nexport const removeMemberProjectAccessMutation = (options?: Partial<Options<RemoveMemberProjectAccessData>>): UseMutationOptions<RemoveMemberProjectAccessResponse, RemoveMemberProjectAccessError, Options<RemoveMemberProjectAccessData>> => {\n const mutationOptions: UseMutationOptions<RemoveMemberProjectAccessResponse, RemoveMemberProjectAccessError, Options<RemoveMemberProjectAccessData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await removeMemberProjectAccess({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Set a member's role on a project\n *\n * Creates or updates the member's explicit role grant on the project.\n */\nexport const setMemberProjectAccessMutation = (options?: Partial<Options<SetMemberProjectAccessData>>): UseMutationOptions<SetMemberProjectAccessResponse, SetMemberProjectAccessError, Options<SetMemberProjectAccessData>> => {\n const mutationOptions: UseMutationOptions<SetMemberProjectAccessResponse, SetMemberProjectAccessError, Options<SetMemberProjectAccessData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await setMemberProjectAccess({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listOrgApiKeysQueryKey = (options: Options<ListOrgApiKeysData>) => createQueryKey('listOrgApiKeys', options);\n\n/**\n * List org API keys\n *\n * Items are ordered by created_at descending, then id descending. Revoked keys are included.\n */\nexport const listOrgApiKeysOptions = (options: Options<ListOrgApiKeysData>) => queryOptions<ListOrgApiKeysResponse2, ListOrgApiKeysError, ListOrgApiKeysResponse2, ReturnType<typeof listOrgApiKeysQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgApiKeys({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgApiKeysQueryKey(options)\n});\n\nexport const listOrgApiKeysInfiniteQueryKey = (options: Options<ListOrgApiKeysData>): QueryKey<Options<ListOrgApiKeysData>> => createQueryKey('listOrgApiKeys', options, true);\n\n/**\n * List org API keys\n *\n * Items are ordered by created_at descending, then id descending. Revoked keys are included.\n */\nexport const listOrgApiKeysInfiniteOptions = (options: Options<ListOrgApiKeysData>) => {\n const opts = infiniteQueryOptions<ListOrgApiKeysResponse2, ListOrgApiKeysError, InfiniteData<ListOrgApiKeysResponse2>, QueryKey<Options<ListOrgApiKeysData>>, string | Pick<QueryKey<Options<ListOrgApiKeysData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListOrgApiKeysData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listOrgApiKeys({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgApiKeysInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create org API key\n *\n * Mints an org API key. The plaintext token is returned once and never stored.\n */\nexport const createOrgApiKeyMutation = (options?: Partial<Options<CreateOrgApiKeyData>>): UseMutationOptions<CreateOrgApiKeyResponse2, CreateOrgApiKeyError, Options<CreateOrgApiKeyData>> => {\n const mutationOptions: UseMutationOptions<CreateOrgApiKeyResponse2, CreateOrgApiKeyError, Options<CreateOrgApiKeyData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createOrgApiKey({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getOrgApiKeyQueryKey = (options: Options<GetOrgApiKeyData>) => createQueryKey('getOrgApiKey', options);\n\n/**\n * Get an org API key\n */\nexport const getOrgApiKeyOptions = (options: Options<GetOrgApiKeyData>) => queryOptions<GetOrgApiKeyResponse, GetOrgApiKeyError, GetOrgApiKeyResponse, ReturnType<typeof getOrgApiKeyQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getOrgApiKey({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getOrgApiKeyQueryKey(options)\n});\n\n/**\n * Update an org API key\n *\n * Renames the key and/or changes its org role. Revoked keys cannot be updated.\n */\nexport const updateOrgApiKeyMutation = (options?: Partial<Options<UpdateOrgApiKeyData>>): UseMutationOptions<UpdateOrgApiKeyResponse, UpdateOrgApiKeyError, Options<UpdateOrgApiKeyData>> => {\n const mutationOptions: UseMutationOptions<UpdateOrgApiKeyResponse, UpdateOrgApiKeyError, Options<UpdateOrgApiKeyData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateOrgApiKey({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Revoke an org API key\n *\n * Terminally revokes the key and removes its org and project roles. Idempotent.\n */\nexport const revokeOrgApiKeyMutation = (options?: Partial<Options<RevokeOrgApiKeyData>>): UseMutationOptions<RevokeOrgApiKeyResponse, RevokeOrgApiKeyError, Options<RevokeOrgApiKeyData>> => {\n const mutationOptions: UseMutationOptions<RevokeOrgApiKeyResponse, RevokeOrgApiKeyError, Options<RevokeOrgApiKeyData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await revokeOrgApiKey({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listOrgApiKeyProjectAccessQueryKey = (options: Options<ListOrgApiKeyProjectAccessData>) => createQueryKey('listOrgApiKeyProjectAccess', options);\n\n/**\n * List an org API key's explicit project role grants\n *\n * Lists the key's explicit per-project role grants. Keys with the admin org role implicitly have admin access to every project and will not appear here for those projects.\n */\nexport const listOrgApiKeyProjectAccessOptions = (options: Options<ListOrgApiKeyProjectAccessData>) => queryOptions<ListOrgApiKeyProjectAccessResponse, ListOrgApiKeyProjectAccessError, ListOrgApiKeyProjectAccessResponse, ReturnType<typeof listOrgApiKeyProjectAccessQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgApiKeyProjectAccess({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgApiKeyProjectAccessQueryKey(options)\n});\n\n/**\n * Remove an org API key's project role grant\n */\nexport const removeOrgApiKeyProjectRoleMutation = (options?: Partial<Options<RemoveOrgApiKeyProjectRoleData>>): UseMutationOptions<RemoveOrgApiKeyProjectRoleResponse, RemoveOrgApiKeyProjectRoleError, Options<RemoveOrgApiKeyProjectRoleData>> => {\n const mutationOptions: UseMutationOptions<RemoveOrgApiKeyProjectRoleResponse, RemoveOrgApiKeyProjectRoleError, Options<RemoveOrgApiKeyProjectRoleData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await removeOrgApiKeyProjectRole({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Set an org API key's role on a project\n *\n * Creates or updates the key's explicit role grant on the project.\n */\nexport const setOrgApiKeyProjectRoleMutation = (options?: Partial<Options<SetOrgApiKeyProjectRoleData>>): UseMutationOptions<SetOrgApiKeyProjectRoleResponse, SetOrgApiKeyProjectRoleError, Options<SetOrgApiKeyProjectRoleData>> => {\n const mutationOptions: UseMutationOptions<SetOrgApiKeyProjectRoleResponse, SetOrgApiKeyProjectRoleError, Options<SetOrgApiKeyProjectRoleData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await setOrgApiKeyProjectRole({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listOrgInvitationsQueryKey = (options: Options<ListOrgInvitationsData>) => createQueryKey('listOrgInvitations', options);\n\n/**\n * List org invitations\n *\n * Every listed invitation is pending: accepting, declining, revoking, or organization deletion removes the invitation. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgInvitationsOptions = (options: Options<ListOrgInvitationsData>) => queryOptions<ListOrgInvitationsResponse2, ListOrgInvitationsError, ListOrgInvitationsResponse2, ReturnType<typeof listOrgInvitationsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgInvitations({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgInvitationsQueryKey(options)\n});\n\nexport const listOrgInvitationsInfiniteQueryKey = (options: Options<ListOrgInvitationsData>): QueryKey<Options<ListOrgInvitationsData>> => createQueryKey('listOrgInvitations', options, true);\n\n/**\n * List org invitations\n *\n * Every listed invitation is pending: accepting, declining, revoking, or organization deletion removes the invitation. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgInvitationsInfiniteOptions = (options: Options<ListOrgInvitationsData>) => {\n const opts = infiniteQueryOptions<ListOrgInvitationsResponse2, ListOrgInvitationsError, InfiniteData<ListOrgInvitationsResponse2>, QueryKey<Options<ListOrgInvitationsData>>, string | Pick<QueryKey<Options<ListOrgInvitationsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListOrgInvitationsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listOrgInvitations({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgInvitationsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create org invitation\n */\nexport const createOrgInvitationMutation = (options?: Partial<Options<CreateOrgInvitationData>>): UseMutationOptions<CreateOrgInvitationResponse, CreateOrgInvitationError, Options<CreateOrgInvitationData>> => {\n const mutationOptions: UseMutationOptions<CreateOrgInvitationResponse, CreateOrgInvitationError, Options<CreateOrgInvitationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createOrgInvitation({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete org invitation\n *\n * Deletes the pending invitation so it can no longer be accepted.\n */\nexport const deleteOrgInvitationMutation = (options?: Partial<Options<DeleteOrgInvitationData>>): UseMutationOptions<DeleteOrgInvitationResponse, DeleteOrgInvitationError, Options<DeleteOrgInvitationData>> => {\n const mutationOptions: UseMutationOptions<DeleteOrgInvitationResponse, DeleteOrgInvitationError, Options<DeleteOrgInvitationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteOrgInvitation({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listSkillsQueryKey = (options: Options<ListSkillsData>) => createQueryKey('listSkills', options);\n\n/**\n * List skills visible through ownership authority\n *\n * Items are ordered by created_at descending, then id descending. Without an owner filter, returns the deduplicated union of organization skills the caller may list, project skills the caller may list, and the caller's own user skills. Grants are managed separately and do not change ownership.\n */\nexport const listSkillsOptions = (options: Options<ListSkillsData>) => queryOptions<ListSkillsResponse2, ListSkillsError, ListSkillsResponse2, ReturnType<typeof listSkillsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listSkills({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSkillsQueryKey(options)\n});\n\nexport const listSkillsInfiniteQueryKey = (options: Options<ListSkillsData>): QueryKey<Options<ListSkillsData>> => createQueryKey('listSkills', options, true);\n\n/**\n * List skills visible through ownership authority\n *\n * Items are ordered by created_at descending, then id descending. Without an owner filter, returns the deduplicated union of organization skills the caller may list, project skills the caller may list, and the caller's own user skills. Grants are managed separately and do not change ownership.\n */\nexport const listSkillsInfiniteOptions = (options: Options<ListSkillsData>) => {\n const opts = infiniteQueryOptions<ListSkillsResponse2, ListSkillsError, InfiniteData<ListSkillsResponse2>, QueryKey<Options<ListSkillsData>>, string | Pick<QueryKey<Options<ListSkillsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListSkillsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listSkills({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSkillsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create skill\n *\n * Uploads a skill archive. If a skill with the archive's name already exists for the requested owner, the upload becomes the skill's next revision. The owner is immutable after creation.\n */\nexport const createSkillMutation = (options?: Partial<Options<CreateSkillData>>): UseMutationOptions<CreateSkillResponse, CreateSkillError, Options<CreateSkillData>> => {\n const mutationOptions: UseMutationOptions<CreateSkillResponse, CreateSkillError, Options<CreateSkillData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createSkill({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete skill\n *\n * Deletes the skill together with all of its revisions and project grants; uploaded archive content is destroyed. No other resources are deleted. Deletion is blocked while an active agent's configuration references the skill.\n */\nexport const deleteSkillMutation = (options?: Partial<Options<DeleteSkillData>>): UseMutationOptions<DeleteSkillResponse, DeleteSkillError, Options<DeleteSkillData>> => {\n const mutationOptions: UseMutationOptions<DeleteSkillResponse, DeleteSkillError, Options<DeleteSkillData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteSkill({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getSkillQueryKey = (options: Options<GetSkillData>) => createQueryKey('getSkill', options);\n\n/**\n * Get skill through ownership authority\n *\n * Returns one skill with its latest SKILL.md text and file listing.\n */\nexport const getSkillOptions = (options: Options<GetSkillData>) => queryOptions<GetSkillResponse, GetSkillError, GetSkillResponse, ReturnType<typeof getSkillQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getSkill({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getSkillQueryKey(options)\n});\n\n/**\n * Update skill by uploading a new revision\n *\n * Creates the skill's next revision from either a replacement archive or replacement SKILL.md content (which keeps every other file from the current revision). The SKILL.md frontmatter `name` must match the skill's existing name.\n */\nexport const updateSkillMutation = (options?: Partial<Options<UpdateSkillData>>): UseMutationOptions<UpdateSkillResponse, UpdateSkillError, Options<UpdateSkillData>> => {\n const mutationOptions: UseMutationOptions<UpdateSkillResponse, UpdateSkillError, Options<UpdateSkillData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateSkill({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listSkillGrantsQueryKey = (options: Options<ListSkillGrantsData>) => createQueryKey('listSkillGrants', options);\n\n/**\n * List skill grants\n *\n * Lists the projects a skill is shared with, one grant per project, most recently shared first by default.\n */\nexport const listSkillGrantsOptions = (options: Options<ListSkillGrantsData>) => queryOptions<ListSkillGrantsResponse2, ListSkillGrantsError, ListSkillGrantsResponse2, ReturnType<typeof listSkillGrantsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listSkillGrants({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSkillGrantsQueryKey(options)\n});\n\nexport const listSkillGrantsInfiniteQueryKey = (options: Options<ListSkillGrantsData>): QueryKey<Options<ListSkillGrantsData>> => createQueryKey('listSkillGrants', options, true);\n\n/**\n * List skill grants\n *\n * Lists the projects a skill is shared with, one grant per project, most recently shared first by default.\n */\nexport const listSkillGrantsInfiniteOptions = (options: Options<ListSkillGrantsData>) => {\n const opts = infiniteQueryOptions<ListSkillGrantsResponse2, ListSkillGrantsError, InfiniteData<ListSkillGrantsResponse2>, QueryKey<Options<ListSkillGrantsData>>, string | Pick<QueryKey<Options<ListSkillGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListSkillGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listSkillGrants({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSkillGrantsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create skill grant\n *\n * Shares a skill with another project so its agent configs can attach it, and returns the grant; ownership doesn't change.\n */\nexport const createSkillGrantMutation = (options?: Partial<Options<CreateSkillGrantData>>): UseMutationOptions<CreateSkillGrantResponse, CreateSkillGrantError, Options<CreateSkillGrantData>> => {\n const mutationOptions: UseMutationOptions<CreateSkillGrantResponse, CreateSkillGrantError, Options<CreateSkillGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createSkillGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete skill grant\n *\n * Deletes only this project grant. The skill, its revisions, the target project, and other grants are retained, and there are no dependency blockers.\n */\nexport const deleteSkillGrantMutation = (options?: Partial<Options<DeleteSkillGrantData>>): UseMutationOptions<DeleteSkillGrantResponse, DeleteSkillGrantError, Options<DeleteSkillGrantData>> => {\n const mutationOptions: UseMutationOptions<DeleteSkillGrantResponse, DeleteSkillGrantError, Options<DeleteSkillGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteSkillGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listProjectAvailableSkillsQueryKey = (options: Options<ListProjectAvailableSkillsData>) => createQueryKey('listProjectAvailableSkills', options);\n\n/**\n * List skills available to project\n *\n * Includes directly owned project skills and granted skills, ordered by created_at descending, then id descending.\n */\nexport const listProjectAvailableSkillsOptions = (options: Options<ListProjectAvailableSkillsData>) => queryOptions<ListProjectAvailableSkillsResponse, ListProjectAvailableSkillsError, ListProjectAvailableSkillsResponse, ReturnType<typeof listProjectAvailableSkillsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listProjectAvailableSkills({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectAvailableSkillsQueryKey(options)\n});\n\nexport const listProjectAvailableSkillsInfiniteQueryKey = (options: Options<ListProjectAvailableSkillsData>): QueryKey<Options<ListProjectAvailableSkillsData>> => createQueryKey('listProjectAvailableSkills', options, true);\n\n/**\n * List skills available to project\n *\n * Includes directly owned project skills and granted skills, ordered by created_at descending, then id descending.\n */\nexport const listProjectAvailableSkillsInfiniteOptions = (options: Options<ListProjectAvailableSkillsData>) => {\n const opts = infiniteQueryOptions<ListProjectAvailableSkillsResponse, ListProjectAvailableSkillsError, InfiniteData<ListProjectAvailableSkillsResponse>, QueryKey<Options<ListProjectAvailableSkillsData>>, string | Pick<QueryKey<Options<ListProjectAvailableSkillsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListProjectAvailableSkillsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listProjectAvailableSkills({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectAvailableSkillsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const listOrgMemoryStoresQueryKey = (options: Options<ListOrgMemoryStoresData>) => createQueryKey('listOrgMemoryStores', options);\n\n/**\n * List memory stores across projects\n *\n * Lists memory stores in every project of the organization the caller can read. Each store carries its project_id. Items are ordered by name, then id.\n */\nexport const listOrgMemoryStoresOptions = (options: Options<ListOrgMemoryStoresData>) => queryOptions<ListOrgMemoryStoresResponse, ListOrgMemoryStoresError, ListOrgMemoryStoresResponse, ReturnType<typeof listOrgMemoryStoresQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgMemoryStores({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgMemoryStoresQueryKey(options)\n});\n\nexport const listOrgMemoryStoresInfiniteQueryKey = (options: Options<ListOrgMemoryStoresData>): QueryKey<Options<ListOrgMemoryStoresData>> => createQueryKey('listOrgMemoryStores', options, true);\n\n/**\n * List memory stores across projects\n *\n * Lists memory stores in every project of the organization the caller can read. Each store carries its project_id. Items are ordered by name, then id.\n */\nexport const listOrgMemoryStoresInfiniteOptions = (options: Options<ListOrgMemoryStoresData>) => {\n const opts = infiniteQueryOptions<ListOrgMemoryStoresResponse, ListOrgMemoryStoresError, InfiniteData<ListOrgMemoryStoresResponse>, QueryKey<Options<ListOrgMemoryStoresData>>, string | Pick<QueryKey<Options<ListOrgMemoryStoresData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListOrgMemoryStoresData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listOrgMemoryStores({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgMemoryStoresInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const listMemoryStoresQueryKey = (options: Options<ListMemoryStoresData>) => createQueryKey('listMemoryStores', options);\n\n/**\n * List memory stores\n */\nexport const listMemoryStoresOptions = (options: Options<ListMemoryStoresData>) => queryOptions<ListMemoryStoresResponse, ListMemoryStoresError, ListMemoryStoresResponse, ReturnType<typeof listMemoryStoresQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listMemoryStores({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMemoryStoresQueryKey(options)\n});\n\nexport const listMemoryStoresInfiniteQueryKey = (options: Options<ListMemoryStoresData>): QueryKey<Options<ListMemoryStoresData>> => createQueryKey('listMemoryStores', options, true);\n\n/**\n * List memory stores\n */\nexport const listMemoryStoresInfiniteOptions = (options: Options<ListMemoryStoresData>) => {\n const opts = infiniteQueryOptions<ListMemoryStoresResponse, ListMemoryStoresError, InfiniteData<ListMemoryStoresResponse>, QueryKey<Options<ListMemoryStoresData>>, string | Pick<QueryKey<Options<ListMemoryStoresData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListMemoryStoresData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listMemoryStores({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMemoryStoresInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create memory store\n */\nexport const createMemoryStoreMutation = (options?: Partial<Options<CreateMemoryStoreData>>): UseMutationOptions<CreateMemoryStoreResponse, CreateMemoryStoreError, Options<CreateMemoryStoreData>> => {\n const mutationOptions: UseMutationOptions<CreateMemoryStoreResponse, CreateMemoryStoreError, Options<CreateMemoryStoreData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createMemoryStore({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete memory store\n */\nexport const deleteMemoryStoreMutation = (options?: Partial<Options<DeleteMemoryStoreData>>): UseMutationOptions<DeleteMemoryStoreResponse, DeleteMemoryStoreError, Options<DeleteMemoryStoreData>> => {\n const mutationOptions: UseMutationOptions<DeleteMemoryStoreResponse, DeleteMemoryStoreError, Options<DeleteMemoryStoreData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteMemoryStore({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getMemoryStoreQueryKey = (options: Options<GetMemoryStoreData>) => createQueryKey('getMemoryStore', options);\n\n/**\n * Get memory store\n */\nexport const getMemoryStoreOptions = (options: Options<GetMemoryStoreData>) => queryOptions<GetMemoryStoreResponse, GetMemoryStoreError, GetMemoryStoreResponse, ReturnType<typeof getMemoryStoreQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getMemoryStore({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getMemoryStoreQueryKey(options)\n});\n\n/**\n * Update memory store\n */\nexport const updateMemoryStoreMutation = (options?: Partial<Options<UpdateMemoryStoreData>>): UseMutationOptions<UpdateMemoryStoreResponse, UpdateMemoryStoreError, Options<UpdateMemoryStoreData>> => {\n const mutationOptions: UseMutationOptions<UpdateMemoryStoreResponse, UpdateMemoryStoreError, Options<UpdateMemoryStoreData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateMemoryStore({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listMemoryFilesQueryKey = (options: Options<ListMemoryFilesData>) => createQueryKey('listMemoryFiles', options);\n\n/**\n * List memory files\n *\n * List a directory's immediate children in name order. Omit path to list the store root.\n */\nexport const listMemoryFilesOptions = (options: Options<ListMemoryFilesData>) => queryOptions<ListMemoryFilesResponse, ListMemoryFilesError, ListMemoryFilesResponse, ReturnType<typeof listMemoryFilesQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listMemoryFiles({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMemoryFilesQueryKey(options)\n});\n\nexport const listMemoryFilesInfiniteQueryKey = (options: Options<ListMemoryFilesData>): QueryKey<Options<ListMemoryFilesData>> => createQueryKey('listMemoryFiles', options, true);\n\n/**\n * List memory files\n *\n * List a directory's immediate children in name order. Omit path to list the store root.\n */\nexport const listMemoryFilesInfiniteOptions = (options: Options<ListMemoryFilesData>) => {\n const opts = infiniteQueryOptions<ListMemoryFilesResponse, ListMemoryFilesError, InfiniteData<ListMemoryFilesResponse>, QueryKey<Options<ListMemoryFilesData>>, string | Pick<QueryKey<Options<ListMemoryFilesData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListMemoryFilesData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listMemoryFiles({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMemoryFilesInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Delete memory file\n */\nexport const deleteMemoryFileMutation = (options?: Partial<Options<DeleteMemoryFileData>>): UseMutationOptions<DeleteMemoryFileResponse, DeleteMemoryFileError, Options<DeleteMemoryFileData>> => {\n const mutationOptions: UseMutationOptions<DeleteMemoryFileResponse, DeleteMemoryFileError, Options<DeleteMemoryFileData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteMemoryFile({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const downloadMemoryFileQueryKey = (options: Options<DownloadMemoryFileData>) => createQueryKey('downloadMemoryFile', options);\n\n/**\n * Download memory file\n */\nexport const downloadMemoryFileOptions = (options: Options<DownloadMemoryFileData>) => queryOptions<DownloadMemoryFileResponse, DownloadMemoryFileError, DownloadMemoryFileResponse, ReturnType<typeof downloadMemoryFileQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await downloadMemoryFile({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: downloadMemoryFileQueryKey(options)\n});\n\n/**\n * Write memory file\n */\nexport const writeMemoryFileMutation = (options?: Partial<Options<WriteMemoryFileData>>): UseMutationOptions<WriteMemoryFileResponse, WriteMemoryFileError, Options<WriteMemoryFileData>> => {\n const mutationOptions: UseMutationOptions<WriteMemoryFileResponse, WriteMemoryFileError, Options<WriteMemoryFileData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await writeMemoryFile({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listSecretsQueryKey = (options: Options<ListSecretsData>) => createQueryKey('listSecrets', options);\n\n/**\n * List secrets visible through ownership authority\n *\n * Items are ordered by created_at descending, then id descending. Without an owner filter, returns the deduplicated union of organization secrets the caller may list, project secrets the caller may list, and the caller's own user secrets.\n */\nexport const listSecretsOptions = (options: Options<ListSecretsData>) => queryOptions<ListSecretsResponse2, ListSecretsError, ListSecretsResponse2, ReturnType<typeof listSecretsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listSecrets({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSecretsQueryKey(options)\n});\n\nexport const listSecretsInfiniteQueryKey = (options: Options<ListSecretsData>): QueryKey<Options<ListSecretsData>> => createQueryKey('listSecrets', options, true);\n\n/**\n * List secrets visible through ownership authority\n *\n * Items are ordered by created_at descending, then id descending. Without an owner filter, returns the deduplicated union of organization secrets the caller may list, project secrets the caller may list, and the caller's own user secrets.\n */\nexport const listSecretsInfiniteOptions = (options: Options<ListSecretsData>) => {\n const opts = infiniteQueryOptions<ListSecretsResponse2, ListSecretsError, InfiniteData<ListSecretsResponse2>, QueryKey<Options<ListSecretsData>>, string | Pick<QueryKey<Options<ListSecretsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListSecretsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listSecrets({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSecretsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create secret\n *\n * Creates an encrypted secret holding one credential and returns its metadata; the value is never returned. owner sets whether the organization, a project, or the caller owns it.\n */\nexport const createSecretMutation = (options?: Partial<Options<CreateSecretData>>): UseMutationOptions<CreateSecretResponse, CreateSecretError, Options<CreateSecretData>> => {\n const mutationOptions: UseMutationOptions<CreateSecretResponse, CreateSecretError, Options<CreateSecretData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createSecret({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Start MCP OAuth for a new secret\n */\nexport const startSecretMcpoAuthMutation = (options?: Partial<Options<StartSecretMcpoAuthData>>): UseMutationOptions<StartSecretMcpoAuthResponse, StartSecretMcpoAuthError, Options<StartSecretMcpoAuthData>> => {\n const mutationOptions: UseMutationOptions<StartSecretMcpoAuthResponse, StartSecretMcpoAuthError, Options<StartSecretMcpoAuthData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await startSecretMcpoAuth({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete secret\n *\n * Deletes the secret and permanently destroys all of its versions and project grants; the ciphertext cannot be recovered. Deletion is blocked while the secret is the credential of a model provider config, machine pool, or integration.\n */\nexport const deleteSecretMutation = (options?: Partial<Options<DeleteSecretData>>): UseMutationOptions<DeleteSecretResponse, DeleteSecretError, Options<DeleteSecretData>> => {\n const mutationOptions: UseMutationOptions<DeleteSecretResponse, DeleteSecretError, Options<DeleteSecretData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteSecret({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getSecretQueryKey = (options: Options<GetSecretData>) => createQueryKey('getSecret', options);\n\n/**\n * Get secret through ownership authority\n *\n * Returns a secret's owner, kind, name, and current version; the secret value is never returned.\n */\nexport const getSecretOptions = (options: Options<GetSecretData>) => queryOptions<GetSecretResponse, GetSecretError, GetSecretResponse, ReturnType<typeof getSecretQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getSecret({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getSecretQueryKey(options)\n});\n\n/**\n * Update secret metadata\n *\n * Renames a secret or replaces its metadata, and returns the updated secret without its value. The value, kind, and owner can't be changed here. References use the secret ID, so renaming doesn't break them.\n */\nexport const updateSecretMutation = (options?: Partial<Options<UpdateSecretData>>): UseMutationOptions<UpdateSecretResponse, UpdateSecretError, Options<UpdateSecretData>> => {\n const mutationOptions: UseMutationOptions<UpdateSecretResponse, UpdateSecretError, Options<UpdateSecretData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateSecret({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Create secret version\n */\nexport const createSecretVersionMutation = (options?: Partial<Options<CreateSecretVersionData>>): UseMutationOptions<CreateSecretVersionResponse, CreateSecretVersionError, Options<CreateSecretVersionData>> => {\n const mutationOptions: UseMutationOptions<CreateSecretVersionResponse, CreateSecretVersionError, Options<CreateSecretVersionData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createSecretVersion({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listSecretGrantsQueryKey = (options: Options<ListSecretGrantsData>) => createQueryKey('listSecretGrants', options);\n\n/**\n * List secret grants\n *\n * Lists the projects a secret is shared with, one grant per project, most recently shared first by default.\n */\nexport const listSecretGrantsOptions = (options: Options<ListSecretGrantsData>) => queryOptions<ListSecretGrantsResponse2, ListSecretGrantsError, ListSecretGrantsResponse2, ReturnType<typeof listSecretGrantsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listSecretGrants({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSecretGrantsQueryKey(options)\n});\n\nexport const listSecretGrantsInfiniteQueryKey = (options: Options<ListSecretGrantsData>): QueryKey<Options<ListSecretGrantsData>> => createQueryKey('listSecretGrants', options, true);\n\n/**\n * List secret grants\n *\n * Lists the projects a secret is shared with, one grant per project, most recently shared first by default.\n */\nexport const listSecretGrantsInfiniteOptions = (options: Options<ListSecretGrantsData>) => {\n const opts = infiniteQueryOptions<ListSecretGrantsResponse2, ListSecretGrantsError, InfiniteData<ListSecretGrantsResponse2>, QueryKey<Options<ListSecretGrantsData>>, string | Pick<QueryKey<Options<ListSecretGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListSecretGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listSecretGrants({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listSecretGrantsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create secret grant\n *\n * Shares a secret with another project so that project's resources can use it, and returns the grant; ownership doesn't change.\n */\nexport const createSecretGrantMutation = (options?: Partial<Options<CreateSecretGrantData>>): UseMutationOptions<CreateSecretGrantResponse, CreateSecretGrantError, Options<CreateSecretGrantData>> => {\n const mutationOptions: UseMutationOptions<CreateSecretGrantResponse, CreateSecretGrantError, Options<CreateSecretGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createSecretGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete secret grant\n *\n * Deletes only this project grant. The secret, its versions, the target project, and other grants are retained, and there are no dependency blockers.\n */\nexport const deleteSecretGrantMutation = (options?: Partial<Options<DeleteSecretGrantData>>): UseMutationOptions<DeleteSecretGrantResponse, DeleteSecretGrantError, Options<DeleteSecretGrantData>> => {\n const mutationOptions: UseMutationOptions<DeleteSecretGrantResponse, DeleteSecretGrantError, Options<DeleteSecretGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteSecretGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Resolve agent config tools\n *\n * Returns configured built-in and custom tools plus missing machine, skill, subagent, and retrieval defaults, including disabled entries. Accepts YAML/JSON source. Source previews validate tool-related fields only; they do not validate whether the config can be saved or launched. Does not resolve contextual integration tools, discover MCP tools, or change any configuration.\n */\nexport const resolveAgentConfigToolsMutation = (options?: Partial<Options<ResolveAgentConfigToolsData>>): UseMutationOptions<ResolveAgentConfigToolsResponse, ResolveAgentConfigToolsError, Options<ResolveAgentConfigToolsData>> => {\n const mutationOptions: UseMutationOptions<ResolveAgentConfigToolsResponse, ResolveAgentConfigToolsError, Options<ResolveAgentConfigToolsData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await resolveAgentConfigTools({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Create agent config\n *\n * Compiles and saves an immutable agent config (instruction, model, tools, machine_sources, and more) from YAML or JSON and returns it. Sending the same source again returns the existing config, as long as its names still resolve to the same resources.\n */\nexport const createAgentConfigMutation = (options?: Partial<Options<CreateAgentConfigData>>): UseMutationOptions<CreateAgentConfigResponse, CreateAgentConfigError, Options<CreateAgentConfigData>> => {\n const mutationOptions: UseMutationOptions<CreateAgentConfigResponse, CreateAgentConfigError, Options<CreateAgentConfigData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createAgentConfig({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getToolCatalogQueryKey = (options?: Options<GetToolCatalogData>) => createQueryKey('getToolCatalog', options);\n\n/**\n * Get tool catalog\n *\n * Lists the built-in tools agent configs can use, with each tool's description and permission settings, plus the permission modes for custom and MCP tools.\n */\nexport const getToolCatalogOptions = (options?: Options<GetToolCatalogData>) => queryOptions<GetToolCatalogResponse, GetToolCatalogError, GetToolCatalogResponse, ReturnType<typeof getToolCatalogQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getToolCatalog({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getToolCatalogQueryKey(options)\n});\n\nexport const listMcpServersQueryKey = (options?: Options<ListMcpServersData>) => createQueryKey('listMcpServers', options);\n\n/**\n * Search the MCP server registry\n *\n * Search the API's snapshot of the public MCP registry. The snapshot only holds active servers that publish a `streamable-http` remote. Results are ranked by relevance when `q` is set, otherwise ordered by name.\n */\nexport const listMcpServersOptions = (options?: Options<ListMcpServersData>) => queryOptions<ListMcpServersResponse2, ListMcpServersError, ListMcpServersResponse2, ReturnType<typeof listMcpServersQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listMcpServers({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMcpServersQueryKey(options)\n});\n\nexport const listMcpServersInfiniteQueryKey = (options?: Options<ListMcpServersData>): QueryKey<Options<ListMcpServersData>> => createQueryKey('listMcpServers', options, true);\n\n/**\n * Search the MCP server registry\n *\n * Search the API's snapshot of the public MCP registry. The snapshot only holds active servers that publish a `streamable-http` remote. Results are ranked by relevance when `q` is set, otherwise ordered by name.\n */\nexport const listMcpServersInfiniteOptions = (options?: Options<ListMcpServersData>) => {\n const opts = infiniteQueryOptions<ListMcpServersResponse2, ListMcpServersError, InfiniteData<ListMcpServersResponse2>, QueryKey<Options<ListMcpServersData>>, string | Pick<QueryKey<Options<ListMcpServersData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListMcpServersData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listMcpServers({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMcpServersInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * List an MCP server's tools\n *\n * Connects to a remote MCP server over streamable HTTP, negotiates the protocol version (stateless `server/discover` first, falling back to the `initialize` handshake for session-based servers), and returns the server's `tools/list` result. The request is not stored; use it to preview which tools a server exposes before referencing it from an agent config. Authentication mirrors the agent config `mcp_servers.<key>.auth` shape and resolves secrets available to the project. When the server does not speak MCP, the API responds 422 without an `auth` hint. When the server or its authorization server does not respond or fails, including a malformed MCP response or a JSON-RPC internal error from the server, the API responds 424; retrying may succeed once the server recovers. When the authorization server rejects the configured OAuth secret, the API responds 422 with an `oauth` hint so the caller can log in again. When Omnara times out reading or storing discovery state, the API responds 503. When the server rejects the connection with HTTP 401 or 403, the API probes the server's authorization requirements and responds 422 with an `auth` hint — `oauth` when the server advertises an OAuth authorization server, `bearer` when it expects a token but advertises no OAuth metadata. If that probe fails for a non-transient reason, the 422 carries no `auth` hint.\n */\nexport const listMcpServerToolsMutation = (options?: Partial<Options<ListMcpServerToolsData>>): UseMutationOptions<ListMcpServerToolsResponse, ListMcpServerToolsError, Options<ListMcpServerToolsData>> => {\n const mutationOptions: UseMutationOptions<ListMcpServerToolsResponse, ListMcpServerToolsError, Options<ListMcpServerToolsData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await listMcpServerTools({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getAgentConfigQueryKey = (options: Options<GetAgentConfigData>) => createQueryKey('getAgentConfig', options);\n\n/**\n * Get agent config\n *\n * Returns one agent config: its compiled definition with names resolved to IDs, and its source if it was saved with one. Configs Omnara derives on its own, such as those for subagents and integration launches, have no source.\n */\nexport const getAgentConfigOptions = (options: Options<GetAgentConfigData>) => queryOptions<GetAgentConfigResponse, GetAgentConfigError, GetAgentConfigResponse, ReturnType<typeof getAgentConfigQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getAgentConfig({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getAgentConfigQueryKey(options)\n});\n\nexport const getAgentConfigGeneratedSourceQueryKey = (options: Options<GetAgentConfigGeneratedSourceData>) => createQueryKey('getAgentConfigGeneratedSource', options);\n\n/**\n * Get generated agent config source\n *\n * Rebuilds a source from the config's compiled_definition, for configs saved without a source.\n */\nexport const getAgentConfigGeneratedSourceOptions = (options: Options<GetAgentConfigGeneratedSourceData>) => queryOptions<GetAgentConfigGeneratedSourceResponse, GetAgentConfigGeneratedSourceError, GetAgentConfigGeneratedSourceResponse, ReturnType<typeof getAgentConfigGeneratedSourceQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getAgentConfigGeneratedSource({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getAgentConfigGeneratedSourceQueryKey(options)\n});\n\nexport const listAgentProfilesQueryKey = (options: Options<ListAgentProfilesData>) => createQueryKey('listAgentProfiles', options);\n\n/**\n * List agent profiles\n *\n * Lists the project's agent profiles, newest first by default, filterable by name. Items include a summary of each profile's current config, not its full compiled definition.\n */\nexport const listAgentProfilesOptions = (options: Options<ListAgentProfilesData>) => queryOptions<ListAgentProfilesResponse2, ListAgentProfilesError, ListAgentProfilesResponse2, ReturnType<typeof listAgentProfilesQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listAgentProfiles({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listAgentProfilesQueryKey(options)\n});\n\nexport const listAgentProfilesInfiniteQueryKey = (options: Options<ListAgentProfilesData>): QueryKey<Options<ListAgentProfilesData>> => createQueryKey('listAgentProfiles', options, true);\n\n/**\n * List agent profiles\n *\n * Lists the project's agent profiles, newest first by default, filterable by name. Items include a summary of each profile's current config, not its full compiled definition.\n */\nexport const listAgentProfilesInfiniteOptions = (options: Options<ListAgentProfilesData>) => {\n const opts = infiniteQueryOptions<ListAgentProfilesResponse2, ListAgentProfilesError, InfiniteData<ListAgentProfilesResponse2>, QueryKey<Options<ListAgentProfilesData>>, string | Pick<QueryKey<Options<ListAgentProfilesData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListAgentProfilesData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listAgentProfiles({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listAgentProfilesInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create agent profile\n *\n * Creates a named profile that points at an agent config and returns the profile with its current config.\n */\nexport const createAgentProfileMutation = (options?: Partial<Options<CreateAgentProfileData>>): UseMutationOptions<CreateAgentProfileResponse, CreateAgentProfileError, Options<CreateAgentProfileData>> => {\n const mutationOptions: UseMutationOptions<CreateAgentProfileResponse, CreateAgentProfileError, Options<CreateAgentProfileData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createAgentProfile({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete agent profile\n *\n * Deletes the profile, all of its profile versions, and any cron triggers targeting the profile. Agents launched from the profile are retained and keep running: each agent holds an immutable snapshot of the configuration it was launched with, so its reference to the profile becomes historical provenance only. Integration settings may retain the public profile ID; future launches fail as unavailable until those settings reference an available profile.\n */\nexport const deleteAgentProfileMutation = (options?: Partial<Options<DeleteAgentProfileData>>): UseMutationOptions<DeleteAgentProfileResponse, DeleteAgentProfileError, Options<DeleteAgentProfileData>> => {\n const mutationOptions: UseMutationOptions<DeleteAgentProfileResponse, DeleteAgentProfileError, Options<DeleteAgentProfileData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteAgentProfile({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getAgentProfileQueryKey = (options: Options<GetAgentProfileData>) => createQueryKey('getAgentProfile', options);\n\n/**\n * Get agent profile\n *\n * Returns one agent profile with its current config, current_config_id, and current_generation.\n */\nexport const getAgentProfileOptions = (options: Options<GetAgentProfileData>) => queryOptions<GetAgentProfileResponse, GetAgentProfileError, GetAgentProfileResponse, ReturnType<typeof getAgentProfileQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getAgentProfile({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getAgentProfileQueryKey(options)\n});\n\n/**\n * Rename agent profile\n *\n * Renames an agent profile without changing its config. Agents and cron triggers reference the profile by ID and keep working, but configs that name the profile under subagents must use the new name the next time they're compiled.\n */\nexport const renameAgentProfileMutation = (options?: Partial<Options<RenameAgentProfileData>>): UseMutationOptions<RenameAgentProfileResponse, RenameAgentProfileError, Options<RenameAgentProfileData>> => {\n const mutationOptions: UseMutationOptions<RenameAgentProfileResponse, RenameAgentProfileError, Options<RenameAgentProfileData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await renameAgentProfile({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getAgentProfileUsageQueryKey = (options: Options<GetAgentProfileUsageData>) => createQueryKey('getAgentProfileUsage', options);\n\n/**\n * Get agent profile usage\n *\n * Tallies model token usage and provider-reported cost across the top-level agents launched from this profile, broken down by configured model. Usage from subagents those agents spawned is included only when `include_subagents` is true. Optionally limits the tally to a time window.\n */\nexport const getAgentProfileUsageOptions = (options: Options<GetAgentProfileUsageData>) => queryOptions<GetAgentProfileUsageResponse, GetAgentProfileUsageError, GetAgentProfileUsageResponse, ReturnType<typeof getAgentProfileUsageQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getAgentProfileUsage({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getAgentProfileUsageQueryKey(options)\n});\n\n/**\n * Update agent profile\n *\n * Points a profile at a different agent config. Existing agents keep their current config; agents launched from the profile afterward use the new one. Fails with 409 unless expected_current_config_id matches the profile's current config.\n */\nexport const updateAgentProfileMutation = (options?: Partial<Options<UpdateAgentProfileData>>): UseMutationOptions<UpdateAgentProfileResponse, UpdateAgentProfileError, Options<UpdateAgentProfileData>> => {\n const mutationOptions: UseMutationOptions<UpdateAgentProfileResponse, UpdateAgentProfileError, Options<UpdateAgentProfileData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateAgentProfile({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Connect an integration through OAuth\n *\n * Starts OAuth for this integration (currently Slack). The callback pins the integration and setup revision, records verified credentials, and returns integration_oauth=success and integration_id to the supplied local return_to route. It requires a browser session for the initiating user and current project management access. Replayed, stale, or deleted-integration callbacks are rejected.\n */\nexport const createIntegrationOAuthSetupMutation = (options?: Partial<Options<CreateIntegrationOAuthSetupData>>): UseMutationOptions<CreateIntegrationOAuthSetupResponse, CreateIntegrationOAuthSetupError, Options<CreateIntegrationOAuthSetupData>> => {\n const mutationOptions: UseMutationOptions<CreateIntegrationOAuthSetupResponse, CreateIntegrationOAuthSetupError, Options<CreateIntegrationOAuthSetupData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createIntegrationOAuthSetup({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Create a Slack provider app and connect it to an Omnara integration\n *\n * Creates a provider-side Slack app using the supplied configuration token, name and optional icon, then starts OAuth for this saved Omnara integration. The callback activates this integration only. It never creates another Omnara integration or changes launcher settings.\n */\nexport const createIntegrationSlackSetupMutation = (options?: Partial<Options<CreateIntegrationSlackSetupData>>): UseMutationOptions<CreateIntegrationSlackSetupResponse, CreateIntegrationSlackSetupError, Options<CreateIntegrationSlackSetupData>> => {\n const mutationOptions: UseMutationOptions<CreateIntegrationSlackSetupResponse, CreateIntegrationSlackSetupError, Options<CreateIntegrationSlackSetupData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createIntegrationSlackSetup({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Start registration of a customer-owned GitHub App\n *\n * Starts guided registration on github.com for a never-connected GitHub integration. Requires a browser session and project management access. Submit manifest as a JSON-encoded form field to registration_url. The callback saves a project credential secret and redirects to the canonical integration page with github_setup=credentials_saved and credential_secret_id (a public secret ID). It does not connect an installation or change launcher settings.\n */\nexport const createIntegrationGitHubSetupMutation = (options?: Partial<Options<CreateIntegrationGitHubSetupData>>): UseMutationOptions<CreateIntegrationGitHubSetupResponse, CreateIntegrationGitHubSetupError, Options<CreateIntegrationGitHubSetupData>> => {\n const mutationOptions: UseMutationOptions<CreateIntegrationGitHubSetupResponse, CreateIntegrationGitHubSetupError, Options<CreateIntegrationGitHubSetupData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createIntegrationGitHubSetup({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Inspect installations of a customer-owned GitHub App\n *\n * Verifies the supplied project-available GitHub credential secret using App authentication and returns one bounded page of installations. Requires a browser session and project management access. Inspection does not connect or change this integration. Explicit confirmation uses ConfigureIntegration with the returned provider_app_id, selected installation ID, credential secret ID and current expected setup revision. A saved secret remains usable while organization approval is pending; there is no expiring continuation. Guided links support github.com only.\n */\nexport const inspectIntegrationGitHubInstallationsMutation = (options?: Partial<Options<InspectIntegrationGitHubInstallationsData>>): UseMutationOptions<InspectIntegrationGitHubInstallationsResponse, InspectIntegrationGitHubInstallationsError, Options<InspectIntegrationGitHubInstallationsData>> => {\n const mutationOptions: UseMutationOptions<InspectIntegrationGitHubInstallationsResponse, InspectIntegrationGitHubInstallationsError, Options<InspectIntegrationGitHubInstallationsData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await inspectIntegrationGitHubInstallations({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listCronTriggersQueryKey = (options: Options<ListCronTriggersData>) => createQueryKey('listCronTriggers', options);\n\n/**\n * List cron triggers\n *\n * Lists the project's cron triggers, newest first by default, filterable by name, agent, profile, or integration. Each item includes its schedule and next_fire_at.\n */\nexport const listCronTriggersOptions = (options: Options<ListCronTriggersData>) => queryOptions<ListCronTriggersResponse2, ListCronTriggersError, ListCronTriggersResponse2, ReturnType<typeof listCronTriggersQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listCronTriggers({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listCronTriggersQueryKey(options)\n});\n\nexport const listCronTriggersInfiniteQueryKey = (options: Options<ListCronTriggersData>): QueryKey<Options<ListCronTriggersData>> => createQueryKey('listCronTriggers', options, true);\n\n/**\n * List cron triggers\n *\n * Lists the project's cron triggers, newest first by default, filterable by name, agent, profile, or integration. Each item includes its schedule and next_fire_at.\n */\nexport const listCronTriggersInfiniteOptions = (options: Options<ListCronTriggersData>) => {\n const opts = infiniteQueryOptions<ListCronTriggersResponse2, ListCronTriggersError, InfiniteData<ListCronTriggersResponse2>, QueryKey<Options<ListCronTriggersData>>, string | Pick<QueryKey<Options<ListCronTriggersData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListCronTriggersData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listCronTriggers({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listCronTriggersInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create cron trigger\n *\n * Creates a cron trigger that fires on a schedule. A trigger targeting an agent profile launches a new agent from the profile's current config on each firing; a trigger targeting an agent sends an input to that agent. Missed firings are coalesced, matching standard cron behavior: if one or more scheduled times pass while firing is delayed, the trigger fires once for the oldest missed time and then resumes its schedule from the current time, without retroactively firing for the other missed times.\n */\nexport const createCronTriggerMutation = (options?: Partial<Options<CreateCronTriggerData>>): UseMutationOptions<CreateCronTriggerResponse, CreateCronTriggerError, Options<CreateCronTriggerData>> => {\n const mutationOptions: UseMutationOptions<CreateCronTriggerResponse, CreateCronTriggerError, Options<CreateCronTriggerData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createCronTrigger({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete cron trigger\n *\n * Deletes a cron trigger so it never fires again; there is no undo. Agents it already launched keep running.\n */\nexport const deleteCronTriggerMutation = (options?: Partial<Options<DeleteCronTriggerData>>): UseMutationOptions<DeleteCronTriggerResponse, DeleteCronTriggerError, Options<DeleteCronTriggerData>> => {\n const mutationOptions: UseMutationOptions<DeleteCronTriggerResponse, DeleteCronTriggerError, Options<DeleteCronTriggerData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteCronTrigger({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getCronTriggerQueryKey = (options: Options<GetCronTriggerData>) => createQueryKey('getCronTrigger', options);\n\n/**\n * Get cron trigger\n *\n * Returns one cron trigger: its target, schedule, timezone, message template, enabled flag, and firing state (last_fired_at, next_fire_at, and any failure since the last successful firing).\n */\nexport const getCronTriggerOptions = (options: Options<GetCronTriggerData>) => queryOptions<GetCronTriggerResponse, GetCronTriggerError, GetCronTriggerResponse, ReturnType<typeof getCronTriggerQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getCronTrigger({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getCronTriggerQueryKey(options)\n});\n\n/**\n * Update cron trigger\n *\n * Updates the schedule, message template, or enabled state. The target is immutable; delete the trigger and create a new one to retarget.\n */\nexport const updateCronTriggerMutation = (options?: Partial<Options<UpdateCronTriggerData>>): UseMutationOptions<UpdateCronTriggerResponse, UpdateCronTriggerError, Options<UpdateCronTriggerData>> => {\n const mutationOptions: UseMutationOptions<UpdateCronTriggerResponse, UpdateCronTriggerError, Options<UpdateCronTriggerData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateCronTrigger({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listAgentsQueryKey = (options: Options<ListAgentsData>) => createQueryKey('listAgents', options);\n\n/**\n * List agents\n *\n * Lists the project's agents with their current activity, newest first by default. Archived agents and subagents are excluded unless requested.\n */\nexport const listAgentsOptions = (options: Options<ListAgentsData>) => queryOptions<ListAgentsResponse2, ListAgentsError, ListAgentsResponse2, ReturnType<typeof listAgentsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listAgents({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listAgentsQueryKey(options)\n});\n\nexport const listAgentsInfiniteQueryKey = (options: Options<ListAgentsData>): QueryKey<Options<ListAgentsData>> => createQueryKey('listAgents', options, true);\n\n/**\n * List agents\n *\n * Lists the project's agents with their current activity, newest first by default. Archived agents and subagents are excluded unless requested.\n */\nexport const listAgentsInfiniteOptions = (options: Options<ListAgentsData>) => {\n const opts = infiniteQueryOptions<ListAgentsResponse2, ListAgentsError, InfiniteData<ListAgentsResponse2>, QueryKey<Options<ListAgentsData>>, string | Pick<QueryKey<Options<ListAgentsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListAgentsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listAgents({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listAgentsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create agent\n *\n * Launch from a pinned config, optionally adding agent-local integration tools, subscriptions and interaction handlers and admitting an attributed initial text input in the same transaction. Adding integration capabilities requires project management permission; launching an existing config requires agent operate permission. Reusing an idempotency key returns the current agent even if the retry body differs. The retry body is not applied and integration references are not resolved again.\n */\nexport const createAgentMutation = (options?: Partial<Options<CreateAgentData>>): UseMutationOptions<CreateAgentResponse, CreateAgentError, Options<CreateAgentData>> => {\n const mutationOptions: UseMutationOptions<CreateAgentResponse, CreateAgentError, Options<CreateAgentData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createAgent({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getAgentQueryKey = (options: Options<GetAgentData>) => createQueryKey('getAgent', options);\n\n/**\n * Get agent\n *\n * Returns one agent's state, model, profile, current config ID, activity (running, waiting_on_interaction, idle, or archived), attached machines, and MCP connection states. The conversation isn't included.\n */\nexport const getAgentOptions = (options: Options<GetAgentData>) => queryOptions<GetAgentResponse2, GetAgentError, GetAgentResponse2, ReturnType<typeof getAgentQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getAgent({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getAgentQueryKey(options)\n});\n\nexport const getAgentUsageQueryKey = (options: Options<GetAgentUsageData>) => createQueryKey('getAgentUsage', options);\n\n/**\n * Get agent usage\n *\n * Tallies this agent's model token usage and provider-reported cost, broken down by configured model. Optionally limits the tally to a time window.\n */\nexport const getAgentUsageOptions = (options: Options<GetAgentUsageData>) => queryOptions<GetAgentUsageResponse, GetAgentUsageError, GetAgentUsageResponse, ReturnType<typeof getAgentUsageQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getAgentUsage({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getAgentUsageQueryKey(options)\n});\n\n/**\n * Archive agent\n *\n * Archives the agent: requests cancellation of its active runtime, cancels queued inputs and affected processes, removes its pending wakeup, releases explicit machine bindings, deletes pooled machines created for the agent, and deletes cron triggers targeting the agent. The agent and its full event history stay readable by id; archived agents leave listings. The agent's profile and configuration are retained, as are explicitly attached BYO machines. Archiving an already-archived agent is a no-op that returns the agent unchanged.\n */\nexport const archiveAgentMutation = (options?: Partial<Options<ArchiveAgentData>>): UseMutationOptions<ArchiveAgentResponse, ArchiveAgentError, Options<ArchiveAgentData>> => {\n const mutationOptions: UseMutationOptions<ArchiveAgentResponse, ArchiveAgentError, Options<ArchiveAgentData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await archiveAgent({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Update agent config\n *\n * Replaces an active agent's config without restarting its conversation and returns the new agent_config. Model, instruction, and tool changes apply at the agent's next model call; machine changes apply immediately, stopping processes on removed machines and deleting the agent's machines from removed pools. Send the complete config, not a patch.\n */\nexport const updateAgentConfigMutation = (options?: Partial<Options<UpdateAgentConfigData>>): UseMutationOptions<UpdateAgentConfigResponse2, UpdateAgentConfigError, Options<UpdateAgentConfigData>> => {\n const mutationOptions: UseMutationOptions<UpdateAgentConfigResponse2, UpdateAgentConfigError, Options<UpdateAgentConfigData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateAgentConfig({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Create agent input\n *\n * Sends a message to an agent and returns the stored input. Queued messages (the default) wait until the agent is ready for new work; steering messages reach it at its next model call.\n */\nexport const createAgentInputMutation = (options?: Partial<Options<CreateAgentInputData>>): UseMutationOptions<CreateAgentInputResponse, CreateAgentInputError, Options<CreateAgentInputData>> => {\n const mutationOptions: UseMutationOptions<CreateAgentInputResponse, CreateAgentInputError, Options<CreateAgentInputData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createAgentInput({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listToolCallsQueryKey = (options: Options<ListToolCallsData>) => createQueryKey('listToolCalls', options);\n\n/**\n * List tool calls\n *\n * Items are ordered by created_at ascending, then id ascending.\n */\nexport const listToolCallsOptions = (options: Options<ListToolCallsData>) => queryOptions<ListToolCallsResponse2, ListToolCallsError, ListToolCallsResponse2, ReturnType<typeof listToolCallsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listToolCalls({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listToolCallsQueryKey(options)\n});\n\nexport const listToolCallsInfiniteQueryKey = (options: Options<ListToolCallsData>): QueryKey<Options<ListToolCallsData>> => createQueryKey('listToolCalls', options, true);\n\n/**\n * List tool calls\n *\n * Items are ordered by created_at ascending, then id ascending.\n */\nexport const listToolCallsInfiniteOptions = (options: Options<ListToolCallsData>) => {\n const opts = infiniteQueryOptions<ListToolCallsResponse2, ListToolCallsError, InfiniteData<ListToolCallsResponse2>, QueryKey<Options<ListToolCallsData>>, string | Pick<QueryKey<Options<ListToolCallsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListToolCallsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listToolCalls({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listToolCallsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Submit a result for a ready custom tool call\n *\n * Only ready custom tool calls accept externally supplied results. The first accepted result completes the call. Any later submission, or a result for a non-custom tool call, returns 409.\n */\nexport const submitToolCallResultMutation = (options?: Partial<Options<SubmitToolCallResultData>>): UseMutationOptions<SubmitToolCallResultResponse2, SubmitToolCallResultError, Options<SubmitToolCallResultData>> => {\n const mutationOptions: UseMutationOptions<SubmitToolCallResultResponse2, SubmitToolCallResultError, Options<SubmitToolCallResultData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await submitToolCallResult({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listTurnsQueryKey = (options: Options<ListTurnsData>) => createQueryKey('listTurns', options);\n\n/**\n * List turns\n *\n * Returns turns newest first. Use the returned next_before_turn_sequence as before_turn_sequence to fetch older turns.\n */\nexport const listTurnsOptions = (options: Options<ListTurnsData>) => queryOptions<ListTurnsResponse, ListTurnsError, ListTurnsResponse, ReturnType<typeof listTurnsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listTurns({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listTurnsQueryKey(options)\n});\n\nexport const listTurnEventsQueryKey = (options: Options<ListTurnEventsData>) => createQueryKey('listTurnEvents', options);\n\n/**\n * List turn events\n *\n * Returns one older event page for a turn, ordered chronologically within the page. Use the returned next_before_sequence as before_sequence to fetch older events.\n */\nexport const listTurnEventsOptions = (options: Options<ListTurnEventsData>) => queryOptions<ListTurnEventsResponse2, ListTurnEventsError, ListTurnEventsResponse2, ReturnType<typeof listTurnEventsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listTurnEvents({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listTurnEventsQueryKey(options)\n});\n\nexport const listEventsQueryKey = (options: Options<ListEventsData>) => createQueryKey('listEvents', options);\n\n/**\n * List events\n *\n * Returns one page of agent events, chronological within the page. Forward pagination (after_sequence) walks from a known boundary toward the present using next_after_sequence. Backward pagination (before_sequence) starts at the latest events and walks toward the beginning using next_before_sequence; passing before_sequence takes precedence over after_sequence.\n */\nexport const listEventsOptions = (options: Options<ListEventsData>) => queryOptions<ListEventsResponse, ListEventsError, ListEventsResponse, ReturnType<typeof listEventsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listEvents({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listEventsQueryKey(options)\n});\n\n/**\n * Cancel agent\n *\n * Stops the agent's current turn: cancels its unfinished tool calls and open interactions, stops processes whose run_command hasn't returned yet, and discards pending steering messages. The agent stays active and keeps its queued messages, and processes whose run_command already returned keep running. Returns affected false and changes nothing when no turn is in progress.\n */\nexport const cancelAgentMutation = (options?: Partial<Options<CancelAgentData>>): UseMutationOptions<CancelAgentResponse2, CancelAgentError, Options<CancelAgentData>> => {\n const mutationOptions: UseMutationOptions<CancelAgentResponse2, CancelAgentError, Options<CancelAgentData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await cancelAgent({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listAgentInteractionsQueryKey = (options: Options<ListAgentInteractionsData>) => createQueryKey('listAgentInteractions', options);\n\n/**\n * List agent interactions\n *\n * Lists an agent's permission prompts and ask_question questions, oldest first, with each one's form and answers. state filters by open, resolved, or canceled.\n */\nexport const listAgentInteractionsOptions = (options: Options<ListAgentInteractionsData>) => queryOptions<ListAgentInteractionsResponse2, ListAgentInteractionsError, ListAgentInteractionsResponse2, ReturnType<typeof listAgentInteractionsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listAgentInteractions({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listAgentInteractionsQueryKey(options)\n});\n\nexport const listAgentInteractionsInfiniteQueryKey = (options: Options<ListAgentInteractionsData>): QueryKey<Options<ListAgentInteractionsData>> => createQueryKey('listAgentInteractions', options, true);\n\n/**\n * List agent interactions\n *\n * Lists an agent's permission prompts and ask_question questions, oldest first, with each one's form and answers. state filters by open, resolved, or canceled.\n */\nexport const listAgentInteractionsInfiniteOptions = (options: Options<ListAgentInteractionsData>) => {\n const opts = infiniteQueryOptions<ListAgentInteractionsResponse2, ListAgentInteractionsError, InfiniteData<ListAgentInteractionsResponse2>, QueryKey<Options<ListAgentInteractionsData>>, string | Pick<QueryKey<Options<ListAgentInteractionsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListAgentInteractionsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listAgentInteractions({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listAgentInteractionsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Resolve agent interaction\n *\n * Answers an open permission prompt or question so the paused agent resumes, and returns the resolved interaction. Send one answer per question with zero-based option_indices; permission prompts use 0 for Allow and 1 for Deny.\n */\nexport const resolveAgentInteractionMutation = (options?: Partial<Options<ResolveAgentInteractionData>>): UseMutationOptions<ResolveAgentInteractionResponse, ResolveAgentInteractionError, Options<ResolveAgentInteractionData>> => {\n const mutationOptions: UseMutationOptions<ResolveAgentInteractionResponse, ResolveAgentInteractionError, Options<ResolveAgentInteractionData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await resolveAgentInteraction({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listQueuedBacklogInputsQueryKey = (options: Options<ListQueuedBacklogInputsData>) => createQueryKey('listQueuedBacklogInputs', options);\n\n/**\n * List waiting backlog inputs\n *\n * Steering inputs are listed first, followed by queued inputs. Each group is ordered by input rank, queued_at ascending, then id ascending.\n */\nexport const listQueuedBacklogInputsOptions = (options: Options<ListQueuedBacklogInputsData>) => queryOptions<ListQueuedBacklogInputsResponse, ListQueuedBacklogInputsError, ListQueuedBacklogInputsResponse, ReturnType<typeof listQueuedBacklogInputsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listQueuedBacklogInputs({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listQueuedBacklogInputsQueryKey(options)\n});\n\nexport const listQueuedBacklogInputsInfiniteQueryKey = (options: Options<ListQueuedBacklogInputsData>): QueryKey<Options<ListQueuedBacklogInputsData>> => createQueryKey('listQueuedBacklogInputs', options, true);\n\n/**\n * List waiting backlog inputs\n *\n * Steering inputs are listed first, followed by queued inputs. Each group is ordered by input rank, queued_at ascending, then id ascending.\n */\nexport const listQueuedBacklogInputsInfiniteOptions = (options: Options<ListQueuedBacklogInputsData>) => {\n const opts = infiniteQueryOptions<ListQueuedBacklogInputsResponse, ListQueuedBacklogInputsError, InfiniteData<ListQueuedBacklogInputsResponse>, QueryKey<Options<ListQueuedBacklogInputsData>>, string | Pick<QueryKey<Options<ListQueuedBacklogInputsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListQueuedBacklogInputsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listQueuedBacklogInputs({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listQueuedBacklogInputsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Cancel queued backlog input\n */\nexport const cancelQueuedBacklogInputMutation = (options?: Partial<Options<CancelQueuedBacklogInputData>>): UseMutationOptions<CancelQueuedBacklogInputResponse, CancelQueuedBacklogInputError, Options<CancelQueuedBacklogInputData>> => {\n const mutationOptions: UseMutationOptions<CancelQueuedBacklogInputResponse, CancelQueuedBacklogInputError, Options<CancelQueuedBacklogInputData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await cancelQueuedBacklogInput({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Move queued backlog input\n */\nexport const moveQueuedBacklogInputMutation = (options?: Partial<Options<MoveQueuedBacklogInputData>>): UseMutationOptions<MoveQueuedBacklogInputResponse, MoveQueuedBacklogInputError, Options<MoveQueuedBacklogInputData>> => {\n const mutationOptions: UseMutationOptions<MoveQueuedBacklogInputResponse, MoveQueuedBacklogInputError, Options<MoveQueuedBacklogInputData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await moveQueuedBacklogInput({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Promote queued input to steering\n */\nexport const promoteQueuedInputToSteeringMutation = (options?: Partial<Options<PromoteQueuedInputToSteeringData>>): UseMutationOptions<PromoteQueuedInputToSteeringResponse, PromoteQueuedInputToSteeringError, Options<PromoteQueuedInputToSteeringData>> => {\n const mutationOptions: UseMutationOptions<PromoteQueuedInputToSteeringResponse, PromoteQueuedInputToSteeringError, Options<PromoteQueuedInputToSteeringData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await promoteQueuedInputToSteering({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Demote steering input to queued\n */\nexport const demoteSteeringInputToQueuedMutation = (options?: Partial<Options<DemoteSteeringInputToQueuedData>>): UseMutationOptions<DemoteSteeringInputToQueuedResponse, DemoteSteeringInputToQueuedError, Options<DemoteSteeringInputToQueuedData>> => {\n const mutationOptions: UseMutationOptions<DemoteSteeringInputToQueuedResponse, DemoteSteeringInputToQueuedError, Options<DemoteSteeringInputToQueuedData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await demoteSteeringInputToQueued({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getArtifactQueryKey = (options: Options<GetArtifactData>) => createQueryKey('getArtifact', options);\n\n/**\n * Get artifact\n */\nexport const getArtifactOptions = (options: Options<GetArtifactData>) => queryOptions<GetArtifactResponse, GetArtifactError, GetArtifactResponse, ReturnType<typeof getArtifactQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getArtifact({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getArtifactQueryKey(options)\n});\n\nexport const getArtifactContentQueryKey = (options: Options<GetArtifactContentData>) => createQueryKey('getArtifactContent', options);\n\n/**\n * Get artifact content\n */\nexport const getArtifactContentOptions = (options: Options<GetArtifactContentData>) => queryOptions<GetArtifactContentResponse, GetArtifactContentError, GetArtifactContentResponse, ReturnType<typeof getArtifactContentQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getArtifactContent({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getArtifactContentQueryKey(options)\n});\n\nexport const listVisibleProjectMachinesQueryKey = (options: Options<ListVisibleProjectMachinesData>) => createQueryKey('listVisibleProjectMachines', options);\n\n/**\n * List visible project machines\n *\n * Items are ordered by machine created_at descending, then machine id descending.\n */\nexport const listVisibleProjectMachinesOptions = (options: Options<ListVisibleProjectMachinesData>) => queryOptions<ListVisibleProjectMachinesResponse, ListVisibleProjectMachinesError, ListVisibleProjectMachinesResponse, ReturnType<typeof listVisibleProjectMachinesQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listVisibleProjectMachines({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listVisibleProjectMachinesQueryKey(options)\n});\n\nexport const listVisibleProjectMachinesInfiniteQueryKey = (options: Options<ListVisibleProjectMachinesData>): QueryKey<Options<ListVisibleProjectMachinesData>> => createQueryKey('listVisibleProjectMachines', options, true);\n\n/**\n * List visible project machines\n *\n * Items are ordered by machine created_at descending, then machine id descending.\n */\nexport const listVisibleProjectMachinesInfiniteOptions = (options: Options<ListVisibleProjectMachinesData>) => {\n const opts = infiniteQueryOptions<ListVisibleProjectMachinesResponse, ListVisibleProjectMachinesError, InfiniteData<ListVisibleProjectMachinesResponse>, QueryKey<Options<ListVisibleProjectMachinesData>>, string | Pick<QueryKey<Options<ListVisibleProjectMachinesData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListVisibleProjectMachinesData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listVisibleProjectMachines({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listVisibleProjectMachinesInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const listProjectMachineGrantsQueryKey = (options: Options<ListProjectMachineGrantsData>) => createQueryKey('listProjectMachineGrants', options);\n\n/**\n * List project machine grants\n *\n * Lists explicit machine grants that can be deleted directly. Pool-derived machine access is managed through project machine pool grants.\n */\nexport const listProjectMachineGrantsOptions = (options: Options<ListProjectMachineGrantsData>) => queryOptions<ListProjectMachineGrantsResponse2, ListProjectMachineGrantsError, ListProjectMachineGrantsResponse2, ReturnType<typeof listProjectMachineGrantsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listProjectMachineGrants({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectMachineGrantsQueryKey(options)\n});\n\nexport const listProjectMachineGrantsInfiniteQueryKey = (options: Options<ListProjectMachineGrantsData>): QueryKey<Options<ListProjectMachineGrantsData>> => createQueryKey('listProjectMachineGrants', options, true);\n\n/**\n * List project machine grants\n *\n * Lists explicit machine grants that can be deleted directly. Pool-derived machine access is managed through project machine pool grants.\n */\nexport const listProjectMachineGrantsInfiniteOptions = (options: Options<ListProjectMachineGrantsData>) => {\n const opts = infiniteQueryOptions<ListProjectMachineGrantsResponse2, ListProjectMachineGrantsError, InfiniteData<ListProjectMachineGrantsResponse2>, QueryKey<Options<ListProjectMachineGrantsData>>, string | Pick<QueryKey<Options<ListProjectMachineGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListProjectMachineGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listProjectMachineGrants({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectMachineGrantsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create project machine grant\n *\n * Lets a project's agent configs use one BYO machine by name and returns the grant with the machine's record. Pooled machines can't be granted this way and return 404.\n */\nexport const createProjectMachineGrantMutation = (options?: Partial<Options<CreateProjectMachineGrantData>>): UseMutationOptions<CreateProjectMachineGrantResponse2, CreateProjectMachineGrantError, Options<CreateProjectMachineGrantData>> => {\n const mutationOptions: UseMutationOptions<CreateProjectMachineGrantResponse2, CreateProjectMachineGrantError, Options<CreateProjectMachineGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createProjectMachineGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete project machine grant\n *\n * Removes the project's access to the machine. Processes that depended on the grant are stopped. The machine itself is retained, and there are no dependency blockers.\n */\nexport const deleteProjectMachineGrantMutation = (options?: Partial<Options<DeleteProjectMachineGrantData>>): UseMutationOptions<DeleteProjectMachineGrantResponse, DeleteProjectMachineGrantError, Options<DeleteProjectMachineGrantData>> => {\n const mutationOptions: UseMutationOptions<DeleteProjectMachineGrantResponse, DeleteProjectMachineGrantError, Options<DeleteProjectMachineGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteProjectMachineGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listProjectAvailableSecretsQueryKey = (options: Options<ListProjectAvailableSecretsData>) => createQueryKey('listProjectAvailableSecrets', options);\n\n/**\n * List secrets available to project\n *\n * Includes directly owned and granted secrets, ordered by created_at descending, then id descending.\n */\nexport const listProjectAvailableSecretsOptions = (options: Options<ListProjectAvailableSecretsData>) => queryOptions<ListProjectAvailableSecretsResponse, ListProjectAvailableSecretsError, ListProjectAvailableSecretsResponse, ReturnType<typeof listProjectAvailableSecretsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listProjectAvailableSecrets({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectAvailableSecretsQueryKey(options)\n});\n\nexport const listProjectAvailableSecretsInfiniteQueryKey = (options: Options<ListProjectAvailableSecretsData>): QueryKey<Options<ListProjectAvailableSecretsData>> => createQueryKey('listProjectAvailableSecrets', options, true);\n\n/**\n * List secrets available to project\n *\n * Includes directly owned and granted secrets, ordered by created_at descending, then id descending.\n */\nexport const listProjectAvailableSecretsInfiniteOptions = (options: Options<ListProjectAvailableSecretsData>) => {\n const opts = infiniteQueryOptions<ListProjectAvailableSecretsResponse, ListProjectAvailableSecretsError, InfiniteData<ListProjectAvailableSecretsResponse>, QueryKey<Options<ListProjectAvailableSecretsData>>, string | Pick<QueryKey<Options<ListProjectAvailableSecretsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListProjectAvailableSecretsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listProjectAvailableSecrets({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectAvailableSecretsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const getProjectAvailableSecretQueryKey = (options: Options<GetProjectAvailableSecretData>) => createQueryKey('getProjectAvailableSecret', options);\n\n/**\n * Get secret available to project\n */\nexport const getProjectAvailableSecretOptions = (options: Options<GetProjectAvailableSecretData>) => queryOptions<GetProjectAvailableSecretResponse, GetProjectAvailableSecretError, GetProjectAvailableSecretResponse, ReturnType<typeof getProjectAvailableSecretQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getProjectAvailableSecret({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getProjectAvailableSecretQueryKey(options)\n});\n\nexport const listActorsQueryKey = (options: Options<ListActorsData>) => createQueryKey('listActors', options);\n\n/**\n * List project actors\n *\n * Items are ordered by created_at ascending, then id ascending.\n */\nexport const listActorsOptions = (options: Options<ListActorsData>) => queryOptions<ListActorsResponse2, ListActorsError, ListActorsResponse2, ReturnType<typeof listActorsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listActors({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listActorsQueryKey(options)\n});\n\nexport const listActorsInfiniteQueryKey = (options: Options<ListActorsData>): QueryKey<Options<ListActorsData>> => createQueryKey('listActors', options, true);\n\n/**\n * List project actors\n *\n * Items are ordered by created_at ascending, then id ascending.\n */\nexport const listActorsInfiniteOptions = (options: Options<ListActorsData>) => {\n const opts = infiniteQueryOptions<ListActorsResponse2, ListActorsError, InfiniteData<ListActorsResponse2>, QueryKey<Options<ListActorsData>>, string | Pick<QueryKey<Options<ListActorsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListActorsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listActors({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listActorsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Upsert an external actor\n *\n * Upserts by (provider_tenant_id, provider_user_id). Omitted attributes keep their stored values; provided attributes are overwritten, including empty values. An unchanged actor is not rewritten. Actors written through this endpoint always have the external provider.\n */\nexport const putActorMutation = (options?: Partial<Options<PutActorData>>): UseMutationOptions<PutActorResponse, PutActorError, Options<PutActorData>> => {\n const mutationOptions: UseMutationOptions<PutActorResponse, PutActorError, Options<PutActorData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await putActor({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getActorQueryKey = (options: Options<GetActorData>) => createQueryKey('getActor', options);\n\n/**\n * Get a project actor\n */\nexport const getActorOptions = (options: Options<GetActorData>) => queryOptions<GetActorResponse, GetActorError, GetActorResponse, ReturnType<typeof getActorQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getActor({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getActorQueryKey(options)\n});\n\nexport const listVisibleMachinesQueryKey = (options: Options<ListVisibleMachinesData>) => createQueryKey('listVisibleMachines', options);\n\n/**\n * List visible machines\n *\n * Lists the machines the caller can see, both BYO and pooled, newest first by default, with each one's connection state. Items are summaries without execution defaults or metadata.\n */\nexport const listVisibleMachinesOptions = (options: Options<ListVisibleMachinesData>) => queryOptions<ListVisibleMachinesResponse2, ListVisibleMachinesError, ListVisibleMachinesResponse2, ReturnType<typeof listVisibleMachinesQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listVisibleMachines({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listVisibleMachinesQueryKey(options)\n});\n\nexport const listVisibleMachinesInfiniteQueryKey = (options: Options<ListVisibleMachinesData>): QueryKey<Options<ListVisibleMachinesData>> => createQueryKey('listVisibleMachines', options, true);\n\n/**\n * List visible machines\n *\n * Lists the machines the caller can see, both BYO and pooled, newest first by default, with each one's connection state. Items are summaries without execution defaults or metadata.\n */\nexport const listVisibleMachinesInfiniteOptions = (options: Options<ListVisibleMachinesData>) => {\n const opts = infiniteQueryOptions<ListVisibleMachinesResponse2, ListVisibleMachinesError, InfiniteData<ListVisibleMachinesResponse2>, QueryKey<Options<ListVisibleMachinesData>>, string | Pick<QueryKey<Options<ListVisibleMachinesData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListVisibleMachinesData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listVisibleMachines({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listVisibleMachinesInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create machine\n */\nexport const createMachineMutation = (options?: Partial<Options<CreateMachineData>>): UseMutationOptions<CreateMachineResponse, CreateMachineError, Options<CreateMachineData>> => {\n const mutationOptions: UseMutationOptions<CreateMachineResponse, CreateMachineError, Options<CreateMachineData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createMachine({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Connect a BYO machine\n *\n * Registers a machine you run yourself and returns its daemon token for installing omnarad on it; the token is shown only in this response. The machine stays offline until its daemon connects. project_ids grants it to those projects in the same call, and their agent configs reference it by display_name.\n */\nexport const connectByoMachineMutation = (options?: Partial<Options<ConnectByoMachineData>>): UseMutationOptions<ConnectByoMachineResponse2, ConnectByoMachineError, Options<ConnectByoMachineData>> => {\n const mutationOptions: UseMutationOptions<ConnectByoMachineResponse2, ConnectByoMachineError, Options<ConnectByoMachineData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await connectByoMachine({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete machine\n *\n * Deletes a BYO machine, ends its active daemon runtimes and work, revokes its daemon tokens and project grants, and releases agent bindings. Pooled machines are managed through their machine pool and cannot be deleted through this route. There are no dependency blockers for a BYO machine.\n */\nexport const deleteMachineMutation = (options?: Partial<Options<DeleteMachineData>>): UseMutationOptions<DeleteMachineResponse, DeleteMachineError, Options<DeleteMachineData>> => {\n const mutationOptions: UseMutationOptions<DeleteMachineResponse, DeleteMachineError, Options<DeleteMachineData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteMachine({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getMachineQueryKey = (options: Options<GetMachineData>) => createQueryKey('getMachine', options);\n\n/**\n * Get machine\n *\n * Returns one active machine's full record: connection state, execution defaults (secret IDs only, never values), metadata, and the latest failure report. Machines in other lifecycle states, such as pool machines still provisioning, aren't returned.\n */\nexport const getMachineOptions = (options: Options<GetMachineData>) => queryOptions<GetMachineResponse, GetMachineError, GetMachineResponse, ReturnType<typeof getMachineQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getMachine({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getMachineQueryKey(options)\n});\n\n/**\n * Update machine execution defaults\n *\n * Updates a machine's execution defaults: working directory, environment variables, and secret environment variables. env and secret_env replace the whole map, and changes apply to processes started afterward.\n */\nexport const updateMachineMutation = (options?: Partial<Options<UpdateMachineData>>): UseMutationOptions<UpdateMachineResponse, UpdateMachineError, Options<UpdateMachineData>> => {\n const mutationOptions: UseMutationOptions<UpdateMachineResponse, UpdateMachineError, Options<UpdateMachineData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateMachine({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listModelProviderConfigsQueryKey = (options: Options<ListModelProviderConfigsData>) => createQueryKey('listModelProviderConfigs', options);\n\n/**\n * List model provider configs\n *\n * List model provider configs with server-side filtering, sorting, and cursor pagination.\n */\nexport const listModelProviderConfigsOptions = (options: Options<ListModelProviderConfigsData>) => queryOptions<ListModelProviderConfigsResponse, ListModelProviderConfigsError, ListModelProviderConfigsResponse, ReturnType<typeof listModelProviderConfigsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listModelProviderConfigs({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listModelProviderConfigsQueryKey(options)\n});\n\nexport const listModelProviderConfigsInfiniteQueryKey = (options: Options<ListModelProviderConfigsData>): QueryKey<Options<ListModelProviderConfigsData>> => createQueryKey('listModelProviderConfigs', options, true);\n\n/**\n * List model provider configs\n *\n * List model provider configs with server-side filtering, sorting, and cursor pagination.\n */\nexport const listModelProviderConfigsInfiniteOptions = (options: Options<ListModelProviderConfigsData>) => {\n const opts = infiniteQueryOptions<ListModelProviderConfigsResponse, ListModelProviderConfigsError, InfiniteData<ListModelProviderConfigsResponse>, QueryKey<Options<ListModelProviderConfigsData>>, string | Pick<QueryKey<Options<ListModelProviderConfigsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListModelProviderConfigsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listModelProviderConfigs({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listModelProviderConfigsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create model provider config\n *\n * Create a model provider config, validate the configured credential where the provider exposes a validation endpoint, then probe the provider's /models endpoint. The result is returned as model_catalog; a failed probe does not fail creation.\n */\nexport const createModelProviderConfigMutation = (options?: Partial<Options<CreateModelProviderConfigData>>): UseMutationOptions<CreateModelProviderConfigResponse2, CreateModelProviderConfigError, Options<CreateModelProviderConfigData>> => {\n const mutationOptions: UseMutationOptions<CreateModelProviderConfigResponse2, CreateModelProviderConfigError, Options<CreateModelProviderConfigData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createModelProviderConfig({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete model provider config\n *\n * Deletes only the model provider config. Deletion is blocked while it has configured models. Cluster-managed provider configs cannot be deleted through this route.\n */\nexport const deleteModelProviderConfigMutation = (options?: Partial<Options<DeleteModelProviderConfigData>>): UseMutationOptions<DeleteModelProviderConfigResponse, DeleteModelProviderConfigError, Options<DeleteModelProviderConfigData>> => {\n const mutationOptions: UseMutationOptions<DeleteModelProviderConfigResponse, DeleteModelProviderConfigError, Options<DeleteModelProviderConfigData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteModelProviderConfig({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getModelProviderConfigQueryKey = (options: Options<GetModelProviderConfigData>) => createQueryKey('getModelProviderConfig', options);\n\n/**\n * Get model provider config\n *\n * Returns one model provider config's stored settings; secret values are never returned. The provider isn't contacted, so the response doesn't list its models.\n */\nexport const getModelProviderConfigOptions = (options: Options<GetModelProviderConfigData>) => queryOptions<GetModelProviderConfigResponse, GetModelProviderConfigError, GetModelProviderConfigResponse, ReturnType<typeof getModelProviderConfigQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getModelProviderConfig({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getModelProviderConfigQueryKey(options)\n});\n\n/**\n * Update model provider config\n *\n * Updates a model provider config's connection settings, such as its credential and headers, and returns the updated config; omitted fields keep their values. The credential secret is checked to exist and match auth_kind, but the provider isn't contacted, so a credential the provider rejects isn't caught here.\n */\nexport const updateModelProviderConfigMutation = (options?: Partial<Options<UpdateModelProviderConfigData>>): UseMutationOptions<UpdateModelProviderConfigResponse, UpdateModelProviderConfigError, Options<UpdateModelProviderConfigData>> => {\n const mutationOptions: UseMutationOptions<UpdateModelProviderConfigResponse, UpdateModelProviderConfigError, Options<UpdateModelProviderConfigData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateModelProviderConfig({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getModelCatalogQueryKey = (options: Options<GetModelCatalogData>) => createQueryKey('getModelCatalog', options);\n\n/**\n * Get model catalog\n *\n * Fetches the provider's live model catalog by validating the configured credential and probing the provider's /models endpoint. The call waits on the upstream provider, so it is slower than the other model provider config routes and can report failure as data.\n */\nexport const getModelCatalogOptions = (options: Options<GetModelCatalogData>) => queryOptions<GetModelCatalogResponse, GetModelCatalogError, GetModelCatalogResponse, ReturnType<typeof getModelCatalogQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getModelCatalog({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getModelCatalogQueryKey(options)\n});\n\nexport const listConfiguredModelsQueryKey = (options: Options<ListConfiguredModelsData>) => createQueryKey('listConfiguredModels', options);\n\n/**\n * List configured models\n *\n * Lists the models configured under one model provider config, newest first, with each model's slug, token limits, and reasoning support.\n */\nexport const listConfiguredModelsOptions = (options: Options<ListConfiguredModelsData>) => queryOptions<ListConfiguredModelsResponse, ListConfiguredModelsError, ListConfiguredModelsResponse, ReturnType<typeof listConfiguredModelsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listConfiguredModels({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listConfiguredModelsQueryKey(options)\n});\n\nexport const listConfiguredModelsInfiniteQueryKey = (options: Options<ListConfiguredModelsData>): QueryKey<Options<ListConfiguredModelsData>> => createQueryKey('listConfiguredModels', options, true);\n\n/**\n * List configured models\n *\n * Lists the models configured under one model provider config, newest first, with each model's slug, token limits, and reasoning support.\n */\nexport const listConfiguredModelsInfiniteOptions = (options: Options<ListConfiguredModelsData>) => {\n const opts = infiniteQueryOptions<ListConfiguredModelsResponse, ListConfiguredModelsError, InfiniteData<ListConfiguredModelsResponse>, QueryKey<Options<ListConfiguredModelsData>>, string | Pick<QueryKey<Options<ListConfiguredModelsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListConfiguredModelsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listConfiguredModels({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listConfiguredModelsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create configured model\n *\n * Adds a provider model to this provider config under the name agent configs use as model.name, and returns it. The model slug isn't checked against the provider's catalog, and no project can use the model yet.\n */\nexport const createConfiguredModelMutation = (options?: Partial<Options<CreateConfiguredModelData>>): UseMutationOptions<CreateConfiguredModelResponse, CreateConfiguredModelError, Options<CreateConfiguredModelData>> => {\n const mutationOptions: UseMutationOptions<CreateConfiguredModelResponse, CreateConfiguredModelError, Options<CreateConfiguredModelData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createConfiguredModel({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete configured model\n *\n * Deletes only the configured model. Deletion is blocked while it has active project grants. Cluster-managed configured models cannot be deleted through this route.\n */\nexport const deleteConfiguredModelMutation = (options?: Partial<Options<DeleteConfiguredModelData>>): UseMutationOptions<DeleteConfiguredModelResponse, DeleteConfiguredModelError, Options<DeleteConfiguredModelData>> => {\n const mutationOptions: UseMutationOptions<DeleteConfiguredModelResponse, DeleteConfiguredModelError, Options<DeleteConfiguredModelData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteConfiguredModel({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Update configured model\n *\n * Updates a configured model's settings and returns the updated model; omitted fields keep their values. Agents already using the model pick up the change on their next model call. The update isn't checked against project grants or agent configs, so lowering a limit below their overrides or turning off tools or reasoning they rely on makes those agents' next model call fail.\n */\nexport const updateConfiguredModelMutation = (options?: Partial<Options<UpdateConfiguredModelData>>): UseMutationOptions<UpdateConfiguredModelResponse, UpdateConfiguredModelError, Options<UpdateConfiguredModelData>> => {\n const mutationOptions: UseMutationOptions<UpdateConfiguredModelResponse, UpdateConfiguredModelError, Options<UpdateConfiguredModelData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateConfiguredModel({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listProjectModelGrantsQueryKey = (options: Options<ListProjectModelGrantsData>) => createQueryKey('listProjectModelGrants', options);\n\n/**\n * List project model grants\n *\n * Lists the configured models a project can use, most recently granted first by default, with each grant's overrides and the model's name and provider config.\n */\nexport const listProjectModelGrantsOptions = (options: Options<ListProjectModelGrantsData>) => queryOptions<ListProjectModelGrantsResponse2, ListProjectModelGrantsError, ListProjectModelGrantsResponse2, ReturnType<typeof listProjectModelGrantsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listProjectModelGrants({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectModelGrantsQueryKey(options)\n});\n\nexport const listProjectModelGrantsInfiniteQueryKey = (options: Options<ListProjectModelGrantsData>): QueryKey<Options<ListProjectModelGrantsData>> => createQueryKey('listProjectModelGrants', options, true);\n\n/**\n * List project model grants\n *\n * Lists the configured models a project can use, most recently granted first by default, with each grant's overrides and the model's name and provider config.\n */\nexport const listProjectModelGrantsInfiniteOptions = (options: Options<ListProjectModelGrantsData>) => {\n const opts = infiniteQueryOptions<ListProjectModelGrantsResponse2, ListProjectModelGrantsError, InfiniteData<ListProjectModelGrantsResponse2>, QueryKey<Options<ListProjectModelGrantsData>>, string | Pick<QueryKey<Options<ListProjectModelGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListProjectModelGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listProjectModelGrants({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectModelGrantsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create project model grant\n *\n * Lets a project's agent configs use a configured model and returns the new grant. Optional overrides can narrow the model for that project (lower token limits, tools or reasoning turned off, fewer reasoning efforts or modalities) and set its per-request defaults within those limits.\n */\nexport const createProjectModelGrantMutation = (options?: Partial<Options<CreateProjectModelGrantData>>): UseMutationOptions<CreateProjectModelGrantResponse, CreateProjectModelGrantError, Options<CreateProjectModelGrantData>> => {\n const mutationOptions: UseMutationOptions<CreateProjectModelGrantResponse, CreateProjectModelGrantError, Options<CreateProjectModelGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createProjectModelGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete project model grant\n *\n * Removes the project's access to the configured model. The grant is live policy: new launches can no longer select the model, and agents already using it lose access on their next model call. The model itself is retained, and there are no dependency blockers.\n */\nexport const deleteProjectModelGrantMutation = (options?: Partial<Options<DeleteProjectModelGrantData>>): UseMutationOptions<DeleteProjectModelGrantResponse, DeleteProjectModelGrantError, Options<DeleteProjectModelGrantData>> => {\n const mutationOptions: UseMutationOptions<DeleteProjectModelGrantResponse, DeleteProjectModelGrantError, Options<DeleteProjectModelGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteProjectModelGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Update project model grant\n *\n * Updates the project's overrides for the configured model. Omitted fields keep their current values; null, or [] for supported_reasoning_efforts, input_modalities, and output_modalities, clears an override so the project inherits from the configured model. Agents already using the model apply the updated overrides on their next model call. Updates are validated against the configured model's current revision but not against agent configs, so narrowing below a config's model settings, such as its context_window_tokens or reasoning effort, makes that agent's next model call fail.\n */\nexport const updateProjectModelGrantMutation = (options?: Partial<Options<UpdateProjectModelGrantData>>): UseMutationOptions<UpdateProjectModelGrantResponse, UpdateProjectModelGrantError, Options<UpdateProjectModelGrantData>> => {\n const mutationOptions: UseMutationOptions<UpdateProjectModelGrantResponse, UpdateProjectModelGrantError, Options<UpdateProjectModelGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateProjectModelGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listMachinePoolsQueryKey = (options: Options<ListMachinePoolsData>) => createQueryKey('listMachinePools', options);\n\n/**\n * List machine pools\n *\n * List machine pools with server-side filtering, sorting, and cursor pagination.\n */\nexport const listMachinePoolsOptions = (options: Options<ListMachinePoolsData>) => queryOptions<ListMachinePoolsResponse2, ListMachinePoolsError, ListMachinePoolsResponse2, ReturnType<typeof listMachinePoolsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listMachinePools({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMachinePoolsQueryKey(options)\n});\n\nexport const listMachinePoolsInfiniteQueryKey = (options: Options<ListMachinePoolsData>): QueryKey<Options<ListMachinePoolsData>> => createQueryKey('listMachinePools', options, true);\n\n/**\n * List machine pools\n *\n * List machine pools with server-side filtering, sorting, and cursor pagination.\n */\nexport const listMachinePoolsInfiniteOptions = (options: Options<ListMachinePoolsData>) => {\n const opts = infiniteQueryOptions<ListMachinePoolsResponse2, ListMachinePoolsError, InfiniteData<ListMachinePoolsResponse2>, QueryKey<Options<ListMachinePoolsData>>, string | Pick<QueryKey<Options<ListMachinePoolsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListMachinePoolsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listMachinePools({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listMachinePoolsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create machine pool\n */\nexport const createMachinePoolMutation = (options?: Partial<Options<CreateMachinePoolData>>): UseMutationOptions<CreateMachinePoolResponse, CreateMachinePoolError, Options<CreateMachinePoolData>> => {\n const mutationOptions: UseMutationOptions<CreateMachinePoolResponse, CreateMachinePoolError, Options<CreateMachinePoolData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createMachinePool({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Check machine pool connection\n *\n * Checks a tenant-managed pool's provider credential and provider config by making read-only requests to the provider.\n */\nexport const checkMachinePoolConnectionMutation = (options?: Partial<Options<CheckMachinePoolConnectionData>>): UseMutationOptions<CheckMachinePoolConnectionResponse, CheckMachinePoolConnectionError, Options<CheckMachinePoolConnectionData>> => {\n const mutationOptions: UseMutationOptions<CheckMachinePoolConnectionResponse, CheckMachinePoolConnectionError, Options<CheckMachinePoolConnectionData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await checkMachinePoolConnection({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete machine pool\n *\n * Deletes the machine pool and its pooled machines, revokes generated machine grants and project machine-pool grants, and stops processes that depended on those grants. Deleting a cluster-managed machine pool is rejected with 409 Conflict; there are no other dependency blockers.\n */\nexport const deleteMachinePoolMutation = (options?: Partial<Options<DeleteMachinePoolData>>): UseMutationOptions<DeleteMachinePoolResponse, DeleteMachinePoolError, Options<DeleteMachinePoolData>> => {\n const mutationOptions: UseMutationOptions<DeleteMachinePoolResponse, DeleteMachinePoolError, Options<DeleteMachinePoolData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteMachinePool({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getMachinePoolQueryKey = (options: Options<GetMachinePoolData>) => createQueryKey('getMachinePool', options);\n\n/**\n * Get machine pool\n *\n * Returns one machine pool's configuration and current usage: provider, default machine settings, CPU, memory, and machine-count limits, and idle deletion policy.\n */\nexport const getMachinePoolOptions = (options: Options<GetMachinePoolData>) => queryOptions<GetMachinePoolResponse, GetMachinePoolError, GetMachinePoolResponse, ReturnType<typeof getMachinePoolQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getMachinePool({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getMachinePoolQueryKey(options)\n});\n\n/**\n * Update machine pool\n *\n * Tenant-managed pools support every request field. Cluster-managed pools only allow changes to default CPU and memory, environment and secret environment variables, provider-supported per-machine CPU and memory limits, and the idle deletion policy. Other cluster-managed changes are rejected with 409 Conflict.\n */\nexport const updateMachinePoolMutation = (options?: Partial<Options<UpdateMachinePoolData>>): UseMutationOptions<UpdateMachinePoolResponse, UpdateMachinePoolError, Options<UpdateMachinePoolData>> => {\n const mutationOptions: UseMutationOptions<UpdateMachinePoolResponse, UpdateMachinePoolError, Options<UpdateMachinePoolData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateMachinePool({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listProjectMachinePoolGrantsQueryKey = (options: Options<ListProjectMachinePoolGrantsData>) => createQueryKey('listProjectMachinePoolGrants', options);\n\n/**\n * List project machine pool grants\n *\n * Lists the machine pools a project can create machines from, one grant per pool, most recently granted first by default.\n */\nexport const listProjectMachinePoolGrantsOptions = (options: Options<ListProjectMachinePoolGrantsData>) => queryOptions<ListProjectMachinePoolGrantsResponse2, ListProjectMachinePoolGrantsError, ListProjectMachinePoolGrantsResponse2, ReturnType<typeof listProjectMachinePoolGrantsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listProjectMachinePoolGrants({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectMachinePoolGrantsQueryKey(options)\n});\n\nexport const listProjectMachinePoolGrantsInfiniteQueryKey = (options: Options<ListProjectMachinePoolGrantsData>): QueryKey<Options<ListProjectMachinePoolGrantsData>> => createQueryKey('listProjectMachinePoolGrants', options, true);\n\n/**\n * List project machine pool grants\n *\n * Lists the machine pools a project can create machines from, one grant per pool, most recently granted first by default.\n */\nexport const listProjectMachinePoolGrantsInfiniteOptions = (options: Options<ListProjectMachinePoolGrantsData>) => {\n const opts = infiniteQueryOptions<ListProjectMachinePoolGrantsResponse2, ListProjectMachinePoolGrantsError, InfiniteData<ListProjectMachinePoolGrantsResponse2>, QueryKey<Options<ListProjectMachinePoolGrantsData>>, string | Pick<QueryKey<Options<ListProjectMachinePoolGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListProjectMachinePoolGrantsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listProjectMachinePoolGrants({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listProjectMachinePoolGrantsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create project machine pool grant\n *\n * Lets a project create machines from a machine pool, optionally with its own defaults and usage caps within the pool's limits, and returns the grant. No machines are created by this call.\n */\nexport const createProjectMachinePoolGrantMutation = (options?: Partial<Options<CreateProjectMachinePoolGrantData>>): UseMutationOptions<CreateProjectMachinePoolGrantResponse, CreateProjectMachinePoolGrantError, Options<CreateProjectMachinePoolGrantData>> => {\n const mutationOptions: UseMutationOptions<CreateProjectMachinePoolGrantResponse, CreateProjectMachinePoolGrantError, Options<CreateProjectMachinePoolGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createProjectMachinePoolGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete project machine pool grant\n *\n * Removes the project's access to the machine pool, revokes machine grants generated through it, and stops processes that depended on those grants. The pool itself is retained, and there are no dependency blockers.\n */\nexport const deleteProjectMachinePoolGrantMutation = (options?: Partial<Options<DeleteProjectMachinePoolGrantData>>): UseMutationOptions<DeleteProjectMachinePoolGrantResponse, DeleteProjectMachinePoolGrantError, Options<DeleteProjectMachinePoolGrantData>> => {\n const mutationOptions: UseMutationOptions<DeleteProjectMachinePoolGrantResponse, DeleteProjectMachinePoolGrantError, Options<DeleteProjectMachinePoolGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteProjectMachinePoolGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getProjectMachinePoolGrantQueryKey = (options: Options<GetProjectMachinePoolGrantData>) => createQueryKey('getProjectMachinePoolGrant', options);\n\n/**\n * Get project machine pool grant\n *\n * Returns one project's grant for a machine pool, with the defaults and limits it sets on top of the pool's own. Null fields set no override, so the pool's value applies.\n */\nexport const getProjectMachinePoolGrantOptions = (options: Options<GetProjectMachinePoolGrantData>) => queryOptions<GetProjectMachinePoolGrantResponse, GetProjectMachinePoolGrantError, GetProjectMachinePoolGrantResponse, ReturnType<typeof getProjectMachinePoolGrantQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getProjectMachinePoolGrant({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getProjectMachinePoolGrantQueryKey(options)\n});\n\n/**\n * Update project machine pool grant\n *\n * Updates the grant's overrides and limits. Omitted fields keep their current values; null clears an override so the grant follows the machine pool again. Overlay objects and metadata are replaced whole when present. Existing machines keep their configuration; the updated defaults and limits apply to new launches.\n */\nexport const updateProjectMachinePoolGrantMutation = (options?: Partial<Options<UpdateProjectMachinePoolGrantData>>): UseMutationOptions<UpdateProjectMachinePoolGrantResponse, UpdateProjectMachinePoolGrantError, Options<UpdateProjectMachinePoolGrantData>> => {\n const mutationOptions: UseMutationOptions<UpdateProjectMachinePoolGrantResponse, UpdateProjectMachinePoolGrantError, Options<UpdateProjectMachinePoolGrantData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateProjectMachinePoolGrant({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listByoMachineDaemonTokensQueryKey = (options: Options<ListByoMachineDaemonTokensData>) => createQueryKey('listByoMachineDaemonTokens', options);\n\n/**\n * List byo machine daemon tokens\n *\n * Items are ordered by created_at descending, then id descending.\n */\nexport const listByoMachineDaemonTokensOptions = (options: Options<ListByoMachineDaemonTokensData>) => queryOptions<ListByoMachineDaemonTokensResponse, ListByoMachineDaemonTokensError, ListByoMachineDaemonTokensResponse, ReturnType<typeof listByoMachineDaemonTokensQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listByoMachineDaemonTokens({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listByoMachineDaemonTokensQueryKey(options)\n});\n\nexport const listByoMachineDaemonTokensInfiniteQueryKey = (options: Options<ListByoMachineDaemonTokensData>): QueryKey<Options<ListByoMachineDaemonTokensData>> => createQueryKey('listByoMachineDaemonTokens', options, true);\n\n/**\n * List byo machine daemon tokens\n *\n * Items are ordered by created_at descending, then id descending.\n */\nexport const listByoMachineDaemonTokensInfiniteOptions = (options: Options<ListByoMachineDaemonTokensData>) => {\n const opts = infiniteQueryOptions<ListByoMachineDaemonTokensResponse, ListByoMachineDaemonTokensError, InfiniteData<ListByoMachineDaemonTokensResponse>, QueryKey<Options<ListByoMachineDaemonTokensData>>, string | Pick<QueryKey<Options<ListByoMachineDaemonTokensData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListByoMachineDaemonTokensData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listByoMachineDaemonTokens({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listByoMachineDaemonTokensInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create byo machine daemon token\n */\nexport const createByoMachineDaemonTokenMutation = (options?: Partial<Options<CreateByoMachineDaemonTokenData>>): UseMutationOptions<CreateByoMachineDaemonTokenResponse, CreateByoMachineDaemonTokenError, Options<CreateByoMachineDaemonTokenData>> => {\n const mutationOptions: UseMutationOptions<CreateByoMachineDaemonTokenResponse, CreateByoMachineDaemonTokenError, Options<CreateByoMachineDaemonTokenData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createByoMachineDaemonToken({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Revoke machine daemon token\n */\nexport const revokeMachineDaemonTokenMutation = (options?: Partial<Options<RevokeMachineDaemonTokenData>>): UseMutationOptions<RevokeMachineDaemonTokenResponse, RevokeMachineDaemonTokenError, Options<RevokeMachineDaemonTokenData>> => {\n const mutationOptions: UseMutationOptions<RevokeMachineDaemonTokenResponse, RevokeMachineDaemonTokenError, Options<RevokeMachineDaemonTokenData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await revokeMachineDaemonToken({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Register machine daemon runtime\n */\nexport const registerMachineDaemonRuntimeMutation = (options?: Partial<Options<RegisterMachineDaemonRuntimeData>>): UseMutationOptions<RegisterMachineDaemonRuntimeResponse, RegisterMachineDaemonRuntimeError, Options<RegisterMachineDaemonRuntimeData>> => {\n const mutationOptions: UseMutationOptions<RegisterMachineDaemonRuntimeResponse, RegisterMachineDaemonRuntimeError, Options<RegisterMachineDaemonRuntimeData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await registerMachineDaemonRuntime({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const socketMachineDaemonRuntimeQueryKey = (options: Options<SocketMachineDaemonRuntimeData>) => createQueryKey('socketMachineDaemonRuntime', options);\n\n/**\n * Socket machine daemon runtime\n */\nexport const socketMachineDaemonRuntimeOptions = (options: Options<SocketMachineDaemonRuntimeData>) => queryOptions<unknown, SocketMachineDaemonRuntimeError, unknown, ReturnType<typeof socketMachineDaemonRuntimeQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await socketMachineDaemonRuntime({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: socketMachineDaemonRuntimeQueryKey(options)\n});\n\n/**\n * End machine daemon runtime\n */\nexport const endMachineDaemonRuntimeMutation = (options?: Partial<Options<EndMachineDaemonRuntimeData>>): UseMutationOptions<EndMachineDaemonRuntimeResponse, EndMachineDaemonRuntimeError, Options<EndMachineDaemonRuntimeData>> => {\n const mutationOptions: UseMutationOptions<EndMachineDaemonRuntimeResponse, EndMachineDaemonRuntimeError, Options<EndMachineDaemonRuntimeData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await endMachineDaemonRuntime({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Sleep machine daemon runtime\n *\n * Gracefully ends the daemon runtime and marks the machine asleep so new work queues and triggers an automatic wake. Rejected with 409 code pending_work when the machine has queued or live daemon work, and 409 code not_wake_capable when the machine has no sandbox URL.\n */\nexport const sleepMachineDaemonRuntimeMutation = (options?: Partial<Options<SleepMachineDaemonRuntimeData>>): UseMutationOptions<SleepMachineDaemonRuntimeResponse, SleepMachineDaemonRuntimeError, Options<SleepMachineDaemonRuntimeData>> => {\n const mutationOptions: UseMutationOptions<SleepMachineDaemonRuntimeResponse, SleepMachineDaemonRuntimeError, Options<SleepMachineDaemonRuntimeData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await sleepMachineDaemonRuntime({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Get Git credentials for an active daemon process\n *\n * Requires machine daemon authentication and an active, execution-granted process on that machine. The process's original config and the agent's current config must have the same Git credentials settings. Credentials are limited to those settings' repositories and permission and are reauthorized on every request.\n */\nexport const getDaemonGitCredentialsMutation = (options?: Partial<Options<GetDaemonGitCredentialsData>>): UseMutationOptions<GetDaemonGitCredentialsResponse, GetDaemonGitCredentialsError, Options<GetDaemonGitCredentialsData>> => {\n const mutationOptions: UseMutationOptions<GetDaemonGitCredentialsResponse, GetDaemonGitCredentialsError, Options<GetDaemonGitCredentialsData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await getDaemonGitCredentials({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getDaemonSkillArchiveQueryKey = (options: Options<GetDaemonSkillArchiveData>) => createQueryKey('getDaemonSkillArchive', options);\n\n/**\n * Get daemon skill archive\n *\n * Requires daemon authentication plus a short-lived capability bound to the authenticated machine, skill, and revision.\n */\nexport const getDaemonSkillArchiveOptions = (options: Options<GetDaemonSkillArchiveData>) => queryOptions<GetDaemonSkillArchiveResponse, GetDaemonSkillArchiveError, GetDaemonSkillArchiveResponse, ReturnType<typeof getDaemonSkillArchiveQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getDaemonSkillArchive({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getDaemonSkillArchiveQueryKey(options)\n});\n\nexport const downloadDaemonFileQueryKey = (options: Options<DownloadDaemonFileData>) => createQueryKey('downloadDaemonFile', options);\n\n/**\n * Download daemon file\n */\nexport const downloadDaemonFileOptions = (options: Options<DownloadDaemonFileData>) => queryOptions<DownloadDaemonFileResponse, DownloadDaemonFileError, DownloadDaemonFileResponse, ReturnType<typeof downloadDaemonFileQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await downloadDaemonFile({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: downloadDaemonFileQueryKey(options)\n});\n\n/**\n * Upload daemon file\n */\nexport const uploadDaemonFileMutation = (options?: Partial<Options<UploadDaemonFileData>>): UseMutationOptions<UploadDaemonFileResponse, UploadDaemonFileError, Options<UploadDaemonFileData>> => {\n const mutationOptions: UseMutationOptions<UploadDaemonFileResponse, UploadDaemonFileError, Options<UploadDaemonFileData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await uploadDaemonFile({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listOrgIntegrationsQueryKey = (options: Options<ListOrgIntegrationsData>) => createQueryKey('listOrgIntegrations', options);\n\n/**\n * List integrations across projects\n *\n * Lists integrations in every project of the organization the caller can read. Each integration carries its project_id. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgIntegrationsOptions = (options: Options<ListOrgIntegrationsData>) => queryOptions<ListOrgIntegrationsResponse, ListOrgIntegrationsError, ListOrgIntegrationsResponse, ReturnType<typeof listOrgIntegrationsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listOrgIntegrations({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgIntegrationsQueryKey(options)\n});\n\nexport const listOrgIntegrationsInfiniteQueryKey = (options: Options<ListOrgIntegrationsData>): QueryKey<Options<ListOrgIntegrationsData>> => createQueryKey('listOrgIntegrations', options, true);\n\n/**\n * List integrations across projects\n *\n * Lists integrations in every project of the organization the caller can read. Each integration carries its project_id. Items are ordered by created_at descending, then id descending.\n */\nexport const listOrgIntegrationsInfiniteOptions = (options: Options<ListOrgIntegrationsData>) => {\n const opts = infiniteQueryOptions<ListOrgIntegrationsResponse, ListOrgIntegrationsError, InfiniteData<ListOrgIntegrationsResponse>, QueryKey<Options<ListOrgIntegrationsData>>, string | Pick<QueryKey<Options<ListOrgIntegrationsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListOrgIntegrationsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listOrgIntegrations({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listOrgIntegrationsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const listIntegrationsQueryKey = (options: Options<ListIntegrationsData>) => createQueryKey('listIntegrations', options);\n\n/**\n * List project integrations\n */\nexport const listIntegrationsOptions = (options: Options<ListIntegrationsData>) => queryOptions<ListIntegrationsResponse2, ListIntegrationsError, ListIntegrationsResponse2, ReturnType<typeof listIntegrationsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listIntegrations({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listIntegrationsQueryKey(options)\n});\n\nexport const listIntegrationsInfiniteQueryKey = (options: Options<ListIntegrationsData>): QueryKey<Options<ListIntegrationsData>> => createQueryKey('listIntegrations', options, true);\n\n/**\n * List project integrations\n */\nexport const listIntegrationsInfiniteOptions = (options: Options<ListIntegrationsData>) => {\n const opts = infiniteQueryOptions<ListIntegrationsResponse2, ListIntegrationsError, InfiniteData<ListIntegrationsResponse2>, QueryKey<Options<ListIntegrationsData>>, string | Pick<QueryKey<Options<ListIntegrationsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListIntegrationsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listIntegrations({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listIntegrationsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Create an integration and optional launcher\n */\nexport const createIntegrationMutation = (options?: Partial<Options<CreateIntegrationData>>): UseMutationOptions<CreateIntegrationResponse, CreateIntegrationError, Options<CreateIntegrationData>> => {\n const mutationOptions: UseMutationOptions<CreateIntegrationResponse, CreateIntegrationError, Options<CreateIntegrationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createIntegration({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Delete integration setup and revoke its capabilities\n *\n * Deletes the integration setup and its cron schedules, revokes its capabilities, and releases its credential reference. Existing agents, agent history, and provider messages are preserved.\n */\nexport const deleteIntegrationMutation = (options?: Partial<Options<DeleteIntegrationData>>): UseMutationOptions<DeleteIntegrationResponse, DeleteIntegrationError, Options<DeleteIntegrationData>> => {\n const mutationOptions: UseMutationOptions<DeleteIntegrationResponse, DeleteIntegrationError, Options<DeleteIntegrationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteIntegration({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const getIntegrationQueryKey = (options: Options<GetIntegrationData>) => createQueryKey('getIntegration', options);\n\n/**\n * Get project integration\n */\nexport const getIntegrationOptions = (options: Options<GetIntegrationData>) => queryOptions<GetIntegrationResponse, GetIntegrationError, GetIntegrationResponse, ReturnType<typeof getIntegrationQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await getIntegration({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: getIntegrationQueryKey(options)\n});\n\n/**\n * Update integration settings\n *\n * Replaces integration-owned settings while preserving credentials. The request contains only settings; name and integration_kind are immutable and accepted only on create. Preserve integration-level fields when editing the launcher. Settings follow capabilities.settings.input_schema from the integration catalog.\n */\nexport const updateIntegrationMutation = (options?: Partial<Options<UpdateIntegrationData>>): UseMutationOptions<UpdateIntegrationResponse, UpdateIntegrationError, Options<UpdateIntegrationData>> => {\n const mutationOptions: UseMutationOptions<UpdateIntegrationResponse, UpdateIntegrationError, Options<UpdateIntegrationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await updateIntegration({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listIntegrationSubscriptionsQueryKey = (options: Options<ListIntegrationSubscriptionsData>) => createQueryKey('listIntegrationSubscriptions', options);\n\n/**\n * List integration conversation subscriptions\n *\n * Requires project read permission. Disconnected integrations retain their subscriptions and support listing.\n */\nexport const listIntegrationSubscriptionsOptions = (options: Options<ListIntegrationSubscriptionsData>) => queryOptions<ListIntegrationSubscriptionsResponse2, ListIntegrationSubscriptionsError, ListIntegrationSubscriptionsResponse2, ReturnType<typeof listIntegrationSubscriptionsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listIntegrationSubscriptions({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listIntegrationSubscriptionsQueryKey(options)\n});\n\nexport const listIntegrationSubscriptionsInfiniteQueryKey = (options: Options<ListIntegrationSubscriptionsData>): QueryKey<Options<ListIntegrationSubscriptionsData>> => createQueryKey('listIntegrationSubscriptions', options, true);\n\n/**\n * List integration conversation subscriptions\n *\n * Requires project read permission. Disconnected integrations retain their subscriptions and support listing.\n */\nexport const listIntegrationSubscriptionsInfiniteOptions = (options: Options<ListIntegrationSubscriptionsData>) => {\n const opts = infiniteQueryOptions<ListIntegrationSubscriptionsResponse2, ListIntegrationSubscriptionsError, InfiniteData<ListIntegrationSubscriptionsResponse2>, QueryKey<Options<ListIntegrationSubscriptionsData>>, string | Pick<QueryKey<Options<ListIntegrationSubscriptionsData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListIntegrationSubscriptionsData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listIntegrationSubscriptions({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listIntegrationSubscriptionsInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\n/**\n * Attach an agent to an integration conversation\n *\n * Requires project management permission. Repeating an active attachment returns the same subscription. Subscriptions do not change the agent config or grant sending tools.\n */\nexport const createIntegrationSubscriptionMutation = (options?: Partial<Options<CreateIntegrationSubscriptionData>>): UseMutationOptions<CreateIntegrationSubscriptionResponse, CreateIntegrationSubscriptionError, Options<CreateIntegrationSubscriptionData>> => {\n const mutationOptions: UseMutationOptions<CreateIntegrationSubscriptionResponse, CreateIntegrationSubscriptionError, Options<CreateIntegrationSubscriptionData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await createIntegrationSubscription({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Stop forwarding an integration conversation to an agent\n *\n * Requires project management permission. Missing subscriptions are a no-op within an existing integration. Disconnected integrations support deletion. Stops future incoming forwarding for this subscription. The agent, sending tools, interaction handlers, and history remain available. Attaching the conversation again through the API resumes forwarding with a new subscription ID.\n */\nexport const deleteIntegrationSubscriptionMutation = (options?: Partial<Options<DeleteIntegrationSubscriptionData>>): UseMutationOptions<DeleteIntegrationSubscriptionResponse, DeleteIntegrationSubscriptionError, Options<DeleteIntegrationSubscriptionData>> => {\n const mutationOptions: UseMutationOptions<DeleteIntegrationSubscriptionResponse, DeleteIntegrationSubscriptionError, Options<DeleteIntegrationSubscriptionData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await deleteIntegrationSubscription({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Verify and configure integration credentials\n *\n * Requires a user principal with project management permission. Slack credentials are configured through OAuth. A stale expected_setup_revision or a credential changed during verification returns 409; reload the integration and retry setup. Setup preserves integration settings; verified provider identity scopes incoming events.\n */\nexport const configureIntegrationMutation = (options?: Partial<Options<ConfigureIntegrationData>>): UseMutationOptions<ConfigureIntegrationResponse, ConfigureIntegrationError, Options<ConfigureIntegrationData>> => {\n const mutationOptions: UseMutationOptions<ConfigureIntegrationResponse, ConfigureIntegrationError, Options<ConfigureIntegrationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await configureIntegration({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\n/**\n * Disconnect this integration without deleting its configuration\n */\nexport const disconnectIntegrationMutation = (options?: Partial<Options<DisconnectIntegrationData>>): UseMutationOptions<DisconnectIntegrationResponse, DisconnectIntegrationError, Options<DisconnectIntegrationData>> => {\n const mutationOptions: UseMutationOptions<DisconnectIntegrationResponse, DisconnectIntegrationError, Options<DisconnectIntegrationData>> = {\n mutationFn: async (fnOptions) => {\n const { data } = await disconnectIntegration({\n ...options,\n ...fnOptions,\n throwOnError: true\n });\n return data;\n }\n };\n return mutationOptions;\n};\n\nexport const listIntegrationGitHubRepositoriesQueryKey = (options: Options<ListIntegrationGitHubRepositoriesData>) => createQueryKey('listIntegrationGitHubRepositories', options);\n\n/**\n * List repositories a GitHub integration can access\n *\n * Returns one page of up to 100 repositories the connected installation can access, for use in git_credentials.repository_ids. Requires project management access.\n */\nexport const listIntegrationGitHubRepositoriesOptions = (options: Options<ListIntegrationGitHubRepositoriesData>) => queryOptions<ListIntegrationGitHubRepositoriesResponse, ListIntegrationGitHubRepositoriesError, ListIntegrationGitHubRepositoriesResponse, ReturnType<typeof listIntegrationGitHubRepositoriesQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listIntegrationGitHubRepositories({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listIntegrationGitHubRepositoriesQueryKey(options)\n});\n\nexport const listIntegrationGitHubRepositoriesInfiniteQueryKey = (options: Options<ListIntegrationGitHubRepositoriesData>): QueryKey<Options<ListIntegrationGitHubRepositoriesData>> => createQueryKey('listIntegrationGitHubRepositories', options, true);\n\n/**\n * List repositories a GitHub integration can access\n *\n * Returns one page of up to 100 repositories the connected installation can access, for use in git_credentials.repository_ids. Requires project management access.\n */\nexport const listIntegrationGitHubRepositoriesInfiniteOptions = (options: Options<ListIntegrationGitHubRepositoriesData>) => {\n const opts = infiniteQueryOptions<ListIntegrationGitHubRepositoriesResponse, ListIntegrationGitHubRepositoriesError, InfiniteData<ListIntegrationGitHubRepositoriesResponse>, QueryKey<Options<ListIntegrationGitHubRepositoriesData>>, string | Pick<QueryKey<Options<ListIntegrationGitHubRepositoriesData>>[0], 'body' | 'headers' | 'path' | 'query'>>(\n // @ts-ignore\n {\n queryFn: async ({ pageParam, queryKey, signal }) => {\n // @ts-ignore\n const page: Pick<QueryKey<Options<ListIntegrationGitHubRepositoriesData>>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : {\n query: {\n cursor: pageParam\n }\n };\n const params = createInfiniteParams(queryKey, page);\n const { data } = await listIntegrationGitHubRepositories({\n ...options,\n ...params,\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listIntegrationGitHubRepositoriesInfiniteQueryKey(options)\n });\n return opts as Omit<typeof opts, 'initialData'>;\n};\n\nexport const listIntegrationDefinitionsQueryKey = (options: Options<ListIntegrationDefinitionsData>) => createQueryKey('listIntegrationDefinitions', options);\n\n/**\n * List installed integration implementations and their capabilities\n */\nexport const listIntegrationDefinitionsOptions = (options: Options<ListIntegrationDefinitionsData>) => queryOptions<ListIntegrationDefinitionsResponse2, ListIntegrationDefinitionsError, ListIntegrationDefinitionsResponse2, ReturnType<typeof listIntegrationDefinitionsQueryKey>>({\n queryFn: async ({ queryKey, signal }) => {\n const { data } = await listIntegrationDefinitions({\n ...options,\n ...queryKey[0],\n signal,\n throwOnError: true\n });\n return data;\n },\n queryKey: listIntegrationDefinitionsQueryKey(options)\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAA4B,sBAAsB,oBAA6C;AAc/F,IAAM,iBAAiB,CAA2B,IAAY,SAAoB,UAAoB,SAEjG;AACD,QAAM,SAAgC,EAAE,KAAK,IAAI,SAAS,SAAS,YAAY,SAAS,UAAU,QAAQ,UAAU,EAAE,QAAQ;AAC9H,MAAI,UAAU;AACV,WAAO,YAAY;AAAA,EACvB;AACA,MAAI,MAAM;AACN,WAAO,OAAO;AAAA,EAClB;AACA,MAAI,SAAS,MAAM;AACf,WAAO,OAAO,QAAQ;AAAA,EAC1B;AACA,MAAI,SAAS,SAAS;AAClB,WAAO,UAAU,QAAQ;AAAA,EAC7B;AACA,MAAI,SAAS,MAAM;AACf,WAAO,OAAO,QAAQ;AAAA,EAC1B;AACA,MAAI,SAAS,OAAO;AAChB,WAAO,QAAQ,QAAQ;AAAA,EAC3B;AACA,SAAO,CAAC,MAAM;AAClB;AAEO,IAAM,4BAA4B,CAAC,YAA4C,eAAe,qBAAqB,OAAO;AAO1H,IAAM,2BAA2B,CAAC,YAA4C,aAA2I;AAAA,EAC5N,SAAS,OAAO,EAAE,UAAU,OAAO,MAAM;AACrC,UAAM,EAAE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