Files
Memoh/packages/sdk/src/sdk.gen.ts
T
Acbox Liu c8728ffc2c refactor(browser): split browser cores via build ARG, add core selector (#237)
* refactor(browser): split browser cores via build ARG, add core selector

- Replace playwright official image with ubuntu:noble base in both
  docker/Dockerfile.browser and devenv/Dockerfile.browser; install
  browsers at build time driven by ARG/ENV BROWSER_CORES
- Add GET /cores endpoint to Browser Gateway reporting available cores
- Proxy GET /browser-contexts/cores in Go handler to Browser Gateway
- Add `core` field to BrowserContextConfigModel and GatewayBrowserContext;
  context creation selects the appropriate browser instance by core
- Frontend context-setting page fetches available cores and renders a
  core selector; saves core as part of the config JSON
- install.sh prompts for browser core selection and writes BROWSER_CORES
  to .env; builds the browser image locally before docker compose up
- Regenerate OpenAPI spec and TypeScript SDK

* fix: lint
2026-03-14 12:37:20 +08:00

1811 lines
98 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 { DeleteBotsByBotIdContainerData, DeleteBotsByBotIdContainerErrors, DeleteBotsByBotIdContainerResponses, DeleteBotsByBotIdContainerSkillsData, DeleteBotsByBotIdContainerSkillsErrors, DeleteBotsByBotIdContainerSkillsResponses, DeleteBotsByBotIdEmailBindingsByIdData, DeleteBotsByBotIdEmailBindingsByIdErrors, DeleteBotsByBotIdEmailBindingsByIdResponses, DeleteBotsByBotIdHeartbeatLogsData, DeleteBotsByBotIdHeartbeatLogsErrors, DeleteBotsByBotIdHeartbeatLogsResponses, DeleteBotsByBotIdInboxByIdData, DeleteBotsByBotIdInboxByIdErrors, DeleteBotsByBotIdInboxByIdResponses, DeleteBotsByBotIdMcpByIdData, DeleteBotsByBotIdMcpByIdErrors, DeleteBotsByBotIdMcpByIdOauthTokenData, DeleteBotsByBotIdMcpByIdOauthTokenErrors, DeleteBotsByBotIdMcpByIdOauthTokenResponses, DeleteBotsByBotIdMcpByIdResponses, DeleteBotsByBotIdMemoryByIdData, DeleteBotsByBotIdMemoryByIdErrors, DeleteBotsByBotIdMemoryByIdResponses, DeleteBotsByBotIdMemoryData, DeleteBotsByBotIdMemoryErrors, DeleteBotsByBotIdMemoryResponses, DeleteBotsByBotIdMessagesData, DeleteBotsByBotIdMessagesErrors, DeleteBotsByBotIdMessagesResponses, DeleteBotsByBotIdScheduleByIdData, DeleteBotsByBotIdScheduleByIdErrors, DeleteBotsByBotIdScheduleByIdResponses, DeleteBotsByBotIdSettingsData, DeleteBotsByBotIdSettingsErrors, DeleteBotsByBotIdSettingsResponses, DeleteBotsByBotIdSubagentsByIdData, DeleteBotsByBotIdSubagentsByIdErrors, DeleteBotsByBotIdSubagentsByIdResponses, DeleteBotsByIdChannelByPlatformData, DeleteBotsByIdChannelByPlatformErrors, DeleteBotsByIdChannelByPlatformResponses, DeleteBotsByIdData, DeleteBotsByIdErrors, DeleteBotsByIdMembersByUserIdData, DeleteBotsByIdMembersByUserIdErrors, DeleteBotsByIdMembersByUserIdResponses, DeleteBotsByIdResponses, DeleteBrowserContextsByIdData, DeleteBrowserContextsByIdErrors, DeleteBrowserContextsByIdResponses, DeleteEmailProvidersByIdData, DeleteEmailProvidersByIdErrors, DeleteEmailProvidersByIdOauthTokenData, DeleteEmailProvidersByIdOauthTokenErrors, DeleteEmailProvidersByIdOauthTokenResponses, DeleteEmailProvidersByIdResponses, DeleteMemoryProvidersByIdData, DeleteMemoryProvidersByIdErrors, DeleteMemoryProvidersByIdResponses, DeleteModelsByIdData, DeleteModelsByIdErrors, DeleteModelsByIdResponses, DeleteModelsModelByModelIdData, DeleteModelsModelByModelIdErrors, DeleteModelsModelByModelIdResponses, DeleteProvidersByIdData, DeleteProvidersByIdErrors, DeleteProvidersByIdResponses, DeleteSearchProvidersByIdData, DeleteSearchProvidersByIdErrors, DeleteSearchProvidersByIdResponses, DeleteTtsModelsByIdData, DeleteTtsModelsByIdErrors, DeleteTtsModelsByIdResponses, DeleteTtsProvidersByIdData, DeleteTtsProvidersByIdErrors, DeleteTtsProvidersByIdResponses, GetBotsByBotIdCliStreamData, GetBotsByBotIdCliStreamErrors, GetBotsByBotIdCliStreamResponses, GetBotsByBotIdCliWsData, GetBotsByBotIdCliWsErrors, 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, GetBotsByBotIdInboxByIdData, GetBotsByBotIdInboxByIdErrors, GetBotsByBotIdInboxByIdResponses, GetBotsByBotIdInboxCountData, GetBotsByBotIdInboxCountErrors, GetBotsByBotIdInboxCountResponses, GetBotsByBotIdInboxData, GetBotsByBotIdInboxErrors, GetBotsByBotIdInboxResponses, 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, GetBotsByBotIdScheduleByIdResponses, GetBotsByBotIdScheduleData, GetBotsByBotIdScheduleErrors, GetBotsByBotIdScheduleResponses, GetBotsByBotIdSettingsData, GetBotsByBotIdSettingsErrors, GetBotsByBotIdSettingsResponses, GetBotsByBotIdSubagentsByIdContextData, GetBotsByBotIdSubagentsByIdContextErrors, GetBotsByBotIdSubagentsByIdContextResponses, GetBotsByBotIdSubagentsByIdData, GetBotsByBotIdSubagentsByIdErrors, GetBotsByBotIdSubagentsByIdResponses, GetBotsByBotIdSubagentsByIdSkillsData, GetBotsByBotIdSubagentsByIdSkillsErrors, GetBotsByBotIdSubagentsByIdSkillsResponses, GetBotsByBotIdSubagentsData, GetBotsByBotIdSubagentsErrors, GetBotsByBotIdSubagentsResponses, GetBotsByBotIdTokenUsageData, GetBotsByBotIdTokenUsageErrors, GetBotsByBotIdTokenUsageResponses, GetBotsByBotIdWebStreamData, GetBotsByBotIdWebStreamErrors, GetBotsByBotIdWebStreamResponses, GetBotsByBotIdWebWsData, GetBotsByBotIdWebWsErrors, GetBotsByIdChannelByPlatformData, GetBotsByIdChannelByPlatformErrors, GetBotsByIdChannelByPlatformResponses, GetBotsByIdChecksData, GetBotsByIdChecksErrors, GetBotsByIdChecksResponses, GetBotsByIdData, GetBotsByIdErrors, GetBotsByIdMembersData, GetBotsByIdMembersErrors, GetBotsByIdMembersResponses, 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, GetProvidersByIdResponses, GetProvidersCountData, GetProvidersCountErrors, GetProvidersCountResponses, GetProvidersData, GetProvidersErrors, GetProvidersNameByNameData, GetProvidersNameByNameErrors, GetProvidersNameByNameResponses, GetProvidersResponses, GetSearchProvidersByIdData, GetSearchProvidersByIdErrors, GetSearchProvidersByIdResponses, GetSearchProvidersData, GetSearchProvidersErrors, GetSearchProvidersMetaData, GetSearchProvidersMetaResponses, GetSearchProvidersResponses, 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, PatchBotsByIdChannelByPlatformStatusData, PatchBotsByIdChannelByPlatformStatusErrors, PatchBotsByIdChannelByPlatformStatusResponses, PostAuthLoginData, PostAuthLoginErrors, PostAuthLoginResponses, PostAuthRefreshData, PostAuthRefreshErrors, PostAuthRefreshResponses, 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, PostBotsByBotIdInboxData, PostBotsByBotIdInboxErrors, PostBotsByBotIdInboxMarkReadData, PostBotsByBotIdInboxMarkReadErrors, PostBotsByBotIdInboxMarkReadResponses, PostBotsByBotIdInboxResponses, 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, PostBotsByBotIdSettingsData, PostBotsByBotIdSettingsErrors, PostBotsByBotIdSettingsResponses, PostBotsByBotIdSubagentsByIdSkillsData, PostBotsByBotIdSubagentsByIdSkillsErrors, PostBotsByBotIdSubagentsByIdSkillsResponses, PostBotsByBotIdSubagentsData, PostBotsByBotIdSubagentsErrors, PostBotsByBotIdSubagentsResponses, 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, PutBotsByBotIdEmailBindingsByIdData, PutBotsByBotIdEmailBindingsByIdErrors, PutBotsByBotIdEmailBindingsByIdResponses, PutBotsByBotIdMcpByIdData, PutBotsByBotIdMcpByIdErrors, PutBotsByBotIdMcpByIdResponses, PutBotsByBotIdMcpImportData, PutBotsByBotIdMcpImportErrors, PutBotsByBotIdMcpImportResponses, PutBotsByBotIdScheduleByIdData, PutBotsByBotIdScheduleByIdErrors, PutBotsByBotIdScheduleByIdResponses, PutBotsByBotIdSettingsData, PutBotsByBotIdSettingsErrors, PutBotsByBotIdSettingsResponses, PutBotsByBotIdSubagentsByIdContextData, PutBotsByBotIdSubagentsByIdContextErrors, PutBotsByBotIdSubagentsByIdContextResponses, PutBotsByBotIdSubagentsByIdData, PutBotsByBotIdSubagentsByIdErrors, PutBotsByBotIdSubagentsByIdResponses, PutBotsByBotIdSubagentsByIdSkillsData, PutBotsByBotIdSubagentsByIdSkillsErrors, PutBotsByBotIdSubagentsByIdSkillsResponses, PutBotsByIdChannelByPlatformData, PutBotsByIdChannelByPlatformErrors, PutBotsByIdChannelByPlatformResponses, PutBotsByIdData, PutBotsByIdErrors, PutBotsByIdMembersData, PutBotsByIdMembersErrors, PutBotsByIdMembersResponses, 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
}
});
/**
* 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 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 inbox items
*
* List inbox items for a bot with optional filters
*/
export const getBotsByBotIdInbox = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdInboxData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdInboxResponses, GetBotsByBotIdInboxErrors, ThrowOnError>({ url: '/bots/{bot_id}/inbox', ...options });
/**
* Create inbox item
*
* Create a new inbox item (for external integrations)
*/
export const postBotsByBotIdInbox = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdInboxData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdInboxResponses, PostBotsByBotIdInboxErrors, ThrowOnError>({
url: '/bots/{bot_id}/inbox',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Count inbox items
*
* Count unread and total inbox items
*/
export const getBotsByBotIdInboxCount = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdInboxCountData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdInboxCountResponses, GetBotsByBotIdInboxCountErrors, ThrowOnError>({ url: '/bots/{bot_id}/inbox/count', ...options });
/**
* Mark inbox items as read
*
* Batch mark inbox items as read
*/
export const postBotsByBotIdInboxMarkRead = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdInboxMarkReadData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdInboxMarkReadResponses, PostBotsByBotIdInboxMarkReadErrors, ThrowOnError>({
url: '/bots/{bot_id}/inbox/mark-read',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Delete inbox item
*
* Delete a single inbox item
*/
export const deleteBotsByBotIdInboxById = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdInboxByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdInboxByIdResponses, DeleteBotsByBotIdInboxByIdErrors, ThrowOnError>({ url: '/bots/{bot_id}/inbox/{id}', ...options });
/**
* Get inbox item
*
* Get a single inbox item by ID
*/
export const getBotsByBotIdInboxById = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdInboxByIdData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdInboxByIdResponses, GetBotsByBotIdInboxByIdErrors, ThrowOnError>({ url: '/bots/{bot_id}/inbox/{id}', ...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
*
* 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
}
});
/**
* 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
}
});
/**
* List subagents
*
* List subagents for current user
*/
export const getBotsByBotIdSubagents = <ThrowOnError extends boolean = false>(options?: Options<GetBotsByBotIdSubagentsData, ThrowOnError>) => (options?.client ?? client).get<GetBotsByBotIdSubagentsResponses, GetBotsByBotIdSubagentsErrors, ThrowOnError>({ url: '/bots/{bot_id}/subagents', ...options });
/**
* Create subagent
*
* Create a subagent for current user
*/
export const postBotsByBotIdSubagents = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdSubagentsData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdSubagentsResponses, PostBotsByBotIdSubagentsErrors, ThrowOnError>({
url: '/bots/{bot_id}/subagents',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Delete subagent
*
* Delete a subagent by ID
*/
export const deleteBotsByBotIdSubagentsById = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByBotIdSubagentsByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByBotIdSubagentsByIdResponses, DeleteBotsByBotIdSubagentsByIdErrors, ThrowOnError>({ url: '/bots/{bot_id}/subagents/{id}', ...options });
/**
* Get subagent
*
* Get a subagent by ID
*/
export const getBotsByBotIdSubagentsById = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdSubagentsByIdData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdSubagentsByIdResponses, GetBotsByBotIdSubagentsByIdErrors, ThrowOnError>({ url: '/bots/{bot_id}/subagents/{id}', ...options });
/**
* Update subagent
*
* Update a subagent by ID
*/
export const putBotsByBotIdSubagentsById = <ThrowOnError extends boolean = false>(options: Options<PutBotsByBotIdSubagentsByIdData, ThrowOnError>) => (options.client ?? client).put<PutBotsByBotIdSubagentsByIdResponses, PutBotsByBotIdSubagentsByIdErrors, ThrowOnError>({
url: '/bots/{bot_id}/subagents/{id}',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get subagent context
*
* Get a subagent's message context
*/
export const getBotsByBotIdSubagentsByIdContext = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdSubagentsByIdContextData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdSubagentsByIdContextResponses, GetBotsByBotIdSubagentsByIdContextErrors, ThrowOnError>({ url: '/bots/{bot_id}/subagents/{id}/context', ...options });
/**
* Update subagent context
*
* Update a subagent's message context
*/
export const putBotsByBotIdSubagentsByIdContext = <ThrowOnError extends boolean = false>(options: Options<PutBotsByBotIdSubagentsByIdContextData, ThrowOnError>) => (options.client ?? client).put<PutBotsByBotIdSubagentsByIdContextResponses, PutBotsByBotIdSubagentsByIdContextErrors, ThrowOnError>({
url: '/bots/{bot_id}/subagents/{id}/context',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get subagent skills
*
* Get a subagent's skills
*/
export const getBotsByBotIdSubagentsByIdSkills = <ThrowOnError extends boolean = false>(options: Options<GetBotsByBotIdSubagentsByIdSkillsData, ThrowOnError>) => (options.client ?? client).get<GetBotsByBotIdSubagentsByIdSkillsResponses, GetBotsByBotIdSubagentsByIdSkillsErrors, ThrowOnError>({ url: '/bots/{bot_id}/subagents/{id}/skills', ...options });
/**
* Add subagent skills
*
* Add skills to a subagent
*/
export const postBotsByBotIdSubagentsByIdSkills = <ThrowOnError extends boolean = false>(options: Options<PostBotsByBotIdSubagentsByIdSkillsData, ThrowOnError>) => (options.client ?? client).post<PostBotsByBotIdSubagentsByIdSkillsResponses, PostBotsByBotIdSubagentsByIdSkillsErrors, ThrowOnError>({
url: '/bots/{bot_id}/subagents/{id}/skills',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Update subagent skills
*
* Replace a subagent's skills
*/
export const putBotsByBotIdSubagentsByIdSkills = <ThrowOnError extends boolean = false>(options: Options<PutBotsByBotIdSubagentsByIdSkillsData, ThrowOnError>) => (options.client ?? client).put<PutBotsByBotIdSubagentsByIdSkillsResponses, PutBotsByBotIdSubagentsByIdSkillsErrors, ThrowOnError>({
url: '/bots/{bot_id}/subagents/{id}/skills',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Get token usage statistics
*
* Get daily aggregated token usage for a bot, split by chat and heartbeat, 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 });
/**
* List bot members
*
* List members for a bot
*/
export const getBotsByIdMembers = <ThrowOnError extends boolean = false>(options: Options<GetBotsByIdMembersData, ThrowOnError>) => (options.client ?? client).get<GetBotsByIdMembersResponses, GetBotsByIdMembersErrors, ThrowOnError>({ url: '/bots/{id}/members', ...options });
/**
* Upsert bot member
*
* Add or update bot member role
*/
export const putBotsByIdMembers = <ThrowOnError extends boolean = false>(options: Options<PutBotsByIdMembersData, ThrowOnError>) => (options.client ?? client).put<PutBotsByIdMembersResponses, PutBotsByIdMembersErrors, ThrowOnError>({
url: '/bots/{id}/members',
...options,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* Delete bot member
*
* Remove a member from a bot
*/
export const deleteBotsByIdMembersByUserId = <ThrowOnError extends boolean = false>(options: Options<DeleteBotsByIdMembersByUserIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteBotsByIdMembersByUserIdResponses, DeleteBotsByIdMembersByUserIdErrors, ThrowOnError>({ url: '/bots/{id}/members/{user_id}', ...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 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 });
/**
* 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,
headers: {
'Content-Type': 'application/json',
...options.headers
}
});
/**
* 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 });
/**
* 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 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
}
});