import { type Client, type ClientMeta, type Options as Options2, type RequestResult, type TDataShape } from './client'; import type { AcceptInvitationData, AcceptInvitationErrors, AcceptInvitationResponses, ArchiveFeedItemData, ArchiveFeedItemErrors, ArchiveFeedItemResponses, AuthCallbackData, AuthCallbackErrors, CancelAgentExecutionData, CancelAgentExecutionErrors, CancelAgentExecutionResponses, ClearEmbeddingsSettingsData, ClearEmbeddingsSettingsErrors, ClearEmbeddingsSettingsResponses, CompleteAgentExecutionData, CompleteAgentExecutionErrors, CompleteAgentExecutionResponses, CompleteOnboardingData, CompleteOnboardingErrors, CompleteOnboardingResponses, ConfirmRelationData, ConfirmRelationErrors, ConfirmRelationResponses, CopyEmbeddingProviderFromTeamData, CopyEmbeddingProviderFromTeamErrors, CopyEmbeddingProviderFromTeamResponses, CopyModelProviderFromTeamData, CopyModelProviderFromTeamErrors, CopyModelProviderFromTeamResponses, CopyTypesFromTeamData, CopyTypesFromTeamErrors, CopyTypesFromTeamResponses, CreateActivityData, CreateActivityErrors, CreateActivityResponses, CreateAdminUserData, CreateAdminUserErrors, CreateAdminUserResponses, CreateAgentData, CreateAgentErrors, CreateAgentResponses, CreateApiKeyData, CreateApiKeyErrors, CreateApiKeyResponses, CreateApiKeySettingsData, CreateApiKeySettingsErrors, CreateApiKeySettingsResponses, CreateArtifactData, CreateArtifactErrors, CreateArtifactResponses, CreateBlueprintData, CreateBlueprintErrors, CreateBlueprintResponses, CreateCommentData, CreateCommentErrors, CreateCommentResponses, CreateEmbeddingProviderData, CreateEmbeddingProviderErrors, CreateEmbeddingProviderResponses, CreateEmbeddingProviderSettingsData, CreateEmbeddingProviderSettingsErrors, CreateEmbeddingProviderSettingsResponses, CreateFeedData, CreateFeedErrors, CreateFeedItemData, CreateFeedItemErrors, CreateFeedItemReplyData, CreateFeedItemReplyErrors, CreateFeedItemReplyResponses, CreateFeedItemResponses, CreateFeedResponses, CreateFreshnessRuleData, CreateFreshnessRuleErrors, CreateFreshnessRuleResponses, CreateGitHubAppConfigData, CreateGitHubAppConfigErrors, CreateGitHubAppConfigResponses, CreateGitHubAppConfigSettingsData, CreateGitHubAppConfigSettingsErrors, CreateGitHubAppConfigSettingsResponses, CreateMemoryData, CreateMemoryErrors, CreateMemoryResponses, CreateModelProviderData, CreateModelProviderErrors, CreateModelProviderResponses, CreateModelProviderSettingsData, CreateModelProviderSettingsErrors, CreateModelProviderSettingsResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreatePromptData, CreatePromptErrors, CreatePromptResponses, CreatePromptShareData, CreatePromptShareErrors, CreatePromptShareResponses, CreateRelationData, CreateRelationErrors, CreateRelationResponses, CreateTeamData, CreateTeamErrors, CreateTeamResponses, CreateTypeData, CreateTypeErrors, CreateTypeResponses, DeleteAdminUserData, DeleteAdminUserErrors, DeleteAdminUserResponses, DeleteAgentData, DeleteAgentErrors, DeleteAgentResponses, DeleteApiKeyData, DeleteApiKeyErrors, DeleteApiKeyResponses, DeleteApiKeySettingsData, DeleteApiKeySettingsErrors, DeleteApiKeySettingsResponses, DeleteArtifactAttachmentData, DeleteArtifactAttachmentErrors, DeleteArtifactAttachmentResponses, DeleteArtifactData, DeleteArtifactErrors, DeleteArtifactResponses, DeleteAttachmentData, DeleteAttachmentErrors, DeleteAttachmentResponses, DeleteBlueprintData, DeleteBlueprintErrors, DeleteBlueprintResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, DeleteEmbeddingProviderData, DeleteEmbeddingProviderErrors, DeleteEmbeddingProviderResponses, DeleteEmbeddingProviderSettingsData, DeleteEmbeddingProviderSettingsErrors, DeleteEmbeddingProviderSettingsResponses, DeleteFeedData, DeleteFeedErrors, DeleteFeedItemData, DeleteFeedItemErrors, DeleteFeedItemResponses, DeleteFeedResponses, DeleteFreshnessRuleData, DeleteFreshnessRuleErrors, DeleteFreshnessRuleResponses, DeleteGitHubAppConfigData, DeleteGitHubAppConfigErrors, DeleteGitHubAppConfigResponses, DeleteGitHubAppConfigSettingsData, DeleteGitHubAppConfigSettingsErrors, DeleteGitHubAppConfigSettingsResponses, DeleteMemoryData, DeleteMemoryErrors, DeleteMemoryResponses, DeleteModelProviderData, DeleteModelProviderErrors, DeleteModelProviderResponses, DeleteModelProviderSettingsData, DeleteModelProviderSettingsErrors, DeleteModelProviderSettingsResponses, DeleteProjectData, DeleteProjectErrors, DeleteProjectResponses, DeletePromptData, DeletePromptErrors, DeletePromptResponses, DeletePromptShareData, DeletePromptShareErrors, DeletePromptShareResponses, DeleteRelationData, DeleteRelationErrors, DeleteRelationResponses, DeleteTeamData, DeleteTeamEmailProviderData, DeleteTeamEmailProviderErrors, DeleteTeamEmailProviderResponses, DeleteTeamEmailProviderSettingsData, DeleteTeamEmailProviderSettingsErrors, DeleteTeamEmailProviderSettingsResponses, DeleteTeamErrors, DeleteTeamResponses, DeleteTypeData, DeleteTypeErrors, DeleteTypeResponses, DevLoginData, DevLoginErrors, DevLoginResponses, DisconnectGitHubData, DisconnectGitHubErrors, DisconnectGitHubResponses, DownloadArtifactAttachmentData, DownloadArtifactAttachmentErrors, DownloadArtifactAttachmentResponses, DownloadAttachmentData, DownloadAttachmentErrors, DownloadAttachmentResponses, ExecuteAgentData, ExecuteAgentErrors, ExecuteAgentResponses, GetActivityData, GetActivityEntityTypesData, GetActivityEntityTypesErrors, GetActivityEntityTypesResponses, GetActivityErrors, GetActivityResponses, GetActivityStatsData, GetActivityStatsErrors, GetActivityStatsResponses, GetActivityTypesData, GetActivityTypesErrors, GetActivityTypesResponses, GetAdminDashboardOverviewData, GetAdminDashboardOverviewErrors, GetAdminDashboardOverviewResponses, GetAdminDashboardTimeseriesData, GetAdminDashboardTimeseriesErrors, GetAdminDashboardTimeseriesResponses, GetAdminProjectData, GetAdminProjectErrors, GetAdminProjectResponses, GetAdminStatsData, GetAdminStatsErrors, GetAdminStatsResponses, GetAdminTeamData, GetAdminTeamErrors, GetAdminTeamResponses, GetAdminUserData, GetAdminUserErrors, GetAdminUserResponses, GetAgentData, GetAgentErrors, GetAgentExecutionData, GetAgentExecutionErrors, GetAgentExecutionEventsData, GetAgentExecutionEventsErrors, GetAgentExecutionEventsResponses, GetAgentExecutionResponses, GetAgentExecutionStatusData, GetAgentExecutionStatusErrors, GetAgentExecutionStatusResponses, GetAgentResponses, GetAgentStatsData, GetAgentStatsErrors, GetAgentStatsResponses, GetArtifactData, GetArtifactErrors, GetArtifactResponses, GetArtifactStatsData, GetArtifactStatsErrors, GetArtifactStatsResponses, GetArtifactVersionData, GetArtifactVersionErrors, GetArtifactVersionResponses, GetBlueprintData, GetBlueprintErrors, GetBlueprintResponses, GetBlueprintStatsData, GetBlueprintStatsErrors, GetBlueprintStatsResponses, GetBlueprintVersionData, GetBlueprintVersionErrors, GetBlueprintVersionResponses, GetEmbeddingCoverageData, GetEmbeddingCoverageErrors, GetEmbeddingCoverageResponses, GetEmbeddingCoverageSettingsData, GetEmbeddingCoverageSettingsErrors, GetEmbeddingCoverageSettingsResponses, GetEmbeddingProviderData, GetEmbeddingProviderErrors, GetEmbeddingProviderResponses, GetEmbeddingProviderSettingsData, GetEmbeddingProviderSettingsErrors, GetEmbeddingProviderSettingsResponses, GetFeedData, GetFeedErrors, GetFeedItemData, GetFeedItemErrors, GetFeedItemResponses, GetFeedResponses, GetFreshnessByProjectMetricsData, GetFreshnessByProjectMetricsErrors, GetFreshnessByProjectMetricsResponses, GetFreshnessByRuleMetricsData, GetFreshnessByRuleMetricsErrors, GetFreshnessByRuleMetricsResponses, GetFreshnessByTypeMetricsData, GetFreshnessByTypeMetricsErrors, GetFreshnessByTypeMetricsResponses, GetFreshnessOverTimeMetricsData, GetFreshnessOverTimeMetricsErrors, GetFreshnessOverTimeMetricsResponses, GetGitHubAppConfigData, GetGitHubAppConfigErrors, GetGitHubAppConfigResponses, GetGitHubAppConfigSettingsData, GetGitHubAppConfigSettingsErrors, GetGitHubAppConfigSettingsResponses, GetGitHubInstallUrlData, GetGitHubInstallUrlErrors, GetGitHubInstallUrlResponses, GetGitHubStatusData, GetGitHubStatusErrors, GetGitHubStatusResponses, GetInvitationByTokenData, GetInvitationByTokenErrors, GetInvitationByTokenResponses, GetMeData, GetMeErrors, GetMemoryData, GetMemoryErrors, GetMemoryResponses, GetMemoryVersionData, GetMemoryVersionErrors, GetMemoryVersionResponses, GetMeResponses, GetMetadataKeysData, GetMetadataKeysErrors, GetMetadataKeysResponses, GetMetadataValuesData, GetMetadataValuesErrors, GetMetadataValuesResponses, GetModelProviderData, GetModelProviderErrors, GetModelProviderResponses, GetModelProviderSettingsData, GetModelProviderSettingsErrors, GetModelProviderSettingsResponses, GetPendingInvitationsData, GetPendingInvitationsErrors, GetPendingInvitationsResponses, GetPreferencesData, GetPreferencesErrors, GetPreferencesResponses, GetProjectData, GetProjectErrors, GetProjectMigrationInventoryData, GetProjectMigrationInventoryErrors, GetProjectMigrationInventoryResponses, GetProjectResourceCreationMetricsData, GetProjectResourceCreationMetricsErrors, GetProjectResourceCreationMetricsResponses, GetProjectResponses, GetProjectStatsData, GetProjectStatsErrors, GetProjectStatsResponses, GetPromptData, GetPromptDependenciesData, GetPromptDependenciesErrors, GetPromptDependenciesResponses, GetPromptErrors, GetPromptGalleryCategoriesData, GetPromptGalleryCategoriesErrors, GetPromptGalleryCategoriesResponses, GetPromptGalleryPromptData, GetPromptGalleryPromptErrors, GetPromptGalleryPromptResponses, GetPromptLabelsData, GetPromptLabelsErrors, GetPromptLabelsResponses, GetPromptPlaceholdersData, GetPromptPlaceholdersErrors, GetPromptPlaceholdersResponses, GetPromptResponses, GetPromptShareData, GetPromptShareErrors, GetPromptShareResponses, GetPromptVersionData, GetPromptVersionErrors, GetPromptVersionResponses, GetResourceAccessMetricsData, GetResourceAccessMetricsErrors, GetResourceAccessMetricsResponses, GetSharedPromptData, GetSharedPromptErrors, GetSharedPromptResponses, GetTeamData, GetTeamEmailProviderData, GetTeamEmailProviderErrors, GetTeamEmailProviderResponses, GetTeamEmailProviderSettingsData, GetTeamEmailProviderSettingsErrors, GetTeamEmailProviderSettingsResponses, GetTeamErrors, GetTeamFeedCreationMetricsData, GetTeamFeedCreationMetricsErrors, GetTeamFeedCreationMetricsResponses, GetTeamFreshnessSettingsData, GetTeamFreshnessSettingsErrors, GetTeamFreshnessSettingsResponses, GetTeamMembersData, GetTeamMembersErrors, GetTeamMembersResponses, GetTeamResourceAccessMetricsData, GetTeamResourceAccessMetricsErrors, GetTeamResourceAccessMetricsResponses, GetTeamResourceCreationMetricsData, GetTeamResourceCreationMetricsErrors, GetTeamResourceCreationMetricsResponses, GetTeamResponses, GetTeamSearchSettingsData, GetTeamSearchSettingsErrors, GetTeamSearchSettingsResponses, GetTeamStatsData, GetTeamStatsErrors, GetTeamStatsResponses, GetTeamTopAccessedResourcesData, GetTeamTopAccessedResourcesErrors, GetTeamTopAccessedResourcesResponses, GetUnreadNotificationCountData, GetUnreadNotificationCountErrors, GetUnreadNotificationCountResponses, GetUsageAndGrowthData, GetUsageAndGrowthErrors, GetUsageAndGrowthResponses, HandleGitHubCallbackData, HandleGitHubCallbackErrors, HandleGitHubCallbackResponses, HandleGitHubWebhookByTokenData, HandleGitHubWebhookByTokenErrors, HandleGitHubWebhookByTokenResponses, HandleGitHubWebhookData, HandleGitHubWebhookErrors, HealthData, HealthResponses, ImportGitHubBlueprintsData, ImportGitHubBlueprintsErrors, ImportGitHubBlueprintsResponses, ImportGitHubProjectData, ImportGitHubProjectErrors, ImportGitHubProjectResponses, ListActivitiesData, ListActivitiesErrors, ListActivitiesResponses, ListAdminProjectsData, ListAdminProjectsErrors, ListAdminProjectsResponses, ListAdminTeamsData, ListAdminTeamsErrors, ListAdminTeamsResponses, ListAdminUsersData, ListAdminUsersErrors, ListAdminUsersResponses, ListAgentConversationsData, ListAgentConversationsErrors, ListAgentConversationsResponses, ListAgentExecutionsData, ListAgentExecutionsErrors, ListAgentExecutionsResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListApiKeysData, ListApiKeysErrors, ListApiKeysResponses, ListApiKeysSettingsData, ListApiKeysSettingsErrors, ListApiKeysSettingsResponses, ListArtifactAttachmentsData, ListArtifactAttachmentsErrors, ListArtifactAttachmentsResponses, ListArtifactsByProjectData, ListArtifactsByProjectErrors, ListArtifactsByProjectResponses, ListArtifactsData, ListArtifactsErrors, ListArtifactsResponses, ListArtifactVersionsData, ListArtifactVersionsErrors, ListArtifactVersionsResponses, ListAttachmentsData, ListAttachmentsErrors, ListAttachmentsResponses, ListAuthProvidersData, ListAuthProvidersErrors, ListAuthProvidersResponses, ListBlueprintVersionsData, ListBlueprintVersionsErrors, ListBlueprintVersionsResponses, ListCommentsData, ListCommentsErrors, ListCommentsResponses, ListConversationExecutionsData, ListConversationExecutionsErrors, ListConversationExecutionsResponses, ListEmbeddingProvidersData, ListEmbeddingProvidersErrors, ListEmbeddingProvidersResponses, ListEmbeddingProvidersSettingsData, ListEmbeddingProvidersSettingsErrors, ListEmbeddingProvidersSettingsResponses, ListFeedItemRepliesData, ListFeedItemRepliesErrors, ListFeedItemRepliesResponses, ListFeedItemsByFeedData, ListFeedItemsByFeedErrors, ListFeedItemsByFeedResponses, ListFeedItemsData, ListFeedItemsErrors, ListFeedItemsResponses, ListFeedsData, ListFeedsErrors, ListFeedsResponses, ListFreshnessAuditData, ListFreshnessAuditErrors, ListFreshnessAuditResponses, ListFreshnessRulesData, ListFreshnessRulesErrors, ListFreshnessRulesResponses, ListGitHubRepositoriesData, ListGitHubRepositoriesErrors, ListGitHubRepositoriesResponses, ListMemoriesData, ListMemoriesErrors, ListMemoriesResponses, ListMemoryVersionsData, ListMemoryVersionsErrors, ListMemoryVersionsResponses, ListModelProvidersData, ListModelProvidersErrors, ListModelProvidersResponses, ListModelProvidersSettingsData, ListModelProvidersSettingsErrors, ListModelProvidersSettingsResponses, ListNotificationsData, ListNotificationsErrors, ListNotificationsResponses, ListProjectsData, ListProjectsErrors, ListProjectsResponses, ListPromptGalleryPromptsData, ListPromptGalleryPromptsErrors, ListPromptGalleryPromptsResponses, ListPromptsData, ListPromptsErrors, ListPromptsResponses, ListPromptVersionsData, ListPromptVersionsErrors, ListPromptVersionsResponses, ListRecentCommentsData, ListRecentCommentsErrors, ListRecentCommentsResponses, ListRelationsData, ListRelationsErrors, ListRelationsResponses, ListSpecLibrariesByProjectData, ListSpecLibrariesByProjectErrors, ListSpecLibrariesByProjectResponses, ListSpecLibrariesData, ListSpecLibrariesErrors, ListSpecLibrariesResponses, ListTeamInvitationsData, ListTeamInvitationsErrors, ListTeamInvitationsResponses, ListTeamsData, ListTeamsErrors, ListTeamSettingsAuditData, ListTeamSettingsAuditErrors, ListTeamSettingsAuditResponses, ListTeamsResponses, ListTypesData, ListTypesErrors, ListTypesResponses, LoginData, LoginErrors, LoginResponses, LogoutData, LogoutErrors, LogoutResponses, MarkAllNotificationsReadData, MarkAllNotificationsReadErrors, MarkAllNotificationsReadResponses, MarkNotificationReadData, MarkNotificationReadErrors, MarkNotificationReadResponses, MigrateProjectData, MigrateProjectErrors, MigrateProjectResponses, PingData, PingResponses, PreviewAgentCardData, PreviewAgentCardErrors, PreviewAgentCardResponses, ReactivateAdminUserData, ReactivateAdminUserErrors, ReactivateAdminUserResponses, RejectInvitationData, RejectInvitationErrors, RejectInvitationResponses, RemoveTeamMemberData, RemoveTeamMemberErrors, RemoveTeamMemberResponses, RenderPromptData, RenderPromptErrors, RenderPromptResponses, ReprocessEmbeddingProviderData, ReprocessEmbeddingProviderErrors, ReprocessEmbeddingProviderResponses, ReprocessEmbeddingProviderSettingsData, ReprocessEmbeddingProviderSettingsErrors, ReprocessEmbeddingProviderSettingsResponses, ResetTeamFreshnessSettingsData, ResetTeamFreshnessSettingsErrors, ResetTeamFreshnessSettingsResponses, ResetTeamSearchSettingsData, ResetTeamSearchSettingsErrors, ResetTeamSearchSettingsResponses, RestoreArtifactVersionData, RestoreArtifactVersionErrors, RestoreArtifactVersionResponses, RestoreBlueprintVersionData, RestoreBlueprintVersionErrors, RestoreBlueprintVersionResponses, RestoreMemoryVersionData, RestoreMemoryVersionErrors, RestoreMemoryVersionResponses, RestorePromptVersionData, RestorePromptVersionErrors, RestorePromptVersionResponses, RevokeTeamInvitationData, RevokeTeamInvitationErrors, RevokeTeamInvitationResponses, RotateGitHubAppWebhookTokenData, RotateGitHubAppWebhookTokenErrors, RotateGitHubAppWebhookTokenResponses, RotateGitHubAppWebhookTokenSettingsData, RotateGitHubAppWebhookTokenSettingsErrors, RotateGitHubAppWebhookTokenSettingsResponses, SearchTeamResourcesData, SearchTeamResourcesErrors, SearchTeamResourcesResponses, SeedRelationsData, SeedRelationsErrors, SeedRelationsResponses, SendTeamInvitationsData, SendTeamInvitationsErrors, SendTeamInvitationsResponses, StartAgentExecutionData, StartAgentExecutionErrors, StartAgentExecutionResponses, SubmitSupportRequestData, SubmitSupportRequestErrors, SubmitSupportRequestResponses, SuspendAdminUserData, SuspendAdminUserErrors, SuspendAdminUserResponses, TestTeamEmailProviderData, TestTeamEmailProviderErrors, TestTeamEmailProviderResponses, TestTeamEmailProviderSettingsData, TestTeamEmailProviderSettingsErrors, TestTeamEmailProviderSettingsResponses, TrackPromptGalleryUsageData, TrackPromptGalleryUsageErrors, TrackPromptGalleryUsageResponses, TransferTeamOwnershipData, TransferTeamOwnershipErrors, TransferTeamOwnershipResponses, UnarchiveFeedItemData, UnarchiveFeedItemErrors, UnarchiveFeedItemResponses, UpdateAdminUserData, UpdateAdminUserErrors, UpdateAdminUserResponses, UpdateAgentCredentialsData, UpdateAgentCredentialsErrors, UpdateAgentCredentialsResponses, UpdateAgentData, UpdateAgentErrors, UpdateAgentResponses, UpdateArtifactData, UpdateArtifactErrors, UpdateArtifactResponses, UpdateBlueprintData, UpdateBlueprintErrors, UpdateBlueprintResponses, UpdateCommentData, UpdateCommentErrors, UpdateCommentResponses, UpdateEmbeddingProviderData, UpdateEmbeddingProviderErrors, UpdateEmbeddingProviderResponses, UpdateEmbeddingProviderSettingsData, UpdateEmbeddingProviderSettingsErrors, UpdateEmbeddingProviderSettingsResponses, UpdateFeedData, UpdateFeedErrors, UpdateFeedResponses, UpdateFreshnessRuleData, UpdateFreshnessRuleErrors, UpdateFreshnessRuleResponses, UpdateGitHubAppConfigData, UpdateGitHubAppConfigErrors, UpdateGitHubAppConfigResponses, UpdateGitHubAppConfigSettingsData, UpdateGitHubAppConfigSettingsErrors, UpdateGitHubAppConfigSettingsResponses, UpdateMemoryData, UpdateMemoryErrors, UpdateMemoryResponses, UpdateModelProviderData, UpdateModelProviderErrors, UpdateModelProviderResponses, UpdateModelProviderSettingsData, UpdateModelProviderSettingsErrors, UpdateModelProviderSettingsResponses, UpdatePreferencesData, UpdatePreferencesErrors, UpdatePreferencesResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectResponses, UpdatePromptData, UpdatePromptErrors, UpdatePromptResponses, UpdateTeamData, UpdateTeamErrors, UpdateTeamFreshnessSettingsData, UpdateTeamFreshnessSettingsErrors, UpdateTeamFreshnessSettingsResponses, UpdateTeamMemberRoleData, UpdateTeamMemberRoleErrors, UpdateTeamMemberRoleResponses, UpdateTeamResponses, UpdateTeamSearchSettingsData, UpdateTeamSearchSettingsErrors, UpdateTeamSearchSettingsResponses, UploadArtifactAttachmentData, UploadArtifactAttachmentErrors, UploadArtifactAttachmentResponses, UploadAttachmentData, UploadAttachmentErrors, UploadAttachmentResponses, UpsertTeamEmailProviderData, UpsertTeamEmailProviderErrors, UpsertTeamEmailProviderResponses, UpsertTeamEmailProviderSettingsData, UpsertTeamEmailProviderSettingsErrors, UpsertTeamEmailProviderSettingsResponses, ValidateEmbeddingProviderData, ValidateEmbeddingProviderErrors, ValidateEmbeddingProviderResponses, ValidateEmbeddingProviderSettingsData, ValidateEmbeddingProviderSettingsErrors, ValidateEmbeddingProviderSettingsResponses, ValidateGitHubAppConfigData, ValidateGitHubAppConfigErrors, ValidateGitHubAppConfigResponses, ValidateGitHubAppConfigSettingsData, ValidateGitHubAppConfigSettingsErrors, ValidateGitHubAppConfigSettingsResponses, ValidateModelProviderData, ValidateModelProviderErrors, ValidateModelProviderResponses, ValidateModelProviderSettingsData, ValidateModelProviderSettingsErrors, ValidateModelProviderSettingsResponses } from './types.gen'; export type Options = Options2 & { /** * 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?: keyof ClientMeta extends never ? Record : ClientMeta; }; /** * Health ping endpoint * * Simple endpoint to check if the service is running */ export declare const ping: (options?: Options) => RequestResult; /** * Detailed health check * * Returns detailed health status of the service */ export declare const health: (options?: Options) => RequestResult; /** * Initiate login with an identity provider * * Selects an enabled identity provider, generates a CSRF state, stores the * (state, provider) pair in a signed `vx_state` cookie, and returns the * provider's authorization URL. The client should redirect the user to this * URL to begin the authentication flow. * * The provider is chosen with the `provider` query parameter, whose value is * one of the deployment's enabled providers (e.g. `google`, `github`, * `oidc`). When exactly one provider is enabled the parameter may be omitted * and that provider is used. When several are enabled the parameter is * required; an unknown or disabled value is rejected (no silent default). * */ export declare const login: (options?: Options) => RequestResult; /** * List enabled login providers * * Returns the login providers enabled in this deployment's configuration, * each with a canonical `name` (the value to pass as `?provider=` to * `GET /api/v1/auth/login`) and a human-readable `display_name` for the * login UI. The login screen uses this to render a provider picker instead * of hardcoding the provider list. The list is stable-sorted and may be * empty when no provider is configured. * */ export declare const listAuthProviders: (options?: Options) => RequestResult; /** * Handle the identity-provider OAuth callback * * Validates the CSRF `vx_state` cookie, recovers the provider bound to it, * exchanges the authorization code with that provider, looks up or creates * the user, writes a session cookie, and issues a 302 redirect to the * frontend home page. This endpoint is called by the browser after the user * authenticates with the upstream provider — it does not return a JSON body * on success. * */ export declare const authCallback: (options: Options) => RequestResult; /** * Log out current user * * Clears the session cookie and returns a JSON confirmation. After calling this * endpoint the client should discard any cached user state and redirect to the * login page. * */ export declare const logout: (options?: Options) => RequestResult; /** * Dev login (development only) * * Creates or retrieves a user by email address and sets a session cookie without * going through an external identity provider. Only available when the server is * running in development mode (`DEV_LOGIN_ENABLED=true`). Returns 404 in all other environments. * */ export declare const devLogin: (options: Options) => RequestResult; /** * Get current user information * * Returns information about the currently authenticated user. Authentication is * verified via the encrypted session cookie (`vx_session`) set during the * identity-provider OAuth flow or dev login. * */ export declare const getMe: (options?: Options) => RequestResult; /** * List API keys * * Retrieves all API keys for the authenticated user */ export declare const listApiKeys: (options?: Options) => RequestResult; /** * Create new API key * * Creates a new API key for the authenticated user */ export declare const createApiKey: (options: Options) => RequestResult; /** * Delete API key * * Deletes an API key by ID */ export declare const deleteApiKey: (options: Options) => RequestResult; /** * List API keys * * Retrieves all API keys for the authenticated user */ export declare const listApiKeysSettings: (options?: Options) => RequestResult; /** * Create new API key * * Creates a new API key for the authenticated user */ export declare const createApiKeySettings: (options: Options) => RequestResult; /** * Delete API key * * Deletes an API key by ID */ export declare const deleteApiKeySettings: (options: Options) => RequestResult; /** * Submit support request * * Submit a support request from an authenticated user. The request is sent to the VibeXP support team * via email. Optionally, an acknowledgement email can be sent to the user. * */ export declare const submitSupportRequest: (options: Options) => RequestResult; /** * List artifacts * * Retrieves all artifacts for the specified team with optional filtering */ export declare const listArtifacts: (options: Options) => RequestResult; /** * Create new artifact * * Creates a new artifact for the authenticated user within the specified team */ export declare const createArtifact: (options: Options) => RequestResult; /** * Get artifact statistics * * Returns statistics about artifacts for the specified team */ export declare const getArtifactStats: (options: Options) => RequestResult; /** * List artifacts by project * * Retrieves artifacts for a specific project within the specified team */ export declare const listArtifactsByProject: (options: Options) => RequestResult; /** * Delete artifact by project and slug * * Deletes a specific artifact by project ID and slug within the specified team */ export declare const deleteArtifact: (options: Options) => RequestResult; /** * Get artifact by project and slug * * Retrieves a specific artifact by project ID and slug within the specified team */ export declare const getArtifact: (options: Options) => RequestResult; /** * Update artifact by project and slug * * Updates a specific artifact by project ID and slug within the specified team */ export declare const updateArtifact: (options: Options) => RequestResult; /** * List attachments for an owner * * Returns all attachments for the resource identified by the `owner_type` and `owner_id` query parameters, newest first, plus their combined size. * */ export declare const listAttachments: (options: Options) => RequestResult; /** * Upload an attachment * * Uploads a single file (multipart field `file`) as an attachment on the resource identified by `owner_type` + `owner_id`. The owner_type must have a registered authorizer (currently `artifact`, `prompt`, `blueprint`); an unsupported owner_type returns 404. Enforces a 5 MB per-file limit, a 10 MB cumulative limit per owner, and a safe file-type allowlist. * */ export declare const uploadAttachment: (options: Options) => RequestResult; /** * Delete an attachment * * Deletes the attachment metadata row and the stored object. The attachment id is sufficient; its owner is read from the stored row and authorized via the owner authorizer registry. * */ export declare const deleteAttachment: (options: Options) => RequestResult; /** * Download an attachment * * Streams the attachment file as a download (Content-Disposition: attachment). The attachment id is sufficient; its owner is read from the stored row and authorized via the owner authorizer registry. * */ export declare const downloadAttachment: (options: Options) => RequestResult; /** * List attachments for an artifact * * Returns all attachments on the artifact, newest first, plus their combined size. * * @deprecated */ export declare const listArtifactAttachments: (options: Options) => RequestResult; /** * Upload an attachment to an artifact * * Uploads a single file (multipart field `file`) as an attachment on the artifact. Enforces a 5 MB per-file limit, a 10 MB cumulative limit per artifact, and a safe file-type allowlist. * * * @deprecated */ export declare const uploadArtifactAttachment: (options: Options) => RequestResult; /** * Delete an artifact attachment * * Deletes the attachment metadata row and the stored object. * * @deprecated */ export declare const deleteArtifactAttachment: (options: Options) => RequestResult; /** * Download an artifact attachment * * Streams the attachment file as a download (Content-Disposition attachment). * * @deprecated */ export declare const downloadArtifactAttachment: (options: Options) => RequestResult; /** * List artifact content versions * * Returns the content-version history (newest first) for an artifact */ export declare const listArtifactVersions: (options: Options) => RequestResult; /** * Get a specific artifact content version * * Returns a single content-version snapshot of an artifact by version number */ export declare const getArtifactVersion: (options: Options) => RequestResult; /** * Restore an artifact to a content version * * Restores the artifact's content to the given version. The pre-restore content is snapshotted as a new version. Returns the updated artifact. */ export declare const restoreArtifactVersion: (options: Options) => RequestResult; /** * Semantic search across team resources * * Performs a pgvector cosine-similarity semantic search over the team's prompts, artifacts, blueprints and memories, returning relevance-ranked excerpts for RAG retrieval. One result is returned per matching entity, carrying its best-scoring (closest) chunk; `total_count`/`total_pages` count distinct matching resources, not chunks. */ export declare const searchTeamResources: (options: Options) => RequestResult; /** * Per-resource daily access metrics * * Returns a zero-filled daily access timeseries for a single resource, grouped by source (web, cli, mcp, api), for the resource detail-page chart. Every day in the requested range appears even when its count is zero. Free-tier accessible to team members. */ export declare const getResourceAccessMetrics: (options: Options) => RequestResult; /** * List memories * * Retrieves all memories for the authenticated user within the specified team with optional filtering */ export declare const listMemories: (options: Options) => RequestResult; /** * Create new memory * * Creates a new memory for the authenticated user within the specified team */ export declare const createMemory: (options: Options) => RequestResult; /** * Delete memory by ID * * Deletes a specific memory by its ID within the specified team */ export declare const deleteMemory: (options: Options) => RequestResult; /** * Get memory by ID * * Retrieves a specific memory by its ID within the specified team */ export declare const getMemory: (options: Options) => RequestResult; /** * Update memory by ID * * Updates a specific memory by its ID within the specified team */ export declare const updateMemory: (options: Options) => RequestResult; /** * List memory content versions * * Returns the content-version history (newest first) for a memory */ export declare const listMemoryVersions: (options: Options) => RequestResult; /** * Get a specific memory content version * * Returns a single content-version snapshot of a memory by version number */ export declare const getMemoryVersion: (options: Options) => RequestResult; /** * Restore a memory to a content version * * Restores the memory's text to the given version. The pre-restore text is snapshotted as a new version. Returns the updated memory. */ export declare const restoreMemoryVersion: (options: Options) => RequestResult; /** * Get project statistics * * Returns resource counts for a specific project within the specified team. */ export declare const getProjectStats: (options: Options) => RequestResult; /** * Per-project daily resource-creation metrics * * Returns a zero-filled daily creation timeseries for a single project, counting prompts, artifacts, blueprints, and memories created on each day, for the project detail-page chart. Every day in the requested range appears even when its count is zero. Authorized via team ownership/membership (same boundary as the project stats endpoint). */ export declare const getProjectResourceCreationMetrics: (options: Options) => RequestResult; /** * List spec libraries * * Retrieves all spec libraries for the authenticated user with optional filtering and pagination. */ export declare const listSpecLibraries: (options: Options) => RequestResult; /** * Create new spec library * * Creates a new spec library for the authenticated user. Spec libraries are used to store API specifications (OpenAPI, AsyncAPI, etc.) and other technical documentation. */ export declare const createBlueprint: (options: Options) => RequestResult; /** * Get spec library statistics * * Returns statistics about user's spec libraries including counts by type, status, and recent additions */ export declare const getBlueprintStats: (options: Options) => RequestResult; /** * List spec libraries by project * * Retrieves spec libraries for a specific project with optional filtering. */ export declare const listSpecLibrariesByProject: (options: Options) => RequestResult; /** * Delete spec library by project and slug * * Deletes a specific spec library by project name and slug. This also deletes associated embeddings. */ export declare const deleteBlueprint: (options: Options) => RequestResult; /** * Get spec library by project and slug * * Retrieves a specific spec library by project name and slug */ export declare const getBlueprint: (options: Options) => RequestResult; /** * Update spec library by project and slug * * Updates a specific spec library by project name and slug. All fields in the request body are optional - only provided fields will be updated. */ export declare const updateBlueprint: (options: Options) => RequestResult; /** * List blueprint content versions * * Returns the content-version history (newest first) for a blueprint */ export declare const listBlueprintVersions: (options: Options) => RequestResult; /** * Get a specific blueprint content version * * Returns a single content-version snapshot of a blueprint by version number */ export declare const getBlueprintVersion: (options: Options) => RequestResult; /** * Restore a blueprint to a content version * * Restores the blueprint's content to the given version. The pre-restore content is snapshotted as a new version. Returns the updated blueprint. */ export declare const restoreBlueprintVersion: (options: Options) => RequestResult; /** * List prompts * * Retrieves a paginated list of prompts for the specified team with optional filtering. * */ export declare const listPrompts: (options: Options) => RequestResult; /** * Create a new prompt * * Creates a new prompt template for the specified team. The prompt can be used to store * reusable AI instructions with placeholders and references. * */ export declare const createPrompt: (options: Options) => RequestResult; /** * Get prompt labels * * Retrieves all unique labels used across prompts for the specified team. * */ export declare const getPromptLabels: (options: Options) => RequestResult; /** * Delete a prompt * * Deletes a prompt and its associated embeddings for the specified team. * */ export declare const deletePrompt: (options: Options) => RequestResult; /** * Get a prompt by slug * * Retrieves a specific prompt by its slug identifier for the specified team. * */ export declare const getPrompt: (options: Options) => RequestResult; /** * Update a prompt * * Updates an existing prompt for the specified team. All fields are optional. * */ export declare const updatePrompt: (options: Options) => RequestResult; /** * Get prompt placeholders * * Extracts and returns all placeholders (e.g., {{variable}}) found in the prompt body. * */ export declare const getPromptPlaceholders: (options: Options) => RequestResult; /** * Get prompt dependencies * * Returns prompts that reference this prompt using @references syntax. * */ export declare const getPromptDependencies: (options: Options) => RequestResult; /** * Render a prompt * * Renders a prompt by resolving @references and substituting placeholders with provided values. * */ export declare const renderPrompt: (options: Options) => RequestResult; /** * Delete prompt share * * Removes the share for a prompt, making it no longer accessible via the shared link */ export declare const deletePromptShare: (options: Options) => RequestResult; /** * Get prompt share details * * Retrieves the share configuration for a prompt */ export declare const getPromptShare: (options: Options) => RequestResult; /** * Create or update prompt share * * Creates or updates a share for a prompt. Supports two share types: * - `public`: Anyone with the link can access the prompt * - `restricted`: Only specific email addresses can access the prompt * */ export declare const createPromptShare: (options: Options) => RequestResult; /** * List prompt content versions * * Returns the content-version history (newest first) for a prompt. Each snapshot holds the raw prompt Body template (placeholders and @slug references), not any rendered output. */ export declare const listPromptVersions: (options: Options) => RequestResult; /** * Get a specific prompt content version * * Returns a single content-version snapshot of a prompt by version number */ export declare const getPromptVersion: (options: Options) => RequestResult; /** * Restore a prompt to a content version * * Restores the prompt's raw Body template to the given version. The pre-restore body is snapshotted as a new version, so restore is non-destructive and preserves placeholders and @slug references. Returns the updated prompt. */ export declare const restorePromptVersion: (options: Options) => RequestResult; /** * Get prompt gallery categories * * Retrieves all prompt categories with counts */ export declare const getPromptGalleryCategories: (options?: Options) => RequestResult; /** * List prompt gallery prompts * * Retrieves prompts from the gallery with optional filtering */ export declare const listPromptGalleryPrompts: (options?: Options) => RequestResult; /** * Get prompt gallery prompt by ID * * Retrieves a specific prompt from the gallery */ export declare const getPromptGalleryPrompt: (options: Options) => RequestResult; /** * Track prompt gallery usage * * Tracks when a user uses a prompt from the gallery */ export declare const trackPromptGalleryUsage: (options: Options) => RequestResult; /** * Access shared prompt * * Public endpoint to access a shared prompt via its share token. * - For `public` shares: No authentication required * - For `restricted` shares: JWT authentication required and email must be in the access list * * Returns the prompt with @references resolved but {{placeholders}} preserved for client-side substitution. * */ export declare const getSharedPrompt: (options: Options) => RequestResult; /** * Get usage and growth data * * Retrieves platform-wide usage metrics and per-user activity data. * This endpoint is for administrative purposes only and requires the back office admin API key. * It is NOT accessible via JWT tokens or regular API keys. * */ export declare const getUsageAndGrowth: (options?: Options) => RequestResult; /** * Get GitHub App installation status * * Returns the GitHub App installation status for the specified team. */ export declare const getGitHubStatus: (options: Options) => RequestResult; /** * Get GitHub App installation URL * * Returns a signed GitHub App installation URL with CSRF protection. Requires team owner/admin — the same permission as completing the callback, so a caller cannot start an install they would be refused at the end of. */ export declare const getGitHubInstallUrl: (options: Options) => RequestResult; /** * Handle GitHub App installation callback * * Completes the GitHub App installation flow after the user authorizes the app on GitHub. * The request must include the `installation_id` returned by GitHub, the signed `state` * parameter from the install URL (CSRF protection), and the `code` GitHub appends to the * post-install redirect. The `code` is exchanged for a user access token and the * installation is only bound to the team when that user has access to it on GitHub — a valid * `state` alone is not sufficient. Requires team owner/admin. * */ export declare const handleGitHubCallback: (options: Options) => RequestResult; /** * List GitHub repositories * * Lists GitHub repositories accessible by the team's GitHub App installation with pagination. */ export declare const listGitHubRepositories: (options: Options) => RequestResult; /** * Import GitHub repository as a project * * Imports a GitHub repository as a VibeXP project for the team. If a project already exists * for the repository URL it returns the existing project (idempotent). * */ export declare const importGitHubProject: (options: Options) => RequestResult; /** * Import AI assistant configurations as blueprints * * Scans the specified GitHub repository for AI assistant configuration files * (`.claude/`, `.cursor/`, `.codex/`, `.agents/`, `CLAUDE.md`, `CURSOR.md`, `AGENTS.md`) * and imports each markdown file as a blueprint. A project must already exist for the * repository — use the import-project endpoint first. * */ export declare const importGitHubBlueprints: (options: Options) => RequestResult; /** * Disconnect GitHub App installation * * Removes the GitHub App installation link for the team. */ export declare const disconnectGitHub: (options: Options) => RequestResult; /** * Retired — use the per-App webhook URL * * **Retired (410 Gone).** This endpoint verified deliveries against a single * instance-wide webhook secret. Each team now registers its own GitHub App * with its own secret, so there is no single secret left to verify against * and this path cannot be made to work. * * Each team's webhook URL is shown in its GitHub App settings; update it on * GitHub. This path is kept for a release or two so misdirected deliveries * get an explanation rather than a signature error. * */ export declare const handleGitHubWebhook: (options: Options) => RequestResult; /** * Handle a GitHub webhook delivery for one team's App * * Receives a GitHub webhook delivery for the App identified by the routing * token in the path. Each team registers its own GitHub App with its own * webhook secret, so the token is what selects which secret the * `X-Hub-Signature-256` HMAC is verified against. * * Public and unauthenticated by necessity — GitHub posts with no session. * The token routes the delivery; the webhook secret authenticates it. The * payload is not parsed until the signature verifies, so no attacker-supplied * byte influences which key it is checked with. * * An unknown or malformed token returns 404 with no detail, so the endpoint * cannot be used to discover which tokens exist. * */ export declare const handleGitHubWebhookByToken: (options: Options) => RequestResult; /** * List feeds * * Returns all feeds for the specified team with optional pagination */ export declare const listFeeds: (options: Options) => RequestResult; /** * Create a new feed * * Creates a new AI feed channel for the specified team (free-tier accessible) */ export declare const createFeed: (options: Options) => RequestResult; /** * Delete a feed * * Permanently deletes a feed and cascades deletion to all its items */ export declare const deleteFeed: (options: Options) => RequestResult; /** * Get a feed * * Retrieves a specific feed by ID */ export declare const getFeed: (options: Options) => RequestResult; /** * Update a feed * * Updates the name and/or description of an existing feed */ export declare const updateFeed: (options: Options) => RequestResult; /** * List items in a feed * * Returns paginated items for a specific feed */ export declare const listFeedItemsByFeed: (options: Options) => RequestResult; /** * Create a feed item * * Posts a new AI-generated item to a specific feed */ export declare const createFeedItem: (options: Options) => RequestResult; /** * List all feed items (cross-feed) * * Returns paginated feed items across all feeds for the team, with optional filters */ export declare const listFeedItems: (options: Options) => RequestResult; /** * Delete a feed item * * Permanently deletes a feed item (hard delete) */ export declare const deleteFeedItem: (options: Options) => RequestResult; /** * Get a feed item * * Retrieves a specific feed item by ID (detail page) */ export declare const getFeedItem: (options: Options) => RequestResult; /** * Archive a feed item * * Sets archived_at to the current server time for the specified feed item */ export declare const archiveFeedItem: (options: Options) => RequestResult; /** * Unarchive a feed item * * Clears archived_at (sets to NULL) for the specified feed item */ export declare const unarchiveFeedItem: (options: Options) => RequestResult; /** * Get invitation details by token * * Returns enriched invitation details (team name, inviter info, role, status, expiry) * for the email-link landing page so the user can review the invitation before * accepting or rejecting it. * * Returns honest, distinct HTTP statuses for the lifecycle: * - `200` — valid pending invitation * - `404` — unknown / not found token * - `410 Gone` — invitation pending but past `expires_at` * - `409 Conflict` — invitation already accepted, rejected, or revoked * */ export declare const getInvitationByToken: (options: Options) => RequestResult; /** * List agents * * Returns the agents of the specified team with optional filtering, sorting, and pagination */ export declare const listAgents: (options: Options) => RequestResult; /** * Create new agent * * Registers a new A2A agent for the specified team. The agent card is fetched * from `card_url` at creation time; name and description default to the card * values when omitted. * */ export declare const createAgent: (options: Options) => RequestResult; /** * Preview agent card * * Fetches and returns an A2A agent card from the given URL without creating an agent */ export declare const previewAgentCard: (options: Options) => RequestResult; /** * Get agent statistics * * Returns aggregate agent statistics and recent activity for the specified team */ export declare const getAgentStats: (options: Options) => RequestResult; /** * Delete agent * * Permanently deletes an agent */ export declare const deleteAgent: (options: Options) => RequestResult; /** * Get agent * * Retrieves a specific agent by ID */ export declare const getAgent: (options: Options) => RequestResult; /** * Update agent * * Updates an existing agent. When `card_url` is provided the agent card is * re-fetched. Agents cannot be moved between teams once created. * */ export declare const updateAgent: (options: Options) => RequestResult; /** * Update agent credentials * * Replaces the stored credentials for an agent. Values are encrypted at rest and never returned. */ export declare const updateAgentCredentials: (options: Options) => RequestResult; /** * Execute agent * * Invokes an agent via the A2A protocol. For streaming-capable agents the call * returns immediately with status `pending` or `submitted`; poll * `GET /agents/executions/{id}/status` and fetch * `GET /agents/executions/{id}/events` for progress. For non-streaming agents * the call blocks until the execution finishes with status `success` or `error`. * */ export declare const executeAgent: (options: Options) => RequestResult; /** * List agent executions * * Returns executions for an agent with optional filtering and pagination */ export declare const listAgentExecutions: (options: Options) => RequestResult; /** * Start agent execution * * Creates a new execution record for an agent (manual execution tracking) */ export declare const startAgentExecution: (options: Options) => RequestResult; /** * List agent conversations * * Returns paginated conversation summaries for an agent */ export declare const listAgentConversations: (options: Options) => RequestResult; /** * Get agent execution * * Retrieves a specific agent execution by ID */ export declare const getAgentExecution: (options: Options) => RequestResult; /** * Complete agent execution * * Updates an execution with its final status, output, and optional error (manual execution tracking) */ export declare const completeAgentExecution: (options: Options) => RequestResult; /** * Cancel an agent execution * * Cancels a running agent execution: aborts local streaming, asks the remote * agent to cancel its task (A2A `tasks/cancel`) when there is one, and marks * the execution `cancelled`. The execution's agent must belong to the * specified team. * */ export declare const cancelAgentExecution: (options: Options) => RequestResult; /** * Get execution status * * Returns the current status and A2A state of an agent execution, including * artifacts. The execution's agent must belong to the specified team. * */ export declare const getAgentExecutionStatus: (options: Options) => RequestResult; /** * Get execution events * * Returns streaming events for an execution. Supports two modes: cursor-based * polling via `?since={sequence}` (returns execution status plus events after * that sequence number) and page-based pagination via `?page`/`?limit` for * historical viewing. * */ export declare const getAgentExecutionEvents: (options: Options) => RequestResult; /** * List conversation executions * * Returns the executions belonging to a conversation with cursor-based pagination (newest first, use `before` to page backwards) */ export declare const listConversationExecutions: (options: Options) => RequestResult; /** * List teams * * Returns the paginated list of teams the current user belongs to. Invalid * `page`/`page_size` values silently fall back to the defaults. * */ export declare const listTeams: (options?: Options) => RequestResult; /** * Create a new team * * Creates a new team owned by the current user and synchronously bootstraps a * default "Project 1" project inside it so resources created immediately * afterwards are correctly scoped. * */ export declare const createTeam: (options: Options) => RequestResult; /** * Delete a team * * Deletes a team. Only team owners can delete a team; personal workspaces and * the default team cannot be deleted. * * Deletion conflicts return `409` with RFC 9457 problem details carrying an * UPPERCASE `code` and string-valued `metadata`: * - `TEAM_HAS_MEMBERS` — remove all members first (`metadata.member_count`) * */ export declare const deleteTeam: (options: Options) => RequestResult; /** * Get a team * * Returns the team with the requesting user's role populated (member_count is only populated on list responses and is 0 here). */ export declare const getTeam: (options: Options) => RequestResult; /** * Update a team * * Updates the team's name and/or description. Only team owners can update a * team. At least one of `name` or `description` must be provided. * */ export declare const updateTeam: (options: Options) => RequestResult; /** * List team members * * Returns the paginated list of team members with user details and invitation * status. Invalid `page`/`page_size` values silently fall back to the defaults. * */ export declare const getTeamMembers: (options: Options) => RequestResult; /** * Remove a team member * * Removes a member from the team. Only team owners can remove members, and the * team owner cannot be removed. * */ export declare const removeTeamMember: (options: Options) => RequestResult; /** * Change a team member's role * * Changes a member's role between `member` and `admin`. * * Requires the caller to be an **owner or admin** of the team. The role value * may only be `member` or `admin` — ownership is never granted this way; use * the transfer-ownership operation instead. The team owner's role cannot be * changed by this operation, not even by another admin. * */ export declare const updateTeamMemberRole: (options: Options) => RequestResult; /** * Transfer team ownership * * Transfers ownership of the team to another member. * * Requires the caller to be the **owner** of the team; admins cannot transfer * ownership. The target must already be a member. The target becomes the * owner and the previous owner becomes an admin, applied in a single * transaction so the team always has exactly one owner. Personal workspaces * cannot be transferred. * */ export declare const transferTeamOwnership: (options: Options) => RequestResult; /** * List team invitations * * Returns all invitations for the team, each with its `token` populated so * an admin or owner can copy the accept link and share it out of band. The * `team_name` and `invited_by` fields are not populated on this listing. * */ export declare const listTeamInvitations: (options: Options) => RequestResult; /** * Send team invitations * * Sends invitations to join the team to up to 50 email addresses with the given * role. Requires an eligible team (not a personal workspace). Team membership is * unlimited. * * Inviting users who are already team members returns `409` with code * `DUPLICATE_MEMBERS` and a top-level `duplicate_emails` string array. * */ export declare const sendTeamInvitations: (options: Options) => RequestResult; /** * Revoke a team invitation * * Revokes a pending team invitation so its token can no longer be accepted. */ export declare const revokeTeamInvitation: (options: Options) => RequestResult; /** * Get team statistics * * Returns team-wide resource counts (projects, prompts, artifacts, blueprints, memories, feed items) for the team analytics page. Authorized via team membership. */ export declare const getTeamStats: (options: Options) => RequestResult; /** * Per-team daily resource-creation metrics * * Returns a zero-filled daily creation timeseries for a team, counting prompts, artifacts, blueprints, memories, and projects created on each day, for the team analytics-page chart. Every day in the requested range appears even when its count is zero. Authorized via team membership. */ export declare const getTeamResourceCreationMetrics: (options: Options) => RequestResult; /** * Per-team daily access metrics * * Returns a zero-filled daily access timeseries for a team, grouped by source (web, cli, mcp, api), aggregated across every resource in the team, for the team analytics-page chart. Every day in the requested range appears even when its count is zero. Authorized via team membership. */ export declare const getTeamResourceAccessMetrics: (options: Options) => RequestResult; /** * Per-team daily feed-creation metrics * * Returns a zero-filled daily feed-creation timeseries for a team, counting feeds (channels, by creation date) and feed_items (AI updates posted, by posted date) on each day, for the team analytics-page "AI feeds created" chart. Every day in the requested range appears even when its count is zero. Authorized via team membership. */ export declare const getTeamFeedCreationMetrics: (options: Options) => RequestResult; /** * Per-team most-accessed resources * * Returns the team's most-accessed resources over the requested window, ranked by access count descending and capped by the limit parameter, with each row's display name resolved so the frontend can render and deep-link it. Authorized via team membership. */ export declare const getTeamTopAccessedResources: (options: Options) => RequestResult; /** * Get pending invitations for the current user * * Returns the current user's pending team invitations (matched by the user's * email), enriched with team name and inviter details where available. The * response is not actually paginated: all pending invitations are returned and * `page`/`page_size` are fixed at `1`/`20`. * */ export declare const getPendingInvitations: (options?: Options) => RequestResult; /** * Accept a team invitation * * Accepts a pending team invitation by token and adds the current user to the * team. The invitation must have been sent to the authenticated user's email * address. * */ export declare const acceptInvitation: (options: Options) => RequestResult; /** * Reject a team invitation * * Rejects a pending team invitation by token. Only the invited user can reject it. */ export declare const rejectInvitation: (options: Options) => RequestResult; /** * List notifications * * Returns the authenticated user's in-app notifications, newest first, with * offset-based pagination. `count` is the number of items in this page (≤ `limit`), * not the global total — use the unread-count endpoint for unread totals. * */ export declare const listNotifications: (options?: Options) => RequestResult; /** * Get unread notification count * * Returns the total number of unread notifications for the authenticated user. */ export declare const getUnreadNotificationCount: (options?: Options) => RequestResult; /** * Mark notification as read * * Marks a single notification as read for the authenticated user. Idempotent — * succeeds with 204 even if the notification is already read or does not belong * to the user (no 404 is returned). * */ export declare const markNotificationRead: (options: Options) => RequestResult; /** * Mark all notifications as read * * Marks all of the authenticated user's notifications as read. No request body is required. */ export declare const markAllNotificationsRead: (options?: Options) => RequestResult; /** * List types for a resource * * Returns every type visible to the team for the given `resource_type`: the global system defaults plus the team's own custom types, system defaults first. * */ export declare const listTypes: (options: Options) => RequestResult; /** * Create a custom type * * Creates a team-owned custom type for the given resource. The slug must be URL-safe (lowercase letters, numbers, hyphens) and unique within the team for the resource — a collision with a global default or an existing team type returns 409. * */ export declare const createType: (options: Options) => RequestResult; /** * Delete a custom type * * Deletes a team-owned custom type. System defaults cannot be deleted (a delete targeting one — or another team's type — returns 404). Any resources still referencing the deleted type are reassigned to the resource's system default in the same transaction. * */ export declare const deleteType: (options: Options) => RequestResult; /** * Copy another team's custom types into this team * * Merges the custom types of `source_team_id` into the team named by `{team_id}`. The caller must be a member of BOTH teams — the same bar the destination's own create path sets — and the destination is checked first, so a caller who belongs to neither learns nothing about either. * The copy is a snapshot: the destination fully owns the resulting rows and may edit or delete them with no effect on the source. Global system defaults are excluded (every team already has them), and a slug the destination already uses is reported as skipped rather than failing the whole copy. * */ export declare const copyTypesFromTeam: (options: Options) => RequestResult; /** * Get instance statistics * * Returns instance-wide entity counts (users, teams, prompts, artifacts, * memories) and the running backend application version. Requires the * authenticated user to be a configured instance admin * (auth.instance_admins); non-admin and unauthenticated requests receive 404. * */ export declare const getAdminStats: (options?: Options) => RequestResult; /** * List instance users * * Returns a paginated, instance-wide listing of users with each user's team * count. Supports case-insensitive search, typed filters, and allowlisted * sorting; filters combine with AND and the pagination envelope reflects the * filtered set. Instance-admin only; non-admin and unauthenticated requests * receive 404. * */ export declare const listAdminUsers: (options?: Options) => RequestResult; /** * Create an instance user * * Creates a user account directly, without waiting for them to complete an * identity-provider sign-in. * * The account is provisioned exactly like a self-signup: it gets a personal * "Private Workspace" team (owner membership, set as the user's default team) * and a default project. That provisioning is driven by the same * `user.created` event the sign-in path publishes, and it is handled * ASYNCHRONOUSLY — so the personal workspace may appear a moment after this * operation returns 201, exactly as it does for a self-signup. If the event * cannot be published at all, the user is not created and this returns 500, * so an unprovisioned account is never left behind. * * No password is set (VibeXP has no password provider); the account's owner * signs in through the configured identity provider. Instance-admin rights * are config-only and cannot be granted here. * * A duplicate email returns 409 and creates nothing. Instance-admin only; * non-admin and unauthenticated requests receive 404. * */ export declare const createAdminUser: (options: Options) => RequestResult; /** * Delete an instance user * * **Permanently and irreversibly** deletes a user. This cascades: the user's * personal team and everything they own (prompts, artifacts, memories, * projects, agents, feeds, API keys, …) are destroyed with them. Rows in * `attachments`, `content_versions`, `resource_access_events` and `types` * survive with a null user reference so audit and analytics history is kept. * * **Suspension (`POST /admin/users/{id}/suspend`) is the reversible * alternative** and should be preferred unless the data genuinely must go. * * The delete is REFUSED with 409 when the user owns any shared (non-personal) * team that still has other members, because removing them would cascade that * team away and destroy its other members' data. The response lists every * blocking team; transfer ownership first. Nothing is deleted in that case. * * Also refused with 409 when the acting admin targets themselves, or when the * target's email is listed in the `auth.instance_admins` config allowlist. * * Instance-admin only; non-admin and unauthenticated requests receive 404. * */ export declare const deleteAdminUser: (options: Options) => RequestResult; /** * Get an instance user * * Returns one user with their team memberships (team name + the user's role * in each team). Instance-admin only; non-admin and unauthenticated requests * receive 404, as does an unknown user id. * */ export declare const getAdminUser: (options: Options) => RequestResult; /** * Update an instance user * * Updates the display name of a user. This is the ONLY field an instance * admin may change: `email`, `idp_provider` and `idp_subject` are owned by the * upstream identity provider, and a body containing any unknown or * non-editable field is rejected with 400 rather than silently ignored. * Instance-admin only; non-admin and unauthenticated requests receive 404. * */ export declare const updateAdminUser: (options: Options) => RequestResult; /** * List instance teams * * Returns a paginated, instance-wide listing of teams with each team's owner * and member count. Supports case-insensitive search, typed filters, and * allowlisted sorting; filters combine with AND and the pagination envelope * reflects the filtered set. Instance-admin only; non-admin and * unauthenticated requests receive 404. * */ export declare const listAdminTeams: (options?: Options) => RequestResult; /** * Get an instance team * * Returns one team with its owner and member list (each member's user * id/email/name, role, and join time). Instance-admin only; non-admin and * unauthenticated requests receive 404, as does an unknown team id. * */ export declare const getAdminTeam: (options: Options) => RequestResult; /** * Get admin dashboard overview * * Returns instance-wide entity totals, status/type breakdowns, and system * health (database size and per-table estimated row counts), plus the running * backend version. Computed on demand — there are no rollup tables. * Instance-admin only; non-admin and unauthenticated requests receive 404. * */ export declare const getAdminDashboardOverview: (options?: Options) => RequestResult; /** * Get admin dashboard time series * * Returns growth, sign-in, and resource-access-by-source counts bucketed over * a time range. Omitting the parameters yields the last 30 days at `day` * granularity. Every bucket in the range is present in every series with an * explicit 0. * * Both event sources are TTL-pruned (config `retention.activity_days` and * `retention.access_event_days`), so the response carries a `data_window` * stating the earliest instant for which data still exists — a range older * than that legitimately reads as zeros rather than missing data. * * Instance-admin only; non-admin and unauthenticated requests receive 404. * */ export declare const getAdminDashboardTimeseries: (options?: Options) => RequestResult; /** * Suspend a user * * Suspends the account, blocking it at EVERY authentication entry point: * existing cookie sessions, API keys and MCP/OAuth bearer tokens all stop * working on their next request, not at expiry. A suspended user also cannot * complete a fresh sign-in. * * Suspension is instance-local — it does not disable the account at the * upstream identity provider — and is fully reversible via the reactivate * operation, with no data loss. * * Rejected with 409 when the acting admin targets themselves, or when the * target's email is listed in the `auth.instance_admins` config allowlist * (which would otherwise let an instance lock itself out of its own admin * surface). * * Suspending an already-suspended user is a no-op and returns 200. * Instance-admin only; non-admin and unauthenticated requests receive 404. * */ export declare const suspendAdminUser: (options: Options) => RequestResult; /** * Reactivate a suspended user * * Restores a suspended account to `active`. Access is restored at every * authentication entry point on the next request, and no data is lost — * teams, resources and API keys are untouched by suspension. * * Reactivating an already-active user is a no-op and returns 200. * Instance-admin only; non-admin and unauthenticated requests receive 404. * */ export declare const reactivateAdminUser: (options: Options) => RequestResult; /** * List instance projects * * Returns a paginated, instance-wide listing of projects with each project's * owning team and its creator. Supports case-insensitive search, typed * filters, and allowlisted sorting; filters combine with AND and the * pagination envelope reflects the filtered set. * * `owner` is the project's creator (`projects.user_id`), which is not * necessarily the owning team's owner. * * Instance-admin only; non-admin and unauthenticated requests receive 404. * */ export declare const listAdminProjects: (options?: Options) => RequestResult; /** * Get an instance project * * Returns one project with its owning team, its creator, and how many of each * PROJECT-SCOPED resource type it contains (prompts, artifacts, memories, * blueprints). Agents and feeds are not included because they are team-scoped * and have no project association. * * Instance-admin only; non-admin and unauthenticated requests receive 404, as * does an unknown project id. * */ export declare const getAdminProject: (options: Options) => RequestResult; /** * List a resource's comments * * Returns a page of comments on the given resource, newest first. The caller must be a member of the team. * */ export declare const listComments: (options: Options) => RequestResult; /** * Create a comment * * Adds a comment on a resource. Any team member may comment; the target resource must exist in the team (404 otherwise). * */ export declare const createComment: (options: Options) => RequestResult; /** * List recent comment activity * * Returns the team's most recent comment activity for the homepage card, ordered by latest activity (an edited comment resurfaces). Each entry carries its resource's resolved title and link fields; entries whose resource has been deleted are omitted. * */ export declare const listRecentComments: (options: Options) => RequestResult; /** * Delete a comment * * Deletes a comment. The author may delete their own; a team admin or owner may delete any comment (403 otherwise). * */ export declare const deleteComment: (options: Options) => RequestResult; /** * Edit a comment * * Updates a comment's content. Only the comment's author may edit it; no role can edit another member's comment (403 otherwise). * */ export declare const updateComment: (options: Options) => RequestResult; /** * List a resource's relations * * Returns a page of the relations touching the given resource — both directions (the resource as subject or as object) — newest first, each enriched with the other endpoint's resolved title. The caller must be a member of the team. * */ export declare const listRelations: (options: Options) => RequestResult; /** * Create a relation * * Creates a typed edge between two resources. Any team member may create a relation; both endpoints must exist in the team and share a project, and the object type must satisfy the relation-type matrix. Creation is idempotent — a duplicate edge returns the existing row with 200 instead of 201. * */ export declare const createRelation: (options: Options) => RequestResult; /** * Confirm a suggested relation * * Promotes a suggested relation to confirmed, recording the caller as the confirmer. Requires permission to update any resource in the team. Confirming an already-confirmed relation returns 409. * */ export declare const confirmRelation: (options: Options) => RequestResult; /** * Delete a relation * * Deletes a relation. The creator may delete their own; a team admin or owner may delete any relation. * */ export declare const deleteRelation: (options: Options) => RequestResult; /** * Seed suggested relations from embedding similarity * * Triggers a one-shot, per-team embedding-similarity backfill that proposes typed relations (origin=ai, status=suggested) between similar resources. Runs in the background and coalesces concurrent triggers; returns 202 immediately. Requires permission to create resources in the team. * */ export declare const seedRelations: (options: Options) => RequestResult; /** * List embedding providers * * Retrieves all embedding providers belonging to the authenticated user. * Returns a bare JSON array (no pagination envelope). Encrypted API keys * are never included; each item carries a `has_api_key` boolean instead. * */ export declare const listEmbeddingProviders: (options: Options) => RequestResult; /** * Create embedding provider * * Creates a new embedding provider configuration for the authenticated user. * The `api_key` supplied in the request is encrypted at rest and is never * returned by the API — responses expose only a `has_api_key` boolean. * Returns 200 (not 201) on success. * */ export declare const createEmbeddingProvider: (options: Options) => RequestResult; /** * Get embedding coverage * * Returns derived, team-scoped embedding coverage per entity type under the * team's active provider model: how many entities exist (`total`), how many * have an embedding (`embedded`), how many are still pending, and the * embedded percentage. Counts are computed from existing rows — there is no * per-entity state. When the team has no active provider, the response * reports every type as all-pending (0%) rather than an error. * */ export declare const getEmbeddingCoverage: (options: Options) => RequestResult; /** * Delete embedding provider * * Deletes an embedding provider owned by the authenticated user. Deleting * the user's last remaining provider is blocked with a 400 * `PROVIDER_LAST_DELETE_BLOCKED` error. * */ export declare const deleteEmbeddingProvider: (options: Options) => RequestResult; /** * Get embedding provider * * Retrieves a single embedding provider owned by the authenticated user. * The encrypted API key is never returned; `has_api_key` indicates whether * one is stored. * */ export declare const getEmbeddingProvider: (options: Options) => RequestResult; /** * Update embedding provider * * Updates an existing embedding provider. All fields are optional; only * provided fields are changed. A supplied `api_key` replaces the stored * (encrypted) key and is never echoed back in the response. * */ export declare const updateEmbeddingProvider: (options: Options) => RequestResult; /** * Reprocess missing embeddings * * Re-drives embedding generation for the team's entities that are still * missing an embedding, through the concurrency-bounded embedding path so a * large run never fans out beyond the provider's configured concurrency. It * is the sanctioned replacement for the removed back-office backfill * endpoint. * * The provider `{id}` is validated and authorized, but the work is * team-scoped: an embedding provider is per-team, so reprocess enqueues the * team's entity set (generated via the team's active provider). It returns * 202 immediately and runs in the background; generation is idempotent * (delete-then-insert per entity) and a per-team in-flight guard makes * repeat calls safe (no double fan-out). * */ export declare const reprocessEmbeddingProvider: (options: Options) => RequestResult; /** * Validate embedding provider configuration * * Validates an embedding provider configuration (connectivity/credentials) * without persisting anything. Validation outcome — including an invalid * configuration — is reported in the 200 response body (`is_valid`, * `message`, `details`); 500 is returned only for internal service errors. * */ export declare const validateEmbeddingProvider: (options: Options) => RequestResult; /** * List the metadata keys in use * * Returns the distinct metadata keys present on the caller's rows of the requested resource type, optionally narrowed to a single project. Use it to populate the key side of a metadata filter. */ export declare const getMetadataKeys: (options: Options) => RequestResult; /** * List the values stored under a metadata key * * Returns the distinct values stored under one metadata key on the caller's rows of the requested resource type. Values held in an array are flattened and non-string scalars are rendered in their text form, so the result is directly usable as filter input. Supply `q` for typeahead. */ export declare const getMetadataValues: (options: Options) => RequestResult; /** * Reset the team's search ranking settings to the instance defaults * * Drops the team's stored profile so it inherits the deployment defaults again. Resetting a team that has no override is a no-op and still returns 204. Requires the `team.settings.update` permission. * */ export declare const resetTeamSearchSettings: (options: Options) => RequestResult; /** * Get the team's search ranking settings * * Returns the search ranking settings in effect for the team, together with their provenance (`source`), the instance defaults, and the instance-owned candidate cap. A team that has never overridden the settings gets `source: instance` and the deployment defaults. Any member of the team may read them. * */ export declare const getTeamSearchSettings: (options: Options) => RequestResult; /** * Override the team's search ranking settings * * Stores a complete ranking profile for the team, replacing any previous one. There is no partial update — the whole profile is required, and the team either owns all of it or (after a reset) none of it. Requires the `team.settings.update` permission, held by owners and admins. * */ export declare const updateTeamSearchSettings: (options: Options) => RequestResult; /** * List the team's settings audit log * * Every configuration copied into this team from another team, newest first and paginated, with the actor and source-team names resolved server-side. Requires the team.settings.update permission (owner or admin). The list is empty, never null, past the last page. * */ export declare const listTeamSettingsAudit: (options: Options) => RequestResult; /** * List the team's freshness rules * * Returns every freshness rule the team has defined, oldest first. Any member of the team may read them. The array is empty, never null, when the team has no rules. * */ export declare const listFreshnessRules: (options: Options) => RequestResult; /** * Create a freshness rule * * Adds a rule to the team. Requires the `team.settings.update` permission. An omitted `mediums` matches any medium; an omitted or null `project_id` applies the rule to every project in the team. * */ export declare const createFreshnessRule: (options: Options) => RequestResult; /** * Delete a freshness rule * * Removes the rule and strips it from any freshness state that matched it, so no stale resource keeps referencing a rule that no longer exists. Requires the `team.settings.update` permission. * */ export declare const deleteFreshnessRule: (options: Options) => RequestResult; /** * Replace a freshness rule * * Replaces the rule in full — every mutable field is required, because an omitted field would otherwise reset that dimension. Requires the `team.settings.update` permission. * */ export declare const updateFreshnessRule: (options: Options) => RequestResult; /** * Reset the team's freshness settings to the defaults * * Removes the team's stored settings so it inherits the defaults again. Requires the `team.settings.update` permission. Resetting a team that has no stored settings succeeds and changes nothing. * */ export declare const resetTeamFreshnessSettings: (options: Options) => RequestResult; /** * Get the team's freshness settings * * Returns the freshness evaluation settings in effect for the team, their provenance (`source`), and the defaults a reset would restore. A team that has never overridden them gets `source: instance`. Any member may read them. * */ export declare const getTeamFreshnessSettings: (options: Options) => RequestResult; /** * Override the team's freshness settings * * Replaces the team's freshness settings in full. `interval_seconds` below 3600 (one hour) is rejected. Requires the `team.settings.update` permission. * */ export declare const updateTeamFreshnessSettings: (options: Options) => RequestResult; /** * Freshness activity over time * * Daily marked/cleared counts and the reconstructed stale level over the requested window, zero-filled so every day in the range is present. * */ export declare const getFreshnessOverTimeMetrics: (options: Options) => RequestResult; /** * Stale resources by resource type * * Current stale counts per resource type. All four types are always present; one with nothing stale reports 0. * */ export declare const getFreshnessByTypeMetrics: (options: Options) => RequestResult; /** * Stale resources by project * * Current stale counts per project in the team, including projects with nothing stale. * */ export declare const getFreshnessByProjectMetrics: (options: Options) => RequestResult; /** * Resources marked by each rule * * How many resources each of the team's rules currently marks, including rules that match nothing. This is how an over-broad rule is spotted. * */ export declare const getFreshnessByRuleMetrics: (options: Options) => RequestResult; /** * List the team's freshness audit log * * Every recorded mark and clear for the team, newest first and paginated. Readable by any member. The list is empty, never null, past the last page. * */ export declare const listFreshnessAudit: (options: Options) => RequestResult; /** * List embedding providers * * Retrieves all embedding providers belonging to the authenticated user. * Returns a bare JSON array (no pagination envelope). Encrypted API keys * are never included; each item carries a `has_api_key` boolean instead. * */ export declare const listEmbeddingProvidersSettings: (options: Options) => RequestResult; /** * Create embedding provider * * Creates a new embedding provider configuration for the authenticated user. * The `api_key` supplied in the request is encrypted at rest and is never * returned by the API — responses expose only a `has_api_key` boolean. * Returns 200 (not 201) on success. * */ export declare const createEmbeddingProviderSettings: (options: Options) => RequestResult; /** * Get embedding coverage * * Returns derived, team-scoped embedding coverage per entity type under the * team's active provider model: how many entities exist (`total`), how many * have an embedding (`embedded`), how many are still pending, and the * embedded percentage. Counts are computed from existing rows — there is no * per-entity state. When the team has no active provider, the response * reports every type as all-pending (0%) rather than an error. * */ export declare const getEmbeddingCoverageSettings: (options: Options) => RequestResult; /** * Delete embedding provider * * Deletes an embedding provider owned by the authenticated user. Deleting * the user's last remaining provider is blocked with a 400 * `PROVIDER_LAST_DELETE_BLOCKED` error. * */ export declare const deleteEmbeddingProviderSettings: (options: Options) => RequestResult; /** * Get embedding provider * * Retrieves a single embedding provider owned by the authenticated user. * The encrypted API key is never returned; `has_api_key` indicates whether * one is stored. * */ export declare const getEmbeddingProviderSettings: (options: Options) => RequestResult; /** * Update embedding provider * * Updates an existing embedding provider. All fields are optional; only * provided fields are changed. A supplied `api_key` replaces the stored * (encrypted) key and is never echoed back in the response. * */ export declare const updateEmbeddingProviderSettings: (options: Options) => RequestResult; /** * Reprocess missing embeddings * * Re-drives embedding generation for the team's entities that are still * missing an embedding, through the concurrency-bounded embedding path so a * large run never fans out beyond the provider's configured concurrency. It * is the sanctioned replacement for the removed back-office backfill * endpoint. * * The provider `{id}` is validated and authorized, but the work is * team-scoped: an embedding provider is per-team, so reprocess enqueues the * team's entity set (generated via the team's active provider). It returns * 202 immediately and runs in the background; generation is idempotent * (delete-then-insert per entity) and a per-team in-flight guard makes * repeat calls safe (no double fan-out). * */ export declare const reprocessEmbeddingProviderSettings: (options: Options) => RequestResult; /** * Validate embedding provider configuration * * Validates an embedding provider configuration (connectivity/credentials) * without persisting anything. Validation outcome — including an invalid * configuration — is reported in the 200 response body (`is_valid`, * `message`, `details`); 500 is returned only for internal service errors. * */ export declare const validateEmbeddingProviderSettings: (options: Options) => RequestResult; /** * Clear all embeddings (Settings) * * Permanently deletes every stored embedding for the team (a destructive * truncate), returning how many rows were removed. Unlike reprocess, this * does not regenerate anything: the team's content stays unembedded — and * semantic search returns nothing for it — until a provider reprocess or an * identity-changing provider update re-embeds the team. It is team-scoped: * only the authenticated team's embeddings are affected. Exposed on the * settings route only (the destructive maintenance action lives in the * embedding settings UI). * */ export declare const clearEmbeddingsSettings: (options: Options) => RequestResult; /** * Copy an embedding provider from another team * * Copies one embedding provider out of another team into this one (#831, * epic #827). The destination is `{team_id}`; the source is named in the * body. * * The stored API key moves as CIPHERTEXT: the source row's encrypted key is * written straight to the new row and is never decrypted, never held in * plaintext, and never appears in a request or response body. That is the * reason this is a server-side operation at all — keys are write-only over * the API, so a client copying a provider by hand cannot bring one with it. * * Authorization requires permission to manage provider settings in BOTH * teams. The destination is evaluated first and either denial answers the * same 403, so the response never reveals whether the source team exists. * * The copy is always written `is_default: false`, and its chunk sizing, * concurrency and instruction prefixes carry over from the source unless * overridden. It can nonetheless become the team's ACTIVE provider: the * active provider is "the default-flagged one, else the most recently * updated one", so a non-default copy takes over whenever the destination * has no default set. That verdict — and the model it displaces, with the * number of resources still embedded under it — is reported in * `activation`, because nothing else in the system reports it: mixing * embedding models produces no error, only worse search results. * * Note the `version` caveat on `EmbeddingProvider`: like the create * response, this one reports 0 for a row that persists at 1. * */ export declare const copyEmbeddingProviderFromTeam: (options: Options) => RequestResult; /** * Delete the team's GitHub App configuration * * Removes the team's GitHub App registration. This also disconnects every * installation made through that App, since installations are meaningful * only in the context of the App they were installed from. * */ export declare const deleteGitHubAppConfig: (options: Options) => RequestResult; /** * Get the team's GitHub App configuration * * Returns the team's GitHub App registration. Secrets are never included — * the response carries `has_private_key`, `has_client_secret` and * `has_webhook_secret` booleans plus the `webhook_url` to paste into GitHub. * */ export declare const getGitHubAppConfig: (options: Options) => RequestResult; /** * Register the team's GitHub App * * Registers a GitHub App for the team. The `private_key` and `client_secret` * are encrypted at rest and are never returned. * * The webhook secret is **generated by the server**, not supplied by the * caller, and is returned in this response **once only**. It cannot be read * back afterwards; a lost secret must be rotated. Returns 200 (not 201), * matching the provider convention. * */ export declare const createGitHubAppConfig: (options: Options) => RequestResult; /** * Update the team's GitHub App configuration * * Updates the team's GitHub App registration. Every field is optional: an * omitted field keeps the stored value, and an explicitly empty value is * rejected rather than clearing the stored one. Secrets are never returned. * * The webhook secret cannot be set here — it is server-generated and * replaced through rotation. * */ export declare const updateGitHubAppConfig: (options: Options) => RequestResult; /** * Validate the team's GitHub App configuration * * Probes GitHub with the stored credentials and reports whether they work. * This proves the private key belongs to the configured `app_id`, that the * stored slug matches what GitHub reports (a typo there would otherwise * produce a broken install URL), and which permissions the App holds. * * A failed probe is reported in the body with `is_valid: false`, not as an * HTTP error. `error_details` is always one of a fixed set of categories; * the real upstream error is logged server-side only. * * Authorized as a mutation, because it makes the server perform an * authenticated outbound call on the team's behalf. * */ export declare const validateGitHubAppConfig: (options: Options) => RequestResult; /** * Rotate the GitHub App webhook token * * Mints a new opaque routing token, which changes the App's `webhook_url`. * The previous URL stops resolving immediately, so the new one must be * pasted into the App's settings on GitHub or deliveries will stop. * * This rotates the routing token only, not the webhook secret. * */ export declare const rotateGitHubAppWebhookToken: (options: Options) => RequestResult; /** * Delete the team's GitHub App configuration * * Removes the team's GitHub App registration. This also disconnects every * installation made through that App, since installations are meaningful * only in the context of the App they were installed from. * */ export declare const deleteGitHubAppConfigSettings: (options: Options) => RequestResult; /** * Get the team's GitHub App configuration * * Returns the team's GitHub App registration. Secrets are never included — * the response carries `has_private_key`, `has_client_secret` and * `has_webhook_secret` booleans plus the `webhook_url` to paste into GitHub. * */ export declare const getGitHubAppConfigSettings: (options: Options) => RequestResult; /** * Register the team's GitHub App * * Registers a GitHub App for the team. The `private_key` and `client_secret` * are encrypted at rest and are never returned. * * The webhook secret is **generated by the server**, not supplied by the * caller, and is returned in this response **once only**. It cannot be read * back afterwards; a lost secret must be rotated. Returns 200 (not 201), * matching the provider convention. * */ export declare const createGitHubAppConfigSettings: (options: Options) => RequestResult; /** * Update the team's GitHub App configuration * * Updates the team's GitHub App registration. Every field is optional: an * omitted field keeps the stored value, and an explicitly empty value is * rejected rather than clearing the stored one. Secrets are never returned. * * The webhook secret cannot be set here — it is server-generated and * replaced through rotation. * */ export declare const updateGitHubAppConfigSettings: (options: Options) => RequestResult; /** * Validate the team's GitHub App configuration * * Probes GitHub with the stored credentials and reports whether they work. * This proves the private key belongs to the configured `app_id`, that the * stored slug matches what GitHub reports (a typo there would otherwise * produce a broken install URL), and which permissions the App holds. * * A failed probe is reported in the body with `is_valid: false`, not as an * HTTP error. `error_details` is always one of a fixed set of categories; * the real upstream error is logged server-side only. * * Authorized as a mutation, because it makes the server perform an * authenticated outbound call on the team's behalf. * */ export declare const validateGitHubAppConfigSettings: (options: Options) => RequestResult; /** * Rotate the GitHub App webhook token * * Mints a new opaque routing token, which changes the App's `webhook_url`. * The previous URL stops resolving immediately, so the new one must be * pasted into the App's settings on GitHub or deliveries will stop. * * This rotates the routing token only, not the webhook secret. * */ export declare const rotateGitHubAppWebhookTokenSettings: (options: Options) => RequestResult; /** * Remove the team's email provider * * Deletes the team's provider, so the team reverts to the instance provider. * A subsequent GET reports `source: "instance"`. * * Deleting when the team has no provider of its own returns 409 rather than * 404: the endpoint exists and the team is addressable, it is simply not in a * state that can serve the request. * */ export declare const deleteTeamEmailProvider: (options: Options) => RequestResult; /** * Get the team's effective email configuration * * Returns the email configuration in force for the team. * * This **always returns 200**, never 404. A team without its own provider is * inheriting the instance provider, which is a valid state the caller needs * described — it reports `configured: false`, `source: "instance"` and the * instance's `effective_from_address`. * * Readable by any team member: the response carries no credential, and * `effective_from_address` is already in the From: header of every mail those * members receive. * */ export declare const getTeamEmailProvider: (options: Options) => RequestResult; /** * Configure the team's email provider * * Creates or replaces the team's email provider. Idempotent: the same body * applied twice leaves one row and returns 200 both times. * * `secret` is required the first time. On a team that already has a provider, * omit it to keep the stored credential; sending an empty string is rejected * rather than treated as "clear", because a provider without a credential * cannot send and silently disabling a team's mail is worse than an error. * * A team-supplied `settings.smtp.host` or `settings.mailgun.base_url` that * resolves into a reserved network range is rejected before anything is * stored or dialled. * */ export declare const upsertTeamEmailProvider: (options: Options) => RequestResult; /** * Send a test email with a candidate configuration * * Sends a real message using the configuration **in this request body**, not * the stored one, so credentials can be verified before they are saved. The * body therefore always requires `secret`. * * The recipient is **always the acting user's own account email**. It cannot * be supplied by the caller, so this endpoint cannot be used to send mail to * third parties. * * A failed send is reported in the body with `is_valid: false` and a fixed * `details.error_details` category, not as an HTTP error. A 500 means an * internal fault, not a bad configuration. * * Authorized as a mutation, because it makes the server perform an outbound * send with team-supplied credentials. * */ export declare const testTeamEmailProvider: (options: Options) => RequestResult; /** * Remove the team's email provider * * Deletes the team's provider, so the team reverts to the instance provider. * A subsequent GET reports `source: "instance"`. * * Deleting when the team has no provider of its own returns 409 rather than * 404: the endpoint exists and the team is addressable, it is simply not in a * state that can serve the request. * */ export declare const deleteTeamEmailProviderSettings: (options: Options) => RequestResult; /** * Get the team's effective email configuration * * Returns the email configuration in force for the team. * * This **always returns 200**, never 404. A team without its own provider is * inheriting the instance provider, which is a valid state the caller needs * described — it reports `configured: false`, `source: "instance"` and the * instance's `effective_from_address`. * * Readable by any team member: the response carries no credential, and * `effective_from_address` is already in the From: header of every mail those * members receive. * */ export declare const getTeamEmailProviderSettings: (options: Options) => RequestResult; /** * Configure the team's email provider * * Creates or replaces the team's email provider. Idempotent: the same body * applied twice leaves one row and returns 200 both times. * * `secret` is required the first time. On a team that already has a provider, * omit it to keep the stored credential; sending an empty string is rejected * rather than treated as "clear", because a provider without a credential * cannot send and silently disabling a team's mail is worse than an error. * * A team-supplied `settings.smtp.host` or `settings.mailgun.base_url` that * resolves into a reserved network range is rejected before anything is * stored or dialled. * */ export declare const upsertTeamEmailProviderSettings: (options: Options) => RequestResult; /** * Send a test email with a candidate configuration * * Sends a real message using the configuration **in this request body**, not * the stored one, so credentials can be verified before they are saved. The * body therefore always requires `secret`. * * The recipient is **always the acting user's own account email**. It cannot * be supplied by the caller, so this endpoint cannot be used to send mail to * third parties. * * A failed send is reported in the body with `is_valid: false` and a fixed * `details.error_details` category, not as an HTTP error. A 500 means an * internal fault, not a bad configuration. * * Authorized as a mutation, because it makes the server perform an outbound * send with team-supplied credentials. * */ export declare const testTeamEmailProviderSettings: (options: Options) => RequestResult; /** * List model providers * * Retrieves all model providers belonging to the authenticated user. * Returns a bare JSON array (no pagination envelope). Encrypted API keys * are never included; each item carries a `has_api_key` boolean instead. * */ export declare const listModelProviders: (options: Options) => RequestResult; /** * Create model provider * * Creates a new model provider configuration for the authenticated user. * The `api_key` supplied in the request is encrypted at rest and is never * returned by the API — responses expose only a `has_api_key` boolean. * Returns 200 (not 201) on success. * */ export declare const createModelProvider: (options: Options) => RequestResult; /** * Delete model provider * * Deletes a model provider owned by the authenticated user. Deleting the * team's last remaining provider is blocked with a 400 * `MODEL_PROVIDER_LAST_DELETE_BLOCKED` error. * */ export declare const deleteModelProvider: (options: Options) => RequestResult; /** * Get model provider * * Retrieves a single model provider owned by the authenticated user. * The encrypted API key is never returned; `has_api_key` indicates whether * one is stored. * */ export declare const getModelProvider: (options: Options) => RequestResult; /** * Update model provider * * Updates an existing model provider. All fields are optional; only * provided fields are changed. A supplied `api_key` replaces the stored * (encrypted) key and is never echoed back in the response. A blank/omitted * `api_key` preserves the stored key. * */ export declare const updateModelProvider: (options: Options) => RequestResult; /** * Validate model provider configuration * * Validates a model provider configuration (connectivity/credentials) * without persisting anything. The probe attempts `GET {base_url}/models` * and falls back to `POST {base_url}/chat/completions`. Validation outcome — * including an invalid configuration — is reported in the 200 response body * (`is_valid`, `message`, `details`); 500 is returned only for internal * service errors. * */ export declare const validateModelProvider: (options: Options) => RequestResult; /** * List model providers * * Retrieves all model providers belonging to the authenticated user. * Returns a bare JSON array (no pagination envelope). Encrypted API keys * are never included; each item carries a `has_api_key` boolean instead. * */ export declare const listModelProvidersSettings: (options: Options) => RequestResult; /** * Create model provider * * Creates a new model provider configuration for the authenticated user. * The `api_key` supplied in the request is encrypted at rest and is never * returned by the API — responses expose only a `has_api_key` boolean. * Returns 200 (not 201) on success. * */ export declare const createModelProviderSettings: (options: Options) => RequestResult; /** * Delete model provider * * Deletes a model provider owned by the authenticated user. Deleting the * team's last remaining provider is blocked with a 400 * `MODEL_PROVIDER_LAST_DELETE_BLOCKED` error. * */ export declare const deleteModelProviderSettings: (options: Options) => RequestResult; /** * Get model provider * * Retrieves a single model provider owned by the authenticated user. * The encrypted API key is never returned; `has_api_key` indicates whether * one is stored. * */ export declare const getModelProviderSettings: (options: Options) => RequestResult; /** * Update model provider * * Updates an existing model provider. All fields are optional; only * provided fields are changed. A supplied `api_key` replaces the stored * (encrypted) key and is never echoed back in the response. A blank/omitted * `api_key` preserves the stored key. * */ export declare const updateModelProviderSettings: (options: Options) => RequestResult; /** * Validate model provider configuration * * Validates a model provider configuration (connectivity/credentials) * without persisting anything. The probe attempts `GET {base_url}/models` * and falls back to `POST {base_url}/chat/completions`. Validation outcome — * including an invalid configuration — is reported in the 200 response body * (`is_valid`, `message`, `details`); 500 is returned only for internal * service errors. * */ export declare const validateModelProviderSettings: (options: Options) => RequestResult; /** * Copy a model provider from another team into this team * * Copies the provider named by `source_provider_id` out of `source_team_id` and into the team named by `{team_id}`, credential included. The caller must be able to manage provider settings in BOTH teams — the same bar the destination's own create path sets — and the destination is checked first, so a caller entitled to neither learns nothing about either. * * The copy carries the source row's ENCRYPTED API key across without ever decrypting it, which is the only way the credential can move: it is write-only over the API, and responses report `has_api_key` alone. A source provider stored without a key copies fine and reports `has_api_key: false`. * * The copy is a snapshot. The destination fully owns the resulting row and may edit or delete it with no effect on the source. It always lands non-default (`is_default: false`) regardless of the source, so it can never displace the destination team's existing default. * * Note the `version` caveat on `ModelProvider`: like the create response, this one reports 0 for a row that persists at 1. */ export declare const copyModelProviderFromTeam: (options: Options) => RequestResult; /** * List projects * * Returns a paginated list of projects within the specified team. Each * project is enriched with a `github_connected` flag indicating whether * its git URL matches a repository accessible via the team's GitHub App * installation. * */ export declare const listProjects: (options: Options) => RequestResult; /** * Create new project * * Creates a new project within the specified team. Project slugs must be * unique within the team. Requires team membership. * */ export declare const createProject: (options: Options) => RequestResult; /** * Delete project * * Deletes a project identified by its slug. The last remaining project in * a team cannot be deleted (returns 400). * */ export declare const deleteProject: (options: Options) => RequestResult; /** * Get project by slug * * Returns a single project identified by its URL-encoded slug within the specified team. */ export declare const getProject: (options: Options) => RequestResult; /** * Update project * * Partially updates a project identified by its slug. Only fields present * in the request body are changed. Uses optimistic locking — a concurrent * modification returns 409. Projects cannot be moved between teams. * */ export declare const updateProject: (options: Options) => RequestResult; /** * Get project migration inventory * * Returns a count and item list of all migratable resources (prompts, * artifacts, spec libraries, feed items) in the given project, used to * drive the migration UI. * */ export declare const getProjectMigrationInventory: (options: Options) => RequestResult; /** * Migrate project resources * * Moves selected resources (prompts, artifacts, spec libraries, feed items) * from the source project to a destination project in the same team. * Slug collisions are handled per the requested conflict policy * (skip, rename, or overwrite; defaults to skip). Returns per-type * migrated counts plus skipped/failed outcomes with a 200 status. * */ export declare const migrateProject: (options: Options) => RequestResult; /** * List activities * * Returns a paginated list of the authenticated user's activities, with * optional filtering by type, entity, session, free-text search, and date * range. Activities are user-scoped (not team-scoped). Invalid filter or * pagination values are silently ignored and defaults applied. * */ export declare const listActivities: (options?: Options) => RequestResult; /** * Create activity * * Manually records an activity for the authenticated user. The server * enriches the activity metadata with manual_creation/created_via flags * and overwrites source_ip and user_agent from the request. * */ export declare const createActivity: (options: Options) => RequestResult; /** * Get activity statistics * * Returns aggregated activity statistics for the authenticated user, * including totals, top activity/entity types, recent activities, and a * per-day count for the current week. * */ export declare const getActivityStats: (options?: Options) => RequestResult; /** * Get activity and entity types * * Returns the catalog of activity types this endpoint exposes (a curated subset of all recorded types) and the entity types, in a single response. */ export declare const getActivityTypes: (options?: Options) => RequestResult; /** * Get entity types * * Returns the static catalog of known entity types as a plain string array. */ export declare const getActivityEntityTypes: (options?: Options) => RequestResult; /** * Get activity by ID * * Returns a single activity owned by the authenticated user. */ export declare const getActivity: (options: Options) => RequestResult; /** * Get user preferences * * Returns the authenticated user's preferences (email notification settings and * per-channel/per-type notification delivery preferences). Defaults are created * on first access if the user has no stored preferences. * */ export declare const getPreferences: (options?: Options) => RequestResult; /** * Update user preferences * * Updates the authenticated user's preferences. Both top-level fields are optional; * only the categories present in the request body are updated. * */ export declare const updatePreferences: (options: Options) => RequestResult; /** * Mark onboarding as completed * * Marks the authenticated user's onboarding flow as completed and returns the * updated user object. Takes no request body. * */ export declare const completeOnboarding: (options?: Options) => RequestResult; /** * List feed item replies * * Returns paginated threaded replies for the specified feed item, team-scoped * (free-tier accessible). * */ export declare const listFeedItemReplies: (options: Options) => RequestResult; /** * Create a feed item reply * * Posts a threaded reply to the specified feed item, team-scoped (free-tier * accessible). Replies cannot be posted to archived feed items. * */ export declare const createFeedItemReply: (options: Options) => RequestResult;