Files
Memoh/packages/sdk/src/sdk.gen.ts
T
Acbox b3c783fb0b feat: add session info panel with message count, context usage, cache stats, and skills
Add GET /bots/:bot_id/sessions/:session_id/info API endpoint that returns
per-session message count, latest input token usage with model context window,
aggregated KV cache hit rate, and skills invoked via use_skill tool calls.
Frontend Info tab in the right sidebar now displays this data in a compact
key-value layout with a context usage progress bar and clickable skill links.
2026-04-03 01:17:33 +08:00

1863 lines
105 KiB
TypeScript

// This file is auto-generated by @hey-api/openapi-ts
import { type Client, formDataBodySerializer, type Options as Options2, type TDataShape } from './client';
import { client } from './client.gen';
import type { DeleteBotsByBotIdAclRulesByRuleIdData, DeleteBotsByBotIdAclRulesByRuleIdErrors, DeleteBotsByBotIdAclRulesByRuleIdResponses, DeleteBotsByBotIdCompactionLogsData, DeleteBotsByBotIdCompactionLogsErrors, DeleteBotsByBotIdCompactionLogsResponses, DeleteBotsByBotIdContainerData, DeleteBotsByBotIdContainerErrors, DeleteBotsByBotIdContainerResponses, DeleteBotsByBotIdContainerSkillsData, DeleteBotsByBotIdContainerSkillsErrors, DeleteBotsByBotIdContainerSkillsResponses, DeleteBotsByBotIdEmailBindingsByIdData, DeleteBotsByBotIdEmailBindingsByIdErrors, DeleteBotsByBotIdEmailBindingsByIdResponses, DeleteBotsByBotIdHeartbeatLogsData, DeleteBotsByBotIdHeartbeatLogsErrors, DeleteBotsByBotIdHeartbeatLogsResponses, DeleteBotsByBotIdMcpByIdData, DeleteBotsByBotIdMcpByIdErrors, DeleteBotsByBotIdMcpByIdOauthTokenData, DeleteBotsByBotIdMcpByIdOauthTokenErrors, DeleteBotsByBotIdMcpByIdOauthTokenResponses, DeleteBotsByBotIdMcpByIdResponses, DeleteBotsByBotIdMemoryByIdData, DeleteBotsByBotIdMemoryByIdErrors, DeleteBotsByBotIdMemoryByIdResponses, DeleteBotsByBotIdMemoryData, DeleteBotsByBotIdMemoryErrors, DeleteBotsByBotIdMemoryResponses, DeleteBotsByBotIdMessagesData, DeleteBotsByBotIdMessagesErrors, DeleteBotsByBotIdMessagesResponses, DeleteBotsByBotIdScheduleByIdData, DeleteBotsByBotIdScheduleByIdErrors, DeleteBotsByBotIdScheduleByIdResponses, DeleteBotsByBotIdScheduleLogsData, DeleteBotsByBotIdScheduleLogsErrors, DeleteBotsByBotIdScheduleLogsResponses, DeleteBotsByBotIdSessionsBySessionIdData, DeleteBotsByBotIdSessionsBySessionIdErrors, DeleteBotsByBotIdSessionsBySessionIdResponses, DeleteBotsByBotIdSettingsData, DeleteBotsByBotIdSettingsErrors, DeleteBotsByBotIdSettingsResponses, DeleteBotsByIdChannelByPlatformData, DeleteBotsByIdChannelByPlatformErrors, DeleteBotsByIdChannelByPlatformResponses, DeleteBotsByIdData, DeleteBotsByIdErrors, DeleteBotsByIdResponses, DeleteBrowserContextsByIdData, DeleteBrowserContextsByIdErrors, DeleteBrowserContextsByIdResponses, DeleteEmailProvidersByIdData, DeleteEmailProvidersByIdErrors, DeleteEmailProvidersByIdOauthTokenData, DeleteEmailProvidersByIdOauthTokenErrors, DeleteEmailProvidersByIdOauthTokenResponses, DeleteEmailProvidersByIdResponses, DeleteMemoryProvidersByIdData, DeleteMemoryProvidersByIdErrors, DeleteMemoryProvidersByIdResponses, DeleteModelsByIdData, DeleteModelsByIdErrors, DeleteModelsByIdResponses, DeleteModelsModelByModelIdData, DeleteModelsModelByModelIdErrors, DeleteModelsModelByModelIdResponses, DeleteProvidersByIdData, DeleteProvidersByIdErrors, DeleteProvidersByIdOauthTokenData, DeleteProvidersByIdOauthTokenErrors, DeleteProvidersByIdOauthTokenResponses, DeleteProvidersByIdResponses, DeleteSearchProvidersByIdData, DeleteSearchProvidersByIdErrors, DeleteSearchProvidersByIdResponses, DeleteTtsModelsByIdData, DeleteTtsModelsByIdErrors, DeleteTtsModelsByIdResponses, DeleteTtsProvidersByIdData, DeleteTtsProvidersByIdErrors, DeleteTtsProvidersByIdResponses, GetBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversationsData, GetBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversationsErrors, GetBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversationsResponses, GetBotsByBotIdAclChannelIdentitiesData, GetBotsByBotIdAclChannelIdentitiesErrors, GetBotsByBotIdAclChannelIdentitiesResponses, GetBotsByBotIdAclChannelTypesByChannelTypeConversationsData, GetBotsByBotIdAclChannelTypesByChannelTypeConversationsErrors, GetBotsByBotIdAclChannelTypesByChannelTypeConversationsResponses, GetBotsByBotIdAclDefaultEffectData, GetBotsByBotIdAclDefaultEffectErrors, GetBotsByBotIdAclDefaultEffectResponses, GetBotsByBotIdAclRulesData, GetBotsByBotIdAclRulesErrors, GetBotsByBotIdAclRulesResponses, GetBotsByBotIdCliStreamData, GetBotsByBotIdCliStreamErrors, GetBotsByBotIdCliStreamResponses, GetBotsByBotIdCliWsData, GetBotsByBotIdCliWsErrors, GetBotsByBotIdCompactionLogsData, GetBotsByBotIdCompactionLogsErrors, GetBotsByBotIdCompactionLogsResponses, GetBotsByBotIdContainerData, GetBotsByBotIdContainerErrors, GetBotsByBotIdContainerFsData, GetBotsByBotIdContainerFsDownloadData, GetBotsByBotIdContainerFsDownloadErrors, GetBotsByBotIdContainerFsDownloadResponses, GetBotsByBotIdContainerFsErrors, GetBotsByBotIdContainerFsListData, GetBotsByBotIdContainerFsListErrors, GetBotsByBotIdContainerFsListResponses, GetBotsByBotIdContainerFsReadData, GetBotsByBotIdContainerFsReadErrors, GetBotsByBotIdContainerFsReadResponses, GetBotsByBotIdContainerFsResponses, GetBotsByBotIdContainerResponses, GetBotsByBotIdContainerSkillsData, GetBotsByBotIdContainerSkillsErrors, GetBotsByBotIdContainerSkillsResponses, GetBotsByBotIdContainerSnapshotsData, GetBotsByBotIdContainerSnapshotsErrors, GetBotsByBotIdContainerSnapshotsResponses, GetBotsByBotIdContainerTerminalData, GetBotsByBotIdContainerTerminalErrors, GetBotsByBotIdContainerTerminalResponses, GetBotsByBotIdContainerTerminalWsData, GetBotsByBotIdContainerTerminalWsErrors, GetBotsByBotIdEmailBindingsData, GetBotsByBotIdEmailBindingsErrors, GetBotsByBotIdEmailBindingsResponses, GetBotsByBotIdEmailOutboxByIdData, GetBotsByBotIdEmailOutboxByIdErrors, GetBotsByBotIdEmailOutboxByIdResponses, GetBotsByBotIdEmailOutboxData, GetBotsByBotIdEmailOutboxErrors, GetBotsByBotIdEmailOutboxResponses, GetBotsByBotIdHeartbeatLogsData, GetBotsByBotIdHeartbeatLogsErrors, GetBotsByBotIdHeartbeatLogsResponses, GetBotsByBotIdMcpByIdData, GetBotsByBotIdMcpByIdErrors, GetBotsByBotIdMcpByIdOauthStatusData, GetBotsByBotIdMcpByIdOauthStatusErrors, GetBotsByBotIdMcpByIdOauthStatusResponses, GetBotsByBotIdMcpByIdResponses, GetBotsByBotIdMcpData, GetBotsByBotIdMcpErrors, GetBotsByBotIdMcpExportData, GetBotsByBotIdMcpExportErrors, GetBotsByBotIdMcpExportResponses, GetBotsByBotIdMcpResponses, GetBotsByBotIdMemoryData, GetBotsByBotIdMemoryErrors, GetBotsByBotIdMemoryResponses, GetBotsByBotIdMemoryStatusData, GetBotsByBotIdMemoryStatusErrors, GetBotsByBotIdMemoryStatusResponses, GetBotsByBotIdMemoryUsageData, GetBotsByBotIdMemoryUsageErrors, GetBotsByBotIdMemoryUsageResponses, GetBotsByBotIdMessagesData, GetBotsByBotIdMessagesErrors, GetBotsByBotIdMessagesResponses, GetBotsByBotIdScheduleByIdData, GetBotsByBotIdScheduleByIdErrors, GetBotsByBotIdScheduleByIdLogsData, GetBotsByBotIdScheduleByIdLogsErrors, GetBotsByBotIdScheduleByIdLogsResponses, GetBotsByBotIdScheduleByIdResponses, GetBotsByBotIdScheduleData, GetBotsByBotIdScheduleErrors, GetBotsByBotIdScheduleLogsData, GetBotsByBotIdScheduleLogsErrors, GetBotsByBotIdScheduleLogsResponses, GetBotsByBotIdScheduleResponses, GetBotsByBotIdSessionsBySessionIdData, GetBotsByBotIdSessionsBySessionIdErrors, GetBotsByBotIdSessionsBySessionIdInfoData, GetBotsByBotIdSessionsBySessionIdInfoErrors, GetBotsByBotIdSessionsBySessionIdInfoResponses, GetBotsByBotIdSessionsBySessionIdResponses, GetBotsByBotIdSessionsData, GetBotsByBotIdSessionsErrors, GetBotsByBotIdSessionsResponses, GetBotsByBotIdSettingsData, GetBotsByBotIdSettingsErrors, GetBotsByBotIdSettingsResponses, GetBotsByBotIdTokenUsageData, GetBotsByBotIdTokenUsageErrors, GetBotsByBotIdTokenUsageResponses, GetBotsByBotIdWebStreamData, GetBotsByBotIdWebStreamErrors, GetBotsByBotIdWebStreamResponses, GetBotsByBotIdWebWsData, GetBotsByBotIdWebWsErrors, GetBotsByIdChannelByPlatformData, GetBotsByIdChannelByPlatformErrors, GetBotsByIdChannelByPlatformResponses, GetBotsByIdChecksData, GetBotsByIdChecksErrors, GetBotsByIdChecksResponses, GetBotsByIdData, GetBotsByIdErrors, GetBotsByIdResponses, GetBotsData, GetBotsErrors, GetBotsResponses, GetBrowserContextsByIdData, GetBrowserContextsByIdErrors, GetBrowserContextsByIdResponses, GetBrowserContextsCoresData, GetBrowserContextsCoresErrors, GetBrowserContextsCoresResponses, GetBrowserContextsData, GetBrowserContextsErrors, GetBrowserContextsResponses, GetChannelsByPlatformData, GetChannelsByPlatformErrors, GetChannelsByPlatformResponses, GetChannelsData, GetChannelsErrors, GetChannelsResponses, GetEmailOauthCallbackData, GetEmailOauthCallbackErrors, GetEmailOauthCallbackResponses, GetEmailProvidersByIdData, GetEmailProvidersByIdErrors, GetEmailProvidersByIdOauthAuthorizeData, GetEmailProvidersByIdOauthAuthorizeErrors, GetEmailProvidersByIdOauthAuthorizeResponses, GetEmailProvidersByIdOauthStatusData, GetEmailProvidersByIdOauthStatusErrors, GetEmailProvidersByIdOauthStatusResponses, GetEmailProvidersByIdResponses, GetEmailProvidersData, GetEmailProvidersErrors, GetEmailProvidersMetaData, GetEmailProvidersMetaResponses, GetEmailProvidersResponses, GetMemoryProvidersByIdData, GetMemoryProvidersByIdErrors, GetMemoryProvidersByIdResponses, GetMemoryProvidersByIdStatusData, GetMemoryProvidersByIdStatusErrors, GetMemoryProvidersByIdStatusResponses, GetMemoryProvidersData, GetMemoryProvidersErrors, GetMemoryProvidersMetaData, GetMemoryProvidersMetaResponses, GetMemoryProvidersResponses, GetModelsByIdData, GetModelsByIdErrors, GetModelsByIdResponses, GetModelsCountData, GetModelsCountErrors, GetModelsCountResponses, GetModelsData, GetModelsErrors, GetModelsModelByModelIdData, GetModelsModelByModelIdErrors, GetModelsModelByModelIdResponses, GetModelsResponses, GetPingData, GetPingResponses, GetProvidersByIdData, GetProvidersByIdErrors, GetProvidersByIdModelsData, GetProvidersByIdModelsErrors, GetProvidersByIdModelsResponses, GetProvidersByIdOauthAuthorizeData, GetProvidersByIdOauthAuthorizeErrors, GetProvidersByIdOauthAuthorizeResponses, GetProvidersByIdOauthStatusData, GetProvidersByIdOauthStatusErrors, GetProvidersByIdOauthStatusResponses, GetProvidersByIdResponses, GetProvidersCountData, GetProvidersCountErrors, GetProvidersCountResponses, GetProvidersData, GetProvidersErrors, GetProvidersNameByNameData, GetProvidersNameByNameErrors, GetProvidersNameByNameResponses, GetProvidersOauthCallbackData, GetProvidersOauthCallbackErrors, GetProvidersOauthCallbackResponses, GetProvidersResponses, GetSearchProvidersByIdData, GetSearchProvidersByIdErrors, GetSearchProvidersByIdResponses, GetSearchProvidersData, GetSearchProvidersErrors, GetSearchProvidersMetaData, GetSearchProvidersMetaResponses, GetSearchProvidersResponses, GetSupermarketMcpsByIdData, GetSupermarketMcpsByIdErrors, GetSupermarketMcpsByIdResponses, GetSupermarketMcpsData, GetSupermarketMcpsErrors, GetSupermarketMcpsResponses, GetSupermarketSkillsByIdData, GetSupermarketSkillsByIdErrors, GetSupermarketSkillsByIdResponses, GetSupermarketSkillsData, GetSupermarketSkillsErrors, GetSupermarketSkillsResponses, GetSupermarketTagsData, GetSupermarketTagsErrors, GetSupermarketTagsResponses, GetTtsModelsByIdCapabilitiesData, GetTtsModelsByIdCapabilitiesErrors, GetTtsModelsByIdCapabilitiesResponses, GetTtsModelsByIdData, GetTtsModelsByIdErrors, GetTtsModelsByIdResponses, GetTtsModelsData, GetTtsModelsErrors, GetTtsModelsResponses, GetTtsProvidersByIdData, GetTtsProvidersByIdErrors, GetTtsProvidersByIdModelsData, GetTtsProvidersByIdModelsErrors, GetTtsProvidersByIdModelsResponses, GetTtsProvidersByIdResponses, GetTtsProvidersData, GetTtsProvidersErrors, GetTtsProvidersMetaData, GetTtsProvidersMetaResponses, GetTtsProvidersResponses, GetUsersByIdData, GetUsersByIdErrors, GetUsersByIdResponses, GetUsersData, GetUsersErrors, GetUsersMeChannelsByPlatformData, GetUsersMeChannelsByPlatformErrors, GetUsersMeChannelsByPlatformResponses, GetUsersMeData, GetUsersMeErrors, GetUsersMeIdentitiesData, GetUsersMeIdentitiesErrors, GetUsersMeIdentitiesResponses, GetUsersMeResponses, GetUsersResponses, PatchBotsByBotIdSessionsBySessionIdData, PatchBotsByBotIdSessionsBySessionIdErrors, PatchBotsByBotIdSessionsBySessionIdResponses, PatchBotsByIdChannelByPlatformStatusData, PatchBotsByIdChannelByPlatformStatusErrors, PatchBotsByIdChannelByPlatformStatusResponses, PostAuthLoginData, PostAuthLoginErrors, PostAuthLoginResponses, PostAuthRefreshData, PostAuthRefreshErrors, PostAuthRefreshResponses, PostBotsByBotIdAclRulesData, PostBotsByBotIdAclRulesErrors, PostBotsByBotIdAclRulesResponses, PostBotsByBotIdCliMessagesData, PostBotsByBotIdCliMessagesErrors, PostBotsByBotIdCliMessagesResponses, PostBotsByBotIdContainerData, PostBotsByBotIdContainerDataExportData, PostBotsByBotIdContainerDataExportErrors, PostBotsByBotIdContainerDataExportResponses, PostBotsByBotIdContainerDataImportData, PostBotsByBotIdContainerDataImportErrors, PostBotsByBotIdContainerDataImportResponses, PostBotsByBotIdContainerDataRestoreData, PostBotsByBotIdContainerDataRestoreErrors, PostBotsByBotIdContainerDataRestoreResponses, PostBotsByBotIdContainerErrors, PostBotsByBotIdContainerFsDeleteData, PostBotsByBotIdContainerFsDeleteErrors, PostBotsByBotIdContainerFsDeleteResponses, PostBotsByBotIdContainerFsMkdirData, PostBotsByBotIdContainerFsMkdirErrors, PostBotsByBotIdContainerFsMkdirResponses, PostBotsByBotIdContainerFsRenameData, PostBotsByBotIdContainerFsRenameErrors, PostBotsByBotIdContainerFsRenameResponses, PostBotsByBotIdContainerFsUploadData, PostBotsByBotIdContainerFsUploadErrors, PostBotsByBotIdContainerFsUploadResponses, PostBotsByBotIdContainerFsWriteData, PostBotsByBotIdContainerFsWriteErrors, PostBotsByBotIdContainerFsWriteResponses, PostBotsByBotIdContainerResponses, PostBotsByBotIdContainerSkillsData, PostBotsByBotIdContainerSkillsErrors, PostBotsByBotIdContainerSkillsResponses, PostBotsByBotIdContainerSnapshotsData, PostBotsByBotIdContainerSnapshotsErrors, PostBotsByBotIdContainerSnapshotsResponses, PostBotsByBotIdContainerSnapshotsRollbackData, PostBotsByBotIdContainerSnapshotsRollbackErrors, PostBotsByBotIdContainerSnapshotsRollbackResponses, PostBotsByBotIdContainerStartData, PostBotsByBotIdContainerStartErrors, PostBotsByBotIdContainerStartResponses, PostBotsByBotIdContainerStopData, PostBotsByBotIdContainerStopErrors, PostBotsByBotIdContainerStopResponses, PostBotsByBotIdEmailBindingsData, PostBotsByBotIdEmailBindingsErrors, PostBotsByBotIdEmailBindingsResponses, PostBotsByBotIdMcpByIdOauthAuthorizeData, PostBotsByBotIdMcpByIdOauthAuthorizeErrors, PostBotsByBotIdMcpByIdOauthAuthorizeResponses, PostBotsByBotIdMcpByIdOauthDiscoverData, PostBotsByBotIdMcpByIdOauthDiscoverErrors, PostBotsByBotIdMcpByIdOauthDiscoverResponses, PostBotsByBotIdMcpByIdOauthExchangeData, PostBotsByBotIdMcpByIdOauthExchangeErrors, PostBotsByBotIdMcpByIdOauthExchangeResponses, PostBotsByBotIdMcpByIdProbeData, PostBotsByBotIdMcpByIdProbeErrors, PostBotsByBotIdMcpByIdProbeResponses, PostBotsByBotIdMcpData, PostBotsByBotIdMcpErrors, PostBotsByBotIdMcpOpsBatchDeleteData, PostBotsByBotIdMcpOpsBatchDeleteErrors, PostBotsByBotIdMcpOpsBatchDeleteResponses, PostBotsByBotIdMcpResponses, PostBotsByBotIdMcpStdioByConnectionIdData, PostBotsByBotIdMcpStdioByConnectionIdErrors, PostBotsByBotIdMcpStdioByConnectionIdResponses, PostBotsByBotIdMcpStdioData, PostBotsByBotIdMcpStdioErrors, PostBotsByBotIdMcpStdioResponses, PostBotsByBotIdMemoryCompactData, PostBotsByBotIdMemoryCompactErrors, PostBotsByBotIdMemoryCompactResponses, PostBotsByBotIdMemoryData, PostBotsByBotIdMemoryErrors, PostBotsByBotIdMemoryRebuildData, PostBotsByBotIdMemoryRebuildErrors, PostBotsByBotIdMemoryRebuildResponses, PostBotsByBotIdMemoryResponses, PostBotsByBotIdMemorySearchData, PostBotsByBotIdMemorySearchErrors, PostBotsByBotIdMemorySearchResponses, PostBotsByBotIdScheduleData, PostBotsByBotIdScheduleErrors, PostBotsByBotIdScheduleResponses, PostBotsByBotIdSessionsData, PostBotsByBotIdSessionsErrors, PostBotsByBotIdSessionsResponses, PostBotsByBotIdSettingsData, PostBotsByBotIdSettingsErrors, PostBotsByBotIdSettingsResponses, PostBotsByBotIdSupermarketInstallMcpData, PostBotsByBotIdSupermarketInstallMcpErrors, PostBotsByBotIdSupermarketInstallMcpResponses, PostBotsByBotIdSupermarketInstallSkillData, PostBotsByBotIdSupermarketInstallSkillErrors, PostBotsByBotIdSupermarketInstallSkillResponses, PostBotsByBotIdToolsData, PostBotsByBotIdToolsErrors, PostBotsByBotIdToolsResponses, PostBotsByBotIdTtsSynthesizeData, PostBotsByBotIdTtsSynthesizeErrors, PostBotsByBotIdTtsSynthesizeResponses, PostBotsByBotIdWebMessagesData, PostBotsByBotIdWebMessagesErrors, PostBotsByBotIdWebMessagesResponses, PostBotsByIdChannelByPlatformSendChatData, PostBotsByIdChannelByPlatformSendChatErrors, PostBotsByIdChannelByPlatformSendChatResponses, PostBotsByIdChannelByPlatformSendData, PostBotsByIdChannelByPlatformSendErrors, PostBotsByIdChannelByPlatformSendResponses, PostBotsData, PostBotsErrors, PostBotsResponses, PostBrowserContextsData, PostBrowserContextsErrors, PostBrowserContextsResponses, PostEmailMailgunWebhookByConfigIdData, PostEmailMailgunWebhookByConfigIdErrors, PostEmailMailgunWebhookByConfigIdResponses, PostEmailProvidersData, PostEmailProvidersErrors, PostEmailProvidersResponses, PostMemoryProvidersData, PostMemoryProvidersErrors, PostMemoryProvidersResponses, PostModelsByIdTestData, PostModelsByIdTestErrors, PostModelsByIdTestResponses, PostModelsData, PostModelsErrors, PostModelsResponses, PostProvidersByIdImportModelsData, PostProvidersByIdImportModelsErrors, PostProvidersByIdImportModelsResponses, PostProvidersByIdTestData, PostProvidersByIdTestErrors, PostProvidersByIdTestResponses, PostProvidersData, PostProvidersErrors, PostProvidersResponses, PostSearchProvidersData, PostSearchProvidersErrors, PostSearchProvidersResponses, PostTtsModelsByIdTestData, PostTtsModelsByIdTestErrors, PostTtsModelsByIdTestResponses, PostTtsModelsData, PostTtsModelsErrors, PostTtsModelsResponses, PostTtsProvidersByIdImportModelsData, PostTtsProvidersByIdImportModelsErrors, PostTtsProvidersByIdImportModelsResponses, PostTtsProvidersData, PostTtsProvidersErrors, PostTtsProvidersResponses, PostUsersData, PostUsersErrors, PostUsersResponses, PutBotsByBotIdAclDefaultEffectData, PutBotsByBotIdAclDefaultEffectErrors, PutBotsByBotIdAclDefaultEffectResponses, PutBotsByBotIdAclRulesByRuleIdData, PutBotsByBotIdAclRulesByRuleIdErrors, PutBotsByBotIdAclRulesByRuleIdResponses, PutBotsByBotIdAclRulesReorderData, PutBotsByBotIdAclRulesReorderErrors, PutBotsByBotIdAclRulesReorderResponses, PutBotsByBotIdEmailBindingsByIdData, PutBotsByBotIdEmailBindingsByIdErrors, PutBotsByBotIdEmailBindingsByIdResponses, PutBotsByBotIdMcpByIdData, PutBotsByBotIdMcpByIdErrors, PutBotsByBotIdMcpByIdResponses, PutBotsByBotIdMcpImportData, PutBotsByBotIdMcpImportErrors, PutBotsByBotIdMcpImportResponses, PutBotsByBotIdScheduleByIdData, PutBotsByBotIdScheduleByIdErrors, PutBotsByBotIdScheduleByIdResponses, PutBotsByBotIdSettingsData, PutBotsByBotIdSettingsErrors, PutBotsByBotIdSettingsResponses, PutBotsByIdChannelByPlatformData, PutBotsByIdChannelByPlatformErrors, PutBotsByIdChannelByPlatformResponses, PutBotsByIdData, PutBotsByIdErrors, PutBotsByIdOwnerData, PutBotsByIdOwnerErrors, PutBotsByIdOwnerResponses, PutBotsByIdResponses, PutBrowserContextsByIdData, PutBrowserContextsByIdErrors, PutBrowserContextsByIdResponses, PutEmailProvidersByIdData, PutEmailProvidersByIdErrors, PutEmailProvidersByIdResponses, PutMemoryProvidersByIdData, PutMemoryProvidersByIdErrors, PutMemoryProvidersByIdResponses, PutModelsByIdData, PutModelsByIdErrors, PutModelsByIdResponses, PutModelsModelByModelIdData, PutModelsModelByModelIdErrors, PutModelsModelByModelIdResponses, PutProvidersByIdData, PutProvidersByIdErrors, PutProvidersByIdResponses, PutSearchProvidersByIdData, PutSearchProvidersByIdErrors, PutSearchProvidersByIdResponses, PutTtsModelsByIdData, PutTtsModelsByIdErrors, PutTtsModelsByIdResponses, PutTtsProvidersByIdData, PutTtsProvidersByIdErrors, PutTtsProvidersByIdResponses, PutUsersByIdData, PutUsersByIdErrors, PutUsersByIdPasswordData, PutUsersByIdPasswordErrors, PutUsersByIdPasswordResponses, PutUsersByIdResponses, PutUsersMeChannelsByPlatformData, PutUsersMeChannelsByPlatformErrors, PutUsersMeChannelsByPlatformResponses, PutUsersMeData, PutUsersMeErrors, PutUsersMePasswordData, PutUsersMePasswordErrors, PutUsersMePasswordResponses, PutUsersMeResponses } from './types.gen';
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
/**
* You can provide a client instance returned by `createClient()` instead of
* individual options. This might be also useful if you want to implement a
* custom client.
*/
client?: Client;
/**
* You can pass arbitrary values through the `meta` object. This can be
* used to access values that aren't defined as part of the SDK function.
*/
meta?: Record<string, unknown>;
};
/**
* Login
*
* Validate user credentials and issue a JWT
*/
export const postAuthLogin = <ThrowOnError extends boolean = false>(options: Options<PostAuthLoginData, ThrowOnError>) => (options.client ?? client).post<PostAuthLoginResponses, PostAuthLoginErrors, ThrowOnError>({
url: '/auth/login',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Refresh Token
*
* Issue a new JWT using the existing claims with updated expiration
*/
export const postAuthRefresh = <ThrowOnError extends boolean = false>(options?: Options<PostAuthRefreshData, ThrowOnError>) => (options?.client ?? client).post<PostAuthRefreshResponses, PostAuthRefreshErrors, ThrowOnError>({ url: '/auth/refresh', ...options });
/**
* List bots
*
* List bots accessible to current user (admin can specify owner_id)
*/
export const getBots = <ThrowOnError extends boolean = false>(options?: Options<GetBotsData, ThrowOnError>) => (options?.client ?? client).get<GetBotsResponses, GetBotsErrors, ThrowOnError>({ url: '/bots', ...options });
/**
* Create bot user
*
* Create a bot user owned by current user (or admin-specified owner)
*/
export const postBots = <ThrowOnError extends boolean = false>(options: Options<PostBotsData, ThrowOnError>) => (options.client ?? client).post<PostBotsResponses, PostBotsErrors, ThrowOnError>({
url: '/bots',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Search ACL channel identity candidates
*
* Search locally observed channel identities for building ACL rules
*/
export const getBotsByBotIdAclChannelIdentities = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdAclChannelIdentitiesData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdAclChannelIdentitiesResponses, GetBotsByBotIdAclChannelIdentitiesErrors, ThrowOnError>({ url: '/bots/{bot_id}/acl/channel-identities', ...options });
/**
* List observed conversations for a channel identity
*
* List previously observed conversation candidates for a channel identity, for scoped rule building
*/
export const getBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversations = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversationsData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversationsResponses, GetBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversationsErrors, ThrowOnError>({ url: '/bots/{bot_id}/acl/channel-identities/{channel_identity_id}/conversations', ...options });
/**
* List observed conversations for a platform type
*
* List previously observed group/thread conversation candidates for a channel type under this bot
*/
export const getBotsByBotIdAclChannelTypesByChannelTypeConversations = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdAclChannelTypesByChannelTypeConversationsData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdAclChannelTypesByChannelTypeConversationsResponses, GetBotsByBotIdAclChannelTypesByChannelTypeConversationsErrors, ThrowOnError>({ url: '/bots/{bot_id}/acl/channel-types/{channel_type}/conversations', ...options });
/**
* Get bot ACL default effect
*
* Get the fallback effect when no rule matches
*/
export const getBotsByBotIdAclDefaultEffect = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdAclDefaultEffectData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdAclDefaultEffectResponses, GetBotsByBotIdAclDefaultEffectErrors, ThrowOnError>({ url: '/bots/{bot_id}/acl/default-effect', ...options });
/**
* Set bot ACL default effect
*
* Set the fallback effect when no rule matches (allow or deny)
*/
export const putBotsByBotIdAclDefaultEffect = <ThrowOnError extends boolean = false>(options: Options<PutBotsByBotIdAclDefaultEffectData, ThrowOnError>) => (options.client ?? client).put<PutBotsByBotIdAclDefaultEffectResponses, PutBotsByBotIdAclDefaultEffectErrors, ThrowOnError>({
url: '/bots/{bot_id}/acl/default-effect',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List bot ACL rules
*
* List all ACL rules for a bot ordered by priority
*/
export const getBotsByBotIdAclRules = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdAclRulesData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdAclRulesResponses, GetBotsByBotIdAclRulesErrors, ThrowOnError>({ url: '/bots/{bot_id}/acl/rules', ...options });
/**
* Create ACL rule
*
* Create a new priority-ordered ACL rule for chat.trigger
*/
export const postBotsByBotIdAclRules = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdAclRulesData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdAclRulesResponses, PostBotsByBotIdAclRulesErrors, ThrowOnError>({
url: '/bots/{bot_id}/acl/rules',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Reorder ACL rules
*
* Batch-update priorities for multiple ACL rules
*/
export const putBotsByBotIdAclRulesReorder = <ThrowOnError extends boolean = false>(options: Options<PutBotsByBotIdAclRulesReorderData, ThrowOnError>) => (options.client ?? client).put<PutBotsByBotIdAclRulesReorderResponses, PutBotsByBotIdAclRulesReorderErrors, ThrowOnError>({
url: '/bots/{bot_id}/acl/rules/reorder',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Delete ACL rule
*
* Delete an ACL rule by ID
*/
export const deleteBotsByBotIdAclRulesByRuleId = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdAclRulesByRuleIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdAclRulesByRuleIdResponses, DeleteBotsByBotIdAclRulesByRuleIdErrors, ThrowOnError>({ url: '/bots/{bot_id}/acl/rules/{rule_id}', ...options });
/**
* Update ACL rule
*
* Update an existing ACL rule
*/
export const putBotsByBotIdAclRulesByRuleId = <ThrowOnError extends boolean = false>(options: Options<PutBotsByBotIdAclRulesByRuleIdData, ThrowOnError>) => (options.client ?? client).put<PutBotsByBotIdAclRulesByRuleIdResponses, PutBotsByBotIdAclRulesByRuleIdErrors, ThrowOnError>({
url: '/bots/{bot_id}/acl/rules/{rule_id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Send a message to a local channel
*
* Post a user message (with optional attachments) through the local channel pipeline.
*/
export const postBotsByBotIdCliMessages = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdCliMessagesData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdCliMessagesResponses, PostBotsByBotIdCliMessagesErrors, ThrowOnError>({
url: '/bots/{bot_id}/cli/messages',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Subscribe to local channel events via SSE
*
* Open a persistent SSE connection to receive real-time stream events for the given bot.
*/
export const getBotsByBotIdCliStream = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdCliStreamData, ThrowOnError>) => (options.client ?? client).sse.get<GetBotsByBotIdCliStreamResponses, GetBotsByBotIdCliStreamErrors, ThrowOnError>({ url: '/bots/{bot_id}/cli/stream', ...options });
/**
* WebSocket chat endpoint
*
* Upgrade to WebSocket for bidirectional chat streaming with abort support.
*/
export const getBotsByBotIdCliWs = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdCliWsData, ThrowOnError>) => (options.client ?? client).get<unknown, GetBotsByBotIdCliWsErrors, ThrowOnError>({ url: '/bots/{bot_id}/cli/ws', ...options });
/**
* Delete compaction logs
*
* Delete all compaction logs for a bot
*/
export const deleteBotsByBotIdCompactionLogs = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdCompactionLogsData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdCompactionLogsResponses, DeleteBotsByBotIdCompactionLogsErrors, ThrowOnError>({ url: '/bots/{bot_id}/compaction/logs', ...options });
/**
* List compaction logs
*
* List compaction logs for a bot
*/
export const getBotsByBotIdCompactionLogs = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdCompactionLogsData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdCompactionLogsResponses, GetBotsByBotIdCompactionLogsErrors, ThrowOnError>({ url: '/bots/{bot_id}/compaction/logs', ...options });
/**
* Delete MCP container for bot
*/
export const deleteBotsByBotIdContainer = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdContainerData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdContainerResponses, DeleteBotsByBotIdContainerErrors, ThrowOnError>({ url: '/bots/{bot_id}/container', ...options });
/**
* Get container info for bot
*/
export const getBotsByBotIdContainer = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdContainerData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdContainerResponses, GetBotsByBotIdContainerErrors, ThrowOnError>({ url: '/bots/{bot_id}/container', ...options });
/**
* Create and start MCP container for bot
*/
export const postBotsByBotIdContainer = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdContainerData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdContainerResponses, PostBotsByBotIdContainerErrors, ThrowOnError>({
url: '/bots/{bot_id}/container',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Export container /data as a tar.gz archive
*/
export const postBotsByBotIdContainerDataExport = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdContainerDataExportData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdContainerDataExportResponses, PostBotsByBotIdContainerDataExportErrors, ThrowOnError>({ url: '/bots/{bot_id}/container/data/export', ...options });
/**
* Import a tar.gz archive into container /data
*/
export const postBotsByBotIdContainerDataImport = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdContainerDataImportData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdContainerDataImportResponses, PostBotsByBotIdContainerDataImportErrors, ThrowOnError>({
...formDataBodySerializer,
url: '/bots/{bot_id}/container/data/import',
...options,
headers: {
'Content-Type': null,
...options.headers
}
});
/**
* Restore previously preserved data into container
*/
export const postBotsByBotIdContainerDataRestore = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdContainerDataRestoreData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdContainerDataRestoreResponses, PostBotsByBotIdContainerDataRestoreErrors, ThrowOnError>({ url: '/bots/{bot_id}/container/data/restore', ...options });
/**
* Get file or directory info
*
* Returns metadata about a file or directory at the given container path
*/
export const getBotsByBotIdContainerFs = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdContainerFsData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdContainerFsResponses, GetBotsByBotIdContainerFsErrors, ThrowOnError>({ url: '/bots/{bot_id}/container/fs', ...options });
/**
* Delete a file or directory
*
* Deletes a file or directory at the given container path
*/
export const postBotsByBotIdContainerFsDelete = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdContainerFsDeleteData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdContainerFsDeleteResponses, PostBotsByBotIdContainerFsDeleteErrors, ThrowOnError>({
url: '/bots/{bot_id}/container/fs/delete',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Download a file as binary stream
*
* Downloads a file from the container with appropriate Content-Type
*/
export const getBotsByBotIdContainerFsDownload = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdContainerFsDownloadData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdContainerFsDownloadResponses, GetBotsByBotIdContainerFsDownloadErrors, ThrowOnError>({ url: '/bots/{bot_id}/container/fs/download', ...options });
/**
* List directory contents
*
* Lists files and directories at the given container path
*/
export const getBotsByBotIdContainerFsList = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdContainerFsListData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdContainerFsListResponses, GetBotsByBotIdContainerFsListErrors, ThrowOnError>({ url: '/bots/{bot_id}/container/fs/list', ...options });
/**
* Create a directory
*
* Creates a directory (and parents) at the given container path
*/
export const postBotsByBotIdContainerFsMkdir = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdContainerFsMkdirData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdContainerFsMkdirResponses, PostBotsByBotIdContainerFsMkdirErrors, ThrowOnError>({
url: '/bots/{bot_id}/container/fs/mkdir',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Read file content as text
*
* Reads the content of a file and returns it as a JSON string
*/
export const getBotsByBotIdContainerFsRead = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdContainerFsReadData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdContainerFsReadResponses, GetBotsByBotIdContainerFsReadErrors, ThrowOnError>({ url: '/bots/{bot_id}/container/fs/read', ...options });
/**
* Rename or move a file/directory
*
* Renames or moves a file/directory from oldPath to newPath
*/
export const postBotsByBotIdContainerFsRename = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdContainerFsRenameData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdContainerFsRenameResponses, PostBotsByBotIdContainerFsRenameErrors, ThrowOnError>({
url: '/bots/{bot_id}/container/fs/rename',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Upload a file via multipart form
*
* Uploads a binary file to the given container path
*/
export const postBotsByBotIdContainerFsUpload = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdContainerFsUploadData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdContainerFsUploadResponses, PostBotsByBotIdContainerFsUploadErrors, ThrowOnError>({
...formDataBodySerializer,
url: '/bots/{bot_id}/container/fs/upload',
...options,
headers: {
'Content-Type': null,
...options.headers
}
});
/**
* Write text content to a file
*
* Creates or overwrites a file with the provided text content
*/
export const postBotsByBotIdContainerFsWrite = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdContainerFsWriteData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdContainerFsWriteResponses, PostBotsByBotIdContainerFsWriteErrors, ThrowOnError>({
url: '/bots/{bot_id}/container/fs/write',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Delete skills from data directory
*/
export const deleteBotsByBotIdContainerSkills = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdContainerSkillsData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdContainerSkillsResponses, DeleteBotsByBotIdContainerSkillsErrors, ThrowOnError>({
url: '/bots/{bot_id}/container/skills',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List skills from data directory
*/
export const getBotsByBotIdContainerSkills = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdContainerSkillsData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdContainerSkillsResponses, GetBotsByBotIdContainerSkillsErrors, ThrowOnError>({ url: '/bots/{bot_id}/container/skills', ...options });
/**
* Upload skills into data directory
*/
export const postBotsByBotIdContainerSkills = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdContainerSkillsData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdContainerSkillsResponses, PostBotsByBotIdContainerSkillsErrors, ThrowOnError>({
url: '/bots/{bot_id}/container/skills',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List snapshots
*/
export const getBotsByBotIdContainerSnapshots = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdContainerSnapshotsData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdContainerSnapshotsResponses, GetBotsByBotIdContainerSnapshotsErrors, ThrowOnError>({ url: '/bots/{bot_id}/container/snapshots', ...options });
/**
* Create container snapshot for bot
*/
export const postBotsByBotIdContainerSnapshots = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdContainerSnapshotsData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdContainerSnapshotsResponses, PostBotsByBotIdContainerSnapshotsErrors, ThrowOnError>({
url: '/bots/{bot_id}/container/snapshots',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Rollback container to a previous snapshot version
*/
export const postBotsByBotIdContainerSnapshotsRollback = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdContainerSnapshotsRollbackData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdContainerSnapshotsRollbackResponses, PostBotsByBotIdContainerSnapshotsRollbackErrors, ThrowOnError>({
url: '/bots/{bot_id}/container/snapshots/rollback',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Start container task for bot
*/
export const postBotsByBotIdContainerStart = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdContainerStartData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdContainerStartResponses, PostBotsByBotIdContainerStartErrors, ThrowOnError>({ url: '/bots/{bot_id}/container/start', ...options });
/**
* Stop container task for bot
*/
export const postBotsByBotIdContainerStop = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdContainerStopData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdContainerStopResponses, PostBotsByBotIdContainerStopErrors, ThrowOnError>({ url: '/bots/{bot_id}/container/stop', ...options });
/**
* Check terminal availability for bot container
*/
export const getBotsByBotIdContainerTerminal = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdContainerTerminalData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdContainerTerminalResponses, GetBotsByBotIdContainerTerminalErrors, ThrowOnError>({ url: '/bots/{bot_id}/container/terminal', ...options });
/**
* Interactive WebSocket terminal for bot container
*/
export const getBotsByBotIdContainerTerminalWs = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdContainerTerminalWsData, ThrowOnError>) => (options.client ?? client).get<unknown, GetBotsByBotIdContainerTerminalWsErrors, ThrowOnError>({ url: '/bots/{bot_id}/container/terminal/ws', ...options });
/**
* List email bindings for a bot
*/
export const getBotsByBotIdEmailBindings = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdEmailBindingsData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdEmailBindingsResponses, GetBotsByBotIdEmailBindingsErrors, ThrowOnError>({ url: '/bots/{bot_id}/email-bindings', ...options });
/**
* Bind an email provider to a bot
*/
export const postBotsByBotIdEmailBindings = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdEmailBindingsData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdEmailBindingsResponses, PostBotsByBotIdEmailBindingsErrors, ThrowOnError>({
url: '/bots/{bot_id}/email-bindings',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Remove an email binding
*/
export const deleteBotsByBotIdEmailBindingsById = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdEmailBindingsByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdEmailBindingsByIdResponses, DeleteBotsByBotIdEmailBindingsByIdErrors, ThrowOnError>({ url: '/bots/{bot_id}/email-bindings/{id}', ...options });
/**
* Update an email binding
*/
export const putBotsByBotIdEmailBindingsById = <ThrowOnError extends boolean = false>(options: Options<PutBotsByBotIdEmailBindingsByIdData, ThrowOnError>) => (options.client ?? client).put<PutBotsByBotIdEmailBindingsByIdResponses, PutBotsByBotIdEmailBindingsByIdErrors, ThrowOnError>({
url: '/bots/{bot_id}/email-bindings/{id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List outbox emails for a bot (audit)
*/
export const getBotsByBotIdEmailOutbox = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdEmailOutboxData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdEmailOutboxResponses, GetBotsByBotIdEmailOutboxErrors, ThrowOnError>({ url: '/bots/{bot_id}/email-outbox', ...options });
/**
* Get outbox email detail
*/
export const getBotsByBotIdEmailOutboxById = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdEmailOutboxByIdData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdEmailOutboxByIdResponses, GetBotsByBotIdEmailOutboxByIdErrors, ThrowOnError>({ url: '/bots/{bot_id}/email-outbox/{id}', ...options });
/**
* Delete heartbeat logs
*
* Delete all heartbeat execution logs for a bot
*/
export const deleteBotsByBotIdHeartbeatLogs = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdHeartbeatLogsData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdHeartbeatLogsResponses, DeleteBotsByBotIdHeartbeatLogsErrors, ThrowOnError>({ url: '/bots/{bot_id}/heartbeat/logs', ...options });
/**
* List heartbeat logs
*
* List heartbeat execution logs for a bot
*/
export const getBotsByBotIdHeartbeatLogs = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdHeartbeatLogsData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdHeartbeatLogsResponses, GetBotsByBotIdHeartbeatLogsErrors, ThrowOnError>({ url: '/bots/{bot_id}/heartbeat/logs', ...options });
/**
* List MCP connections
*
* List MCP connections for a bot
*/
export const getBotsByBotIdMcp = <ThrowOnError extends boolean = false>(options?: Options<GetBotsByBotIdMcpData, ThrowOnError>) => (options?.client ?? client).get<GetBotsByBotIdMcpResponses, GetBotsByBotIdMcpErrors, ThrowOnError>({ url: '/bots/{bot_id}/mcp', ...options });
/**
* Create MCP connection
*
* Create a MCP connection for a bot
*/
export const postBotsByBotIdMcp = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdMcpData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdMcpResponses, PostBotsByBotIdMcpErrors, ThrowOnError>({
url: '/bots/{bot_id}/mcp',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Batch delete MCP connections
*
* Delete multiple MCP connections by IDs.
*/
export const postBotsByBotIdMcpOpsBatchDelete = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdMcpOpsBatchDeleteData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdMcpOpsBatchDeleteResponses, PostBotsByBotIdMcpOpsBatchDeleteErrors, ThrowOnError>({
url: '/bots/{bot_id}/mcp-ops/batch-delete',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Create MCP stdio proxy
*
* Start a stdio MCP process in the bot container and expose it as MCP HTTP endpoint.
*/
export const postBotsByBotIdMcpStdio = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdMcpStdioData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdMcpStdioResponses, PostBotsByBotIdMcpStdioErrors, ThrowOnError>({
url: '/bots/{bot_id}/mcp-stdio',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* MCP stdio proxy (JSON-RPC)
*
* Proxies MCP JSON-RPC requests to a stdio MCP process in the container.
*/
export const postBotsByBotIdMcpStdioByConnectionId = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdMcpStdioByConnectionIdData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdMcpStdioByConnectionIdResponses, PostBotsByBotIdMcpStdioByConnectionIdErrors, ThrowOnError>({
url: '/bots/{bot_id}/mcp-stdio/{connection_id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Export MCP connections
*
* Export all MCP connections for a bot in standard mcpServers format.
*/
export const getBotsByBotIdMcpExport = <ThrowOnError extends boolean = false>(options?: Options<GetBotsByBotIdMcpExportData, ThrowOnError>) => (options?.client ?? client).get<GetBotsByBotIdMcpExportResponses, GetBotsByBotIdMcpExportErrors, ThrowOnError>({ url: '/bots/{bot_id}/mcp/export', ...options });
/**
* Import MCP connections
*
* Batch import MCP connections from standard mcpServers format. Existing connections (matched by name) get config updated with is_active preserved. New connections are created as active.
*/
export const putBotsByBotIdMcpImport = <ThrowOnError extends boolean = false>(options: Options<PutBotsByBotIdMcpImportData, ThrowOnError>) => (options.client ?? client).put<PutBotsByBotIdMcpImportResponses, PutBotsByBotIdMcpImportErrors, ThrowOnError>({
url: '/bots/{bot_id}/mcp/import',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Delete MCP connection
*
* Delete a MCP connection by ID
*/
export const deleteBotsByBotIdMcpById = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdMcpByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdMcpByIdResponses, DeleteBotsByBotIdMcpByIdErrors, ThrowOnError>({ url: '/bots/{bot_id}/mcp/{id}', ...options });
/**
* Get MCP connection
*
* Get a MCP connection by ID
*/
export const getBotsByBotIdMcpById = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdMcpByIdData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdMcpByIdResponses, GetBotsByBotIdMcpByIdErrors, ThrowOnError>({ url: '/bots/{bot_id}/mcp/{id}', ...options });
/**
* Update MCP connection
*
* Update a MCP connection by ID
*/
export const putBotsByBotIdMcpById = <ThrowOnError extends boolean = false>(options: Options<PutBotsByBotIdMcpByIdData, ThrowOnError>) => (options.client ?? client).put<PutBotsByBotIdMcpByIdResponses, PutBotsByBotIdMcpByIdErrors, ThrowOnError>({
url: '/bots/{bot_id}/mcp/{id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Start OAuth authorization flow
*
* Generate PKCE and return authorization URL for the user to authorize
*/
export const postBotsByBotIdMcpByIdOauthAuthorize = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdMcpByIdOauthAuthorizeData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdMcpByIdOauthAuthorizeResponses, PostBotsByBotIdMcpByIdOauthAuthorizeErrors, ThrowOnError>({
url: '/bots/{bot_id}/mcp/{id}/oauth/authorize',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Discover OAuth configuration for MCP server
*
* Probe MCP server URL for OAuth requirements and discover authorization server metadata
*/
export const postBotsByBotIdMcpByIdOauthDiscover = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdMcpByIdOauthDiscoverData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdMcpByIdOauthDiscoverResponses, PostBotsByBotIdMcpByIdOauthDiscoverErrors, ThrowOnError>({
url: '/bots/{bot_id}/mcp/{id}/oauth/discover',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Exchange OAuth authorization code for tokens
*
* Frontend callback page calls this to exchange the authorization code for access/refresh tokens
*/
export const postBotsByBotIdMcpByIdOauthExchange = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdMcpByIdOauthExchangeData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdMcpByIdOauthExchangeResponses, PostBotsByBotIdMcpByIdOauthExchangeErrors, ThrowOnError>({
url: '/bots/{bot_id}/mcp/{id}/oauth/exchange',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get OAuth status for MCP connection
*
* Returns the current OAuth status including whether tokens are available
*/
export const getBotsByBotIdMcpByIdOauthStatus = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdMcpByIdOauthStatusData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdMcpByIdOauthStatusResponses, GetBotsByBotIdMcpByIdOauthStatusErrors, ThrowOnError>({ url: '/bots/{bot_id}/mcp/{id}/oauth/status', ...options });
/**
* Revoke OAuth tokens for MCP connection
*
* Clears stored OAuth tokens
*/
export const deleteBotsByBotIdMcpByIdOauthToken = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdMcpByIdOauthTokenData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdMcpByIdOauthTokenResponses, DeleteBotsByBotIdMcpByIdOauthTokenErrors, ThrowOnError>({ url: '/bots/{bot_id}/mcp/{id}/oauth/token', ...options });
/**
* Probe MCP connection
*
* Probe a MCP connection to discover tools and verify connectivity
*/
export const postBotsByBotIdMcpByIdProbe = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdMcpByIdProbeData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdMcpByIdProbeResponses, PostBotsByBotIdMcpByIdProbeErrors, ThrowOnError>({ url: '/bots/{bot_id}/mcp/{id}/probe', ...options });
/**
* Delete memories
*
* Delete specific memories by IDs, or delete all memories if no IDs are provided
*/
export const deleteBotsByBotIdMemory = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdMemoryData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdMemoryResponses, DeleteBotsByBotIdMemoryErrors, ThrowOnError>({
url: '/bots/{bot_id}/memory',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get all memories
*
* List all memories in the bot-shared namespace
*/
export const getBotsByBotIdMemory = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdMemoryData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdMemoryResponses, GetBotsByBotIdMemoryErrors, ThrowOnError>({ url: '/bots/{bot_id}/memory', ...options });
/**
* Add memory
*
* Add memory into the bot-shared namespace
*/
export const postBotsByBotIdMemory = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdMemoryData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdMemoryResponses, PostBotsByBotIdMemoryErrors, ThrowOnError>({
url: '/bots/{bot_id}/memory',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Compact memories
*
* Consolidate memories by merging similar/redundant entries using LLM.
*
* **ratio** (required, range (0,1]):
* - 0.8 = light compression, mostly dedup, keep ~80% of entries
* - 0.5 = moderate compression, merge similar facts, keep ~50%
* - 0.3 = aggressive compression, heavily consolidate, keep ~30%
*
* **decay_days** (optional): enable time decay — memories older than N days are treated as low priority and more likely to be merged/dropped.
*/
export const postBotsByBotIdMemoryCompact = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdMemoryCompactData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdMemoryCompactResponses, PostBotsByBotIdMemoryCompactErrors, ThrowOnError>({
url: '/bots/{bot_id}/memory/compact',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Rebuild memories from filesystem
*
* Read memory files from the container filesystem (source of truth) and restore missing entries to memory storage
*/
export const postBotsByBotIdMemoryRebuild = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdMemoryRebuildData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdMemoryRebuildResponses, PostBotsByBotIdMemoryRebuildErrors, ThrowOnError>({ url: '/bots/{bot_id}/memory/rebuild', ...options });
/**
* Search memory
*
* Search memory in the bot-shared namespace
*/
export const postBotsByBotIdMemorySearch = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdMemorySearchData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdMemorySearchResponses, PostBotsByBotIdMemorySearchErrors, ThrowOnError>({
url: '/bots/{bot_id}/memory/search',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get memory runtime status
*
* Get the resolved memory runtime status for a bot, including index health and source counts
*/
export const getBotsByBotIdMemoryStatus = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdMemoryStatusData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdMemoryStatusResponses, GetBotsByBotIdMemoryStatusErrors, ThrowOnError>({ url: '/bots/{bot_id}/memory/status', ...options });
/**
* Get memory usage
*
* Query the estimated storage usage of current memories
*/
export const getBotsByBotIdMemoryUsage = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdMemoryUsageData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdMemoryUsageResponses, GetBotsByBotIdMemoryUsageErrors, ThrowOnError>({ url: '/bots/{bot_id}/memory/usage', ...options });
/**
* Delete a single memory
*
* Delete a single memory by its ID
*/
export const deleteBotsByBotIdMemoryById = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdMemoryByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdMemoryByIdResponses, DeleteBotsByBotIdMemoryByIdErrors, ThrowOnError>({ url: '/bots/{bot_id}/memory/{id}', ...options });
/**
* Delete all bot history messages
*
* Clear all persisted bot-level history messages
*/
export const deleteBotsByBotIdMessages = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdMessagesData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdMessagesResponses, DeleteBotsByBotIdMessagesErrors, ThrowOnError>({ url: '/bots/{bot_id}/messages', ...options });
/**
* List bot history messages
*
* List messages for a bot history with optional pagination
*/
export const getBotsByBotIdMessages = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdMessagesData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdMessagesResponses, GetBotsByBotIdMessagesErrors, ThrowOnError>({ url: '/bots/{bot_id}/messages', ...options });
/**
* List schedules
*
* List schedules for current user
*/
export const getBotsByBotIdSchedule = <ThrowOnError extends boolean = false>(options?: Options<GetBotsByBotIdScheduleData, ThrowOnError>) => (options?.client ?? client).get<GetBotsByBotIdScheduleResponses, GetBotsByBotIdScheduleErrors, ThrowOnError>({ url: '/bots/{bot_id}/schedule', ...options });
/**
* Create schedule
*
* Create a schedule for current user
*/
export const postBotsByBotIdSchedule = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdScheduleData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdScheduleResponses, PostBotsByBotIdScheduleErrors, ThrowOnError>({
url: '/bots/{bot_id}/schedule',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Delete schedule logs
*
* Delete all schedule execution logs for a bot
*/
export const deleteBotsByBotIdScheduleLogs = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdScheduleLogsData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdScheduleLogsResponses, DeleteBotsByBotIdScheduleLogsErrors, ThrowOnError>({ url: '/bots/{bot_id}/schedule/logs', ...options });
/**
* List schedule logs
*
* List schedule execution logs for a bot
*/
export const getBotsByBotIdScheduleLogs = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdScheduleLogsData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdScheduleLogsResponses, GetBotsByBotIdScheduleLogsErrors, ThrowOnError>({ url: '/bots/{bot_id}/schedule/logs', ...options });
/**
* Delete schedule
*
* Delete a schedule by ID
*/
export const deleteBotsByBotIdScheduleById = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdScheduleByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdScheduleByIdResponses, DeleteBotsByBotIdScheduleByIdErrors, ThrowOnError>({ url: '/bots/{bot_id}/schedule/{id}', ...options });
/**
* Get schedule
*
* Get a schedule by ID
*/
export const getBotsByBotIdScheduleById = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdScheduleByIdData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdScheduleByIdResponses, GetBotsByBotIdScheduleByIdErrors, ThrowOnError>({ url: '/bots/{bot_id}/schedule/{id}', ...options });
/**
* Update schedule
*
* Update a schedule by ID
*/
export const putBotsByBotIdScheduleById = <ThrowOnError extends boolean = false>(options: Options<PutBotsByBotIdScheduleByIdData, ThrowOnError>) => (options.client ?? client).put<PutBotsByBotIdScheduleByIdResponses, PutBotsByBotIdScheduleByIdErrors, ThrowOnError>({
url: '/bots/{bot_id}/schedule/{id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List schedule logs by schedule
*
* List execution logs for a specific schedule
*/
export const getBotsByBotIdScheduleByIdLogs = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdScheduleByIdLogsData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdScheduleByIdLogsResponses, GetBotsByBotIdScheduleByIdLogsErrors, ThrowOnError>({ url: '/bots/{bot_id}/schedule/{id}/logs', ...options });
/**
* List bot sessions
*/
export const getBotsByBotIdSessions = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdSessionsData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdSessionsResponses, GetBotsByBotIdSessionsErrors, ThrowOnError>({ url: '/bots/{bot_id}/sessions', ...options });
/**
* Create a new chat session
*/
export const postBotsByBotIdSessions = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdSessionsData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdSessionsResponses, PostBotsByBotIdSessionsErrors, ThrowOnError>({
url: '/bots/{bot_id}/sessions',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Soft-delete a session
*/
export const deleteBotsByBotIdSessionsBySessionId = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdSessionsBySessionIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdSessionsBySessionIdResponses, DeleteBotsByBotIdSessionsBySessionIdErrors, ThrowOnError>({ url: '/bots/{bot_id}/sessions/{session_id}', ...options });
/**
* Get a session by ID
*/
export const getBotsByBotIdSessionsBySessionId = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdSessionsBySessionIdData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdSessionsBySessionIdResponses, GetBotsByBotIdSessionsBySessionIdErrors, ThrowOnError>({ url: '/bots/{bot_id}/sessions/{session_id}', ...options });
/**
* Update a session
*/
export const patchBotsByBotIdSessionsBySessionId = <ThrowOnError extends boolean = false>(options: Options<PatchBotsByBotIdSessionsBySessionIdData, ThrowOnError>) => (options.client ?? client).patch<PatchBotsByBotIdSessionsBySessionIdResponses, PatchBotsByBotIdSessionsBySessionIdErrors, ThrowOnError>({
url: '/bots/{bot_id}/sessions/{session_id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get session info
*
* Get aggregated info for a chat session including message count, context usage, cache stats, and used skills
*/
export const getBotsByBotIdSessionsBySessionIdInfo = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdSessionsBySessionIdInfoData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdSessionsBySessionIdInfoResponses, GetBotsByBotIdSessionsBySessionIdInfoErrors, ThrowOnError>({ url: '/bots/{bot_id}/sessions/{session_id}/info', ...options });
/**
* Delete user settings
*
* Remove agent settings for current user
*/
export const deleteBotsByBotIdSettings = <ThrowOnError extends boolean = false>(options?: Options<DeleteBotsByBotIdSettingsData, ThrowOnError>) => (options?.client ?? client).delete<DeleteBotsByBotIdSettingsResponses, DeleteBotsByBotIdSettingsErrors, ThrowOnError>({ url: '/bots/{bot_id}/settings', ...options });
/**
* Get user settings
*
* Get agent settings for current user
*/
export const getBotsByBotIdSettings = <ThrowOnError extends boolean = false>(options?: Options<GetBotsByBotIdSettingsData, ThrowOnError>) => (options?.client ?? client).get<GetBotsByBotIdSettingsResponses, GetBotsByBotIdSettingsErrors, ThrowOnError>({ url: '/bots/{bot_id}/settings', ...options });
/**
* Update user settings
*
* Update or create agent settings for current user
*/
export const postBotsByBotIdSettings = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdSettingsData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdSettingsResponses, PostBotsByBotIdSettingsErrors, ThrowOnError>({
url: '/bots/{bot_id}/settings',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Update user settings
*
* Update or create agent settings for current user
*/
export const putBotsByBotIdSettings = <ThrowOnError extends boolean = false>(options: Options<PutBotsByBotIdSettingsData, ThrowOnError>) => (options.client ?? client).put<PutBotsByBotIdSettingsResponses, PutBotsByBotIdSettingsErrors, ThrowOnError>({
url: '/bots/{bot_id}/settings',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Install MCP from supermarket to bot
*/
export const postBotsByBotIdSupermarketInstallMcp = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdSupermarketInstallMcpData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdSupermarketInstallMcpResponses, PostBotsByBotIdSupermarketInstallMcpErrors, ThrowOnError>({
url: '/bots/{bot_id}/supermarket/install-mcp',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Install skill from supermarket to bot container
*/
export const postBotsByBotIdSupermarketInstallSkill = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdSupermarketInstallSkillData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdSupermarketInstallSkillResponses, PostBotsByBotIdSupermarketInstallSkillErrors, ThrowOnError>({
url: '/bots/{bot_id}/supermarket/install-skill',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get token usage statistics
*
* Get daily aggregated token usage for a bot, split by chat, heartbeat, and schedule session types, with optional model filter and per-model breakdown
*/
export const getBotsByBotIdTokenUsage = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdTokenUsageData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdTokenUsageResponses, GetBotsByBotIdTokenUsageErrors, ThrowOnError>({ url: '/bots/{bot_id}/token-usage', ...options });
/**
* Unified MCP tools gateway
*
* MCP endpoint for tool discovery and invocation.
*/
export const postBotsByBotIdTools = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdToolsData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdToolsResponses, PostBotsByBotIdToolsErrors, ThrowOnError>({
url: '/bots/{bot_id}/tools',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Synthesize speech for a bot
*
* Stream-synthesize text using the bot's configured TTS model, write to temp file
*/
export const postBotsByBotIdTtsSynthesize = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdTtsSynthesizeData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdTtsSynthesizeResponses, PostBotsByBotIdTtsSynthesizeErrors, ThrowOnError>({
url: '/bots/{bot_id}/tts/synthesize',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Send a message to a local channel
*
* Post a user message (with optional attachments) through the local channel pipeline.
*/
export const postBotsByBotIdWebMessages = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdWebMessagesData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdWebMessagesResponses, PostBotsByBotIdWebMessagesErrors, ThrowOnError>({
url: '/bots/{bot_id}/web/messages',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Subscribe to local channel events via SSE
*
* Open a persistent SSE connection to receive real-time stream events for the given bot.
*/
export const getBotsByBotIdWebStream = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdWebStreamData, ThrowOnError>) => (options.client ?? client).sse.get<GetBotsByBotIdWebStreamResponses, GetBotsByBotIdWebStreamErrors, ThrowOnError>({ url: '/bots/{bot_id}/web/stream', ...options });
/**
* WebSocket chat endpoint
*
* Upgrade to WebSocket for bidirectional chat streaming with abort support.
*/
export const getBotsByBotIdWebWs = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdWebWsData, ThrowOnError>) => (options.client ?? client).get<unknown, GetBotsByBotIdWebWsErrors, ThrowOnError>({ url: '/bots/{bot_id}/web/ws', ...options });
/**
* Delete bot
*
* Delete a bot user (owner/admin only)
*/
export const deleteBotsById = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByIdResponses, DeleteBotsByIdErrors, ThrowOnError>({ url: '/bots/{id}', ...options });
/**
* Get bot details
*
* Get a bot by ID (owner/admin only)
*/
export const getBotsById = <ThrowOnError extends boolean = false>(options: Options<GetBotsByIdData, ThrowOnError>) => (options.client ?? client).get<GetBotsByIdResponses, GetBotsByIdErrors, ThrowOnError>({ url: '/bots/{id}', ...options });
/**
* Update bot details
*
* Update bot profile (owner/admin only)
*/
export const putBotsById = <ThrowOnError extends boolean = false>(options: Options<PutBotsByIdData, ThrowOnError>) => (options.client ?? client).put<PutBotsByIdResponses, PutBotsByIdErrors, ThrowOnError>({
url: '/bots/{id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Delete bot channel config
*
* Remove bot channel configuration
*/
export const deleteBotsByIdChannelByPlatform = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByIdChannelByPlatformData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByIdChannelByPlatformResponses, DeleteBotsByIdChannelByPlatformErrors, ThrowOnError>({ url: '/bots/{id}/channel/{platform}', ...options });
/**
* Get bot channel config
*
* Get bot channel configuration
*/
export const getBotsByIdChannelByPlatform = <ThrowOnError extends boolean = false>(options: Options<GetBotsByIdChannelByPlatformData, ThrowOnError>) => (options.client ?? client).get<GetBotsByIdChannelByPlatformResponses, GetBotsByIdChannelByPlatformErrors, ThrowOnError>({ url: '/bots/{id}/channel/{platform}', ...options });
/**
* Update bot channel config
*
* Update bot channel configuration
*/
export const putBotsByIdChannelByPlatform = <ThrowOnError extends boolean = false>(options: Options<PutBotsByIdChannelByPlatformData, ThrowOnError>) => (options.client ?? client).put<PutBotsByIdChannelByPlatformResponses, PutBotsByIdChannelByPlatformErrors, ThrowOnError>({
url: '/bots/{id}/channel/{platform}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Send message via bot channel
*
* Send a message using bot channel configuration
*/
export const postBotsByIdChannelByPlatformSend = <ThrowOnError extends boolean = false>(options: Options<PostBotsByIdChannelByPlatformSendData, ThrowOnError>) => (options.client ?? client).post<PostBotsByIdChannelByPlatformSendResponses, PostBotsByIdChannelByPlatformSendErrors, ThrowOnError>({
url: '/bots/{id}/channel/{platform}/send',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Send message via bot channel session token
*
* Send a message using a session-scoped token (reply only)
*/
export const postBotsByIdChannelByPlatformSendChat = <ThrowOnError extends boolean = false>(options: Options<PostBotsByIdChannelByPlatformSendChatData, ThrowOnError>) => (options.client ?? client).post<PostBotsByIdChannelByPlatformSendChatResponses, PostBotsByIdChannelByPlatformSendChatErrors, ThrowOnError>({
url: '/bots/{id}/channel/{platform}/send_chat',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Update bot channel status
*
* Update bot channel enabled/disabled status
*/
export const patchBotsByIdChannelByPlatformStatus = <ThrowOnError extends boolean = false>(options: Options<PatchBotsByIdChannelByPlatformStatusData, ThrowOnError>) => (options.client ?? client).patch<PatchBotsByIdChannelByPlatformStatusResponses, PatchBotsByIdChannelByPlatformStatusErrors, ThrowOnError>({
url: '/bots/{id}/channel/{platform}/status',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List bot runtime checks
*
* Evaluate bot attached resource checks in runtime
*/
export const getBotsByIdChecks = <ThrowOnError extends boolean = false>(options: Options<GetBotsByIdChecksData, ThrowOnError>) => (options.client ?? client).get<GetBotsByIdChecksResponses, GetBotsByIdChecksErrors, ThrowOnError>({ url: '/bots/{id}/checks', ...options });
/**
* Transfer bot owner (admin only)
*
* Transfer bot ownership to another human user
*/
export const putBotsByIdOwner = <ThrowOnError extends boolean = false>(options: Options<PutBotsByIdOwnerData, ThrowOnError>) => (options.client ?? client).put<PutBotsByIdOwnerResponses, PutBotsByIdOwnerErrors, ThrowOnError>({
url: '/bots/{id}/owner',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List browser contexts
*
* List all browser context configurations
*/
export const getBrowserContexts = <ThrowOnError extends boolean = false>(options?: Options<GetBrowserContextsData, ThrowOnError>) => (options?.client ?? client).get<GetBrowserContextsResponses, GetBrowserContextsErrors, ThrowOnError>({ url: '/browser-contexts', ...options });
/**
* Create a browser context
*
* Create a browser context configuration
*/
export const postBrowserContexts = <ThrowOnError extends boolean = false>(options: Options<PostBrowserContextsData, ThrowOnError>) => (options.client ?? client).post<PostBrowserContextsResponses, PostBrowserContextsErrors, ThrowOnError>({
url: '/browser-contexts',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get available browser cores
*
* Get the list of browser cores available in the Browser Gateway container
*/
export const getBrowserContextsCores = <ThrowOnError extends boolean = false>(options?: Options<GetBrowserContextsCoresData, ThrowOnError>) => (options?.client ?? client).get<GetBrowserContextsCoresResponses, GetBrowserContextsCoresErrors, ThrowOnError>({ url: '/browser-contexts/cores', ...options });
/**
* Delete a browser context
*
* Delete browser context by ID
*/
export const deleteBrowserContextsById = <ThrowOnError extends boolean = false>(options: Options<DeleteBrowserContextsByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteBrowserContextsByIdResponses, DeleteBrowserContextsByIdErrors, ThrowOnError>({ url: '/browser-contexts/{id}', ...options });
/**
* Get a browser context
*
* Get browser context by ID
*/
export const getBrowserContextsById = <ThrowOnError extends boolean = false>(options: Options<GetBrowserContextsByIdData, ThrowOnError>) => (options.client ?? client).get<GetBrowserContextsByIdResponses, GetBrowserContextsByIdErrors, ThrowOnError>({ url: '/browser-contexts/{id}', ...options });
/**
* Update a browser context
*
* Update browser context by ID
*/
export const putBrowserContextsById = <ThrowOnError extends boolean = false>(options: Options<PutBrowserContextsByIdData, ThrowOnError>) => (options.client ?? client).put<PutBrowserContextsByIdResponses, PutBrowserContextsByIdErrors, ThrowOnError>({
url: '/browser-contexts/{id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List channel capabilities and schemas
*
* List channel meta information including capabilities and schemas
*/
export const getChannels = <ThrowOnError extends boolean = false>(options?: Options<GetChannelsData, ThrowOnError>) => (options?.client ?? client).get<GetChannelsResponses, GetChannelsErrors, ThrowOnError>({ url: '/channels', ...options });
/**
* Get channel capabilities and schemas
*
* Get channel meta information including capabilities and schemas
*/
export const getChannelsByPlatform = <ThrowOnError extends boolean = false>(options: Options<GetChannelsByPlatformData, ThrowOnError>) => (options.client ?? client).get<GetChannelsByPlatformResponses, GetChannelsByPlatformErrors, ThrowOnError>({ url: '/channels/{platform}', ...options });
/**
* List email providers
*/
export const getEmailProviders = <ThrowOnError extends boolean = false>(options?: Options<GetEmailProvidersData, ThrowOnError>) => (options?.client ?? client).get<GetEmailProvidersResponses, GetEmailProvidersErrors, ThrowOnError>({ url: '/email-providers', ...options });
/**
* Create an email provider
*/
export const postEmailProviders = <ThrowOnError extends boolean = false>(options: Options<PostEmailProvidersData, ThrowOnError>) => (options.client ?? client).post<PostEmailProvidersResponses, PostEmailProvidersErrors, ThrowOnError>({
url: '/email-providers',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List email provider metadata
*
* List available email provider types and config schemas
*/
export const getEmailProvidersMeta = <ThrowOnError extends boolean = false>(options?: Options<GetEmailProvidersMetaData, ThrowOnError>) => (options?.client ?? client).get<GetEmailProvidersMetaResponses, unknown, ThrowOnError>({ url: '/email-providers/meta', ...options });
/**
* Delete an email provider
*/
export const deleteEmailProvidersById = <ThrowOnError extends boolean = false>(options: Options<DeleteEmailProvidersByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteEmailProvidersByIdResponses, DeleteEmailProvidersByIdErrors, ThrowOnError>({ url: '/email-providers/{id}', ...options });
/**
* Get an email provider
*/
export const getEmailProvidersById = <ThrowOnError extends boolean = false>(options: Options<GetEmailProvidersByIdData, ThrowOnError>) => (options.client ?? client).get<GetEmailProvidersByIdResponses, GetEmailProvidersByIdErrors, ThrowOnError>({ url: '/email-providers/{id}', ...options });
/**
* Update an email provider
*/
export const putEmailProvidersById = <ThrowOnError extends boolean = false>(options: Options<PutEmailProvidersByIdData, ThrowOnError>) => (options.client ?? client).put<PutEmailProvidersByIdResponses, PutEmailProvidersByIdErrors, ThrowOnError>({
url: '/email-providers/{id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Start OAuth2 authorization for an email provider
*
* Returns the authorization URL to redirect the user to
*/
export const getEmailProvidersByIdOauthAuthorize = <ThrowOnError extends boolean = false>(options: Options<GetEmailProvidersByIdOauthAuthorizeData, ThrowOnError>) => (options.client ?? client).get<GetEmailProvidersByIdOauthAuthorizeResponses, GetEmailProvidersByIdOauthAuthorizeErrors, ThrowOnError>({ url: '/email-providers/{id}/oauth/authorize', ...options });
/**
* Get OAuth2 status for an email provider
*/
export const getEmailProvidersByIdOauthStatus = <ThrowOnError extends boolean = false>(options: Options<GetEmailProvidersByIdOauthStatusData, ThrowOnError>) => (options.client ?? client).get<GetEmailProvidersByIdOauthStatusResponses, GetEmailProvidersByIdOauthStatusErrors, ThrowOnError>({ url: '/email-providers/{id}/oauth/status', ...options });
/**
* Revoke stored OAuth2 tokens for an email provider
*/
export const deleteEmailProvidersByIdOauthToken = <ThrowOnError extends boolean = false>(options: Options<DeleteEmailProvidersByIdOauthTokenData, ThrowOnError>) => (options.client ?? client).delete<DeleteEmailProvidersByIdOauthTokenResponses, DeleteEmailProvidersByIdOauthTokenErrors, ThrowOnError>({ url: '/email-providers/{id}/oauth/token', ...options });
/**
* Mailgun inbound email webhook
*
* Receives inbound emails from Mailgun
*/
export const postEmailMailgunWebhookByConfigId = <ThrowOnError extends boolean = false>(options: Options<PostEmailMailgunWebhookByConfigIdData, ThrowOnError>) => (options.client ?? client).post<PostEmailMailgunWebhookByConfigIdResponses, PostEmailMailgunWebhookByConfigIdErrors, ThrowOnError>({ url: '/email/mailgun/webhook/{config_id}', ...options });
/**
* OAuth2 callback for email providers
*
* Handles the OAuth2 callback, exchanges the code for tokens
*/
export const getEmailOauthCallback = <ThrowOnError extends boolean = false>(options: Options<GetEmailOauthCallbackData, ThrowOnError>) => (options.client ?? client).get<GetEmailOauthCallbackResponses, GetEmailOauthCallbackErrors, ThrowOnError>({ url: '/email/oauth/callback', ...options });
/**
* List memory providers
*
* List configured memory providers
*/
export const getMemoryProviders = <ThrowOnError extends boolean = false>(options?: Options<GetMemoryProvidersData, ThrowOnError>) => (options?.client ?? client).get<GetMemoryProvidersResponses, GetMemoryProvidersErrors, ThrowOnError>({ url: '/memory-providers', ...options });
/**
* Create a memory provider
*
* Create a memory provider configuration
*/
export const postMemoryProviders = <ThrowOnError extends boolean = false>(options: Options<PostMemoryProvidersData, ThrowOnError>) => (options.client ?? client).post<PostMemoryProvidersResponses, PostMemoryProvidersErrors, ThrowOnError>({
url: '/memory-providers',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List memory provider metadata
*
* List available memory provider types and config schemas
*/
export const getMemoryProvidersMeta = <ThrowOnError extends boolean = false>(options?: Options<GetMemoryProvidersMetaData, ThrowOnError>) => (options?.client ?? client).get<GetMemoryProvidersMetaResponses, unknown, ThrowOnError>({ url: '/memory-providers/meta', ...options });
/**
* Delete a memory provider
*
* Delete memory provider by ID
*/
export const deleteMemoryProvidersById = <ThrowOnError extends boolean = false>(options: Options<DeleteMemoryProvidersByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteMemoryProvidersByIdResponses, DeleteMemoryProvidersByIdErrors, ThrowOnError>({ url: '/memory-providers/{id}', ...options });
/**
* Get a memory provider
*
* Get memory provider by ID
*/
export const getMemoryProvidersById = <ThrowOnError extends boolean = false>(options: Options<GetMemoryProvidersByIdData, ThrowOnError>) => (options.client ?? client).get<GetMemoryProvidersByIdResponses, GetMemoryProvidersByIdErrors, ThrowOnError>({ url: '/memory-providers/{id}', ...options });
/**
* Update a memory provider
*
* Update memory provider by ID
*/
export const putMemoryProvidersById = <ThrowOnError extends boolean = false>(options: Options<PutMemoryProvidersByIdData, ThrowOnError>) => (options.client ?? client).put<PutMemoryProvidersByIdResponses, PutMemoryProvidersByIdErrors, ThrowOnError>({
url: '/memory-providers/{id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get memory provider status
*
* Get runtime status data for a memory provider
*/
export const getMemoryProvidersByIdStatus = <ThrowOnError extends boolean = false>(options: Options<GetMemoryProvidersByIdStatusData, ThrowOnError>) => (options.client ?? client).get<GetMemoryProvidersByIdStatusResponses, GetMemoryProvidersByIdStatusErrors, ThrowOnError>({ url: '/memory-providers/{id}/status', ...options });
/**
* List all models
*
* Get a list of all configured models, optionally filtered by type or provider client type
*/
export const getModels = <ThrowOnError extends boolean = false>(options?: Options<GetModelsData, ThrowOnError>) => (options?.client ?? client).get<GetModelsResponses, GetModelsErrors, ThrowOnError>({ url: '/models', ...options });
/**
* Create a new model
*
* Create a new model configuration
*/
export const postModels = <ThrowOnError extends boolean = false>(options: Options<PostModelsData, ThrowOnError>) => (options.client ?? client).post<PostModelsResponses, PostModelsErrors, ThrowOnError>({
url: '/models',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get model count
*
* Get the total count of models, optionally filtered by type
*/
export const getModelsCount = <ThrowOnError extends boolean = false>(options?: Options<GetModelsCountData, ThrowOnError>) => (options?.client ?? client).get<GetModelsCountResponses, GetModelsCountErrors, ThrowOnError>({ url: '/models/count', ...options });
/**
* Delete model by model ID
*
* Delete a model configuration by its model_id field (e.g., gpt-4)
*/
export const deleteModelsModelByModelId = <ThrowOnError extends boolean = false>(options: Options<DeleteModelsModelByModelIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteModelsModelByModelIdResponses, DeleteModelsModelByModelIdErrors, ThrowOnError>({ url: '/models/model/{modelId}', ...options });
/**
* Get model by model ID
*
* Get a model configuration by its model_id field (e.g., gpt-4)
*/
export const getModelsModelByModelId = <ThrowOnError extends boolean = false>(options: Options<GetModelsModelByModelIdData, ThrowOnError>) => (options.client ?? client).get<GetModelsModelByModelIdResponses, GetModelsModelByModelIdErrors, ThrowOnError>({ url: '/models/model/{modelId}', ...options });
/**
* Update model by model ID
*
* Update a model configuration by its model_id field (e.g., gpt-4)
*/
export const putModelsModelByModelId = <ThrowOnError extends boolean = false>(options: Options<PutModelsModelByModelIdData, ThrowOnError>) => (options.client ?? client).put<PutModelsModelByModelIdResponses, PutModelsModelByModelIdErrors, ThrowOnError>({
url: '/models/model/{modelId}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Delete model by internal ID
*
* Delete a model configuration by its internal UUID
*/
export const deleteModelsById = <ThrowOnError extends boolean = false>(options: Options<DeleteModelsByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteModelsByIdResponses, DeleteModelsByIdErrors, ThrowOnError>({ url: '/models/{id}', ...options });
/**
* Get model by internal ID
*
* Get a model configuration by its internal UUID
*/
export const getModelsById = <ThrowOnError extends boolean = false>(options: Options<GetModelsByIdData, ThrowOnError>) => (options.client ?? client).get<GetModelsByIdResponses, GetModelsByIdErrors, ThrowOnError>({ url: '/models/{id}', ...options });
/**
* Update model by internal ID
*
* Update a model configuration by its internal UUID
*/
export const putModelsById = <ThrowOnError extends boolean = false>(options: Options<PutModelsByIdData, ThrowOnError>) => (options.client ?? client).put<PutModelsByIdResponses, PutModelsByIdErrors, ThrowOnError>({
url: '/models/{id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Test model connectivity
*
* Probe a model's provider endpoint using the model's real model_id and client_type to verify configuration
*/
export const postModelsByIdTest = <ThrowOnError extends boolean = false>(options: Options<PostModelsByIdTestData, ThrowOnError>) => (options.client ?? client).post<PostModelsByIdTestResponses, PostModelsByIdTestErrors, ThrowOnError>({ url: '/models/{id}/test', ...options });
/**
* Health check with server capabilities
*/
export const getPing = <ThrowOnError extends boolean = false>(options?: Options<GetPingData, ThrowOnError>) => (options?.client ?? client).get<GetPingResponses, unknown, ThrowOnError>({ url: '/ping', ...options });
/**
* List all LLM providers
*
* Get a list of all configured LLM providers
*/
export const getProviders = <ThrowOnError extends boolean = false>(options?: Options<GetProvidersData, ThrowOnError>) => (options?.client ?? client).get<GetProvidersResponses, GetProvidersErrors, ThrowOnError>({ url: '/providers', ...options });
/**
* Create a new LLM provider
*
* Create a new LLM provider configuration
*/
export const postProviders = <ThrowOnError extends boolean = false>(options: Options<PostProvidersData, ThrowOnError>) => (options.client ?? client).post<PostProvidersResponses, PostProvidersErrors, ThrowOnError>({
url: '/providers',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Count providers
*
* Get the total count of providers
*/
export const getProvidersCount = <ThrowOnError extends boolean = false>(options?: Options<GetProvidersCountData, ThrowOnError>) => (options?.client ?? client).get<GetProvidersCountResponses, GetProvidersCountErrors, ThrowOnError>({ url: '/providers/count', ...options });
/**
* Get provider by name
*
* Get a provider configuration by its name
*/
export const getProvidersNameByName = <ThrowOnError extends boolean = false>(options: Options<GetProvidersNameByNameData, ThrowOnError>) => (options.client ?? client).get<GetProvidersNameByNameResponses, GetProvidersNameByNameErrors, ThrowOnError>({ url: '/providers/name/{name}', ...options });
/**
* OAuth2 callback for LLM providers
*/
export const getProvidersOauthCallback = <ThrowOnError extends boolean = false>(options: Options<GetProvidersOauthCallbackData, ThrowOnError>) => (options.client ?? client).get<GetProvidersOauthCallbackResponses, GetProvidersOauthCallbackErrors, ThrowOnError>({ url: '/providers/oauth/callback', ...options });
/**
* Delete provider
*
* Delete a provider configuration
*/
export const deleteProvidersById = <ThrowOnError extends boolean = false>(options: Options<DeleteProvidersByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteProvidersByIdResponses, DeleteProvidersByIdErrors, ThrowOnError>({ url: '/providers/{id}', ...options });
/**
* Get provider by ID
*
* Get a provider configuration by its ID
*/
export const getProvidersById = <ThrowOnError extends boolean = false>(options: Options<GetProvidersByIdData, ThrowOnError>) => (options.client ?? client).get<GetProvidersByIdResponses, GetProvidersByIdErrors, ThrowOnError>({ url: '/providers/{id}', ...options });
/**
* Update provider
*
* Update an existing provider configuration
*/
export const putProvidersById = <ThrowOnError extends boolean = false>(options: Options<PutProvidersByIdData, ThrowOnError>) => (options.client ?? client).put<PutProvidersByIdResponses, PutProvidersByIdErrors, ThrowOnError>({
url: '/providers/{id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Import models from provider
*
* Fetch models from provider's /v1/models endpoint and import them
*/
export const postProvidersByIdImportModels = <ThrowOnError extends boolean = false>(options: Options<PostProvidersByIdImportModelsData, ThrowOnError>) => (options.client ?? client).post<PostProvidersByIdImportModelsResponses, PostProvidersByIdImportModelsErrors, ThrowOnError>({ url: '/providers/{id}/import-models', ...options });
/**
* List provider models
*
* Get models for a provider by id, optionally filtered by type
*/
export const getProvidersByIdModels = <ThrowOnError extends boolean = false>(options: Options<GetProvidersByIdModelsData, ThrowOnError>) => (options.client ?? client).get<GetProvidersByIdModelsResponses, GetProvidersByIdModelsErrors, ThrowOnError>({ url: '/providers/{id}/models', ...options });
/**
* Start OAuth2 authorization for an LLM provider
*/
export const getProvidersByIdOauthAuthorize = <ThrowOnError extends boolean = false>(options: Options<GetProvidersByIdOauthAuthorizeData, ThrowOnError>) => (options.client ?? client).get<GetProvidersByIdOauthAuthorizeResponses, GetProvidersByIdOauthAuthorizeErrors, ThrowOnError>({ url: '/providers/{id}/oauth/authorize', ...options });
/**
* Get OAuth2 status for an LLM provider
*/
export const getProvidersByIdOauthStatus = <ThrowOnError extends boolean = false>(options: Options<GetProvidersByIdOauthStatusData, ThrowOnError>) => (options.client ?? client).get<GetProvidersByIdOauthStatusResponses, GetProvidersByIdOauthStatusErrors, ThrowOnError>({ url: '/providers/{id}/oauth/status', ...options });
/**
* Revoke stored OAuth2 tokens for an LLM provider
*/
export const deleteProvidersByIdOauthToken = <ThrowOnError extends boolean = false>(options: Options<DeleteProvidersByIdOauthTokenData, ThrowOnError>) => (options.client ?? client).delete<DeleteProvidersByIdOauthTokenResponses, DeleteProvidersByIdOauthTokenErrors, ThrowOnError>({ url: '/providers/{id}/oauth/token', ...options });
/**
* Test provider connectivity
*
* Probe a provider's base URL to check reachability, supported client types, and embedding support
*/
export const postProvidersByIdTest = <ThrowOnError extends boolean = false>(options: Options<PostProvidersByIdTestData, ThrowOnError>) => (options.client ?? client).post<PostProvidersByIdTestResponses, PostProvidersByIdTestErrors, ThrowOnError>({ url: '/providers/{id}/test', ...options });
/**
* List search providers
*
* List configured search providers
*/
export const getSearchProviders = <ThrowOnError extends boolean = false>(options?: Options<GetSearchProvidersData, ThrowOnError>) => (options?.client ?? client).get<GetSearchProvidersResponses, GetSearchProvidersErrors, ThrowOnError>({ url: '/search-providers', ...options });
/**
* Create a search provider
*
* Create a search provider configuration
*/
export const postSearchProviders = <ThrowOnError extends boolean = false>(options: Options<PostSearchProvidersData, ThrowOnError>) => (options.client ?? client).post<PostSearchProvidersResponses, PostSearchProvidersErrors, ThrowOnError>({
url: '/search-providers',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List search provider metadata
*
* List available search provider types and config schemas
*/
export const getSearchProvidersMeta = <ThrowOnError extends boolean = false>(options?: Options<GetSearchProvidersMetaData, ThrowOnError>) => (options?.client ?? client).get<GetSearchProvidersMetaResponses, unknown, ThrowOnError>({ url: '/search-providers/meta', ...options });
/**
* Delete a search provider
*
* Delete search provider by ID
*/
export const deleteSearchProvidersById = <ThrowOnError extends boolean = false>(options: Options<DeleteSearchProvidersByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteSearchProvidersByIdResponses, DeleteSearchProvidersByIdErrors, ThrowOnError>({ url: '/search-providers/{id}', ...options });
/**
* Get a search provider
*
* Get search provider by ID
*/
export const getSearchProvidersById = <ThrowOnError extends boolean = false>(options: Options<GetSearchProvidersByIdData, ThrowOnError>) => (options.client ?? client).get<GetSearchProvidersByIdResponses, GetSearchProvidersByIdErrors, ThrowOnError>({ url: '/search-providers/{id}', ...options });
/**
* Update a search provider
*
* Update search provider by ID
*/
export const putSearchProvidersById = <ThrowOnError extends boolean = false>(options: Options<PutSearchProvidersByIdData, ThrowOnError>) => (options.client ?? client).put<PutSearchProvidersByIdResponses, PutSearchProvidersByIdErrors, ThrowOnError>({
url: '/search-providers/{id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List MCPs from supermarket
*/
export const getSupermarketMcps = <ThrowOnError extends boolean = false>(options?: Options<GetSupermarketMcpsData, ThrowOnError>) => (options?.client ?? client).get<GetSupermarketMcpsResponses, GetSupermarketMcpsErrors, ThrowOnError>({ url: '/supermarket/mcps', ...options });
/**
* Get MCP detail from supermarket
*/
export const getSupermarketMcpsById = <ThrowOnError extends boolean = false>(options: Options<GetSupermarketMcpsByIdData, ThrowOnError>) => (options.client ?? client).get<GetSupermarketMcpsByIdResponses, GetSupermarketMcpsByIdErrors, ThrowOnError>({ url: '/supermarket/mcps/{id}', ...options });
/**
* List skills from supermarket
*/
export const getSupermarketSkills = <ThrowOnError extends boolean = false>(options?: Options<GetSupermarketSkillsData, ThrowOnError>) => (options?.client ?? client).get<GetSupermarketSkillsResponses, GetSupermarketSkillsErrors, ThrowOnError>({ url: '/supermarket/skills', ...options });
/**
* Get skill detail from supermarket
*/
export const getSupermarketSkillsById = <ThrowOnError extends boolean = false>(options: Options<GetSupermarketSkillsByIdData, ThrowOnError>) => (options.client ?? client).get<GetSupermarketSkillsByIdResponses, GetSupermarketSkillsByIdErrors, ThrowOnError>({ url: '/supermarket/skills/{id}', ...options });
/**
* List all tags from supermarket
*/
export const getSupermarketTags = <ThrowOnError extends boolean = false>(options?: Options<GetSupermarketTagsData, ThrowOnError>) => (options?.client ?? client).get<GetSupermarketTagsResponses, GetSupermarketTagsErrors, ThrowOnError>({ url: '/supermarket/tags', ...options });
/**
* List all TTS models
*/
export const getTtsModels = <ThrowOnError extends boolean = false>(options?: Options<GetTtsModelsData, ThrowOnError>) => (options?.client ?? client).get<GetTtsModelsResponses, GetTtsModelsErrors, ThrowOnError>({ url: '/tts-models', ...options });
/**
* Create a TTS model
*
* Manually create a TTS model under a specific provider
*/
export const postTtsModels = <ThrowOnError extends boolean = false>(options: Options<PostTtsModelsData, ThrowOnError>) => (options.client ?? client).post<PostTtsModelsResponses, PostTtsModelsErrors, ThrowOnError>({
url: '/tts-models',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Delete a TTS model
*/
export const deleteTtsModelsById = <ThrowOnError extends boolean = false>(options: Options<DeleteTtsModelsByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteTtsModelsByIdResponses, DeleteTtsModelsByIdErrors, ThrowOnError>({ url: '/tts-models/{id}', ...options });
/**
* Get a TTS model
*/
export const getTtsModelsById = <ThrowOnError extends boolean = false>(options: Options<GetTtsModelsByIdData, ThrowOnError>) => (options.client ?? client).get<GetTtsModelsByIdResponses, GetTtsModelsByIdErrors, ThrowOnError>({ url: '/tts-models/{id}', ...options });
/**
* Update a TTS model
*/
export const putTtsModelsById = <ThrowOnError extends boolean = false>(options: Options<PutTtsModelsByIdData, ThrowOnError>) => (options.client ?? client).put<PutTtsModelsByIdResponses, PutTtsModelsByIdErrors, ThrowOnError>({
url: '/tts-models/{id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get TTS model capabilities
*/
export const getTtsModelsByIdCapabilities = <ThrowOnError extends boolean = false>(options: Options<GetTtsModelsByIdCapabilitiesData, ThrowOnError>) => (options.client ?? client).get<GetTtsModelsByIdCapabilitiesResponses, GetTtsModelsByIdCapabilitiesErrors, ThrowOnError>({ url: '/tts-models/{id}/capabilities', ...options });
/**
* Test TTS model synthesis
*
* Synthesize text using a specific model's config and return audio
*/
export const postTtsModelsByIdTest = <ThrowOnError extends boolean = false>(options: Options<PostTtsModelsByIdTestData, ThrowOnError>) => (options.client ?? client).post<PostTtsModelsByIdTestResponses, PostTtsModelsByIdTestErrors, ThrowOnError>({
url: '/tts-models/{id}/test',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List TTS providers
*/
export const getTtsProviders = <ThrowOnError extends boolean = false>(options?: Options<GetTtsProvidersData, ThrowOnError>) => (options?.client ?? client).get<GetTtsProvidersResponses, GetTtsProvidersErrors, ThrowOnError>({ url: '/tts-providers', ...options });
/**
* Create a TTS provider
*
* Create a TTS provider and auto-import its available models
*/
export const postTtsProviders = <ThrowOnError extends boolean = false>(options: Options<PostTtsProvidersData, ThrowOnError>) => (options.client ?? client).post<PostTtsProvidersResponses, PostTtsProvidersErrors, ThrowOnError>({
url: '/tts-providers',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List TTS provider metadata
*
* List available TTS provider types with their models and capabilities
*/
export const getTtsProvidersMeta = <ThrowOnError extends boolean = false>(options?: Options<GetTtsProvidersMetaData, ThrowOnError>) => (options?.client ?? client).get<GetTtsProvidersMetaResponses, unknown, ThrowOnError>({ url: '/tts-providers/meta', ...options });
/**
* Delete a TTS provider
*/
export const deleteTtsProvidersById = <ThrowOnError extends boolean = false>(options: Options<DeleteTtsProvidersByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteTtsProvidersByIdResponses, DeleteTtsProvidersByIdErrors, ThrowOnError>({ url: '/tts-providers/{id}', ...options });
/**
* Get a TTS provider
*/
export const getTtsProvidersById = <ThrowOnError extends boolean = false>(options: Options<GetTtsProvidersByIdData, ThrowOnError>) => (options.client ?? client).get<GetTtsProvidersByIdResponses, GetTtsProvidersByIdErrors, ThrowOnError>({ url: '/tts-providers/{id}', ...options });
/**
* Update a TTS provider
*/
export const putTtsProvidersById = <ThrowOnError extends boolean = false>(options: Options<PutTtsProvidersByIdData, ThrowOnError>) => (options.client ?? client).put<PutTtsProvidersByIdResponses, PutTtsProvidersByIdErrors, ThrowOnError>({
url: '/tts-providers/{id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Import models for a TTS provider
*
* Discover and import available models from the TTS adapter
*/
export const postTtsProvidersByIdImportModels = <ThrowOnError extends boolean = false>(options: Options<PostTtsProvidersByIdImportModelsData, ThrowOnError>) => (options.client ?? client).post<PostTtsProvidersByIdImportModelsResponses, PostTtsProvidersByIdImportModelsErrors, ThrowOnError>({ url: '/tts-providers/{id}/import-models', ...options });
/**
* List models for a TTS provider
*/
export const getTtsProvidersByIdModels = <ThrowOnError extends boolean = false>(options: Options<GetTtsProvidersByIdModelsData, ThrowOnError>) => (options.client ?? client).get<GetTtsProvidersByIdModelsResponses, GetTtsProvidersByIdModelsErrors, ThrowOnError>({ url: '/tts-providers/{id}/models', ...options });
/**
* List users (admin only)
*
* List users
*/
export const getUsers = <ThrowOnError extends boolean = false>(options?: Options<GetUsersData, ThrowOnError>) => (options?.client ?? client).get<GetUsersResponses, GetUsersErrors, ThrowOnError>({ url: '/users', ...options });
/**
* Create human user (admin only)
*
* Create a new human user account
*/
export const postUsers = <ThrowOnError extends boolean = false>(options: Options<PostUsersData, ThrowOnError>) => (options.client ?? client).post<PostUsersResponses, PostUsersErrors, ThrowOnError>({
url: '/users',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get current user
*
* Get current user profile
*/
export const getUsersMe = <ThrowOnError extends boolean = false>(options?: Options<GetUsersMeData, ThrowOnError>) => (options?.client ?? client).get<GetUsersMeResponses, GetUsersMeErrors, ThrowOnError>({ url: '/users/me', ...options });
/**
* Update current user profile
*
* Update current user display name or avatar
*/
export const putUsersMe = <ThrowOnError extends boolean = false>(options: Options<PutUsersMeData, ThrowOnError>) => (options.client ?? client).put<PutUsersMeResponses, PutUsersMeErrors, ThrowOnError>({
url: '/users/me',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get channel user config
*
* Get channel binding configuration for current user
*/
export const getUsersMeChannelsByPlatform = <ThrowOnError extends boolean = false>(options: Options<GetUsersMeChannelsByPlatformData, ThrowOnError>) => (options.client ?? client).get<GetUsersMeChannelsByPlatformResponses, GetUsersMeChannelsByPlatformErrors, ThrowOnError>({ url: '/users/me/channels/{platform}', ...options });
/**
* Update channel user config
*
* Update channel binding configuration for current user
*/
export const putUsersMeChannelsByPlatform = <ThrowOnError extends boolean = false>(options: Options<PutUsersMeChannelsByPlatformData, ThrowOnError>) => (options.client ?? client).put<PutUsersMeChannelsByPlatformResponses, PutUsersMeChannelsByPlatformErrors, ThrowOnError>({
url: '/users/me/channels/{platform}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* List current user's channel identities
*
* List all channel identities linked to current user
*/
export const getUsersMeIdentities = <ThrowOnError extends boolean = false>(options?: Options<GetUsersMeIdentitiesData, ThrowOnError>) => (options?.client ?? client).get<GetUsersMeIdentitiesResponses, GetUsersMeIdentitiesErrors, ThrowOnError>({ url: '/users/me/identities', ...options });
/**
* Update current user password
*
* Update current user password with current password check
*/
export const putUsersMePassword = <ThrowOnError extends boolean = false>(options: Options<PutUsersMePasswordData, ThrowOnError>) => (options.client ?? client).put<PutUsersMePasswordResponses, PutUsersMePasswordErrors, ThrowOnError>({
url: '/users/me/password',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get user by ID
*
* Get user details (self or admin only)
*/
export const getUsersById = <ThrowOnError extends boolean = false>(options: Options<GetUsersByIdData, ThrowOnError>) => (options.client ?? client).get<GetUsersByIdResponses, GetUsersByIdErrors, ThrowOnError>({ url: '/users/{id}', ...options });
/**
* Update user (admin only)
*
* Update user profile and status
*/
export const putUsersById = <ThrowOnError extends boolean = false>(options: Options<PutUsersByIdData, ThrowOnError>) => (options.client ?? client).put<PutUsersByIdResponses, PutUsersByIdErrors, ThrowOnError>({
url: '/users/{id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Reset user password (admin only)
*
* Reset a user password
*/
export const putUsersByIdPassword = <ThrowOnError extends boolean = false>(options: Options<PutUsersByIdPasswordData, ThrowOnError>) => (options.client ?? client).put<PutUsersByIdPasswordResponses, PutUsersByIdPasswordErrors, ThrowOnError>({
url: '/users/{id}/password',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});