A desktop coding agent with free access to frontier models.
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
import { client } from "./client.gen.js";
import { buildClientParams, type Client, type Options as Options2, type TDataShape } from "./client/index.js";
import type {
ActivateAutomationErrors,
ActivateAutomationResponses,
ArchiveAutomationErrors,
ArchiveAutomationResponses,
CancelAutomationRunErrors,
CancelAutomationRunResponses,
CreateAutomationErrors,
CreateAutomationResponses,
CreateCloudAutomationErrors,
CreateCloudAutomationResponses,
CreateInstallLinkRequest,
CreateOrganizationApiKeyRequest,
DashboardElement,
DeactivateAutomationErrors,
DeactivateAutomationResponses,
DeleteApiAuthScimV2GroupsByGroupIdResponses,
DeleteV1AdminAdminsByAdminIdResponses,
DeleteV1AdminUsersByUserIdResponses,
DeleteV1ConfigObjectsByConfigObjectIdAccessByGrantIdErrors,
DeleteV1ConfigObjectsByConfigObjectIdAccessByGrantIdResponses,
DeleteV1ConfigObjectsByConfigObjectIdPluginsByPluginIdErrors,
DeleteV1ConfigObjectsByConfigObjectIdPluginsByPluginIdResponses,
DeleteV1ConnectorInstancesByConnectorInstanceIdAccessByGrantIdErrors,
DeleteV1ConnectorInstancesByConnectorInstanceIdAccessByGrantIdResponses,
DeleteV1ConnectorMappingsByConnectorMappingIdErrors,
DeleteV1ConnectorMappingsByConnectorMappingIdResponses,
DeleteV1DashboardsByDashboardIdAccessByGrantIdErrors,
DeleteV1DashboardsByDashboardIdAccessByGrantIdResponses,
DeleteV1DashboardsByDashboardIdErrors,
DeleteV1DashboardsByDashboardIdResponses,
DeleteV1DesktopPoliciesByDesktopPolicyIdErrors,
DeleteV1DesktopPoliciesByDesktopPolicyIdResponses,
DeleteV1DesktopPoliciesByKeyByExternalKeyResponses,
DeleteV1InferenceAnalyticsLangfuseResponses,
DeleteV1LlmProvidersByKeyByExternalKeyResponses,
DeleteV1LlmProvidersByLlmProviderIdAccessByAccessIdErrors,
DeleteV1LlmProvidersByLlmProviderIdAccessByAccessIdResponses,
DeleteV1LlmProvidersByLlmProviderIdErrors,
DeleteV1LlmProvidersByLlmProviderIdMyCredentialErrors,
DeleteV1LlmProvidersByLlmProviderIdMyCredentialResponses,
DeleteV1LlmProvidersByLlmProviderIdResponses,
DeleteV1MarketplacesByKeyByExternalKeyResponses,
DeleteV1MarketplacesByMarketplaceIdAccessByGrantIdErrors,
DeleteV1MarketplacesByMarketplaceIdAccessByGrantIdResponses,
DeleteV1MarketplacesByMarketplaceIdPluginsByPluginIdErrors,
DeleteV1MarketplacesByMarketplaceIdPluginsByPluginIdResponses,
DeleteV1McpConnectionsByConnectionIdErrors,
DeleteV1McpConnectionsByConnectionIdResponses,
DeleteV1McpConnectionsByKeyByExternalKeyErrors,
DeleteV1McpConnectionsByKeyByExternalKeyResponses,
DeleteV1MembersByMemberIdErrors,
DeleteV1MembersByMemberIdResponses,
DeleteV1MemoryByIdErrors,
DeleteV1OrgErrors,
DeleteV1OrgResponses,
DeleteV1PluginsByPluginIdAccessByGrantIdErrors,
DeleteV1PluginsByPluginIdAccessByGrantIdResponses,
DeleteV1PluginsByPluginIdConfigObjectsByConfigObjectIdErrors,
DeleteV1PluginsByPluginIdConfigObjectsByConfigObjectIdResponses,
DeleteV1RolesByRoleIdErrors,
DeleteV1RolesByRoleIdResponses,
DeleteV1ScimErrors,
DeleteV1ScimResponses,
DeleteV1SkillHubsBySkillHubIdAccessByAccessIdErrors,
DeleteV1SkillHubsBySkillHubIdErrors,
DeleteV1SkillHubsBySkillHubIdSkillsBySkillIdErrors,
DeleteV1SsoErrors,
DeleteV1SsoResponses,
DeleteV1TeamsByKeyByExternalKeyResponses,
DeleteV1TeamsByTeamIdErrors,
DeleteV1TeamsByTeamIdResponses,
DeleteV1WorkersByIdErrors,
DeleteV1WorkersByIdResponses,
DeleteV1WorkflowsByConfigObjectIdSnapshotsByReceiptIdContentResponses,
DenDesktopPolicyDocumentWrite,
ExternalMcpConnectionAccessInput,
ExternalMcpConnectionByKeyUpsertInput,
ExternalMcpConnectionToolPolicyInput,
ExternalMcpConnectionToolRunInput,
ExternalMcpIssuerReviewInput,
ExternalMcpRequirementsDiscoveryInput,
ExternalMcpResolveInput,
GetApiAuthOauth2AuthorizeResponses,
GetApiAuthScimV2GroupsByGroupIdResponses,
GetApiAuthScimV2GroupsResponses,
GetApiAuthScimV2ResourceTypesGroupResponses,
GetApiAuthScimV2ResourceTypesResponses,
GetApiAuthScimV2SchemasResponses,
GetApiAuthWellKnownOauthAuthorizationServerResponses,
GetApiAuthWellKnownOpenidConfigurationResponses,
GetAutomationDesktopRunnerPresenceResponses,
GetAutomationErrors,
GetAutomationResponses,
GetAutomationRunErrors,
GetAutomationRunResponses,
GetHealthResponses,
GetMcpAdminWellKnownOauthProtectedResourceResponses,
GetMcpAgentWellKnownOauthProtectedResourceResponses,
GetMcpWellKnownOauthProtectedResourceResponses,
GetReadyErrors,
GetReadyResponses,
GetV1AdminMetricsErrors,
GetV1AdminMetricsResponses,
GetV1AdminOrganizationsByOrganizationIdCapabilitiesResponses,
GetV1AdminOrganizationsErrors,
GetV1AdminOrganizationsResponses,
GetV1AdminOverviewErrors,
GetV1AdminOverviewResponses,
GetV1AdminUsersByUserIdInferenceUsageResponses,
GetV1AdminUsersErrors,
GetV1AdminUsersResponses,
GetV1ApiKeysErrors,
GetV1ApiKeysResponses,
GetV1AppsByAppIdResponses,
GetV1AppsResponses,
GetV1AppVersionResponses,
GetV1AuthBootstrapStatusResponses,
GetV1AuthLoginOptionsErrors,
GetV1AuthLoginOptionsResponses,
GetV1AutomationRunnersEventsResponses,
GetV1AutomationRunnerWorkResponses,
GetV1BrandAssetsByOrganizationIdByKindByVersionErrors,
GetV1BrandAssetsByOrganizationIdByKindByVersionResponses,
GetV1CapabilitiesGoogleWorkspaceCalendarEventsErrors,
GetV1CapabilitiesGoogleWorkspaceCalendarEventsResponses,
GetV1CapabilitiesGoogleWorkspaceDriveFileByFileIdErrors,
GetV1CapabilitiesGoogleWorkspaceDriveFileByFileIdResponses,
GetV1CapabilitiesGoogleWorkspaceDriveFilesErrors,
GetV1CapabilitiesGoogleWorkspaceDriveFilesResponses,
GetV1CapabilitiesGoogleWorkspaceGmailAttachmentByMessageIdByAttachmentIdErrors,
GetV1CapabilitiesGoogleWorkspaceGmailAttachmentByMessageIdByAttachmentIdResponses,
GetV1CapabilitiesGoogleWorkspaceGmailMessageByMessageIdErrors,
GetV1CapabilitiesGoogleWorkspaceGmailMessageByMessageIdResponses,
GetV1CapabilitiesGoogleWorkspaceGmailMessagesErrors,
GetV1CapabilitiesGoogleWorkspaceGmailMessagesResponses,
GetV1CapabilitiesMicrosoft365CalendarEventsErrors,
GetV1CapabilitiesMicrosoft365CalendarEventsResponses,
GetV1CapabilitiesMicrosoft365DriveFileByItemIdErrors,
GetV1CapabilitiesMicrosoft365DriveFileByItemIdResponses,
GetV1CapabilitiesMicrosoft365DriveFilesErrors,
GetV1CapabilitiesMicrosoft365DriveFilesResponses,
GetV1CapabilitiesMicrosoft365MailMessageByMessageIdErrors,
GetV1CapabilitiesMicrosoft365MailMessageByMessageIdResponses,
GetV1CapabilitiesMicrosoft365MailMessagesErrors,
GetV1CapabilitiesMicrosoft365MailMessagesResponses,
GetV1CapabilitiesMicrosoft365TeamsChatsByChatIdMessagesErrors,
GetV1CapabilitiesMicrosoft365TeamsChatsByChatIdMessagesResponses,
GetV1CapabilitiesMicrosoft365TeamsChatsErrors,
GetV1CapabilitiesMicrosoft365TeamsChatsResponses,
GetV1CloudGatewayResolveErrors,
GetV1CloudGatewayResolveResponses,
GetV1CloudInstanceErrors,
GetV1CloudInstanceResponses,
GetV1ConfigObjectsByConfigObjectIdAccessErrors,
GetV1ConfigObjectsByConfigObjectIdAccessResponses,
GetV1ConfigObjectsByConfigObjectIdErrors,
GetV1ConfigObjectsByConfigObjectIdPluginsErrors,
GetV1ConfigObjectsByConfigObjectIdPluginsResponses,
GetV1ConfigObjectsByConfigObjectIdResponses,
GetV1ConfigObjectsByConfigObjectIdVersionsByVersionIdErrors,
GetV1ConfigObjectsByConfigObjectIdVersionsByVersionIdResponses,
GetV1ConfigObjectsByConfigObjectIdVersionsErrors,
GetV1ConfigObjectsByConfigObjectIdVersionsLatestErrors,
GetV1ConfigObjectsByConfigObjectIdVersionsLatestResponses,
GetV1ConfigObjectsByConfigObjectIdVersionsResponses,
GetV1ConfigObjectsErrors,
GetV1ConfigObjectsResponses,
GetV1ConnectorAccountsByConnectorAccountIdErrors,
GetV1ConnectorAccountsByConnectorAccountIdResponses,
GetV1ConnectorAccountsErrors,
GetV1ConnectorAccountsResponses,
GetV1ConnectorInstancesByConnectorInstanceIdAccessErrors,
GetV1ConnectorInstancesByConnectorInstanceIdAccessResponses,
GetV1ConnectorInstancesByConnectorInstanceIdConfigurationErrors,
GetV1ConnectorInstancesByConnectorInstanceIdConfigurationResponses,
GetV1ConnectorInstancesByConnectorInstanceIdDiscoveryErrors,
GetV1ConnectorInstancesByConnectorInstanceIdDiscoveryResponses,
GetV1ConnectorInstancesByConnectorInstanceIdDiscoveryTreeErrors,
GetV1ConnectorInstancesByConnectorInstanceIdDiscoveryTreeResponses,
GetV1ConnectorInstancesByConnectorInstanceIdErrors,
GetV1ConnectorInstancesByConnectorInstanceIdResponses,
GetV1ConnectorInstancesByConnectorInstanceIdTargetsErrors,
GetV1ConnectorInstancesByConnectorInstanceIdTargetsResponses,
GetV1ConnectorInstancesErrors,
GetV1ConnectorInstancesResponses,
GetV1ConnectorsGithubAccountsByConnectorAccountIdRepositoriesErrors,
GetV1ConnectorsGithubAccountsByConnectorAccountIdRepositoriesResponses,
GetV1ConnectorSyncEventsByConnectorSyncEventIdErrors,
GetV1ConnectorSyncEventsByConnectorSyncEventIdResponses,
GetV1ConnectorSyncEventsErrors,
GetV1ConnectorSyncEventsResponses,
GetV1ConnectorTargetsByConnectorTargetIdErrors,
GetV1ConnectorTargetsByConnectorTargetIdMappingsErrors,
GetV1ConnectorTargetsByConnectorTargetIdMappingsResponses,
GetV1ConnectorTargetsByConnectorTargetIdResponses,
GetV1DashboardsByDashboardIdAccessErrors,
GetV1DashboardsByDashboardIdAccessResponses,
GetV1DashboardsByDashboardIdErrors,
GetV1DashboardsByDashboardIdResponses,
GetV1DashboardsErrors,
GetV1DashboardsResponses,
GetV1DesktopPoliciesByDesktopPolicyIdErrors,
GetV1DesktopPoliciesByDesktopPolicyIdResponses,
GetV1DesktopPoliciesByKeyByExternalKeyErrors,
GetV1DesktopPoliciesByKeyByExternalKeyResponses,
GetV1DesktopPoliciesErrors,
GetV1DesktopPoliciesResponses,
GetV1DevEmailsLastResponses,
GetV1DevEmailsResponses,
GetV1DiagnosticsEgressErrors,
GetV1DiagnosticsEgressResponses,
GetV1InferenceAnalyticsActivityResponses,
GetV1InferenceAnalyticsConsumptionResponses,
GetV1InferenceAnalyticsSettingsResponses,
GetV1InferenceErrors,
GetV1InferenceResponses,
GetV1InstallByPlatformErrors,
GetV1InstallByPlatformResponses,
GetV1InstallConfigErrors,
GetV1InstallConfigResponses,
GetV1LlmProviderCatalogByProviderIdErrors,
GetV1LlmProviderCatalogByProviderIdResponses,
GetV1LlmProviderCatalogErrors,
GetV1LlmProviderCatalogResponses,
GetV1LlmProvidersByKeyByExternalKeyErrors,
GetV1LlmProvidersByKeyByExternalKeyResponses,
GetV1LlmProvidersByLlmProviderIdConnectErrors,
GetV1LlmProvidersByLlmProviderIdConnectResponses,
GetV1LlmProvidersByLlmProviderIdErrors,
GetV1LlmProvidersByLlmProviderIdMemberCredentialsErrors,
GetV1LlmProvidersByLlmProviderIdMemberCredentialsResponses,
GetV1LlmProvidersByLlmProviderIdResponses,
GetV1LlmProvidersErrors,
GetV1LlmProvidersResponses,
GetV1MarketplacesByKeyByExternalKeyErrors,
GetV1MarketplacesByKeyByExternalKeyResponses,
GetV1MarketplacesByMarketplaceIdAccessErrors,
GetV1MarketplacesByMarketplaceIdAccessResponses,
GetV1MarketplacesByMarketplaceIdErrors,
GetV1MarketplacesByMarketplaceIdPluginsErrors,
GetV1MarketplacesByMarketplaceIdPluginsResponses,
GetV1MarketplacesByMarketplaceIdResolvedErrors,
GetV1MarketplacesByMarketplaceIdResolvedResponses,
GetV1MarketplacesByMarketplaceIdResponses,
GetV1MarketplacesErrors,
GetV1MarketplacesResponses,
GetV1McpConnectionsByConnectionIdConnectCallbackErrors,
GetV1McpConnectionsByConnectionIdConnectCallbackResponses,
GetV1McpConnectionsByConnectionIdConnectStartErrors,
GetV1McpConnectionsByConnectionIdConnectStartResponses,
GetV1McpConnectionsByConnectionIdErrors,
GetV1McpConnectionsByConnectionIdMcpAppsErrors,
GetV1McpConnectionsByConnectionIdMcpAppsResponses,
GetV1McpConnectionsByConnectionIdResponses,
GetV1McpConnectionsByConnectionIdToolPolicyErrors,
GetV1McpConnectionsByConnectionIdToolPolicyResponses,
GetV1McpConnectionsByConnectionIdToolsErrors,
GetV1McpConnectionsByConnectionIdToolsResponses,
GetV1McpConnectionsErrors,
GetV1McpConnectionsGoogleWorkspaceConnectStartErrors,
GetV1McpConnectionsGoogleWorkspaceConnectStartResponses,
GetV1McpConnectionsMicrosoft365ConnectStartErrors,
GetV1McpConnectionsMicrosoft365ConnectStartResponses,
GetV1McpConnectionsOauthCallbackErrors,
GetV1McpConnectionsOauthCallbackResponses,
GetV1McpConnectionsPresetsErrors,
GetV1McpConnectionsPresetsResponses,
GetV1McpConnectionsResponses,
GetV1MeDashboardsErrors,
GetV1MeDashboardsResponses,
GetV1MeDesktopConfigErrors,
GetV1MeDesktopConfigResponses,
GetV1MeErrors,
GetV1MeInstallByPlatformErrors,
GetV1MeInstallByPlatformResponses,
GetV1MeInstallConfigErrors,
GetV1MeInstallConfigResponses,
GetV1MeLibraryErrors,
GetV1MeLibraryResponses,
GetV1MemoryErrors,
GetV1MemoryResponses,
GetV1MemorySearchErrors,
GetV1MemorySearchResponses,
GetV1MeOrgsResponses,
GetV1MePluginAccessErrors,
GetV1MePluginAccessResponses,
GetV1MeResponses,
GetV1OauthProvidersByProviderIdClientErrors,
GetV1OauthProvidersByProviderIdClientResponses,
GetV1OauthProvidersByProviderIdConnectCallbackErrors,
GetV1OauthProvidersByProviderIdConnectCallbackResponses,
GetV1OauthProvidersByProviderIdConnectStartErrors,
GetV1OauthProvidersByProviderIdConnectStartResponses,
GetV1OauthProvidersByProviderIdStatusErrors,
GetV1OauthProvidersByProviderIdStatusResponses,
GetV1OrgErrors,
GetV1OrgResponses,
GetV1OrgsInvitationsPreviewErrors,
GetV1OrgsInvitationsPreviewResponses,
GetV1PluginsByPluginIdAccessErrors,
GetV1PluginsByPluginIdAccessResponses,
GetV1PluginsByPluginIdConfigObjectsErrors,
GetV1PluginsByPluginIdConfigObjectsResponses,
GetV1PluginsByPluginIdErrors,
GetV1PluginsByPluginIdResolvedErrors,
GetV1PluginsByPluginIdResolvedResponses,
GetV1PluginsByPluginIdResponses,
GetV1PluginsErrors,
GetV1PluginsResponses,
GetV1ResourcesErrors,
GetV1ResourcesMarketplaceCapabilitiesErrors,
GetV1ResourcesMarketplaceCapabilitiesResponses,
GetV1ResourcesResponses,
GetV1ScimErrors,
GetV1ScimResponses,
GetV1SkillHubsErrors,
GetV1SsoErrors,
GetV1SsoMetadataErrors,
GetV1SsoMetadataResponses,
GetV1SsoResponses,
GetV1TeamsByKeyByExternalKeyErrors,
GetV1TeamsByKeyByExternalKeyResponses,
GetV1TeamsByTeamIdErrors,
GetV1TeamsByTeamIdPluginAccessErrors,
GetV1TeamsByTeamIdPluginAccessResponses,
GetV1TeamsByTeamIdResponses,
GetV1TelemetryAdoptionErrors,
GetV1TelemetryAdoptionResponses,
GetV1TelemetryAnalyticsErrors,
GetV1TelemetryAnalyticsResponses,
GetV1TelemetryDimensionsErrors,
GetV1TelemetryDimensionsResponses,
GetV1WorkersByIdErrors,
GetV1WorkersByIdResponses,
GetV1WorkersByIdRuntimeErrors,
GetV1WorkersByIdRuntimeResponses,
GetV1WorkersErrors,
GetV1WorkersResponses,
GetV1WorkflowRunsErrors,
GetV1WorkflowRunsResponses,
GetV1WorkflowsByConfigObjectIdErrors,
GetV1WorkflowsByConfigObjectIdResponses,
GetV1WorkflowsByConfigObjectIdSnapshotsByReceiptIdErrors,
GetV1WorkflowsByConfigObjectIdSnapshotsByReceiptIdResponses,
GetV1WorkflowsByConfigObjectIdSnapshotsResponses,
GetV1WorkflowsByConfigObjectIdVersionsResponses,
GetV1WorkflowsByConfigObjectIdViewsResponses,
GetV1WorkflowsErrors,
GetV1WorkflowsResponses,
GetWellKnownOauthAuthorizationServerApiAuthResponses,
GetWellKnownOauthAuthorizationServerResponses,
GetWellKnownOauthProtectedResourceMcpAdminResponses,
GetWellKnownOauthProtectedResourceMcpAgentResponses,
GetWellKnownOauthProtectedResourceMcpResponses,
GetWellKnownOauthProtectedResourceResponses,
GetWellKnownOpenidConfigurationApiAuthResponses,
GetWellKnownOpenidConfigurationResponses,
GoogleWorkspaceCreateCalendarEventBody,
GoogleWorkspaceShareDriveFileBody,
GoogleWorkspaceUpdateCalendarEventBody,
ListAutomationRunsResponses,
ListAutomationsErrors,
ListAutomationsResponses,
Microsoft365CalendarEventBody,
Microsoft365DriveFileWriteBody,
Microsoft365MailDraftBody,
Microsoft365TeamsMessageBody,
MintAutomationRunnerTokenErrors,
MintAutomationRunnerTokenResponses,
PatchApiAuthScimV2GroupsByGroupIdResponses,
PatchApiAuthScimV2UsersByUserIdResponses,
PatchV1AdminOrganizationsByOrganizationIdDpaErrors,
PatchV1AdminOrganizationsByOrganizationIdDpaResponses,
PatchV1AdminOrganizationsByOrganizationIdFreeSeatsResponses,
PatchV1AdminOrganizationsByOrganizationIdPlanResponses,
PatchV1CapabilitiesGoogleWorkspaceCalendarEventByEventIdErrors,
PatchV1CapabilitiesGoogleWorkspaceCalendarEventByEventIdResponses,
PatchV1ConnectorInstancesByConnectorInstanceIdErrors,
PatchV1ConnectorInstancesByConnectorInstanceIdResponses,
PatchV1ConnectorMappingsByConnectorMappingIdErrors,
PatchV1ConnectorMappingsByConnectorMappingIdResponses,
PatchV1ConnectorTargetsByConnectorTargetIdErrors,
PatchV1ConnectorTargetsByConnectorTargetIdResponses,
PatchV1DashboardsByDashboardIdErrors,
PatchV1DashboardsByDashboardIdResponses,
PatchV1DesktopPoliciesByDesktopPolicyIdErrors,
PatchV1DesktopPoliciesByDesktopPolicyIdResponses,
PatchV1InferenceAnalyticsSettingsResponses,
PatchV1InferenceErrors,
PatchV1InferenceResponses,
PatchV1LlmProvidersByLlmProviderIdErrors,
PatchV1LlmProvidersByLlmProviderIdResponses,
PatchV1MarketplacesByMarketplaceIdErrors,
PatchV1MarketplacesByMarketplaceIdResponses,
PatchV1MeProfileErrors,
PatchV1MeProfileResponses,
PatchV1OrgErrors,
PatchV1OrgResponses,
PatchV1PluginsByPluginIdErrors,
PatchV1PluginsByPluginIdResponses,
PatchV1RolesByRoleIdErrors,
PatchV1RolesByRoleIdResponses,
PatchV1ScimErrors,
PatchV1ScimResponses,
PatchV1SkillHubsBySkillHubIdErrors,
PatchV1TeamsByTeamIdErrors,
PatchV1TeamsByTeamIdResponses,
PatchV1WorkersByIdErrors,
PatchV1WorkersByIdResponses,
PostApiAuthOauth2RegisterResponses,
PostApiAuthScimV2GroupsResponses,
PostApiAuthScimV2UsersResponses,
PostRegisterResponses,
PostV1AdminAdminsResponses,
PostV1AdminUsersByUserIdInferenceUsageResetResponses,
PostV1ApiKeysErrors,
PostV1ApiKeysResponses,
PostV1AppsByAppIdDashboardResponses,
PostV1AppsByAppIdSaveResponses,
PostV1AppsByAppIdShareErrors,
PostV1AppsByAppIdShareResponses,
PostV1ArtifactViewsByArtifactViewIdRetireResponses,
PostV1ArtifactViewsByArtifactViewIdRevisionsByRevisionIdActivateResponses,
PostV1AuthBootstrapVerifyErrors,
PostV1AuthBootstrapVerifyResponses,
PostV1AutomationRunsByIdClaimResponses,
PostV1AutomationRunsByIdCompleteResponses,
PostV1AutomationRunsByIdEventsResponses,
PostV1AutomationRunsByIdHeartbeatResponses,
PostV1BootstrapClaimsAcceptErrors,
PostV1BootstrapClaimsAcceptResponses,
PostV1BootstrapWorkspaceErrors,
PostV1BootstrapWorkspaceResponses,
PostV1CapabilitiesGoogleWorkspaceCalendarEventsErrors,
PostV1CapabilitiesGoogleWorkspaceCalendarEventsResponses,
PostV1CapabilitiesGoogleWorkspaceDriveFileShareByFileIdErrors,
PostV1CapabilitiesGoogleWorkspaceDriveFileShareByFileIdResponses,
PostV1CapabilitiesGoogleWorkspaceGmailDraftsErrors,
PostV1CapabilitiesGoogleWorkspaceGmailDraftsResponses,
PostV1CapabilitiesMicrosoft365CalendarEventsErrors,
PostV1CapabilitiesMicrosoft365CalendarEventsResponses,
PostV1CapabilitiesMicrosoft365MailDraftsErrors,
PostV1CapabilitiesMicrosoft365MailDraftsResponses,
PostV1CapabilitiesMicrosoft365TeamsChatsByChatIdMessagesErrors,
PostV1CapabilitiesMicrosoft365TeamsChatsByChatIdMessagesResponses,
PostV1CloudInstanceRetryErrors,
PostV1CloudInstanceRetryResponses,
PostV1CloudInstanceUpdateErrors,
PostV1CloudInstanceUpdateResponses,
PostV1ConfigObjectsByConfigObjectIdAccessErrors,
PostV1ConfigObjectsByConfigObjectIdAccessResponses,
PostV1ConfigObjectsByConfigObjectIdArchiveErrors,
PostV1ConfigObjectsByConfigObjectIdArchiveResponses,
PostV1ConfigObjectsByConfigObjectIdDeleteErrors,
PostV1ConfigObjectsByConfigObjectIdDeleteResponses,
PostV1ConfigObjectsByConfigObjectIdPluginsErrors,
PostV1ConfigObjectsByConfigObjectIdPluginsResponses,
PostV1ConfigObjectsByConfigObjectIdRestoreErrors,
PostV1ConfigObjectsByConfigObjectIdRestoreResponses,
PostV1ConfigObjectsByConfigObjectIdVersionsErrors,
PostV1ConfigObjectsByConfigObjectIdVersionsResponses,
PostV1ConfigObjectsErrors,
PostV1ConfigObjectsResponses,
PostV1ConnectorAccountsByConnectorAccountIdDisconnectErrors,
PostV1ConnectorAccountsByConnectorAccountIdDisconnectResponses,
PostV1ConnectorAccountsErrors,
PostV1ConnectorAccountsResponses,
PostV1ConnectorInstancesByConnectorInstanceIdAccessErrors,
PostV1ConnectorInstancesByConnectorInstanceIdAccessResponses,
PostV1ConnectorInstancesByConnectorInstanceIdArchiveErrors,
PostV1ConnectorInstancesByConnectorInstanceIdArchiveResponses,
PostV1ConnectorInstancesByConnectorInstanceIdAutoImportErrors,
PostV1ConnectorInstancesByConnectorInstanceIdAutoImportResponses,
PostV1ConnectorInstancesByConnectorInstanceIdDisableErrors,
PostV1ConnectorInstancesByConnectorInstanceIdDisableResponses,
PostV1ConnectorInstancesByConnectorInstanceIdDiscoveryApplyErrors,
PostV1ConnectorInstancesByConnectorInstanceIdDiscoveryApplyResponses,
PostV1ConnectorInstancesByConnectorInstanceIdEnableErrors,
PostV1ConnectorInstancesByConnectorInstanceIdEnableResponses,
PostV1ConnectorInstancesByConnectorInstanceIdRemoveErrors,
PostV1ConnectorInstancesByConnectorInstanceIdRemoveResponses,
PostV1ConnectorInstancesByConnectorInstanceIdSyncNowErrors,
PostV1ConnectorInstancesByConnectorInstanceIdSyncNowResponses,
PostV1ConnectorInstancesByConnectorInstanceIdTargetsErrors,
PostV1ConnectorInstancesByConnectorInstanceIdTargetsResponses,
PostV1ConnectorInstancesErrors,
PostV1ConnectorInstancesResponses,
PostV1ConnectorsGithubAccountsErrors,
PostV1ConnectorsGithubAccountsResponses,
PostV1ConnectorsGithubInstallCompleteErrors,
PostV1ConnectorsGithubInstallCompleteResponses,
PostV1ConnectorsGithubInstallStartErrors,
PostV1ConnectorsGithubInstallStartResponses,
PostV1ConnectorsGithubSetupErrors,
PostV1ConnectorsGithubSetupResponses,
PostV1ConnectorsGithubValidateTargetErrors,
PostV1ConnectorsGithubValidateTargetResponses,
PostV1ConnectorSyncEventsByConnectorSyncEventIdRetryErrors,
PostV1ConnectorSyncEventsByConnectorSyncEventIdRetryResponses,
PostV1ConnectorTargetsByConnectorTargetIdMappingsErrors,
PostV1ConnectorTargetsByConnectorTargetIdMappingsResponses,
PostV1ConnectorTargetsByConnectorTargetIdResyncErrors,
PostV1ConnectorTargetsByConnectorTargetIdResyncResponses,
PostV1DashboardsByDashboardIdAccessErrors,
PostV1DashboardsByDashboardIdAccessResponses,
PostV1DashboardsErrors,
PostV1DashboardsResponses,
PostV1DesktopPoliciesErrors,
PostV1DesktopPoliciesResponses,
PostV1DiagnosticsEgressErrors,
PostV1DiagnosticsEgressResponses,
PostV1DirectUploadsGoogleWorkspaceDriveFilesErrors,
PostV1DirectUploadsGoogleWorkspaceDriveFilesResponses,
PostV1DirectUploadsGoogleWorkspaceGmailDraftsErrors,
PostV1DirectUploadsGoogleWorkspaceGmailDraftsResponses,
PostV1InferenceAnalyticsEventsResponses,
PostV1InferenceAnalyticsLangfuseConnectResponses,
PostV1InferenceAnalyticsLangfuseTestResponses,
PostV1InstallConnectExchangeErrors,
PostV1InstallConnectExchangeResponses,
PostV1InstallConnectPreviewErrors,
PostV1InstallConnectPreviewResponses,
PostV1InstallConnectStatusErrors,
PostV1InstallConnectStatusResponses,
PostV1InvitationsByInvitationIdCancelErrors,
PostV1InvitationsByInvitationIdCancelResponses,
PostV1InvitationsErrors,
PostV1InvitationsResponses,
PostV1LlmProvidersByLlmProviderIdMemberCredentialsByOrgMembershipIdBlockErrors,
PostV1LlmProvidersByLlmProviderIdMemberCredentialsByOrgMembershipIdBlockResponses,
PostV1LlmProvidersErrors,
PostV1LlmProvidersResponses,
PostV1LlmProvidersTestConnectionErrors,
PostV1LlmProvidersTestConnectionResponses,
PostV1MarketplacesByMarketplaceIdAccessErrors,
PostV1MarketplacesByMarketplaceIdAccessResponses,
PostV1MarketplacesByMarketplaceIdArchiveErrors,
PostV1MarketplacesByMarketplaceIdArchiveResponses,
PostV1MarketplacesByMarketplaceIdDeleteErrors,
PostV1MarketplacesByMarketplaceIdDeleteResponses,
PostV1MarketplacesByMarketplaceIdPluginsErrors,
PostV1MarketplacesByMarketplaceIdPluginsResponses,
PostV1MarketplacesByMarketplaceIdRestoreErrors,
PostV1MarketplacesByMarketplaceIdRestoreResponses,
PostV1MarketplacesErrors,
PostV1MarketplacesResponses,
PostV1McpConnectionsByConnectionIdDisconnectErrors,
PostV1McpConnectionsByConnectionIdDisconnectMyAccountErrors,
PostV1McpConnectionsByConnectionIdDisconnectMyAccountResponses,
PostV1McpConnectionsByConnectionIdDisconnectResponses,
PostV1McpConnectionsByConnectionIdOauthIssuerReviewErrors,
PostV1McpConnectionsByConnectionIdOauthIssuerReviewResponses,
PostV1McpConnectionsByConnectionIdToolsCallErrors,
PostV1McpConnectionsByConnectionIdToolsCallResponses,
PostV1McpConnectionsDiscoverErrors,
PostV1McpConnectionsDiscoverResponses,
PostV1McpConnectionsErrors,
PostV1McpConnectionsResolveErrors,
PostV1McpConnectionsResolveResponses,
PostV1McpConnectionsResponses,
PostV1McpTokenErrors,
PostV1McpTokenResponses,
PostV1MembersByMemberIdRoleErrors,
PostV1MembersByMemberIdRoleResponses,
PostV1MembersByMemberIdTransferOwnershipErrors,
PostV1MembersByMemberIdTransferOwnershipResponses,
PostV1MemoryErrors,
PostV1MeSendDownloadLinkErrors,
PostV1MeSendDownloadLinkResponses,
PostV1OauthProvidersByProviderIdClientErrors,
PostV1OauthProvidersByProviderIdClientResponses,
PostV1OauthProvidersByProviderIdDisconnectErrors,
PostV1OauthProvidersByProviderIdDisconnectResponses,
PostV1OrgBrandAssetsErrors,
PostV1OrgBrandAssetsResponses,
PostV1OrgsByOrganizationIdInstallLinksErrors,
PostV1OrgsByOrganizationIdInstallLinksResponses,
PostV1OrgsInvitationsAcceptErrors,
PostV1OrgsInvitationsAcceptResponses,
PostV1PluginsByPluginIdAccessErrors,
PostV1PluginsByPluginIdAccessResponses,
PostV1PluginsByPluginIdArchiveErrors,
PostV1PluginsByPluginIdArchiveResponses,
PostV1PluginsByPluginIdConfigObjectsErrors,
PostV1PluginsByPluginIdConfigObjectsResponses,
PostV1PluginsByPluginIdMcpConnectionsErrors,
PostV1PluginsByPluginIdMcpConnectionsResponses,
PostV1PluginsByPluginIdRestoreErrors,
PostV1PluginsByPluginIdRestoreResponses,
PostV1PluginsErrors,
PostV1PluginsImportMcpsFromGithubUrlErrors,
PostV1PluginsImportMcpsFromGithubUrlPreviewErrors,
PostV1PluginsImportMcpsFromGithubUrlPreviewResponses,
PostV1PluginsImportMcpsFromGithubUrlResponses,
PostV1PluginsResponses,
PostV1RemoteSessionCommandsByIdClaimResponses,
PostV1RemoteSessionCommandsByIdCompleteResponses,
PostV1RolesErrors,
PostV1RolesResponses,
PostV1ScimReconcileErrors,
PostV1ScimReconcileResponses,
PostV1ScimTokenErrors,
PostV1ScimTokenResponses,
PostV1SkillHubsBySkillHubIdAccessErrors,
PostV1SkillHubsBySkillHubIdSkillsErrors,
PostV1SkillHubsErrors,
PostV1SsoDisableResponses,
PostV1SsoEnableErrors,
PostV1SsoEnableResponses,
PostV1SsoOidcErrors,
PostV1SsoOidcResponses,
PostV1SsoRequestDomainVerificationErrors,
PostV1SsoRequestDomainVerificationResponses,
PostV1SsoSamlErrors,
PostV1SsoSamlResponses,
PostV1SsoTestByIntentIdCancelResponses,
PostV1SsoTestByIntentIdStartErrors,
PostV1SsoTestByIntentIdStartResponses,
PostV1SsoTestErrors,
PostV1SsoTestResponses,
PostV1SsoVerifyDomainErrors,
PostV1SsoVerifyDomainResponses,
PostV1TeamsErrors,
PostV1TeamsResponses,
PostV1TelemetryIngestErrors,
PostV1TelemetryIngestResponses,
PostV1WebhooksConnectorsGithubErrors,
PostV1WebhooksConnectorsGithubResponses,
PostV1WorkersByIdActivityHeartbeatErrors,
PostV1WorkersByIdActivityHeartbeatResponses,
PostV1WorkersByIdRuntimeUpgradeErrors,
PostV1WorkersByIdRuntimeUpgradeResponses,
PostV1WorkersByIdTokensErrors,
PostV1WorkersByIdTokensResponses,
PostV1WorkersErrors,
PostV1WorkersResponses,
PostV1WorkflowsByConfigObjectIdRunErrors,
PostV1WorkflowsByConfigObjectIdRunResponses,
PostV1WorkflowsByConfigObjectIdVersionsErrors,
PostV1WorkflowsByConfigObjectIdVersionsResponses,
PostV1WorkflowsTestErrors,
PostV1WorkflowsTestResponses,
PutApiAuthScimV2GroupsByGroupIdResponses,
PutApiAuthScimV2UsersByUserIdResponses,
PutV1AdminOrganizationsByOrganizationIdCapabilitiesResponses,
PutV1AdminOrganizationsByOrganizationIdOmniRushWebAccessResponses,
PutV1CapabilitiesMicrosoft365DriveFilesErrors,
PutV1CapabilitiesMicrosoft365DriveFilesResponses,
PutV1DesktopPoliciesByKeyByExternalKeyErrors,
PutV1DesktopPoliciesByKeyByExternalKeyResponses,
PutV1DiagnosticsEgressTokenErrors,
PutV1DiagnosticsEgressTokenResponses,
PutV1LlmProvidersByKeyByExternalKeyErrors,
PutV1LlmProvidersByKeyByExternalKeyResponses,
PutV1LlmProvidersByLlmProviderIdMemberCredentialsByOrgMembershipIdErrors,
PutV1LlmProvidersByLlmProviderIdMemberCredentialsByOrgMembershipIdResponses,
PutV1LlmProvidersByLlmProviderIdMyCredentialErrors,
PutV1LlmProvidersByLlmProviderIdMyCredentialResponses,
PutV1MarketplacesByKeyByExternalKeyErrors,
PutV1MarketplacesByKeyByExternalKeyResponses,
PutV1McpConnectionsByConnectionIdAccessErrors,
PutV1McpConnectionsByConnectionIdAccessResponses,
PutV1McpConnectionsByConnectionIdErrors,
PutV1McpConnectionsByConnectionIdResponses,
PutV1McpConnectionsByConnectionIdToolPolicyErrors,
PutV1McpConnectionsByConnectionIdToolPolicyResponses,
PutV1McpConnectionsByKeyByExternalKeyErrors,
PutV1McpConnectionsByKeyByExternalKeyResponses,
PutV1TeamsByKeyByExternalKeyErrors,
PutV1TeamsByKeyByExternalKeyResponses,
RunAutomationNowErrors,
RunAutomationNowResponses,
SaveWorkflowErrors,
SaveWorkflowResponses,
UpdateAutomationErrors,
UpdateAutomationResponses,
} from "./types.gen.js";
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<
TData,
ThrowOnError
> & {
/**
* You can provide a client instance returned by `createClient()` instead of
* individual options. This might be also useful if you want to implement a
* custom client.
*/
client?: Client;
/**
* You can pass arbitrary values through the `meta` object. This can be
* used to access values that aren't defined as part of the SDK function.
*/
meta?: Record<string, unknown>;
};
class HeyApiClient {
protected client: Client;
constructor(args?: { client?: Client }) {
this.client = args?.client ?? client;
}
}
class HeyApiRegistry<T> {
private readonly defaultKey = "default";
private readonly instances: Map<string, T> = new Map();
get(key?: string): T {
const instance = this.instances.get(key ?? this.defaultKey);
if (!instance) {
throw new Error(`No SDK client found. Create one with "new DenClient()" to fix this error.`);
}
return instance;
}
set(value: T, key?: string): void {
this.instances.set(key ?? this.defaultKey, value);
}
}
export class DenClient extends HeyApiClient {
public static readonly __registry = new HeyApiRegistry<DenClient>();
constructor(args?: { client?: Client; key?: string }) {
super(args);
DenClient.__registry.set(this, args?.key);
}
/**
* Check den-api health
*
* Returns a lightweight health payload for den-api.
*/
public getHealth<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetHealthResponses, unknown, ThrowOnError>({
url: "/health",
...options,
});
}
/**
* Check den-api readiness
*
* Verifies den-api can reach its database dependency.
*/
public getReady<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetReadyResponses, GetReadyErrors, ThrowOnError>({
url: "/ready",
...options,
});
}
public postV1AdminAdmins<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<PostV1AdminAdminsResponses, unknown, ThrowOnError>({
url: "/v1/admin/admins",
...options,
});
}
public deleteV1AdminAdminsByAdminId<ThrowOnError extends boolean = false>(
parameters: {
adminId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "adminId" }] }]);
return (options?.client ?? this.client).delete<DeleteV1AdminAdminsByAdminIdResponses, unknown, ThrowOnError>({
url: "/v1/admin/admins/{adminId}",
...options,
...params,
});
}
public getV1AdminUsersByUserIdInferenceUsage<ThrowOnError extends boolean = false>(
parameters: {
userId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "userId" }] }]);
return (options?.client ?? this.client).get<GetV1AdminUsersByUserIdInferenceUsageResponses, unknown, ThrowOnError>({
url: "/v1/admin/users/{userId}/inference-usage",
...options,
...params,
});
}
public postV1AdminUsersByUserIdInferenceUsageReset<ThrowOnError extends boolean = false>(
parameters: {
userId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "userId" }] }]);
return (options?.client ?? this.client).post<
PostV1AdminUsersByUserIdInferenceUsageResetResponses,
unknown,
ThrowOnError
>({
url: "/v1/admin/users/{userId}/inference-usage/reset",
...options,
...params,
});
}
public deleteV1AdminUsersByUserId<ThrowOnError extends boolean = false>(
parameters: {
userId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "userId" }] }]);
return (options?.client ?? this.client).delete<DeleteV1AdminUsersByUserIdResponses, unknown, ThrowOnError>({
url: "/v1/admin/users/{userId}",
...options,
...params,
});
}
public patchV1AdminOrganizationsByOrganizationIdPlan<ThrowOnError extends boolean = false>(
parameters: {
organizationId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "organizationId" }] }]);
return (options?.client ?? this.client).patch<
PatchV1AdminOrganizationsByOrganizationIdPlanResponses,
unknown,
ThrowOnError
>({
url: "/v1/admin/organizations/{organizationId}/plan",
...options,
...params,
});
}
public patchV1AdminOrganizationsByOrganizationIdFreeSeats<ThrowOnError extends boolean = false>(
parameters: {
organizationId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "organizationId" }] }]);
return (options?.client ?? this.client).patch<
PatchV1AdminOrganizationsByOrganizationIdFreeSeatsResponses,
unknown,
ThrowOnError
>({
url: "/v1/admin/organizations/{organizationId}/free-seats",
...options,
...params,
});
}
/**
* Record an organization DPA decision
*
* Allowlisted platform administrators only. Atomically updates the reserved metadata flag and records the authenticated actor and reason in the audit trail.
*/
public patchV1AdminOrganizationsByOrganizationIdDpa<ThrowOnError extends boolean = false>(
parameters: {
organizationId: string;
dpaSigned?: boolean;
reason?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "organizationId" },
{ in: "body", key: "dpaSigned" },
{ in: "body", key: "reason" },
],
},
],
);
return (options?.client ?? this.client).patch<
PatchV1AdminOrganizationsByOrganizationIdDpaResponses,
PatchV1AdminOrganizationsByOrganizationIdDpaErrors,
ThrowOnError
>({
url: "/v1/admin/organizations/{organizationId}/dpa",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
public putV1AdminOrganizationsByOrganizationIdOmniRushWebAccess<ThrowOnError extends boolean = false>(
parameters: {
organizationId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "organizationId" }] }]);
return (options?.client ?? this.client).put<
PutV1AdminOrganizationsByOrganizationIdOmniRushWebAccessResponses,
unknown,
ThrowOnError
>({
url: "/v1/admin/organizations/{organizationId}/omnirush-web-access",
...options,
...params,
});
}
public getV1AdminOrganizationsByOrganizationIdCapabilities<ThrowOnError extends boolean = false>(
parameters: {
organizationId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "organizationId" }] }]);
return (options?.client ?? this.client).get<
GetV1AdminOrganizationsByOrganizationIdCapabilitiesResponses,
unknown,
ThrowOnError
>({
url: "/v1/admin/organizations/{organizationId}/capabilities",
...options,
...params,
});
}
public putV1AdminOrganizationsByOrganizationIdCapabilities<ThrowOnError extends boolean = false>(
parameters: {
organizationId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "organizationId" }] }]);
return (options?.client ?? this.client).put<
PutV1AdminOrganizationsByOrganizationIdCapabilitiesResponses,
unknown,
ThrowOnError
>({
url: "/v1/admin/organizations/{organizationId}/capabilities",
...options,
...params,
});
}
/**
* Get a bounded admin user page
*
* Returns one bounded page of users plus required pagination metadata. Search runs across the global user set and optional billing enrichment stays page-scoped.
*/
public getV1AdminUsers<ThrowOnError extends boolean = false>(
parameters?: {
includeBilling?: string;
limit?: string;
offset?: string;
search?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "includeBilling" },
{ in: "query", key: "limit" },
{ in: "query", key: "offset" },
{ in: "query", key: "search" },
],
},
],
);
return (options?.client ?? this.client).get<GetV1AdminUsersResponses, GetV1AdminUsersErrors, ThrowOnError>({
url: "/v1/admin/users",
...options,
...params,
});
}
/**
* Get a bounded admin organization page
*
* Returns one bounded page of organizations plus required pagination metadata. Search runs across the global organization set without changing the global overview totals.
*/
public getV1AdminOrganizations<ThrowOnError extends boolean = false>(
parameters?: {
includeBilling?: string;
limit?: string;
offset?: string;
search?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "includeBilling" },
{ in: "query", key: "limit" },
{ in: "query", key: "offset" },
{ in: "query", key: "search" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1AdminOrganizationsResponses,
GetV1AdminOrganizationsErrors,
ThrowOnError
>({
url: "/v1/admin/organizations",
...options,
...params,
});
}
/**
* Load deferred admin analytics
*
* Calculates analytics that are intentionally deferred from the initial admin page: verified users, worker totals, activity, recurrence, invites, and chart series.
*/
public getV1AdminMetrics<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1AdminMetricsResponses, GetV1AdminMetricsErrors, ThrowOnError>({
url: "/v1/admin/metrics",
...options,
});
}
/**
* Get admin overview
*
* Returns the initial admin overview with bounded user data, global totals, and required pagination metadata. Expensive analytics are loaded separately from /v1/admin/metrics.
*/
public getV1AdminOverview<ThrowOnError extends boolean = false>(
parameters?: {
includeBilling?: string;
limit?: string;
offset?: string;
search?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "includeBilling" },
{ in: "query", key: "limit" },
{ in: "query", key: "offset" },
{ in: "query", key: "search" },
],
},
],
);
return (options?.client ?? this.client).get<GetV1AdminOverviewResponses, GetV1AdminOverviewErrors, ThrowOnError>({
url: "/v1/admin/overview",
...options,
...params,
});
}
public getApiAuthScimV2Schemas<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetApiAuthScimV2SchemasResponses, unknown, ThrowOnError>({
url: "/api/auth/scim/v2/Schemas",
...options,
});
}
public getApiAuthScimV2ResourceTypesGroup<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<GetApiAuthScimV2ResourceTypesGroupResponses, unknown, ThrowOnError>({
url: "/api/auth/scim/v2/ResourceTypes/Group",
...options,
});
}
public getApiAuthScimV2ResourceTypes<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetApiAuthScimV2ResourceTypesResponses, unknown, ThrowOnError>({
url: "/api/auth/scim/v2/ResourceTypes",
...options,
});
}
public getApiAuthScimV2Groups<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetApiAuthScimV2GroupsResponses, unknown, ThrowOnError>({
url: "/api/auth/scim/v2/Groups",
...options,
});
}
public postApiAuthScimV2Groups<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<PostApiAuthScimV2GroupsResponses, unknown, ThrowOnError>({
url: "/api/auth/scim/v2/Groups",
...options,
});
}
public deleteApiAuthScimV2GroupsByGroupId<ThrowOnError extends boolean = false>(
parameters: {
groupId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "groupId" }] }]);
return (options?.client ?? this.client).delete<DeleteApiAuthScimV2GroupsByGroupIdResponses, unknown, ThrowOnError>({
url: "/api/auth/scim/v2/Groups/{groupId}",
...options,
...params,
});
}
public getApiAuthScimV2GroupsByGroupId<ThrowOnError extends boolean = false>(
parameters: {
groupId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "groupId" }] }]);
return (options?.client ?? this.client).get<GetApiAuthScimV2GroupsByGroupIdResponses, unknown, ThrowOnError>({
url: "/api/auth/scim/v2/Groups/{groupId}",
...options,
...params,
});
}
public patchApiAuthScimV2GroupsByGroupId<ThrowOnError extends boolean = false>(
parameters: {
groupId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "groupId" }] }]);
return (options?.client ?? this.client).patch<PatchApiAuthScimV2GroupsByGroupIdResponses, unknown, ThrowOnError>({
url: "/api/auth/scim/v2/Groups/{groupId}",
...options,
...params,
});
}
public putApiAuthScimV2GroupsByGroupId<ThrowOnError extends boolean = false>(
parameters: {
groupId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "groupId" }] }]);
return (options?.client ?? this.client).put<PutApiAuthScimV2GroupsByGroupIdResponses, unknown, ThrowOnError>({
url: "/api/auth/scim/v2/Groups/{groupId}",
...options,
...params,
});
}
public patchApiAuthScimV2UsersByUserId<ThrowOnError extends boolean = false>(
parameters: {
userId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "userId" }] }]);
return (options?.client ?? this.client).patch<PatchApiAuthScimV2UsersByUserIdResponses, unknown, ThrowOnError>({
url: "/api/auth/scim/v2/Users/{userId}",
...options,
...params,
});
}
public putApiAuthScimV2UsersByUserId<ThrowOnError extends boolean = false>(
parameters: {
userId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "userId" }] }]);
return (options?.client ?? this.client).put<PutApiAuthScimV2UsersByUserIdResponses, unknown, ThrowOnError>({
url: "/api/auth/scim/v2/Users/{userId}",
...options,
...params,
});
}
public postApiAuthScimV2Users<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<PostApiAuthScimV2UsersResponses, unknown, ThrowOnError>({
url: "/api/auth/scim/v2/Users",
...options,
});
}
public getApiAuthWellKnownOauthAuthorizationServer<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<
GetApiAuthWellKnownOauthAuthorizationServerResponses,
unknown,
ThrowOnError
>({ url: "/api/auth/.well-known/oauth-authorization-server", ...options });
}
public getApiAuthWellKnownOpenidConfiguration<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<GetApiAuthWellKnownOpenidConfigurationResponses, unknown, ThrowOnError>(
{ url: "/api/auth/.well-known/openid-configuration", ...options },
);
}
public getWellKnownOauthAuthorizationServerApiAuth<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<
GetWellKnownOauthAuthorizationServerApiAuthResponses,
unknown,
ThrowOnError
>({ url: "/.well-known/oauth-authorization-server/api/auth", ...options });
}
public getWellKnownOpenidConfigurationApiAuth<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<GetWellKnownOpenidConfigurationApiAuthResponses, unknown, ThrowOnError>(
{ url: "/.well-known/openid-configuration/api/auth", ...options },
);
}
public getWellKnownOauthAuthorizationServer<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<GetWellKnownOauthAuthorizationServerResponses, unknown, ThrowOnError>({
url: "/.well-known/oauth-authorization-server",
...options,
});
}
public getWellKnownOpenidConfiguration<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetWellKnownOpenidConfigurationResponses, unknown, ThrowOnError>({
url: "/.well-known/openid-configuration",
...options,
});
}
public postRegister<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<PostRegisterResponses, unknown, ThrowOnError>({
url: "/register",
...options,
});
}
public postApiAuthOauth2Register<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<PostApiAuthOauth2RegisterResponses, unknown, ThrowOnError>({
url: "/api/auth/oauth2/register",
...options,
});
}
public getApiAuthOauth2Authorize<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetApiAuthOauth2AuthorizeResponses, unknown, ThrowOnError>({
url: "/api/auth/oauth2/authorize",
...options,
});
}
/**
* Check initial administrator bootstrap availability
*
* Returns whether the private-deployment initial-administrator setup flow is available without exposing configured administrator emails.
*/
public getV1AuthBootstrapStatus<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1AuthBootstrapStatusResponses, unknown, ThrowOnError>({
url: "/v1/auth/bootstrap/status",
...options,
});
}
/**
* Verify an initial administrator setup code
*
* Validates a configured administrator email and one-time operator code, then returns a short-lived setup grant for Better Auth account creation.
*/
public postV1AuthBootstrapVerify<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<
PostV1AuthBootstrapVerifyResponses,
PostV1AuthBootstrapVerifyErrors,
ThrowOnError
>({ url: "/v1/auth/bootstrap/verify", ...options });
}
/**
* Resolve deterministic login option
*
* Returns the deterministic next authentication step for an email address. SSO is preferred before Google, password, GitHub compatibility, and new account creation.
*/
public getV1AuthLoginOptions<ThrowOnError extends boolean = false>(
parameters: {
email: string;
invite?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "email" },
{ in: "query", key: "invite" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1AuthLoginOptionsResponses,
GetV1AuthLoginOptionsErrors,
ThrowOnError
>({
url: "/v1/auth/login-options",
...options,
...params,
});
}
/**
* Create a provisional workspace for agent-first setup
*
* Creates a provisional workspace, setup member, starter skill, and short-lived claim links without requiring an email account first.
*/
public postV1BootstrapWorkspace<ThrowOnError extends boolean = false>(
parameters?: {
workspaceName?: string;
skillName?: string;
devicePublicKey?: string;
claimRoles?: Array<"owner" | "admin" | "member">;
ownerEmail?: string;
teammateEmails?: Array<string>;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "workspaceName" },
{ in: "body", key: "skillName" },
{ in: "body", key: "devicePublicKey" },
{ in: "body", key: "claimRoles" },
{ in: "body", key: "ownerEmail" },
{ in: "body", key: "teammateEmails" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1BootstrapWorkspaceResponses,
PostV1BootstrapWorkspaceErrors,
ThrowOnError
>({
url: "/v1/bootstrap/workspace",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Claim a provisional workspace
*
* Lets a signed-in human claim ownership or membership of a provisional agent-created workspace.
*/
public postV1BootstrapClaimsAccept<ThrowOnError extends boolean = false>(
parameters?: {
token?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "token" }] }]);
return (options?.client ?? this.client).post<
PostV1BootstrapClaimsAcceptResponses,
PostV1BootstrapClaimsAcceptErrors,
ThrowOnError
>({
url: "/v1/bootstrap/claims/accept",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Get the active organization's Cloud instance
*
* Starts the active organization's OmniRush.ai Cloud browser instance when needed and returns its browser URL once ready.
*/
public getV1CloudInstance<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1CloudInstanceResponses, GetV1CloudInstanceErrors, ThrowOnError>({
url: "/v1/cloud/instance",
...options,
});
}
/**
* Retry the active organization's Cloud instance
*
* Bypasses the passive recovery cooldown and makes one explicit attempt to recover the caller's failed Cloud instance.
*/
public postV1CloudInstanceRetry<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<
PostV1CloudInstanceRetryResponses,
PostV1CloudInstanceRetryErrors,
ThrowOnError
>({ url: "/v1/cloud/instance/retry", ...options });
}
/**
* Request an update for the active organization's Cloud instance
*
* Flushes a running Cloud workspace checkpoint and stops the sandbox so the next resolve can recycle it onto the latest snapshot.
*/
public postV1CloudInstanceUpdate<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<
PostV1CloudInstanceUpdateResponses,
PostV1CloudInstanceUpdateErrors,
ThrowOnError
>({ url: "/v1/cloud/instance/update", ...options });
}
/**
* Resolve the caller's Cloud instance for the browser gateway
*
* Starts or wakes the caller's own OmniRush.ai Cloud browser instance when needed and returns the collaborator token only to the trusted gateway.
*/
public getV1CloudGatewayResolve<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<
GetV1CloudGatewayResolveResponses,
GetV1CloudGatewayResolveErrors,
ThrowOnError
>({ url: "/v1/cloud/gateway/resolve", ...options });
}
/**
* List saved memories (removed feature)
*
* The Memory Bank feature has been removed. Always returns an empty list so published desktop builds render their normal empty state.
*
* @deprecated
*/
public getV1Memory<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1MemoryResponses, GetV1MemoryErrors, ThrowOnError>({
url: "/v1/memory",
...options,
});
}
/**
* Save a memory (removed feature)
*
* The Memory Bank feature has been removed. Saving is refused outright so no caller can believe a memory was persisted.
*
* @deprecated
*/
public postV1Memory<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<unknown, PostV1MemoryErrors, ThrowOnError>({
url: "/v1/memory",
...options,
});
}
/**
* Search saved memories (removed feature)
*
* The Memory Bank feature has been removed. Always returns an empty result set, matching the old route's behavior when nothing matched.
*
* @deprecated
*/
public getV1MemorySearch<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1MemorySearchResponses, GetV1MemorySearchErrors, ThrowOnError>({
url: "/v1/memory/search",
...options,
});
}
/**
* Delete a saved memory (removed feature)
*
* The Memory Bank feature has been removed, so every memory id is already gone. Desktop callers treat this 404 as a successful, idempotent delete.
*
* @deprecated
*/
public deleteV1MemoryById<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
return (options?.client ?? this.client).delete<unknown, DeleteV1MemoryByIdErrors, ThrowOnError>({
url: "/v1/memory/{id}",
...options,
...params,
});
}
/**
* List skill hubs
*
* List skill hubs. Skill hubs are deprecated; use plugins instead.
*
* @deprecated
*/
public getV1SkillHubs<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<unknown, GetV1SkillHubsErrors, ThrowOnError>({
url: "/v1/skill-hubs",
...options,
});
}
/**
* Create skill hub
*
* Create skill hub. Skill hubs are deprecated; use plugins instead.
*
* @deprecated
*/
public postV1SkillHubs<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<unknown, PostV1SkillHubsErrors, ThrowOnError>({
url: "/v1/skill-hubs",
...options,
});
}
/**
* Delete skill hub
*
* Delete skill hub. Skill hubs are deprecated; use plugins instead.
*
* @deprecated
*/
public deleteV1SkillHubsBySkillHubId<ThrowOnError extends boolean = false>(
parameters: {
skillHubId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "skillHubId" }] }]);
return (options?.client ?? this.client).delete<unknown, DeleteV1SkillHubsBySkillHubIdErrors, ThrowOnError>({
url: "/v1/skill-hubs/{skillHubId}",
...options,
...params,
});
}
/**
* Update skill hub
*
* Update skill hub. Skill hubs are deprecated; use plugins instead.
*
* @deprecated
*/
public patchV1SkillHubsBySkillHubId<ThrowOnError extends boolean = false>(
parameters: {
skillHubId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "skillHubId" }] }]);
return (options?.client ?? this.client).patch<unknown, PatchV1SkillHubsBySkillHubIdErrors, ThrowOnError>({
url: "/v1/skill-hubs/{skillHubId}",
...options,
...params,
});
}
/**
* Add skill to skill hub
*
* Add skill to skill hub. Skill hubs are deprecated; use plugins instead.
*
* @deprecated
*/
public postV1SkillHubsBySkillHubIdSkills<ThrowOnError extends boolean = false>(
parameters: {
skillHubId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "skillHubId" }] }]);
return (options?.client ?? this.client).post<unknown, PostV1SkillHubsBySkillHubIdSkillsErrors, ThrowOnError>({
url: "/v1/skill-hubs/{skillHubId}/skills",
...options,
...params,
});
}
/**
* Remove skill from skill hub
*
* Remove skill from skill hub. Skill hubs are deprecated; use plugins instead.
*
* @deprecated
*/
public deleteV1SkillHubsBySkillHubIdSkillsBySkillId<ThrowOnError extends boolean = false>(
parameters: {
skillHubId: string;
skillId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "skillHubId" },
{ in: "path", key: "skillId" },
],
},
],
);
return (options?.client ?? this.client).delete<
unknown,
DeleteV1SkillHubsBySkillHubIdSkillsBySkillIdErrors,
ThrowOnError
>({
url: "/v1/skill-hubs/{skillHubId}/skills/{skillId}",
...options,
...params,
});
}
/**
* Grant skill hub access
*
* Grant skill hub access. Skill hubs are deprecated; use plugins instead.
*
* @deprecated
*/
public postV1SkillHubsBySkillHubIdAccess<ThrowOnError extends boolean = false>(
parameters: {
skillHubId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "skillHubId" }] }]);
return (options?.client ?? this.client).post<unknown, PostV1SkillHubsBySkillHubIdAccessErrors, ThrowOnError>({
url: "/v1/skill-hubs/{skillHubId}/access",
...options,
...params,
});
}
/**
* Remove skill hub access
*
* Remove skill hub access. Skill hubs are deprecated; use plugins instead.
*
* @deprecated
*/
public deleteV1SkillHubsBySkillHubIdAccessByAccessId<ThrowOnError extends boolean = false>(
parameters: {
skillHubId: string;
accessId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "skillHubId" },
{ in: "path", key: "accessId" },
],
},
],
);
return (options?.client ?? this.client).delete<
unknown,
DeleteV1SkillHubsBySkillHubIdAccessByAccessIdErrors,
ThrowOnError
>({
url: "/v1/skill-hubs/{skillHubId}/access/{accessId}",
...options,
...params,
});
}
public getV1DevEmails<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1DevEmailsResponses, unknown, ThrowOnError>({
url: "/v1/dev/emails",
...options,
});
}
public getV1DevEmailsLast<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1DevEmailsLastResponses, unknown, ThrowOnError>({
url: "/v1/dev/emails/last",
...options,
});
}
/**
* Get current user
*
* Returns the currently authenticated user and active session details for the caller.
*/
public getV1Me<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1MeResponses, GetV1MeErrors, ThrowOnError>({
url: "/v1/me",
...options,
});
}
/**
* List current user's organizations
*
* Lists the organizations visible to the current user and marks which organization is currently active.
*/
public getV1MeOrgs<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1MeOrgsResponses, unknown, ThrowOnError>({
url: "/v1/me/orgs",
...options,
});
}
/**
* Send current user the OmniRush.ai desktop download link
*
* Emails the authenticated user a link to download the OmniRush.ai desktop app.
*/
public postV1MeSendDownloadLink<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<
PostV1MeSendDownloadLinkResponses,
PostV1MeSendDownloadLinkErrors,
ThrowOnError
>({ url: "/v1/me/send-download-link", ...options });
}
/**
* Update current user profile
*
* Updates the signed-in user's display name.
*/
public patchV1MeProfile<ThrowOnError extends boolean = false>(
parameters?: {
firstName?: string;
lastName?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "firstName" },
{ in: "body", key: "lastName" },
],
},
],
);
return (options?.client ?? this.client).patch<PatchV1MeProfileResponses, PatchV1MeProfileErrors, ThrowOnError>({
url: "/v1/me/profile",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Get current user's desktop config
*
* Returns the authenticated desktop app restrictions for the caller's active organization.
*/
public getV1MeDesktopConfig<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<
GetV1MeDesktopConfigResponses,
GetV1MeDesktopConfigErrors,
ThrowOnError
>({ url: "/v1/me/desktop-config", ...options });
}
/**
* Connect this desktop as an Automation runner
*
* Mints a time-limited runner-only credential for the desktop SSE connection and HTTP runner APIs.
*/
public mintAutomationRunnerToken<ThrowOnError extends boolean = false>(
parameters?: {
runnerId?: string;
protocolVersion?: 1;
supportedExecutionTargets?: ["desktop"];
capabilities?: Array<"model_attention_v1" | "remote_session_v1">;
appVersion?: string;
platform?: "darwin" | "win32" | "linux";
concurrency?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "runnerId" },
{ in: "body", key: "protocolVersion" },
{ in: "body", key: "supportedExecutionTargets" },
{ in: "body", key: "capabilities" },
{ in: "body", key: "appVersion" },
{ in: "body", key: "platform" },
{ in: "body", key: "concurrency" },
],
},
],
);
return (options?.client ?? this.client).post<
MintAutomationRunnerTokenResponses,
MintAutomationRunnerTokenErrors,
ThrowOnError
>({
url: "/v1/automation-runners/token",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Report whether a desktop runner is connected
*
* Desktop Automations only run while one of the owner's desktops is connected. Management surfaces read this to warn before an occurrence is due rather than after it was missed.
*/
public getAutomationDesktopRunnerPresence<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<GetAutomationDesktopRunnerPresenceResponses, unknown, ThrowOnError>({
url: "/v1/automation-runners/presence",
...options,
});
}
public getV1AutomationRunnersEvents<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1AutomationRunnersEventsResponses, unknown, ThrowOnError>({
url: "/v1/automation-runners/events",
...options,
});
}
public getV1AutomationRunnerWork<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1AutomationRunnerWorkResponses, unknown, ThrowOnError>({
url: "/v1/automation-runner/work",
...options,
});
}
public postV1RemoteSessionCommandsByIdClaim<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
return (options?.client ?? this.client).post<PostV1RemoteSessionCommandsByIdClaimResponses, unknown, ThrowOnError>({
url: "/v1/remote-session-commands/{id}/claim",
...options,
...params,
});
}
public postV1RemoteSessionCommandsByIdComplete<ThrowOnError extends boolean = false>(
parameters: {
id: string;
body:
| {
status: "delivered";
sessionId: string;
workspaceId: string;
resultSummary?: string;
error?: unknown;
}
| {
status: "failed";
sessionId?: unknown;
workspaceId?: unknown;
resultSummary?: string;
error: {
code: string;
message: string;
};
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "id" },
{ key: "body", map: "body" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1RemoteSessionCommandsByIdCompleteResponses,
unknown,
ThrowOnError
>({
url: "/v1/remote-session-commands/{id}/complete",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
public postV1AutomationRunsByIdClaim<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
return (options?.client ?? this.client).post<PostV1AutomationRunsByIdClaimResponses, unknown, ThrowOnError>({
url: "/v1/automation-runs/{id}/claim",
...options,
...params,
});
}
public postV1AutomationRunsByIdHeartbeat<ThrowOnError extends boolean = false>(
parameters: {
id: string;
attempt?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "id" },
{ in: "body", key: "attempt" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1AutomationRunsByIdHeartbeatResponses, unknown, ThrowOnError>({
url: "/v1/automation-runs/{id}/heartbeat",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
public postV1AutomationRunsByIdEvents<ThrowOnError extends boolean = false>(
parameters: {
id: string;
attempt?: number;
sequence?: number;
type?: "user" | "assistant" | "capability_search" | "capability_execution" | "usage" | "warning" | "terminal";
payload?: {
[key: string]: unknown;
};
createdAt?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "id" },
{ in: "body", key: "attempt" },
{ in: "body", key: "sequence" },
{ in: "body", key: "type" },
{ in: "body", key: "payload" },
{ in: "body", key: "createdAt" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1AutomationRunsByIdEventsResponses, unknown, ThrowOnError>({
url: "/v1/automation-runs/{id}/events",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
public postV1AutomationRunsByIdComplete<ThrowOnError extends boolean = false>(
parameters: {
id: string;
attempt?: number;
status?: "succeeded" | "failed" | "cancelled";
sessionId?: string | null;
workspaceId?: string | null;
resultSummary?: string | null;
usage?: {
inputTokens: number | null;
outputTokens: number | null;
costMicros: number | null;
};
error?: {
code:
| "owner_membership_lost"
| "model_access_lost"
| "provider_unavailable"
| "connect_access_unavailable"
| "omnirush_web_access_required"
| "execution_runtime_unavailable"
| "execution_failed"
| "execution_timed_out"
| "runner_unavailable"
| "cancelled"
| "lease_lost"
| "internal_error";
message: string;
retryable: boolean;
} | null;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "id" },
{ in: "body", key: "attempt" },
{ in: "body", key: "status" },
{ in: "body", key: "sessionId" },
{ in: "body", key: "workspaceId" },
{ in: "body", key: "resultSummary" },
{ in: "body", key: "usage" },
{ in: "body", key: "error" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1AutomationRunsByIdCompleteResponses, unknown, ThrowOnError>({
url: "/v1/automation-runs/{id}/complete",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List Automations
*
* Den schedules Automations and keeps durable run history. Automations created by Desktop run on the owner's connected desktop; Automations created by Web run in OmniRush.ai Cloud. If no desktop runner is connected when a desktop occurrence is due, that occurrence is recorded as missed. Creation makes an Automation active immediately and uses the owner's current OmniRush.ai Connect integrations. Deactivation stops future runs but does not cancel a run already in progress.
*/
public listAutomations<ThrowOnError extends boolean = false>(
parameters?: {
cursor?: string;
limit?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "cursor" },
{ in: "query", key: "limit" },
],
},
],
);
return (options?.client ?? this.client).get<ListAutomationsResponses, ListAutomationsErrors, ThrowOnError>({
url: "/v1/automations",
...options,
...params,
});
}
/**
* Create an active Automation from an app surface
*
* Den schedules Automations and keeps durable run history. Automations created by Desktop run on the owner's connected desktop; Automations created by Web run in OmniRush.ai Cloud. If no desktop runner is connected when a desktop occurrence is due, that occurrence is recorded as missed. Creation makes an Automation active immediately and uses the owner's current OmniRush.ai Connect integrations. Deactivation stops future runs but does not cancel a run already in progress. This compatibility route serves first-party Desktop clients. Agents must use createCloudAutomation so they cannot accidentally create Desktop placement.
*/
public createAutomation<ThrowOnError extends boolean = false>(
parameters: {
body:
| {
name: string;
schedule:
| {
kind: "once";
timezone: string;
at: number;
}
| {
kind: "daily";
timezone: string;
hour: number;
minute: number;
}
| {
kind: "weekly";
timezone: string;
daysOfWeek: Array<number>;
hour: number;
minute: number;
};
action:
| {
kind: "agent";
instructions: string;
model: {
providerId: string;
modelId: string;
variant?: string | null;
};
}
| {
kind: "saved_script";
script: {
pluginId: string;
configObjectId: string;
configObjectVersionId: string;
};
input?: unknown;
};
executionTarget: "desktop" | "cloud";
}
| {
name: string;
instructions: string;
schedule:
| {
kind: "once";
timezone: string;
at: number;
}
| {
kind: "daily";
timezone: string;
hour: number;
minute: number;
}
| {
kind: "weekly";
timezone: string;
daysOfWeek: Array<number>;
hour: number;
minute: number;
};
model: {
providerId: string;
modelId: string;
variant?: string | null;
};
workspaceId?: string | null;
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ key: "body", map: "body" }] }]);
return (options?.client ?? this.client).post<CreateAutomationResponses, CreateAutomationErrors, ThrowOnError>({
url: "/v1/automations",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Create an active OmniRush.ai Cloud Automation
*
* Den schedules Automations and keeps durable run history. Automations created by Desktop run on the owner's connected desktop; Automations created by Web run in OmniRush.ai Cloud. If no desktop runner is connected when a desktop occurrence is due, that occurrence is recorded as missed. Creation makes an Automation active immediately and uses the owner's current OmniRush.ai Connect integrations. Deactivation stops future runs but does not cancel a run already in progress. This is the Web and Cloud Chat creation surface. Placement is fixed to OmniRush.ai Cloud and the Automation can wake a stopped Cloud container without a desktop. Create only when the person explicitly asks to create or schedule it; there is no draft step.
*/
public createCloudAutomation<ThrowOnError extends boolean = false>(
parameters?: {
name?: string;
schedule?:
| {
kind: "once";
timezone: string;
at: number;
}
| {
kind: "daily";
timezone: string;
hour: number;
minute: number;
}
| {
kind: "weekly";
timezone: string;
daysOfWeek: Array<number>;
hour: number;
minute: number;
};
action?:
| {
kind: "agent";
instructions: string;
model: {
providerId: string;
modelId: string;
variant?: string | null;
};
}
| {
kind: "saved_script";
script: {
pluginId: string;
configObjectId: string;
configObjectVersionId: string;
};
input?: unknown;
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "name" },
{ in: "body", key: "schedule" },
{ in: "body", key: "action" },
],
},
],
);
return (options?.client ?? this.client).post<
CreateCloudAutomationResponses,
CreateCloudAutomationErrors,
ThrowOnError
>({
url: "/v1/cloud-automations",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Archive an Automation
*
* Den schedules Automations and keeps durable run history. Automations created by Desktop run on the owner's connected desktop; Automations created by Web run in OmniRush.ai Cloud. If no desktop runner is connected when a desktop occurrence is due, that occurrence is recorded as missed. Creation makes an Automation active immediately and uses the owner's current OmniRush.ai Connect integrations. Deactivation stops future runs but does not cancel a run already in progress. Durable run history is retained.
*/
public archiveAutomation<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
return (options?.client ?? this.client).delete<ArchiveAutomationResponses, ArchiveAutomationErrors, ThrowOnError>({
url: "/v1/automations/{id}",
...options,
...params,
});
}
/**
* Get an Automation
*
* Den schedules Automations and keeps durable run history. Automations created by Desktop run on the owner's connected desktop; Automations created by Web run in OmniRush.ai Cloud. If no desktop runner is connected when a desktop occurrence is due, that occurrence is recorded as missed. Creation makes an Automation active immediately and uses the owner's current OmniRush.ai Connect integrations. Deactivation stops future runs but does not cancel a run already in progress.
*/
public getAutomation<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
return (options?.client ?? this.client).get<GetAutomationResponses, GetAutomationErrors, ThrowOnError>({
url: "/v1/automations/{id}",
...options,
...params,
});
}
/**
* Update an Automation
*
* Den schedules Automations and keeps durable run history. Automations created by Desktop run on the owner's connected desktop; Automations created by Web run in OmniRush.ai Cloud. If no desktop runner is connected when a desktop occurrence is due, that occurrence is recorded as missed. Creation makes an Automation active immediately and uses the owner's current OmniRush.ai Connect integrations. Deactivation stops future runs but does not cancel a run already in progress. Every behavior-changing edit creates an immutable revision and applies it to future runs immediately.
*/
public updateAutomation<ThrowOnError extends boolean = false>(
parameters: {
id: string;
name?: string;
instructions?: string;
schedule?:
| {
kind: "once";
timezone: string;
at: number;
}
| {
kind: "daily";
timezone: string;
hour: number;
minute: number;
}
| {
kind: "weekly";
timezone: string;
daysOfWeek: Array<number>;
hour: number;
minute: number;
};
model?: {
providerId: string;
modelId: string;
variant?: string | null;
};
action?:
| {
kind: "agent";
instructions: string;
model: {
providerId: string;
modelId: string;
variant?: string | null;
};
}
| {
kind: "saved_script";
script: {
pluginId: string;
configObjectId: string;
configObjectVersionId: string;
};
input?: unknown;
};
executionTarget?: "desktop" | "cloud";
workspaceId?: string | null;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "id" },
{ in: "body", key: "name" },
{ in: "body", key: "instructions" },
{ in: "body", key: "schedule" },
{ in: "body", key: "model" },
{ in: "body", key: "action" },
{ in: "body", key: "executionTarget" },
{ in: "body", key: "workspaceId" },
],
},
],
);
return (options?.client ?? this.client).patch<UpdateAutomationResponses, UpdateAutomationErrors, ThrowOnError>({
url: "/v1/automations/{id}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Activate an Automation
*
* Den schedules Automations and keeps durable run history. Automations created by Desktop run on the owner's connected desktop; Automations created by Web run in OmniRush.ai Cloud. If no desktop runner is connected when a desktop occurrence is due, that occurrence is recorded as missed. Creation makes an Automation active immediately and uses the owner's current OmniRush.ai Connect integrations. Deactivation stops future runs but does not cancel a run already in progress.
*/
public activateAutomation<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
return (options?.client ?? this.client).post<ActivateAutomationResponses, ActivateAutomationErrors, ThrowOnError>({
url: "/v1/automations/{id}/activate",
...options,
...params,
});
}
/**
* Deactivate an Automation
*
* Den schedules Automations and keeps durable run history. Automations created by Desktop run on the owner's connected desktop; Automations created by Web run in OmniRush.ai Cloud. If no desktop runner is connected when a desktop occurrence is due, that occurrence is recorded as missed. Creation makes an Automation active immediately and uses the owner's current OmniRush.ai Connect integrations. Deactivation stops future runs but does not cancel a run already in progress.
*/
public deactivateAutomation<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
return (options?.client ?? this.client).post<
DeactivateAutomationResponses,
DeactivateAutomationErrors,
ThrowOnError
>({
url: "/v1/automations/{id}/deactivate",
...options,
...params,
});
}
/**
* Run an Automation now
*
* Den schedules Automations and keeps durable run history. Automations created by Desktop run on the owner's connected desktop; Automations created by Web run in OmniRush.ai Cloud. If no desktop runner is connected when a desktop occurrence is due, that occurrence is recorded as missed. Creation makes an Automation active immediately and uses the owner's current OmniRush.ai Connect integrations. Deactivation stops future runs but does not cancel a run already in progress.
*/
public runAutomationNow<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
return (options?.client ?? this.client).post<RunAutomationNowResponses, RunAutomationNowErrors, ThrowOnError>({
url: "/v1/automations/{id}/run",
...options,
...params,
});
}
/**
* List Automation runs
*
* Den schedules Automations and keeps durable run history. Automations created by Desktop run on the owner's connected desktop; Automations created by Web run in OmniRush.ai Cloud. If no desktop runner is connected when a desktop occurrence is due, that occurrence is recorded as missed. Creation makes an Automation active immediately and uses the owner's current OmniRush.ai Connect integrations. Deactivation stops future runs but does not cancel a run already in progress.
*/
public listAutomationRuns<ThrowOnError extends boolean = false>(
parameters: {
id: string;
cursor?: string;
limit?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "id" },
{ in: "query", key: "cursor" },
{ in: "query", key: "limit" },
],
},
],
);
return (options?.client ?? this.client).get<ListAutomationRunsResponses, unknown, ThrowOnError>({
url: "/v1/automations/{id}/runs",
...options,
...params,
});
}
/**
* Inspect an Automation run receipt and execution thread
*
* Den schedules Automations and keeps durable run history. Automations created by Desktop run on the owner's connected desktop; Automations created by Web run in OmniRush.ai Cloud. If no desktop runner is connected when a desktop occurrence is due, that occurrence is recorded as missed. Creation makes an Automation active immediately and uses the owner's current OmniRush.ai Connect integrations. Deactivation stops future runs but does not cancel a run already in progress.
*/
public getAutomationRun<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
return (options?.client ?? this.client).get<GetAutomationRunResponses, GetAutomationRunErrors, ThrowOnError>({
url: "/v1/automation-runs/{id}",
...options,
...params,
});
}
/**
* Cancel an active Automation run
*
* Den schedules Automations and keeps durable run history. Automations created by Desktop run on the owner's connected desktop; Automations created by Web run in OmniRush.ai Cloud. If no desktop runner is connected when a desktop occurrence is due, that occurrence is recorded as missed. Creation makes an Automation active immediately and uses the owner's current OmniRush.ai Connect integrations. Deactivation stops future runs but does not cancel a run already in progress.
*/
public cancelAutomationRun<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
return (options?.client ?? this.client).post<CancelAutomationRunResponses, CancelAutomationRunErrors, ThrowOnError>(
{
url: "/v1/automation-runs/{id}/cancel",
...options,
...params,
},
);
}
/**
* Delete organization
*
* Permanently deletes the active organization and its organization-scoped data. Owners must have a fresh privileged session.
*/
public deleteV1Org<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).delete<DeleteV1OrgResponses, DeleteV1OrgErrors, ThrowOnError>({
url: "/v1/org",
...options,
});
}
/**
* Get active organization
*
* Returns the active organization from the current session, including its owner, the current member record, and their team memberships.
*/
public getV1Org<ThrowOnError extends boolean = false>(
parameters?: {
refreshRoles?: "true" | "false";
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "refreshRoles" }] }]);
return (options?.client ?? this.client).get<GetV1OrgResponses, GetV1OrgErrors, ThrowOnError>({
url: "/v1/org",
...options,
...params,
});
}
/**
* Update organization
*
* Updates organization fields. Workspace owners and super-admins can change settings. The slug is immutable to avoid breaking dashboard URLs.
*/
public patchV1Org<ThrowOnError extends boolean = false>(
parameters?: {
name?: string;
allowedEmailDomains?: Array<string> | null;
allowedDesktopVersions?: Array<string> | null;
requireSso?: boolean;
brandAppName?: string | null;
brandLogoUrl?: string | null;
brandIconUrl?: string | null;
brandAccentColor?: string | null;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "name" },
{ in: "body", key: "allowedEmailDomains" },
{ in: "body", key: "allowedDesktopVersions" },
{ in: "body", key: "requireSso" },
{ in: "body", key: "brandAppName" },
{ in: "body", key: "brandLogoUrl" },
{ in: "body", key: "brandIconUrl" },
{ in: "body", key: "brandAccentColor" },
],
},
],
);
return (options?.client ?? this.client).patch<PatchV1OrgResponses, PatchV1OrgErrors, ThrowOnError>({
url: "/v1/org",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Preview organization invitation
*
* Returns invitation preview details so a user can inspect an organization invite before accepting it.
*/
public getV1OrgsInvitationsPreview<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "id" }] }]);
return (options?.client ?? this.client).get<
GetV1OrgsInvitationsPreviewResponses,
GetV1OrgsInvitationsPreviewErrors,
ThrowOnError
>({
url: "/v1/orgs/invitations/preview",
...options,
...params,
});
}
/**
* Accept organization invitation
*
* Accepts an organization invitation for the current signed-in user and switches their active organization to the accepted workspace.
*/
public postV1OrgsInvitationsAccept<ThrowOnError extends boolean = false>(
parameters?: {
id?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "id" }] }]);
return (options?.client ?? this.client).post<
PostV1OrgsInvitationsAcceptResponses,
PostV1OrgsInvitationsAcceptErrors,
ThrowOnError
>({
url: "/v1/orgs/invitations/accept",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List organization API keys
*
* Returns the API keys that belong to the selected organization.
*/
public getV1ApiKeys<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1ApiKeysResponses, GetV1ApiKeysErrors, ThrowOnError>({
url: "/v1/api-keys",
...options,
});
}
/**
* Create an organization API key
*
* Creates a new API key for the selected organization.
*/
public postV1ApiKeys<ThrowOnError extends boolean = false>(
parameters: {
createOrganizationApiKeyRequest: CreateOrganizationApiKeyRequest;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[{ args: [{ key: "createOrganizationApiKeyRequest", map: "body" }] }],
);
return (options?.client ?? this.client).post<PostV1ApiKeysResponses, PostV1ApiKeysErrors, ThrowOnError>({
url: "/v1/api-keys",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Read an immutable organization brand asset
*
* Serves a capability-signed, content-addressed organization logo or app icon from this Den deployment.
*/
public getV1BrandAssetsByOrganizationIdByKindByVersion<ThrowOnError extends boolean = false>(
parameters: {
organizationId: string;
kind: string;
version: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "organizationId" },
{ in: "path", key: "kind" },
{ in: "path", key: "version" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1BrandAssetsByOrganizationIdByKindByVersionResponses,
GetV1BrandAssetsByOrganizationIdByKindByVersionErrors,
ThrowOnError
>({
url: "/v1/brand-assets/{organizationId}/{kind}/{version}",
...options,
...params,
});
}
/**
* Upload organization brand assets
*
* Validates and stores owner-supplied wordmark and app icon files inside the Den deployment.
*/
public postV1OrgBrandAssets<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<
PostV1OrgBrandAssetsResponses,
PostV1OrgBrandAssetsErrors,
ThrowOnError
>({ url: "/v1/org/brand-assets", ...options });
}
/**
* List Workflow runs
*
* Lists Workflow run receipts visible to the active organization member.
*/
public getV1WorkflowRuns<ThrowOnError extends boolean = false>(
parameters?: {
limit?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "limit" }] }]);
return (options?.client ?? this.client).get<GetV1WorkflowRunsResponses, GetV1WorkflowRunsErrors, ThrowOnError>({
url: "/v1/workflow-runs",
...options,
...params,
});
}
/**
* List accessible Workflows
*/
public getV1Workflows<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1WorkflowsResponses, GetV1WorkflowsErrors, ThrowOnError>({
url: "/v1/workflows",
...options,
});
}
/**
* Save a successful Code Mode run as a Workflow inside an OmniRush.ai Connect Plugin
*/
public saveWorkflow<ThrowOnError extends boolean = false>(
parameters?: {
pluginId?: string;
name?: string;
description?: string;
code?: string;
currentInput?: unknown;
inputSchema?: unknown;
outputSchema?: unknown;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "pluginId" },
{ in: "body", key: "name" },
{ in: "body", key: "description" },
{ in: "body", key: "code" },
{ in: "body", key: "currentInput" },
{ in: "body", key: "inputSchema" },
{ in: "body", key: "outputSchema" },
],
},
],
);
return (options?.client ?? this.client).post<SaveWorkflowResponses, SaveWorkflowErrors, ThrowOnError>({
url: "/v1/workflows",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Inspect a Workflow
*/
public getV1WorkflowsByConfigObjectId<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
maxAgeMs?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "configObjectId" },
{ in: "query", key: "maxAgeMs" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1WorkflowsByConfigObjectIdResponses,
GetV1WorkflowsByConfigObjectIdErrors,
ThrowOnError
>({
url: "/v1/workflows/{configObjectId}",
...options,
...params,
});
}
/**
* List saved reusable apps
*/
public getV1Apps<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1AppsResponses, unknown, ThrowOnError>({
url: "/v1/apps",
...options,
});
}
/**
* Share a saved app with a teammate
*/
public postV1AppsByAppIdShare<ThrowOnError extends boolean = false>(
parameters: {
appId: string;
email?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "appId" },
{ in: "body", key: "email" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1AppsByAppIdShareResponses,
PostV1AppsByAppIdShareErrors,
ThrowOnError
>({
url: "/v1/apps/{appId}/share",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Open an app or an exact draft preview
*/
public getV1AppsByAppId<ThrowOnError extends boolean = false>(
parameters: {
appId: string;
revisionId?: string;
receiptId?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "appId" },
{ in: "query", key: "revisionId" },
{ in: "query", key: "receiptId" },
],
},
],
);
return (options?.client ?? this.client).get<GetV1AppsByAppIdResponses, unknown, ThrowOnError>({
url: "/v1/apps/{appId}",
...options,
...params,
});
}
/**
* Add or remove an app on your personal dashboard
*/
public postV1AppsByAppIdDashboard<ThrowOnError extends boolean = false>(
parameters: {
appId: string;
added?: boolean;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "appId" },
{ in: "body", key: "added" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1AppsByAppIdDashboardResponses, unknown, ThrowOnError>({
url: "/v1/apps/{appId}/dashboard",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Save an exact app revision for reuse
*/
public postV1AppsByAppIdSave<ThrowOnError extends boolean = false>(
parameters: {
appId: string;
revisionId?: string;
title?: string;
useInWorkflow?: boolean;
expectedActiveRevisionId?: string | null;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "appId" },
{ in: "body", key: "revisionId" },
{ in: "body", key: "title" },
{ in: "body", key: "useInWorkflow" },
{ in: "body", key: "expectedActiveRevisionId" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1AppsByAppIdSaveResponses, unknown, ThrowOnError>({
url: "/v1/apps/{appId}/save",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List generated Artifact views for a Workflow
*/
public getV1WorkflowsByConfigObjectIdViews<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "configObjectId" }] }]);
return (options?.client ?? this.client).get<GetV1WorkflowsByConfigObjectIdViewsResponses, unknown, ThrowOnError>({
url: "/v1/workflows/{configObjectId}/views",
...options,
...params,
});
}
/**
* Activate or roll back an immutable Artifact view revision
*/
public postV1ArtifactViewsByArtifactViewIdRevisionsByRevisionIdActivate<ThrowOnError extends boolean = false>(
parameters: {
artifactViewId: string;
revisionId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "artifactViewId" },
{ in: "path", key: "revisionId" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ArtifactViewsByArtifactViewIdRevisionsByRevisionIdActivateResponses,
unknown,
ThrowOnError
>({
url: "/v1/artifact-views/{artifactViewId}/revisions/{revisionId}/activate",
...options,
...params,
});
}
/**
* Retire a generated Artifact view
*/
public postV1ArtifactViewsByArtifactViewIdRetire<ThrowOnError extends boolean = false>(
parameters: {
artifactViewId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "artifactViewId" }] }]);
return (options?.client ?? this.client).post<
PostV1ArtifactViewsByArtifactViewIdRetireResponses,
unknown,
ThrowOnError
>({
url: "/v1/artifact-views/{artifactViewId}/retire",
...options,
...params,
});
}
/**
* List immutable Workflow versions
*/
public getV1WorkflowsByConfigObjectIdVersions<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "configObjectId" }] }]);
return (options?.client ?? this.client).get<GetV1WorkflowsByConfigObjectIdVersionsResponses, unknown, ThrowOnError>(
{
url: "/v1/workflows/{configObjectId}/versions",
...options,
...params,
},
);
}
/**
* Create an immutable Workflow version using the immediately preceding matching test receipt and unchanged draft
*/
public postV1WorkflowsByConfigObjectIdVersions<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
name?: string;
description?: string;
code?: string;
exampleInput?: unknown;
inputSchema?: unknown;
outputSchema?: unknown;
requiredCapabilities?: Array<{
capabilityName: string;
scriptPath: string;
}>;
receiptId?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "configObjectId" },
{ in: "body", key: "name" },
{ in: "body", key: "description" },
{ in: "body", key: "code" },
{ in: "body", key: "exampleInput" },
{ in: "body", key: "inputSchema" },
{ in: "body", key: "outputSchema" },
{ in: "body", key: "requiredCapabilities" },
{ in: "body", key: "receiptId" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1WorkflowsByConfigObjectIdVersionsResponses,
PostV1WorkflowsByConfigObjectIdVersionsErrors,
ThrowOnError
>({
url: "/v1/workflows/{configObjectId}/versions",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List Workflow artifact snapshots
*/
public getV1WorkflowsByConfigObjectIdSnapshots<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
limit?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "configObjectId" },
{ in: "query", key: "limit" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1WorkflowsByConfigObjectIdSnapshotsResponses,
unknown,
ThrowOnError
>({
url: "/v1/workflows/{configObjectId}/snapshots",
...options,
...params,
});
}
/**
* Inspect one Workflow artifact snapshot
*/
public getV1WorkflowsByConfigObjectIdSnapshotsByReceiptId<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
receiptId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "configObjectId" },
{ in: "path", key: "receiptId" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1WorkflowsByConfigObjectIdSnapshotsByReceiptIdResponses,
GetV1WorkflowsByConfigObjectIdSnapshotsByReceiptIdErrors,
ThrowOnError
>({
url: "/v1/workflows/{configObjectId}/snapshots/{receiptId}",
...options,
...params,
});
}
/**
* Test the exact Workflow draft and return the receiptId required to create that unchanged version
*/
public postV1WorkflowsTest<ThrowOnError extends boolean = false>(
parameters?: {
name?: string;
description?: string;
code?: string;
exampleInput?: unknown;
inputSchema?: unknown;
outputSchema?: unknown;
requiredCapabilities?: Array<{
capabilityName: string;
scriptPath: string;
}>;
configObjectId?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "name" },
{ in: "body", key: "description" },
{ in: "body", key: "code" },
{ in: "body", key: "exampleInput" },
{ in: "body", key: "inputSchema" },
{ in: "body", key: "outputSchema" },
{ in: "body", key: "requiredCapabilities" },
{ in: "body", key: "configObjectId" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1WorkflowsTestResponses, PostV1WorkflowsTestErrors, ThrowOnError>(
{
url: "/v1/workflows/test",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
},
);
}
/**
* Run an exact Workflow version
*/
public postV1WorkflowsByConfigObjectIdRun<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
pluginId?: string;
configObjectVersionId?: string;
input?: unknown;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "configObjectId" },
{ in: "body", key: "pluginId" },
{ in: "body", key: "configObjectVersionId" },
{ in: "body", key: "input" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1WorkflowsByConfigObjectIdRunResponses,
PostV1WorkflowsByConfigObjectIdRunErrors,
ThrowOnError
>({
url: "/v1/workflows/{configObjectId}/run",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Delete artifact content while retaining its audit receipt
*/
public deleteV1WorkflowsByConfigObjectIdSnapshotsByReceiptIdContent<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
receiptId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "configObjectId" },
{ in: "path", key: "receiptId" },
],
},
],
);
return (options?.client ?? this.client).delete<
DeleteV1WorkflowsByConfigObjectIdSnapshotsByReceiptIdContentResponses,
unknown,
ThrowOnError
>({
url: "/v1/workflows/{configObjectId}/snapshots/{receiptId}/content",
...options,
...params,
});
}
/**
* List dashboards
*/
public getV1Dashboards<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1DashboardsResponses, GetV1DashboardsErrors, ThrowOnError>({
url: "/v1/dashboards",
...options,
});
}
/**
* Create dashboard
*/
public postV1Dashboards<ThrowOnError extends boolean = false>(
parameters?: {
name?: string;
elements?: Array<DashboardElement>;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "name" },
{ in: "body", key: "elements" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1DashboardsResponses, PostV1DashboardsErrors, ThrowOnError>({
url: "/v1/dashboards",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Delete dashboard
*/
public deleteV1DashboardsByDashboardId<ThrowOnError extends boolean = false>(
parameters: {
dashboardId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "dashboardId" }] }]);
return (options?.client ?? this.client).delete<
DeleteV1DashboardsByDashboardIdResponses,
DeleteV1DashboardsByDashboardIdErrors,
ThrowOnError
>({
url: "/v1/dashboards/{dashboardId}",
...options,
...params,
});
}
/**
* Get dashboard
*/
public getV1DashboardsByDashboardId<ThrowOnError extends boolean = false>(
parameters: {
dashboardId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "dashboardId" }] }]);
return (options?.client ?? this.client).get<
GetV1DashboardsByDashboardIdResponses,
GetV1DashboardsByDashboardIdErrors,
ThrowOnError
>({
url: "/v1/dashboards/{dashboardId}",
...options,
...params,
});
}
/**
* Update dashboard
*/
public patchV1DashboardsByDashboardId<ThrowOnError extends boolean = false>(
parameters: {
dashboardId: string;
name?: string;
elements?: Array<DashboardElement>;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "dashboardId" },
{ in: "body", key: "name" },
{ in: "body", key: "elements" },
],
},
],
);
return (options?.client ?? this.client).patch<
PatchV1DashboardsByDashboardIdResponses,
PatchV1DashboardsByDashboardIdErrors,
ThrowOnError
>({
url: "/v1/dashboards/{dashboardId}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List dashboard access grants
*/
public getV1DashboardsByDashboardIdAccess<ThrowOnError extends boolean = false>(
parameters: {
dashboardId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "dashboardId" }] }]);
return (options?.client ?? this.client).get<
GetV1DashboardsByDashboardIdAccessResponses,
GetV1DashboardsByDashboardIdAccessErrors,
ThrowOnError
>({
url: "/v1/dashboards/{dashboardId}/access",
...options,
...params,
});
}
/**
* Grant dashboard access
*
* Assigns a dashboard to one member, one team, or the whole organization — the same subject model connector assignment grants use. Regranting a revoked subject reactivates the existing grant.
*/
public postV1DashboardsByDashboardIdAccess<ThrowOnError extends boolean = false>(
parameters: {
dashboardId: string;
orgMembershipId?: string;
teamId?: string;
orgWide?: boolean;
role?: "viewer" | "editor" | "manager";
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "dashboardId" },
{ in: "body", key: "orgMembershipId" },
{ in: "body", key: "teamId" },
{ in: "body", key: "orgWide" },
{ in: "body", key: "role" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1DashboardsByDashboardIdAccessResponses,
PostV1DashboardsByDashboardIdAccessErrors,
ThrowOnError
>({
url: "/v1/dashboards/{dashboardId}/access",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Revoke dashboard access
*/
public deleteV1DashboardsByDashboardIdAccessByGrantId<ThrowOnError extends boolean = false>(
parameters: {
dashboardId: string;
grantId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "dashboardId" },
{ in: "path", key: "grantId" },
],
},
],
);
return (options?.client ?? this.client).delete<
DeleteV1DashboardsByDashboardIdAccessByGrantIdResponses,
DeleteV1DashboardsByDashboardIdAccessByGrantIdErrors,
ThrowOnError
>({
url: "/v1/dashboards/{dashboardId}/access/{grantId}",
...options,
...params,
});
}
/**
* List dashboards granted to the current member
*/
public getV1MeDashboards<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1MeDashboardsResponses, GetV1MeDashboardsErrors, ThrowOnError>({
url: "/v1/me/dashboards",
...options,
});
}
/**
* Delete desktop-policies by stable key
*/
public deleteV1DesktopPoliciesByKeyByExternalKey<ThrowOnError extends boolean = false>(
parameters: {
externalKey: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "externalKey" }] }]);
return (options?.client ?? this.client).delete<
DeleteV1DesktopPoliciesByKeyByExternalKeyResponses,
unknown,
ThrowOnError
>({
url: "/v1/desktop-policies/by-key/{externalKey}",
...options,
...params,
});
}
/**
* Read desktop-policies by stable key
*/
public getV1DesktopPoliciesByKeyByExternalKey<ThrowOnError extends boolean = false>(
parameters: {
externalKey: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "externalKey" }] }]);
return (options?.client ?? this.client).get<
GetV1DesktopPoliciesByKeyByExternalKeyResponses,
GetV1DesktopPoliciesByKeyByExternalKeyErrors,
ThrowOnError
>({
url: "/v1/desktop-policies/by-key/{externalKey}",
...options,
...params,
});
}
/**
* Apply desktop-policies by stable key
*
* Creates or replaces an organization-scoped resource. Names do not identify resources; existing unkeyed resources are never adopted automatically. Assignments are replaced. Omitted write-only secrets are preserved. Concurrent writes are last-write-wins; conditional headers are not supported on this route.
*/
public putV1DesktopPoliciesByKeyByExternalKey<ThrowOnError extends boolean = false>(
parameters: {
externalKey: string;
policyName?: string;
policy?: DenDesktopPolicyDocumentWrite;
priority?: number;
isEnabled?: boolean;
memberIds?: Array<string>;
teamIds?: Array<string>;
roles?: Array<"owner" | "admin" | "member">;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "externalKey" },
{ in: "body", key: "policyName" },
{ in: "body", key: "policy" },
{ in: "body", key: "priority" },
{ in: "body", key: "isEnabled" },
{ in: "body", key: "memberIds" },
{ in: "body", key: "teamIds" },
{ in: "body", key: "roles" },
],
},
],
);
return (options?.client ?? this.client).put<
PutV1DesktopPoliciesByKeyByExternalKeyResponses,
PutV1DesktopPoliciesByKeyByExternalKeyErrors,
ThrowOnError
>({
url: "/v1/desktop-policies/by-key/{externalKey}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Delete desktop policy
*/
public deleteV1DesktopPoliciesByDesktopPolicyId<ThrowOnError extends boolean = false>(
parameters: {
desktopPolicyId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "desktopPolicyId" }] }]);
return (options?.client ?? this.client).delete<
DeleteV1DesktopPoliciesByDesktopPolicyIdResponses,
DeleteV1DesktopPoliciesByDesktopPolicyIdErrors,
ThrowOnError
>({
url: "/v1/desktop-policies/{desktopPolicyId}",
...options,
...params,
});
}
/**
* Read desktop-policies by id
*/
public getV1DesktopPoliciesByDesktopPolicyId<ThrowOnError extends boolean = false>(
parameters: {
desktopPolicyId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "desktopPolicyId" }] }]);
return (options?.client ?? this.client).get<
GetV1DesktopPoliciesByDesktopPolicyIdResponses,
GetV1DesktopPoliciesByDesktopPolicyIdErrors,
ThrowOnError
>({
url: "/v1/desktop-policies/{desktopPolicyId}",
...options,
...params,
});
}
/**
* Update desktop policy
*/
public patchV1DesktopPoliciesByDesktopPolicyId<ThrowOnError extends boolean = false>(
parameters: {
desktopPolicyId: string;
policyName?: string;
policy?: DenDesktopPolicyDocumentWrite;
priority?: number;
isEnabled?: boolean;
memberIds?: Array<string>;
teamIds?: Array<string>;
roles?: Array<"owner" | "admin" | "member">;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "desktopPolicyId" },
{ in: "body", key: "policyName" },
{ in: "body", key: "policy" },
{ in: "body", key: "priority" },
{ in: "body", key: "isEnabled" },
{ in: "body", key: "memberIds" },
{ in: "body", key: "teamIds" },
{ in: "body", key: "roles" },
],
},
],
);
return (options?.client ?? this.client).patch<
PatchV1DesktopPoliciesByDesktopPolicyIdResponses,
PatchV1DesktopPoliciesByDesktopPolicyIdErrors,
ThrowOnError
>({
url: "/v1/desktop-policies/{desktopPolicyId}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List desktop policies
*/
public getV1DesktopPolicies<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<
GetV1DesktopPoliciesResponses,
GetV1DesktopPoliciesErrors,
ThrowOnError
>({ url: "/v1/desktop-policies", ...options });
}
/**
* Create desktop policy
*/
public postV1DesktopPolicies<ThrowOnError extends boolean = false>(
parameters?: {
policyName?: string;
policy?: DenDesktopPolicyDocumentWrite;
priority?: number;
isEnabled?: boolean;
memberIds?: Array<string>;
teamIds?: Array<string>;
roles?: Array<"owner" | "admin" | "member">;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "policyName" },
{ in: "body", key: "policy" },
{ in: "body", key: "priority" },
{ in: "body", key: "isEnabled" },
{ in: "body", key: "memberIds" },
{ in: "body", key: "teamIds" },
{ in: "body", key: "roles" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1DesktopPoliciesResponses,
PostV1DesktopPoliciesErrors,
ThrowOnError
>({
url: "/v1/desktop-policies",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Describe the controlled Den egress diagnostic
*
* Reports whether the operator-configured public Diagnostics target is available. The target cannot be supplied by the browser.
*/
public getV1DiagnosticsEgress<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<
GetV1DiagnosticsEgressResponses,
GetV1DiagnosticsEgressErrors,
ThrowOnError
>({ url: "/v1/diagnostics/egress", ...options });
}
/**
* Run the controlled Den egress diagnostic
*
* Runs fixed HTTP, redirect, OAuth-shaped, and MCP probes from the Den process to the operator-configured public Diagnostics origin.
*/
public postV1DiagnosticsEgress<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<
PostV1DiagnosticsEgressResponses,
PostV1DiagnosticsEgressErrors,
ThrowOnError
>({ url: "/v1/diagnostics/egress", ...options });
}
/**
* Set the organization egress diagnostic bearer token
*
* Stores the synthetic Diagnostics bearer token encrypted for this organization. The token is never returned by the API.
*/
public putV1DiagnosticsEgressToken<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).put<
PutV1DiagnosticsEgressTokenResponses,
PutV1DiagnosticsEgressTokenErrors,
ThrowOnError
>({ url: "/v1/diagnostics/egress/token", ...options });
}
/**
* Get inference settings
*
* Returns OmniRush.ai Models enablement and limit context for the active organization.
*/
public getV1Inference<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1InferenceResponses, GetV1InferenceErrors, ThrowOnError>({
url: "/v1/inference",
...options,
});
}
/**
* Update inference settings
*
* Enables or disables OmniRush.ai Models for the active organization.
*/
public patchV1Inference<ThrowOnError extends boolean = false>(
parameters?: {
enabled?: boolean;
tier?: "tier1" | "tier2";
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "enabled" },
{ in: "body", key: "tier" },
],
},
],
);
return (options?.client ?? this.client).patch<PatchV1InferenceResponses, PatchV1InferenceErrors, ThrowOnError>({
url: "/v1/inference",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Read the OmniRush.ai Models task analytics choice
*/
public getV1InferenceAnalyticsSettings<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1InferenceAnalyticsSettingsResponses, unknown, ThrowOnError>({
url: "/v1/inference/analytics/settings",
...options,
});
}
/**
* Choose whether to collect task analytics included with OmniRush.ai Models
*/
public patchV1InferenceAnalyticsSettings<ThrowOnError extends boolean = false>(
parameters?: {
enabled?: boolean;
consentVersion?: 1;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "enabled" },
{ in: "body", key: "consentVersion" },
],
},
],
);
return (options?.client ?? this.client).patch<PatchV1InferenceAnalyticsSettingsResponses, unknown, ThrowOnError>({
url: "/v1/inference/analytics/settings",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
public postV1InferenceAnalyticsEvents<ThrowOnError extends boolean = false>(
parameters?: {
events?: Array<{
id: string;
type:
| "task.started"
| "task.completed"
| "task.failed"
| "task.cancelled"
| "tool.executed"
| "skill.loaded"
| "model.call";
timestamp: string;
sessionId: string;
taskId: string;
callId?: string;
durationMs?: number;
status?: "completed" | "failed" | "cancelled";
model?: string;
provider?: string;
inputTokens?: number;
outputTokens?: number;
cacheReadTokens?: number;
cacheWriteTokens?: number;
costUsd?: number;
usageComplete?: boolean;
tool?: string;
skill?: string;
skillVersion?: string;
mcp?: string;
metadata?: {
[key: string]: string | number | boolean;
};
}>;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "events" }] }]);
return (options?.client ?? this.client).post<PostV1InferenceAnalyticsEventsResponses, unknown, ThrowOnError>({
url: "/v1/inference/analytics/events",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Read task activity collected after the analytics choice
*/
public getV1InferenceAnalyticsActivity<ThrowOnError extends boolean = false>(
parameters?: {
days?: number;
memberId?: string;
taskId?: string;
sessionId?: string;
before?: string;
beforeId?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "days" },
{ in: "query", key: "memberId" },
{ in: "query", key: "taskId" },
{ in: "query", key: "sessionId" },
{ in: "query", key: "before" },
{ in: "query", key: "beforeId" },
],
},
],
);
return (options?.client ?? this.client).get<GetV1InferenceAnalyticsActivityResponses, unknown, ThrowOnError>({
url: "/v1/inference/analytics/activity",
...options,
...params,
});
}
/**
* Read provider-reported consumption for OmniRush.ai Models
*/
public getV1InferenceAnalyticsConsumption<ThrowOnError extends boolean = false>(
parameters?: {
days?: number;
memberId?: string;
taskId?: string;
sessionId?: string;
before?: string;
beforeId?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "days" },
{ in: "query", key: "memberId" },
{ in: "query", key: "taskId" },
{ in: "query", key: "sessionId" },
{ in: "query", key: "before" },
{ in: "query", key: "beforeId" },
],
},
],
);
return (options?.client ?? this.client).get<GetV1InferenceAnalyticsConsumptionResponses, unknown, ThrowOnError>({
url: "/v1/inference/analytics/consumption",
...options,
...params,
});
}
public postV1InferenceAnalyticsLangfuseTest<ThrowOnError extends boolean = false>(
parameters?: {
host?: string;
publicKey?: string;
secretKey?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "host" },
{ in: "body", key: "publicKey" },
{ in: "body", key: "secretKey" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1InferenceAnalyticsLangfuseTestResponses, unknown, ThrowOnError>({
url: "/v1/inference/analytics/langfuse/test",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
public postV1InferenceAnalyticsLangfuseConnect<ThrowOnError extends boolean = false>(
parameters?: {
host?: string;
publicKey?: string;
secretKey?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "host" },
{ in: "body", key: "publicKey" },
{ in: "body", key: "secretKey" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1InferenceAnalyticsLangfuseConnectResponses,
unknown,
ThrowOnError
>({
url: "/v1/inference/analytics/langfuse/connect",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
public deleteV1InferenceAnalyticsLangfuse<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).delete<DeleteV1InferenceAnalyticsLangfuseResponses, unknown, ThrowOnError>({
url: "/v1/inference/analytics/langfuse",
...options,
});
}
/**
* Delete an organization SCIM connection
*
* Deletes the organization SCIM connection and invalidates the current bearer token.
*/
public deleteV1Scim<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).delete<DeleteV1ScimResponses, DeleteV1ScimErrors, ThrowOnError>({
url: "/v1/scim",
...options,
});
}
/**
* Get organization SCIM connection
*
* Returns the SCIM provisioning base URL, group-to-team mapping mode, and current connector metadata for the selected organization.
*/
public getV1Scim<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1ScimResponses, GetV1ScimErrors, ThrowOnError>({
url: "/v1/scim",
...options,
});
}
/**
* Update organization SCIM settings
*
* Controls whether provisioned SCIM Groups remain metadata or create and manage organization teams.
*/
public patchV1Scim<ThrowOnError extends boolean = false>(
parameters?: {
groupMappingMode?: "metadata_only" | "create_teams";
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "groupMappingMode" }] }]);
return (options?.client ?? this.client).patch<PatchV1ScimResponses, PatchV1ScimErrors, ThrowOnError>({
url: "/v1/scim",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Create or rotate an organization SCIM token
*
* Creates the organization SCIM provisioning connector if needed and returns a freshly rotated bearer token.
*/
public postV1ScimToken<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<PostV1ScimTokenResponses, PostV1ScimTokenErrors, ThrowOnError>({
url: "/v1/scim/token",
...options,
});
}
/**
* Run organization SCIM drift reconciliation
*
* Checks local SCIM-managed identities for inconsistent organization membership or provider-account state and records unresolved drift for retry or manual review.
*/
public postV1ScimReconcile<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<PostV1ScimReconcileResponses, PostV1ScimReconcileErrors, ThrowOnError>(
{ url: "/v1/scim/reconcile", ...options },
);
}
/**
* Delete organization SSO connection
*
* Deletes the active organization SSO connection.
*/
public deleteV1Sso<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).delete<DeleteV1SsoResponses, DeleteV1SsoErrors, ThrowOnError>({
url: "/v1/sso",
...options,
});
}
/**
* Get organization SSO connection
*
* Returns the current organization SSO connection and setup URLs.
*/
public getV1Sso<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1SsoResponses, GetV1SsoErrors, ThrowOnError>({
url: "/v1/sso",
...options,
});
}
/**
* Register organization SAML SSO
*
* Registers or replaces the active organization SAML SSO provider.
*/
public postV1SsoSaml<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<PostV1SsoSamlResponses, PostV1SsoSamlErrors, ThrowOnError>({
url: "/v1/sso/saml",
...options,
});
}
/**
* Register organization OIDC SSO
*
* Registers or replaces the active organization OIDC SSO provider.
*/
public postV1SsoOidc<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<PostV1SsoOidcResponses, PostV1SsoOidcErrors, ThrowOnError>({
url: "/v1/sso/oidc",
...options,
});
}
/**
* Create an organization SSO authentication test
*
* Creates a short-lived test bound to the current saved configuration and initiating administrator.
*/
public postV1SsoTest<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<PostV1SsoTestResponses, PostV1SsoTestErrors, ThrowOnError>({
url: "/v1/sso/test",
...options,
});
}
/**
* Start an organization SSO authentication test
*
* Uses a short-lived single-use test intent to start real provider authentication.
*/
public postV1SsoTestByIntentIdStart<ThrowOnError extends boolean = false>(
parameters: {
intentId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "intentId" }] }]);
return (options?.client ?? this.client).post<
PostV1SsoTestByIntentIdStartResponses,
PostV1SsoTestByIntentIdStartErrors,
ThrowOnError
>({
url: "/v1/sso/test/{intentId}/start",
...options,
...params,
});
}
/**
* Cancel an organization SSO authentication test
*/
public postV1SsoTestByIntentIdCancel<ThrowOnError extends boolean = false>(
parameters: {
intentId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "intentId" }] }]);
return (options?.client ?? this.client).post<PostV1SsoTestByIntentIdCancelResponses, unknown, ThrowOnError>({
url: "/v1/sso/test/{intentId}/cancel",
...options,
...params,
});
}
/**
* Enable the tested organization SSO configuration
*/
public postV1SsoEnable<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<PostV1SsoEnableResponses, PostV1SsoEnableErrors, ThrowOnError>({
url: "/v1/sso/enable",
...options,
});
}
/**
* Disable organization SSO
*/
public postV1SsoDisable<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<PostV1SsoDisableResponses, unknown, ThrowOnError>({
url: "/v1/sso/disable",
...options,
});
}
/**
* Get organization SAML SP metadata
*
* Returns the generated Service Provider metadata for the current organization's SAML connection.
*/
public getV1SsoMetadata<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1SsoMetadataResponses, GetV1SsoMetadataErrors, ThrowOnError>({
url: "/v1/sso/metadata",
...options,
});
}
/**
* Request an SSO domain verification token
*
* Returns the DNS TXT verification token for the current organization's SSO provider.
*/
public postV1SsoRequestDomainVerification<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).post<
PostV1SsoRequestDomainVerificationResponses,
PostV1SsoRequestDomainVerificationErrors,
ThrowOnError
>({ url: "/v1/sso/request-domain-verification", ...options });
}
/**
* Verify the organization SSO domain
*
* Checks the provider's DNS TXT record and marks the domain as verified when present.
*/
public postV1SsoVerifyDomain<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<
PostV1SsoVerifyDomainResponses,
PostV1SsoVerifyDomainErrors,
ThrowOnError
>({ url: "/v1/sso/verify-domain", ...options });
}
/**
* Create organization invitation
*
* Creates or refreshes a pending organization invitation for an email address and sends the invite email. Returns 502 when the invitation row is persisted but the configured email provider failed to send; the client should surface the error and give the user a retry affordance.
*/
public postV1Invitations<ThrowOnError extends boolean = false>(
parameters?: {
email?: string;
role?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "email" },
{ in: "body", key: "role" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1InvitationsResponses, PostV1InvitationsErrors, ThrowOnError>({
url: "/v1/invitations",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Cancel organization invitation
*
* Cancels a pending organization invitation so the invite link can no longer be used.
*/
public postV1InvitationsByInvitationIdCancel<ThrowOnError extends boolean = false>(
parameters: {
invitationId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "invitationId" }] }]);
return (options?.client ?? this.client).post<
PostV1InvitationsByInvitationIdCancelResponses,
PostV1InvitationsByInvitationIdCancelErrors,
ThrowOnError
>({
url: "/v1/invitations/{invitationId}/cancel",
...options,
...params,
});
}
/**
* Create organization install link
*
* Mints a shareable OmniRush.ai desktop install link for a signed-in organization member. Older active links remain valid unless an owner or admin explicitly requests rotation.
*/
public postV1OrgsByOrganizationIdInstallLinks<ThrowOnError extends boolean = false>(
parameters: {
organizationId: string;
createInstallLinkRequest: CreateInstallLinkRequest;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "organizationId" },
{ key: "createInstallLinkRequest", map: "body" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1OrgsByOrganizationIdInstallLinksResponses,
PostV1OrgsByOrganizationIdInstallLinksErrors,
ThrowOnError
>({
url: "/v1/orgs/{organizationId}/install-links",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Get current user's install configuration
*
* Returns desktop branding, distribution, and approved version for the signed-in member's active organization.
*/
public getV1MeInstallConfig<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<
GetV1MeInstallConfigResponses,
GetV1MeInstallConfigErrors,
ThrowOnError
>({ url: "/v1/me/install-config", ...options });
}
/**
* Download current user's managed OmniRush.ai desktop
*
* Downloads the Cloud or Enterprise artifact approved for the signed-in member's active organization.
*/
public getV1MeInstallByPlatform<ThrowOnError extends boolean = false>(
parameters: {
platform: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "platform" }] }]);
return (options?.client ?? this.client).get<
GetV1MeInstallByPlatformResponses,
GetV1MeInstallByPlatformErrors,
ThrowOnError
>({
url: "/v1/me/install/{platform}",
...options,
...params,
});
}
/**
* Resolve install-link configuration
*
* Returns organization setup details and a fresh desktop connection handoff for a valid install link token.
*/
public getV1InstallConfig<ThrowOnError extends boolean = false>(
parameters: {
token: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "token" }] }]);
return (options?.client ?? this.client).get<GetV1InstallConfigResponses, GetV1InstallConfigErrors, ThrowOnError>({
url: "/v1/install-config",
...options,
...params,
});
}
/**
* Inspect desktop connection status
*
* Reports whether a short-lived organization connection code is still pending or has been accepted by a desktop.
*/
public postV1InstallConnectStatus<ThrowOnError extends boolean = false>(
parameters?: {
code?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "code" }] }]);
return (options?.client ?? this.client).post<
PostV1InstallConnectStatusResponses,
PostV1InstallConnectStatusErrors,
ThrowOnError
>({
url: "/v1/install-connect/status",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Preview desktop connection
*
* Resolves a short-lived organization connection code without consuming it.
*/
public postV1InstallConnectPreview<ThrowOnError extends boolean = false>(
parameters?: {
code?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "code" }] }]);
return (options?.client ?? this.client).post<
PostV1InstallConnectPreviewResponses,
PostV1InstallConnectPreviewErrors,
ThrowOnError
>({
url: "/v1/install-connect/preview",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Accept desktop connection
*
* Consumes a short-lived organization connection code exactly once.
*/
public postV1InstallConnectExchange<ThrowOnError extends boolean = false>(
parameters?: {
code?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "code" }] }]);
return (options?.client ?? this.client).post<
PostV1InstallConnectExchangeResponses,
PostV1InstallConnectExchangeErrors,
ThrowOnError
>({
url: "/v1/install-connect/exchange",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Download managed OmniRush.ai desktop
*
* Redirects hosted Cloud deployments to the sign-in-required Cloud app and private single-org deployments to the activation-required Enterprise app.
*/
public getV1InstallByPlatform<ThrowOnError extends boolean = false>(
parameters: {
platform: string;
token: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "platform" },
{ in: "query", key: "token" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1InstallByPlatformResponses,
GetV1InstallByPlatformErrors,
ThrowOnError
>({
url: "/v1/install/{platform}",
...options,
...params,
});
}
/**
* Delete llm-providers by stable key
*/
public deleteV1LlmProvidersByKeyByExternalKey<ThrowOnError extends boolean = false>(
parameters: {
externalKey: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "externalKey" }] }]);
return (options?.client ?? this.client).delete<
DeleteV1LlmProvidersByKeyByExternalKeyResponses,
unknown,
ThrowOnError
>({
url: "/v1/llm-providers/by-key/{externalKey}",
...options,
...params,
});
}
/**
* Read llm-providers by stable key
*/
public getV1LlmProvidersByKeyByExternalKey<ThrowOnError extends boolean = false>(
parameters: {
externalKey: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "externalKey" }] }]);
return (options?.client ?? this.client).get<
GetV1LlmProvidersByKeyByExternalKeyResponses,
GetV1LlmProvidersByKeyByExternalKeyErrors,
ThrowOnError
>({
url: "/v1/llm-providers/by-key/{externalKey}",
...options,
...params,
});
}
/**
* Apply llm-providers by stable key
*
* Creates or replaces an organization-scoped resource. Names do not identify resources; existing unkeyed resources are never adopted automatically. Assignments are replaced. Omitted write-only secrets are preserved. Concurrent writes are last-write-wins; conditional headers are not supported on this route.
*/
public putV1LlmProvidersByKeyByExternalKey<ThrowOnError extends boolean = false>(
parameters: {
externalKey: string;
name?: string;
source?: "models_dev" | "custom";
providerId?: string;
modelIds?: Array<string>;
customConfigText?: string;
customConfig?: unknown;
credentialMode?: "shared" | "per_member";
apiKey?: string;
apiKeys?: {
[key: string]: string;
};
memberIds?: Array<string>;
teamIds?: Array<string>;
allMembers?: boolean;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "externalKey" },
{ in: "body", key: "name" },
{ in: "body", key: "source" },
{ in: "body", key: "providerId" },
{ in: "body", key: "modelIds" },
{ in: "body", key: "customConfigText" },
{ in: "body", key: "customConfig" },
{ in: "body", key: "credentialMode" },
{ in: "body", key: "apiKey" },
{ in: "body", key: "apiKeys" },
{ in: "body", key: "memberIds" },
{ in: "body", key: "teamIds" },
{ in: "body", key: "allMembers" },
],
},
],
);
return (options?.client ?? this.client).put<
PutV1LlmProvidersByKeyByExternalKeyResponses,
PutV1LlmProvidersByKeyByExternalKeyErrors,
ThrowOnError
>({
url: "/v1/llm-providers/by-key/{externalKey}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Delete organization LLM provider
*
* Deletes an organization LLM provider and removes its models and access rules.
*/
public deleteV1LlmProvidersByLlmProviderId<ThrowOnError extends boolean = false>(
parameters: {
llmProviderId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "llmProviderId" }] }]);
return (options?.client ?? this.client).delete<
DeleteV1LlmProvidersByLlmProviderIdResponses,
DeleteV1LlmProvidersByLlmProviderIdErrors,
ThrowOnError
>({
url: "/v1/llm-providers/{llmProviderId}",
...options,
...params,
});
}
/**
* Read llm-providers by id
*/
public getV1LlmProvidersByLlmProviderId<ThrowOnError extends boolean = false>(
parameters: {
llmProviderId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "llmProviderId" }] }]);
return (options?.client ?? this.client).get<
GetV1LlmProvidersByLlmProviderIdResponses,
GetV1LlmProvidersByLlmProviderIdErrors,
ThrowOnError
>({
url: "/v1/llm-providers/{llmProviderId}",
...options,
...params,
});
}
/**
* Update organization LLM provider
*
* Updates an existing organization LLM provider, including its provider config, selected models, secret, and access grants. Custom providers accept JSON/JSONC text or an MCP-supplied customConfig object.
*/
public patchV1LlmProvidersByLlmProviderId<ThrowOnError extends boolean = false>(
parameters: {
llmProviderId: string;
name?: string;
source?: "models_dev" | "custom";
providerId?: string;
modelIds?: Array<string>;
customConfigText?: string;
customConfig?: unknown;
credentialMode?: "shared" | "per_member";
apiKey?: string;
apiKeys?: {
[key: string]: string;
};
memberIds?: Array<string>;
teamIds?: Array<string>;
allMembers?: boolean;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "llmProviderId" },
{ in: "body", key: "name" },
{ in: "body", key: "source" },
{ in: "body", key: "providerId" },
{ in: "body", key: "modelIds" },
{ in: "body", key: "customConfigText" },
{ in: "body", key: "customConfig" },
{ in: "body", key: "credentialMode" },
{ in: "body", key: "apiKey" },
{ in: "body", key: "apiKeys" },
{ in: "body", key: "memberIds" },
{ in: "body", key: "teamIds" },
{ in: "body", key: "allMembers" },
],
},
],
);
return (options?.client ?? this.client).patch<
PatchV1LlmProvidersByLlmProviderIdResponses,
PatchV1LlmProvidersByLlmProviderIdErrors,
ThrowOnError
>({
url: "/v1/llm-providers/{llmProviderId}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Test a custom LLM provider endpoint
*
* Probes an OpenAI-compatible endpoint (Azure AI Foundry, LiteLLM, vLLM, gateways) with the given credential: normalizes common base-URL mistakes, calls GET /models, and returns the model ids the endpoint actually serves — on Azure these are the deployment names. Nothing is stored.
*/
public postV1LlmProvidersTestConnection<ThrowOnError extends boolean = false>(
parameters?: {
api?: string;
apiKey?: string;
modelIds?: Array<string>;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "api" },
{ in: "body", key: "apiKey" },
{ in: "body", key: "modelIds" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1LlmProvidersTestConnectionResponses,
PostV1LlmProvidersTestConnectionErrors,
ThrowOnError
>({
url: "/v1/llm-providers/test-connection",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List LLM provider catalog
*
* Lists the provider catalog from models.dev so an organization can choose which LLM providers to configure.
*/
public getV1LlmProviderCatalog<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<
GetV1LlmProviderCatalogResponses,
GetV1LlmProviderCatalogErrors,
ThrowOnError
>({ url: "/v1/llm-provider-catalog", ...options });
}
/**
* Get LLM provider catalog entry
*
* Returns the full models.dev catalog record for one provider, including its config template and model list.
*/
public getV1LlmProviderCatalogByProviderId<ThrowOnError extends boolean = false>(
parameters: {
providerId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "providerId" }] }]);
return (options?.client ?? this.client).get<
GetV1LlmProviderCatalogByProviderIdResponses,
GetV1LlmProviderCatalogByProviderIdErrors,
ThrowOnError
>({
url: "/v1/llm-provider-catalog/{providerId}",
...options,
...params,
});
}
/**
* List organization LLM providers
*
* Lists usable providers by default. Pass scope=manageable to list providers the current member can administer in Den.
*/
public getV1LlmProviders<ThrowOnError extends boolean = false>(
parameters?: {
scope?: "usable" | "manageable";
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "scope" }] }]);
return (options?.client ?? this.client).get<GetV1LlmProvidersResponses, GetV1LlmProvidersErrors, ThrowOnError>({
url: "/v1/llm-providers",
...options,
...params,
});
}
/**
* Create organization LLM provider
*
* Creates a new organization-scoped LLM provider from either a models.dev provider template, pasted JSON/JSONC custom configuration, or MCP-supplied customConfig object.
*/
public postV1LlmProviders<ThrowOnError extends boolean = false>(
parameters?: {
name?: string;
source?: "models_dev" | "custom";
providerId?: string;
modelIds?: Array<string>;
customConfigText?: string;
customConfig?: unknown;
credentialMode?: "shared" | "per_member";
apiKey?: string;
apiKeys?: {
[key: string]: string;
};
memberIds?: Array<string>;
teamIds?: Array<string>;
allMembers?: boolean;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "name" },
{ in: "body", key: "source" },
{ in: "body", key: "providerId" },
{ in: "body", key: "modelIds" },
{ in: "body", key: "customConfigText" },
{ in: "body", key: "customConfig" },
{ in: "body", key: "credentialMode" },
{ in: "body", key: "apiKey" },
{ in: "body", key: "apiKeys" },
{ in: "body", key: "memberIds" },
{ in: "body", key: "teamIds" },
{ in: "body", key: "allMembers" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1LlmProvidersResponses, PostV1LlmProvidersErrors, ThrowOnError>({
url: "/v1/llm-providers",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Get LLM provider connect payload
*
* Returns one accessible organization LLM provider with the concrete model configuration needed to connect to it.
*/
public getV1LlmProvidersByLlmProviderIdConnect<ThrowOnError extends boolean = false>(
parameters: {
llmProviderId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "llmProviderId" }] }]);
return (options?.client ?? this.client).get<
GetV1LlmProvidersByLlmProviderIdConnectResponses,
GetV1LlmProvidersByLlmProviderIdConnectErrors,
ThrowOnError
>({
url: "/v1/llm-providers/{llmProviderId}/connect",
...options,
...params,
});
}
/**
* Delete the calling member's LLM provider credential
*/
public deleteV1LlmProvidersByLlmProviderIdMyCredential<ThrowOnError extends boolean = false>(
parameters: {
llmProviderId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "llmProviderId" }] }]);
return (options?.client ?? this.client).delete<
DeleteV1LlmProvidersByLlmProviderIdMyCredentialResponses,
DeleteV1LlmProvidersByLlmProviderIdMyCredentialErrors,
ThrowOnError
>({
url: "/v1/llm-providers/{llmProviderId}/my-credential",
...options,
...params,
});
}
/**
* Set the calling member's LLM provider credential
*
* Stores a write-only credential for the calling member on a granted per-member provider.
*/
public putV1LlmProvidersByLlmProviderIdMyCredential<ThrowOnError extends boolean = false>(
parameters: {
llmProviderId: string;
apiKey?: string;
apiKeys?: {
[key: string]: string;
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "llmProviderId" },
{ in: "body", key: "apiKey" },
{ in: "body", key: "apiKeys" },
],
},
],
);
return (options?.client ?? this.client).put<
PutV1LlmProvidersByLlmProviderIdMyCredentialResponses,
PutV1LlmProvidersByLlmProviderIdMyCredentialErrors,
ThrowOnError
>({
url: "/v1/llm-providers/{llmProviderId}/my-credential",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List member credential states for an LLM provider
*
* Admin-only. Lists credential state and external identifiers for every granted member without returning secret material.
*/
public getV1LlmProvidersByLlmProviderIdMemberCredentials<ThrowOnError extends boolean = false>(
parameters: {
llmProviderId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "llmProviderId" }] }]);
return (options?.client ?? this.client).get<
GetV1LlmProvidersByLlmProviderIdMemberCredentialsResponses,
GetV1LlmProvidersByLlmProviderIdMemberCredentialsErrors,
ThrowOnError
>({
url: "/v1/llm-providers/{llmProviderId}/member-credentials",
...options,
...params,
});
}
/**
* Set one member's LLM provider credential
*
* Admin-only. Stores write-only credential material and optional external provisioner identifiers.
*/
public putV1LlmProvidersByLlmProviderIdMemberCredentialsByOrgMembershipId<ThrowOnError extends boolean = false>(
parameters: {
llmProviderId: string;
orgMembershipId: string;
apiKey?: string;
apiKeys?: {
[key: string]: string;
};
externalPrincipalId?: string;
externalCredentialId?: string;
expectedVersion?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "llmProviderId" },
{ in: "path", key: "orgMembershipId" },
{ in: "body", key: "apiKey" },
{ in: "body", key: "apiKeys" },
{ in: "body", key: "externalPrincipalId" },
{ in: "body", key: "externalCredentialId" },
{ in: "body", key: "expectedVersion" },
],
},
],
);
return (options?.client ?? this.client).put<
PutV1LlmProvidersByLlmProviderIdMemberCredentialsByOrgMembershipIdResponses,
PutV1LlmProvidersByLlmProviderIdMemberCredentialsByOrgMembershipIdErrors,
ThrowOnError
>({
url: "/v1/llm-providers/{llmProviderId}/member-credentials/{orgMembershipId}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Block one member's LLM provider credential
*/
public postV1LlmProvidersByLlmProviderIdMemberCredentialsByOrgMembershipIdBlock<ThrowOnError extends boolean = false>(
parameters: {
llmProviderId: string;
orgMembershipId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "llmProviderId" },
{ in: "path", key: "orgMembershipId" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1LlmProvidersByLlmProviderIdMemberCredentialsByOrgMembershipIdBlockResponses,
PostV1LlmProvidersByLlmProviderIdMemberCredentialsByOrgMembershipIdBlockErrors,
ThrowOnError
>({
url: "/v1/llm-providers/{llmProviderId}/member-credentials/{orgMembershipId}/block",
...options,
...params,
});
}
/**
* Remove LLM provider access grant
*
* Removes one explicit member or team access grant from an organization LLM provider.
*/
public deleteV1LlmProvidersByLlmProviderIdAccessByAccessId<ThrowOnError extends boolean = false>(
parameters: {
llmProviderId: string;
accessId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "llmProviderId" },
{ in: "path", key: "accessId" },
],
},
],
);
return (options?.client ?? this.client).delete<
DeleteV1LlmProvidersByLlmProviderIdAccessByAccessIdResponses,
DeleteV1LlmProvidersByLlmProviderIdAccessByAccessIdErrors,
ThrowOnError
>({
url: "/v1/llm-providers/{llmProviderId}/access/{accessId}",
...options,
...params,
});
}
/**
* Update member role
*
* Changes the role assigned to a specific organization member.
*/
public postV1MembersByMemberIdRole<ThrowOnError extends boolean = false>(
parameters: {
memberId: string;
role?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "memberId" },
{ in: "body", key: "role" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1MembersByMemberIdRoleResponses,
PostV1MembersByMemberIdRoleErrors,
ThrowOnError
>({
url: "/v1/members/{memberId}/role",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Transfer workspace ownership
*
* Transfers the protected workspace owner role to another active super-admin member.
*/
public postV1MembersByMemberIdTransferOwnership<ThrowOnError extends boolean = false>(
parameters: {
memberId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "memberId" }] }]);
return (options?.client ?? this.client).post<
PostV1MembersByMemberIdTransferOwnershipResponses,
PostV1MembersByMemberIdTransferOwnershipErrors,
ThrowOnError
>({
url: "/v1/members/{memberId}/transfer-ownership",
...options,
...params,
});
}
/**
* Remove organization member
*
* Removes a member from an organization while protecting the owner role from deletion.
*/
public deleteV1MembersByMemberId<ThrowOnError extends boolean = false>(
parameters: {
memberId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "memberId" }] }]);
return (options?.client ?? this.client).delete<
DeleteV1MembersByMemberIdResponses,
DeleteV1MembersByMemberIdErrors,
ThrowOnError
>({
url: "/v1/members/{memberId}",
...options,
...params,
});
}
/**
* Get an org's OAuth client configuration for a provider
*
* Admin-only. Returns setup status, the saved OAuth client id when configured, selected permission features, the callback redirect URI, and the full scope list members will be asked to approve. Never returns the client secret.
*/
public getV1OauthProvidersByProviderIdClient<ThrowOnError extends boolean = false>(
parameters: {
providerId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "providerId" }] }]);
return (options?.client ?? this.client).get<
GetV1OauthProvidersByProviderIdClientResponses,
GetV1OauthProvidersByProviderIdClientErrors,
ThrowOnError
>({
url: "/v1/oauth-providers/{providerId}/client",
...options,
...params,
});
}
/**
* Save an org's OAuth client for a provider
*
* Admin-only. Lets an org bring its own OAuth app (client id + secret) for a native provider such as google-workspace, instead of relying on an OmniRush.ai-owned client.
*/
public postV1OauthProvidersByProviderIdClient<ThrowOnError extends boolean = false>(
parameters: {
providerId: string;
clientId?: string;
clientSecret?: string;
features?: Array<string>;
tenantId?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "providerId" },
{ in: "body", key: "clientId" },
{ in: "body", key: "clientSecret" },
{ in: "body", key: "features" },
{ in: "body", key: "tenantId" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1OauthProvidersByProviderIdClientResponses,
PostV1OauthProvidersByProviderIdClientErrors,
ThrowOnError
>({
url: "/v1/oauth-providers/{providerId}/client",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Begin connecting the calling member's account for a provider
*
* Returns an authorize URL to redirect the member's browser to. Requires the org to have already saved an OAuth client for this provider.
*/
public getV1OauthProvidersByProviderIdConnectStart<ThrowOnError extends boolean = false>(
parameters: {
providerId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "providerId" }] }]);
return (options?.client ?? this.client).get<
GetV1OauthProvidersByProviderIdConnectStartResponses,
GetV1OauthProvidersByProviderIdConnectStartErrors,
ThrowOnError
>({
url: "/v1/oauth-providers/{providerId}/connect/start",
...options,
...params,
});
}
/**
* Begin connecting the calling member to Google Workspace
*
* Native-provider twin of the external MCP connect/start route: returns an authorize URL for the browser, using the OAuth client the org saved for this provider.
*/
public getV1McpConnectionsGoogleWorkspaceConnectStart<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<
GetV1McpConnectionsGoogleWorkspaceConnectStartResponses,
GetV1McpConnectionsGoogleWorkspaceConnectStartErrors,
ThrowOnError
>({ url: "/v1/mcp-connections/google-workspace/connect/start", ...options });
}
/**
* Begin connecting the calling member to Microsoft 365
*
* Native-provider twin of the external MCP connect/start route: returns an authorize URL for the browser, using the OAuth client the org saved for this provider.
*/
public getV1McpConnectionsMicrosoft365ConnectStart<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<
GetV1McpConnectionsMicrosoft365ConnectStartResponses,
GetV1McpConnectionsMicrosoft365ConnectStartErrors,
ThrowOnError
>({ url: "/v1/mcp-connections/microsoft-365/connect/start", ...options });
}
/**
* OAuth callback for a provider
*
* The provider redirects here with code+state after the member consents. Identity is carried entirely by the signed state token, not a session cookie, since the redirect may arrive in a fresh browser context. Serves a small static HTML page that deep-links back to OmniRush.ai.
*/
public getV1OauthProvidersByProviderIdConnectCallback<ThrowOnError extends boolean = false>(
parameters: {
providerId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "providerId" }] }]);
return (options?.client ?? this.client).get<
GetV1OauthProvidersByProviderIdConnectCallbackResponses,
GetV1OauthProvidersByProviderIdConnectCallbackErrors,
ThrowOnError
>({
url: "/v1/oauth-providers/{providerId}/connect/callback",
...options,
...params,
});
}
/**
* Check whether the calling member has connected a provider
*
* Read-only. Never returns a token — only whether a connection exists and which scopes/account it covers. Safe to expose to a harness so it can detect "not connected" and tell the human what to do.
*/
public getV1OauthProvidersByProviderIdStatus<ThrowOnError extends boolean = false>(
parameters: {
providerId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "providerId" }] }]);
return (options?.client ?? this.client).get<
GetV1OauthProvidersByProviderIdStatusResponses,
GetV1OauthProvidersByProviderIdStatusErrors,
ThrowOnError
>({
url: "/v1/oauth-providers/{providerId}/status",
...options,
...params,
});
}
/**
* Disconnect the calling member's account for a provider
*
* Removes the stored credential. Mutation — intentionally kept out of the agent-callable MCP surface (see policy.ts BLOCKED_OPERATION_IDS).
*/
public postV1OauthProvidersByProviderIdDisconnect<ThrowOnError extends boolean = false>(
parameters: {
providerId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "providerId" }] }]);
return (options?.client ?? this.client).post<
PostV1OauthProvidersByProviderIdDisconnectResponses,
PostV1OauthProvidersByProviderIdDisconnectErrors,
ThrowOnError
>({
url: "/v1/oauth-providers/{providerId}/disconnect",
...options,
...params,
});
}
/**
* Upload one multipart workspace file directly to Google Drive
*
* Authenticated host transport for omnirush-cloud-uploads. The route immediately forwards the file to Google and does not persist it or expose its bytes to the model.
*/
public postV1DirectUploadsGoogleWorkspaceDriveFiles<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).post<
PostV1DirectUploadsGoogleWorkspaceDriveFilesResponses,
PostV1DirectUploadsGoogleWorkspaceDriveFilesErrors,
ThrowOnError
>({ url: "/v1/direct-uploads/google-workspace/drive-files", ...options });
}
/**
* Create a Gmail draft with direct multipart workspace attachments
*
* Authenticated host transport for omnirush-cloud-uploads. The route immediately creates the draft and does not persist attachment bytes or expose them to the model.
*/
public postV1DirectUploadsGoogleWorkspaceGmailDrafts<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).post<
PostV1DirectUploadsGoogleWorkspaceGmailDraftsResponses,
PostV1DirectUploadsGoogleWorkspaceGmailDraftsErrors,
ThrowOnError
>({ url: "/v1/direct-uploads/google-workspace/gmail-drafts", ...options });
}
/**
* List or search Gmail messages as the calling member
*
* Reads and searches inbox mail in the calling member's Gmail mailbox, using the Google account they connected through the org Google Workspace connection. Returns needs_connection when the member has not connected their Google account yet or the connection lacks Gmail read permission.
*/
public getV1CapabilitiesGoogleWorkspaceGmailMessages<ThrowOnError extends boolean = false>(
parameters?: {
q?: string;
maxResults?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "q" },
{ in: "query", key: "maxResults" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1CapabilitiesGoogleWorkspaceGmailMessagesResponses,
GetV1CapabilitiesGoogleWorkspaceGmailMessagesErrors,
ThrowOnError
>({
url: "/v1/capabilities/google-workspace/gmail-messages",
...options,
...params,
});
}
/**
* Read a Gmail message with its plain-text body as the calling member
*
* Reads one Gmail message, including decoded plain-text body content and attachment metadata, using the calling member's connected Google Workspace account. To download an attachment's bytes, pass its attachmentId to the gmail-attachment capability.
*/
public getV1CapabilitiesGoogleWorkspaceGmailMessageByMessageId<ThrowOnError extends boolean = false>(
parameters: {
messageId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "messageId" }] }]);
return (options?.client ?? this.client).get<
GetV1CapabilitiesGoogleWorkspaceGmailMessageByMessageIdResponses,
GetV1CapabilitiesGoogleWorkspaceGmailMessageByMessageIdErrors,
ThrowOnError
>({
url: "/v1/capabilities/google-workspace/gmail-message/{messageId}",
...options,
...params,
});
}
/**
* Download a Gmail attachment's bytes as the calling member
*
* Downloads one Gmail attachment (file) as base64-encoded bytes, using the messageId and the attachmentId from the gmail-message capability's attachments metadata. Decode dataBase64 locally to reconstruct the file, e.g. a PDF or spreadsheet, then extract its contents.
*/
public getV1CapabilitiesGoogleWorkspaceGmailAttachmentByMessageIdByAttachmentId<ThrowOnError extends boolean = false>(
parameters: {
messageId: string;
attachmentId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "messageId" },
{ in: "path", key: "attachmentId" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1CapabilitiesGoogleWorkspaceGmailAttachmentByMessageIdByAttachmentIdResponses,
GetV1CapabilitiesGoogleWorkspaceGmailAttachmentByMessageIdByAttachmentIdErrors,
ThrowOnError
>({
url: "/v1/capabilities/google-workspace/gmail-attachment/{messageId}/{attachmentId}",
...options,
...params,
});
}
/**
* List Google Calendar events in a time range as the calling member
*
* Lists primary-calendar events for the calling member in a requested ISO time range, using their connected Google Workspace account.
*/
public getV1CapabilitiesGoogleWorkspaceCalendarEvents<ThrowOnError extends boolean = false>(
parameters: {
timeMin: string;
timeMax: string;
maxResults?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "timeMin" },
{ in: "query", key: "timeMax" },
{ in: "query", key: "maxResults" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1CapabilitiesGoogleWorkspaceCalendarEventsResponses,
GetV1CapabilitiesGoogleWorkspaceCalendarEventsErrors,
ThrowOnError
>({
url: "/v1/capabilities/google-workspace/calendar-events",
...options,
...params,
});
}
/**
* Create a Google Calendar event as the calling member
*
* Creates an event on the calling member's primary Google Calendar, using their connected Google Workspace account. Set createMeetLink to true to request a Google Meet conferencing link and return meetLink.
*/
public postV1CapabilitiesGoogleWorkspaceCalendarEvents<ThrowOnError extends boolean = false>(
parameters: {
googleWorkspaceCreateCalendarEventBody: GoogleWorkspaceCreateCalendarEventBody;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[{ args: [{ key: "googleWorkspaceCreateCalendarEventBody", map: "body" }] }],
);
return (options?.client ?? this.client).post<
PostV1CapabilitiesGoogleWorkspaceCalendarEventsResponses,
PostV1CapabilitiesGoogleWorkspaceCalendarEventsErrors,
ThrowOnError
>({
url: "/v1/capabilities/google-workspace/calendar-events",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Add a Google Meet link to a Calendar event
*
* Updates one primary-calendar event by id to request Google Meet conferencing, using the calling member's connected Google Workspace account. Use this for an existing event that needs a Meet link without creating a duplicate.
*/
public patchV1CapabilitiesGoogleWorkspaceCalendarEventByEventId<ThrowOnError extends boolean = false>(
parameters: {
eventId: string;
googleWorkspaceUpdateCalendarEventBody: GoogleWorkspaceUpdateCalendarEventBody;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "eventId" },
{ key: "googleWorkspaceUpdateCalendarEventBody", map: "body" },
],
},
],
);
return (options?.client ?? this.client).patch<
PatchV1CapabilitiesGoogleWorkspaceCalendarEventByEventIdResponses,
PatchV1CapabilitiesGoogleWorkspaceCalendarEventByEventIdErrors,
ThrowOnError
>({
url: "/v1/capabilities/google-workspace/calendar-event/{eventId}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Search Google Drive files as the calling member
*
* Searches the calling member's Google Drive files by name and full text, using their connected Google Workspace account.
*/
public getV1CapabilitiesGoogleWorkspaceDriveFiles<ThrowOnError extends boolean = false>(
parameters: {
query: string;
maxResults?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "query" },
{ in: "query", key: "maxResults" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1CapabilitiesGoogleWorkspaceDriveFilesResponses,
GetV1CapabilitiesGoogleWorkspaceDriveFilesErrors,
ThrowOnError
>({
url: "/v1/capabilities/google-workspace/drive-files",
...options,
...params,
});
}
/**
* Read a Google Drive file's text or binary content as the calling member
*
* Reads one Google Drive file, exporting Google Docs editors files as plain text. Downloaded files are content-sniffed with strict UTF-8 detection; declared text is bounded, and binary content is returned as standard base64 only up to the internal model-safety limit.
*/
public getV1CapabilitiesGoogleWorkspaceDriveFileByFileId<ThrowOnError extends boolean = false>(
parameters: {
fileId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "fileId" }] }]);
return (options?.client ?? this.client).get<
GetV1CapabilitiesGoogleWorkspaceDriveFileByFileIdResponses,
GetV1CapabilitiesGoogleWorkspaceDriveFileByFileIdErrors,
ThrowOnError
>({
url: "/v1/capabilities/google-workspace/drive-file/{fileId}",
...options,
...params,
});
}
/**
* Share a Google Drive file with a person or the organization
*
* Creates a Drive permission for one file using the calling member's Google Workspace account. To share with one person pass type=user plus emailAddress; to share with the entire organization pass type=domain plus the org's Google Workspace domain (e.g. example.com). Sharing files not created through OmniRush.ai needs the Full Drive access feature enabled by an admin.
*/
public postV1CapabilitiesGoogleWorkspaceDriveFileShareByFileId<ThrowOnError extends boolean = false>(
parameters: {
fileId: string;
googleWorkspaceShareDriveFileBody: GoogleWorkspaceShareDriveFileBody;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "fileId" },
{ key: "googleWorkspaceShareDriveFileBody", map: "body" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1CapabilitiesGoogleWorkspaceDriveFileShareByFileIdResponses,
PostV1CapabilitiesGoogleWorkspaceDriveFileShareByFileIdErrors,
ThrowOnError
>({
url: "/v1/capabilities/google-workspace/drive-file-share/{fileId}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Create a Gmail draft or threaded reply draft without attachments
*
* Creates a plain-text Gmail draft in the calling member own mailbox. For workspace attachments, use the omnirush-cloud-uploads gmail_create_draft_with_attachments action so file bytes stay outside model context. Set threadId for replies and forwards. Always share the returned draftUrl.
*/
public postV1CapabilitiesGoogleWorkspaceGmailDrafts<ThrowOnError extends boolean = false>(
parameters?: {
to?: string;
cc?: string;
bcc?: string;
subject?: string;
body?: string;
threadId?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "to" },
{ in: "body", key: "cc" },
{ in: "body", key: "bcc" },
{ in: "body", key: "subject" },
{ in: "body", key: "body" },
{ in: "body", key: "threadId" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1CapabilitiesGoogleWorkspaceGmailDraftsResponses,
PostV1CapabilitiesGoogleWorkspaceGmailDraftsErrors,
ThrowOnError
>({
url: "/v1/capabilities/google-workspace/gmail-drafts",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List or search Outlook mail as the calling member
*
* Reads recent Outlook messages from the calling member's connected Microsoft 365 account. This capability is delegated and read-only.
*/
public getV1CapabilitiesMicrosoft365MailMessages<ThrowOnError extends boolean = false>(
parameters?: {
search?: string;
maxResults?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "search" },
{ in: "query", key: "maxResults" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1CapabilitiesMicrosoft365MailMessagesResponses,
GetV1CapabilitiesMicrosoft365MailMessagesErrors,
ThrowOnError
>({
url: "/v1/capabilities/microsoft-365/mail-messages",
...options,
...params,
});
}
/**
* Read an Outlook message as the calling member
*
* Reads one Outlook message and requests its body as plain text, using the calling member's delegated Microsoft 365 connection.
*/
public getV1CapabilitiesMicrosoft365MailMessageByMessageId<ThrowOnError extends boolean = false>(
parameters: {
messageId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "messageId" }] }]);
return (options?.client ?? this.client).get<
GetV1CapabilitiesMicrosoft365MailMessageByMessageIdResponses,
GetV1CapabilitiesMicrosoft365MailMessageByMessageIdErrors,
ThrowOnError
>({
url: "/v1/capabilities/microsoft-365/mail-message/{messageId}",
...options,
...params,
});
}
/**
* List Microsoft 365 calendar events as the calling member
*
* Lists the calling member's Outlook calendar events in a requested time range. This capability is delegated and read-only.
*/
public getV1CapabilitiesMicrosoft365CalendarEvents<ThrowOnError extends boolean = false>(
parameters: {
timeMin: string;
timeMax: string;
maxResults?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "timeMin" },
{ in: "query", key: "timeMax" },
{ in: "query", key: "maxResults" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1CapabilitiesMicrosoft365CalendarEventsResponses,
GetV1CapabilitiesMicrosoft365CalendarEventsErrors,
ThrowOnError
>({
url: "/v1/capabilities/microsoft-365/calendar-events",
...options,
...params,
});
}
/**
* Create an Outlook calendar event as the calling member
*
* Creates an event in the calling member's default calendar. Adding attendees can send Microsoft calendar invitations.
*/
public postV1CapabilitiesMicrosoft365CalendarEvents<ThrowOnError extends boolean = false>(
parameters: {
microsoft365CalendarEventBody: Microsoft365CalendarEventBody;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ key: "microsoft365CalendarEventBody", map: "body" }] }]);
return (options?.client ?? this.client).post<
PostV1CapabilitiesMicrosoft365CalendarEventsResponses,
PostV1CapabilitiesMicrosoft365CalendarEventsErrors,
ThrowOnError
>({
url: "/v1/capabilities/microsoft-365/calendar-events",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Search OneDrive files as the calling member
*
* Searches the calling member's OneDrive by name and content, returning source links. This capability is delegated and read-only.
*/
public getV1CapabilitiesMicrosoft365DriveFiles<ThrowOnError extends boolean = false>(
parameters: {
query: string;
maxResults?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "query" },
{ in: "query", key: "maxResults" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1CapabilitiesMicrosoft365DriveFilesResponses,
GetV1CapabilitiesMicrosoft365DriveFilesErrors,
ThrowOnError
>({
url: "/v1/capabilities/microsoft-365/drive-files",
...options,
...params,
});
}
/**
* Create or replace a OneDrive text file as the calling member
*
* Creates or replaces a bounded UTF-8 text file at a path in the calling member's OneDrive.
*/
public putV1CapabilitiesMicrosoft365DriveFiles<ThrowOnError extends boolean = false>(
parameters: {
microsoft365DriveFileWriteBody: Microsoft365DriveFileWriteBody;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[{ args: [{ key: "microsoft365DriveFileWriteBody", map: "body" }] }],
);
return (options?.client ?? this.client).put<
PutV1CapabilitiesMicrosoft365DriveFilesResponses,
PutV1CapabilitiesMicrosoft365DriveFilesErrors,
ThrowOnError
>({
url: "/v1/capabilities/microsoft-365/drive-files",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Read a OneDrive text or binary file as the calling member
*
* Returns OneDrive metadata and content using strict-UTF-8 content sniffing: text is returned regardless of MIME type, while binary files are returned as standard base64 up to 10 MiB. Folders and oversized files return metadata with an explicit contentUnavailableReason.
*/
public getV1CapabilitiesMicrosoft365DriveFileByItemId<ThrowOnError extends boolean = false>(
parameters: {
itemId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "itemId" }] }]);
return (options?.client ?? this.client).get<
GetV1CapabilitiesMicrosoft365DriveFileByItemIdResponses,
GetV1CapabilitiesMicrosoft365DriveFileByItemIdErrors,
ThrowOnError
>({
url: "/v1/capabilities/microsoft-365/drive-file/{itemId}",
...options,
...params,
});
}
/**
* Create an Outlook draft as the calling member
*
* Creates a draft in the calling member's mailbox. It never sends the message. Microsoft requires delegated Mail.ReadWrite for draft creation.
*/
public postV1CapabilitiesMicrosoft365MailDrafts<ThrowOnError extends boolean = false>(
parameters: {
microsoft365MailDraftBody: Microsoft365MailDraftBody;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ key: "microsoft365MailDraftBody", map: "body" }] }]);
return (options?.client ?? this.client).post<
PostV1CapabilitiesMicrosoft365MailDraftsResponses,
PostV1CapabilitiesMicrosoft365MailDraftsErrors,
ThrowOnError
>({
url: "/v1/capabilities/microsoft-365/mail-drafts",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List Microsoft Teams chats as the calling member
*
* Lists the calling member's Microsoft Teams chats using delegated Chat.Read permission.
*/
public getV1CapabilitiesMicrosoft365TeamsChats<ThrowOnError extends boolean = false>(
parameters?: {
maxResults?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "maxResults" }] }]);
return (options?.client ?? this.client).get<
GetV1CapabilitiesMicrosoft365TeamsChatsResponses,
GetV1CapabilitiesMicrosoft365TeamsChatsErrors,
ThrowOnError
>({
url: "/v1/capabilities/microsoft-365/teams-chats",
...options,
...params,
});
}
/**
* List messages in a Microsoft Teams chat as the calling member
*
* Reads recent messages from one Teams chat using delegated Chat.Read permission.
*/
public getV1CapabilitiesMicrosoft365TeamsChatsByChatIdMessages<ThrowOnError extends boolean = false>(
parameters: {
chatId: string;
maxResults?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "chatId" },
{ in: "query", key: "maxResults" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1CapabilitiesMicrosoft365TeamsChatsByChatIdMessagesResponses,
GetV1CapabilitiesMicrosoft365TeamsChatsByChatIdMessagesErrors,
ThrowOnError
>({
url: "/v1/capabilities/microsoft-365/teams-chats/{chatId}/messages",
...options,
...params,
});
}
/**
* Send a message to an existing Microsoft Teams chat as the calling member
*
* Sends one message to an existing Teams chat. The operation cannot create a new chat.
*/
public postV1CapabilitiesMicrosoft365TeamsChatsByChatIdMessages<ThrowOnError extends boolean = false>(
parameters: {
chatId: string;
microsoft365TeamsMessageBody: Microsoft365TeamsMessageBody;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "chatId" },
{ key: "microsoft365TeamsMessageBody", map: "body" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1CapabilitiesMicrosoft365TeamsChatsByChatIdMessagesResponses,
PostV1CapabilitiesMicrosoft365TeamsChatsByChatIdMessagesErrors,
ThrowOnError
>({
url: "/v1/capabilities/microsoft-365/teams-chats/{chatId}/messages",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Discover external MCP connection requirements
*
* Admin-only, side-effect-free requirements discovery. It performs no client registration, credential write, or connection creation.
*/
public postV1McpConnectionsDiscover<ThrowOnError extends boolean = false>(
parameters: {
externalMcpRequirementsDiscoveryInput: ExternalMcpRequirementsDiscoveryInput;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[{ args: [{ key: "externalMcpRequirementsDiscoveryInput", map: "body" }] }],
);
return (options?.client ?? this.client).post<
PostV1McpConnectionsDiscoverResponses,
PostV1McpConnectionsDiscoverErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/discover",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Review a changed External MCP OAuth issuer
*
* Organization-admin-only. Repeats live OAuth discovery and either previews the issuers currently advertised by the MCP resource or explicitly confirms one. Confirmation never trusts an unadvertised issuer. Changing issuers invalidates issuer-bound OAuth clients and credentials so members reconnect cleanly.
*/
public postV1McpConnectionsByConnectionIdOauthIssuerReview<ThrowOnError extends boolean = false>(
parameters: {
connectionId: string;
externalMcpIssuerReviewInput: ExternalMcpIssuerReviewInput;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectionId" },
{ key: "externalMcpIssuerReviewInput", map: "body" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1McpConnectionsByConnectionIdOauthIssuerReviewResponses,
PostV1McpConnectionsByConnectionIdOauthIssuerReviewErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/{connectionId}/oauth/issuer-review",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List predefined External MCP Connection presets
*
* Common third-party MCP servers (Notion, Linear, Stripe, Slack, ...) an admin can add with one click, prefilled with a real name and URL.
*/
public getV1McpConnectionsPresets<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<
GetV1McpConnectionsPresetsResponses,
GetV1McpConnectionsPresetsErrors,
ThrowOnError
>({ url: "/v1/mcp-connections/presets", ...options });
}
/**
* Resolve a free-form query to an MCP server
*
* Admin-only, side-effect-free smart resolution for the add-connection flow. Accepts a URL, a bare host, or a product name ("vercel"), matches curated presets, probes bounded well-known endpoint candidates through the SSRF-guarded discovery fetch, and returns the winning URL with its requirements discovery. It performs no client registration, credential write, or connection creation.
*/
public postV1McpConnectionsResolve<ThrowOnError extends boolean = false>(
parameters: {
externalMcpResolveInput: ExternalMcpResolveInput;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ key: "externalMcpResolveInput", map: "body" }] }]);
return (options?.client ?? this.client).post<
PostV1McpConnectionsResolveResponses,
PostV1McpConnectionsResolveErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/resolve",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List External MCP Connections
*
* scope=usable (default): connections the calling member has been granted (org-wide, direct, or via a team), with per-member connection status. scope=manageable: every org connection with access summaries — workspace owners and admins only. A connection a plugin created for its own MCP server is omitted while every plugin that owns it is archived or deleted; restoring the plugin lists it again.
*/
public getV1McpConnections<ThrowOnError extends boolean = false>(
parameters?: {
scope?: "usable" | "manageable";
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "scope" }] }]);
return (options?.client ?? this.client).get<GetV1McpConnectionsResponses, GetV1McpConnectionsErrors, ThrowOnError>({
url: "/v1/mcp-connections",
...options,
...params,
});
}
/**
* Register a new External MCP Connection for the org
*
* Admin-only. Registers a third-party MCP server by name + URL and grants access (org-wide, teams, or members). Use GET /v1/mcp-connections/presets for known server URLs (Notion, Linear, Stripe, Sentry, Slack, Context7). For credentialMode per_member, each member connects their own account afterwards — share links.yourConnections from the response so teammates know where to sign in. For servers with pre-registered OAuth apps, whitelist links.oauthCallback. API-key and OAuth-client credentials cannot be created through the agent surface; use the dashboard.
*/
public postV1McpConnections<ThrowOnError extends boolean = false>(
parameters: {
body:
| {
kind: "native_provider";
nativeProviderKey: string;
name: string;
oauthClient: {
clientId: string;
clientSecret?: string;
features?: Array<string>;
};
}
| {
kind?: "external_mcp";
name: string;
/**
* Client-chosen stable identifier, unique per organization. Immutable.
*/
externalKey?: string;
url: string;
authType: "oauth" | "apikey" | "none";
credentialMode?: "shared" | "per_member";
exposeDirectly?: boolean;
apiKey?: string;
oauthClient?: {
clientId: string;
clientSecret?: string;
tokenEndpointAuthMethod?: "client_secret_basic" | "client_secret_post";
};
authorizationServerIssuer?: string | null;
requestedScopes?: Array<string>;
access?: ExternalMcpConnectionAccessInput;
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ key: "body", map: "body" }] }]);
return (options?.client ?? this.client).post<
PostV1McpConnectionsResponses,
PostV1McpConnectionsErrors,
ThrowOnError
>({
url: "/v1/mcp-connections",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Get the tool policy for an External MCP Connection
*/
public getV1McpConnectionsByConnectionIdToolPolicy<ThrowOnError extends boolean = false>(
parameters: {
connectionId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectionId" }] }]);
return (options?.client ?? this.client).get<
GetV1McpConnectionsByConnectionIdToolPolicyResponses,
GetV1McpConnectionsByConnectionIdToolPolicyErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/{connectionId}/tool-policy",
...options,
...params,
});
}
/**
* Update the tool policy for an External MCP Connection
*/
public putV1McpConnectionsByConnectionIdToolPolicy<ThrowOnError extends boolean = false>(
parameters: {
connectionId: string;
externalMcpConnectionToolPolicyInput: ExternalMcpConnectionToolPolicyInput;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectionId" },
{ key: "externalMcpConnectionToolPolicyInput", map: "body" },
],
},
],
);
return (options?.client ?? this.client).put<
PutV1McpConnectionsByConnectionIdToolPolicyResponses,
PutV1McpConnectionsByConnectionIdToolPolicyErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/{connectionId}/tool-policy",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List tools exposed by an External MCP Connection
*
* Uses the Den-managed credential available to the calling member to read the live MCP tools/list catalog. Granted members can inspect connections available under Your Connections; workspace owners and admins can also inspect connections they manage. Credentials and tool calls are never returned.
*/
public getV1McpConnectionsByConnectionIdTools<ThrowOnError extends boolean = false>(
parameters: {
connectionId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectionId" }] }]);
return (options?.client ?? this.client).get<
GetV1McpConnectionsByConnectionIdToolsResponses,
GetV1McpConnectionsByConnectionIdToolsErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/{connectionId}/tools",
...options,
...params,
});
}
/**
* List MCP Apps exposed by an External MCP Connection
*
* Enumerates the connection's app-visible MCP App launch tools in the exact reference shape desktop dashboard tiles use, so organization Dashboards can add them as elements. Admin-only.
*/
public getV1McpConnectionsByConnectionIdMcpApps<ThrowOnError extends boolean = false>(
parameters: {
connectionId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectionId" }] }]);
return (options?.client ?? this.client).get<
GetV1McpConnectionsByConnectionIdMcpAppsResponses,
GetV1McpConnectionsByConnectionIdMcpAppsErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/{connectionId}/mcp-apps",
...options,
...params,
});
}
/**
* Manually run a tool from an External MCP Connection
*
* Workspace owner/admin diagnostic runner. Executes one named MCP tool with caller-supplied JSON arguments using the Den-managed shared credential or the calling admin's connected credential. Returns an ephemeral inspection of the actual tools/call HTTP request and response with credential and session headers redacted. The caller must already be granted access to the connection. Credentials, arguments, results, and inspection payloads are never written to logs.
*/
public postV1McpConnectionsByConnectionIdToolsCall<ThrowOnError extends boolean = false>(
parameters: {
connectionId: string;
externalMcpConnectionToolRunInput: ExternalMcpConnectionToolRunInput;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectionId" },
{ key: "externalMcpConnectionToolRunInput", map: "body" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1McpConnectionsByConnectionIdToolsCallResponses,
PostV1McpConnectionsByConnectionIdToolsCallErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/{connectionId}/tools/call",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Remove an External MCP Connection by stable key
*
* Idempotently removes the connection identified by the organization-scoped stable key.
*/
public deleteV1McpConnectionsByKeyByExternalKey<ThrowOnError extends boolean = false>(
parameters: {
externalKey: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "externalKey" }] }]);
return (options?.client ?? this.client).delete<
DeleteV1McpConnectionsByKeyByExternalKeyResponses,
DeleteV1McpConnectionsByKeyByExternalKeyErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/by-key/{externalKey}",
...options,
...params,
});
}
/**
* Create or replace an External MCP Connection by stable key
*
* Admin-only declarative upsert. Creates a connection when the organization has not used the key, otherwise replaces the keyed connection without changing its stable identity.
*/
public putV1McpConnectionsByKeyByExternalKey<ThrowOnError extends boolean = false>(
parameters: {
"If-Match"?: string;
externalKey: string;
externalMcpConnectionByKeyUpsertInput: ExternalMcpConnectionByKeyUpsertInput;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "headers", key: "If-Match" },
{ in: "path", key: "externalKey" },
{ key: "externalMcpConnectionByKeyUpsertInput", map: "body" },
],
},
],
);
return (options?.client ?? this.client).put<
PutV1McpConnectionsByKeyByExternalKeyResponses,
PutV1McpConnectionsByKeyByExternalKeyErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/by-key/{externalKey}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Remove an External MCP Connection
*/
public deleteV1McpConnectionsByConnectionId<ThrowOnError extends boolean = false>(
parameters: {
connectionId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectionId" }] }]);
return (options?.client ?? this.client).delete<
DeleteV1McpConnectionsByConnectionIdResponses,
DeleteV1McpConnectionsByConnectionIdErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/{connectionId}",
...options,
...params,
});
}
/**
* Get an External MCP Connection
*
* Returns one manageable connection with its access summary. Workspace owners and admins only.
*/
public getV1McpConnectionsByConnectionId<ThrowOnError extends boolean = false>(
parameters: {
connectionId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectionId" }] }]);
return (options?.client ?? this.client).get<
GetV1McpConnectionsByConnectionIdResponses,
GetV1McpConnectionsByConnectionIdErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/{connectionId}",
...options,
...params,
});
}
/**
* Edit an External MCP Connection
*
* Workspace owners and super-admins can edit any connection. Other org members can edit only connections they created. Name and direct access changes preserve credentials. URL, authentication type, or credential-mode changes invalidate the old identity atomically. Secret fields are write-only optional replacements and are never returned. expectedUpdatedAt prevents stale edits.
*/
public putV1McpConnectionsByConnectionId<ThrowOnError extends boolean = false>(
parameters: {
connectionId: string;
expectedUpdatedAt?: string;
name?: string;
url?: string;
authType?: "oauth" | "apikey" | "none";
credentialMode?: "shared" | "per_member";
exposeDirectly?: boolean;
apiKey?: string;
oauthClient?: {
clientId: string;
clientSecret?: string;
tokenEndpointAuthMethod?: "client_secret_basic" | "client_secret_post";
};
authorizationServerIssuer?: string | null;
requestedScopes?: Array<string>;
access?: ExternalMcpConnectionAccessInput;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectionId" },
{ in: "body", key: "expectedUpdatedAt" },
{ in: "body", key: "name" },
{ in: "body", key: "url" },
{ in: "body", key: "authType" },
{ in: "body", key: "credentialMode" },
{ in: "body", key: "exposeDirectly" },
{ in: "body", key: "apiKey" },
{ in: "body", key: "oauthClient" },
{ in: "body", key: "authorizationServerIssuer" },
{ in: "body", key: "requestedScopes" },
{ in: "body", key: "access" },
],
},
],
);
return (options?.client ?? this.client).put<
PutV1McpConnectionsByConnectionIdResponses,
PutV1McpConnectionsByConnectionIdErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/{connectionId}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Replace who can use an External MCP Connection
*
* Admin-only. Full-replace semantics: send the complete desired access set (orgWide, or memberIds + teamIds). Team and member ids come from GET /v1/org.
*/
public putV1McpConnectionsByConnectionIdAccess<ThrowOnError extends boolean = false>(
parameters: {
connectionId: string;
access?: ExternalMcpConnectionAccessInput;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectionId" },
{ in: "body", key: "access" },
],
},
],
);
return (options?.client ?? this.client).put<
PutV1McpConnectionsByConnectionIdAccessResponses,
PutV1McpConnectionsByConnectionIdAccessErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/{connectionId}/access",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Disconnect (clear credentials for) an External MCP Connection without removing it
*
* Admin-only. Signs out every shared or per-member account stored for this connection, while preserving the connection row, access grants, OAuth client configuration, and plugin bindings.
*/
public postV1McpConnectionsByConnectionIdDisconnect<ThrowOnError extends boolean = false>(
parameters: {
connectionId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectionId" }] }]);
return (options?.client ?? this.client).post<
PostV1McpConnectionsByConnectionIdDisconnectResponses,
PostV1McpConnectionsByConnectionIdDisconnectErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/{connectionId}/disconnect",
...options,
...params,
});
}
/**
* Disconnect the calling member's account for a per-member External MCP Connection
*
* Removes only the caller's connected account for this MCP connection. The org-level connection, access grants, OAuth client configuration, and other members' accounts are preserved.
*/
public postV1McpConnectionsByConnectionIdDisconnectMyAccount<ThrowOnError extends boolean = false>(
parameters: {
connectionId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectionId" }] }]);
return (options?.client ?? this.client).post<
PostV1McpConnectionsByConnectionIdDisconnectMyAccountResponses,
PostV1McpConnectionsByConnectionIdDisconnectMyAccountErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/{connectionId}/disconnect-my-account",
...options,
...params,
});
}
/**
* Begin the OAuth handshake for an External MCP Connection
*
* Runs RFC 9728 discovery, dynamic client registration if needed, and returns an authorize URL to redirect the admin's browser to.
*/
public getV1McpConnectionsByConnectionIdConnectStart<ThrowOnError extends boolean = false>(
parameters: {
connectionId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectionId" }] }]);
return (options?.client ?? this.client).get<
GetV1McpConnectionsByConnectionIdConnectStartResponses,
GetV1McpConnectionsByConnectionIdConnectStartErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/{connectionId}/connect/start",
...options,
...params,
});
}
/**
* Shared OAuth callback for External MCP Connections
*
* Deployment-wide callback. Organization, member, and connection routing are derived exclusively from signed state.
*/
public getV1McpConnectionsOauthCallback<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<
GetV1McpConnectionsOauthCallbackResponses,
GetV1McpConnectionsOauthCallbackErrors,
ThrowOnError
>({ url: "/v1/mcp-connections/oauth/callback", ...options });
}
/**
* OAuth callback for an External MCP Connection
*
* The external MCP server redirects here with code+state after the admin consents. Serves a small static HTML page — the admin's Den tab in the background polls connection status and never needs this response body.
*/
public getV1McpConnectionsByConnectionIdConnectCallback<ThrowOnError extends boolean = false>(
parameters: {
connectionId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectionId" }] }]);
return (options?.client ?? this.client).get<
GetV1McpConnectionsByConnectionIdConnectCallbackResponses,
GetV1McpConnectionsByConnectionIdConnectCallbackErrors,
ThrowOnError
>({
url: "/v1/mcp-connections/{connectionId}/connect/callback",
...options,
...params,
});
}
/**
* Start GitHub install
*
* Builds a GitHub App install redirect URL for the current organization.
*/
public postV1ConnectorsGithubInstallStart<ThrowOnError extends boolean = false>(
parameters?: {
returnPath?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "returnPath" }] }]);
return (options?.client ?? this.client).post<
PostV1ConnectorsGithubInstallStartResponses,
PostV1ConnectorsGithubInstallStartErrors,
ThrowOnError
>({
url: "/v1/connectors/github/install/start",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Complete GitHub install
*
* Completes a GitHub App installation for the current organization and returns visible repositories.
*/
public postV1ConnectorsGithubInstallComplete<ThrowOnError extends boolean = false>(
parameters?: {
installationId?: number;
state?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "installationId" },
{ in: "body", key: "state" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConnectorsGithubInstallCompleteResponses,
PostV1ConnectorsGithubInstallCompleteErrors,
ThrowOnError
>({
url: "/v1/connectors/github/install/complete",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List config objects
*
* Lists current config object projections visible to the current organization member.
*/
public getV1ConfigObjects<ThrowOnError extends boolean = false>(
parameters?: {
cursor?: string;
limit?: number;
type?:
| "skill"
| "agent"
| "command"
| "tool"
| "mcp"
| "hook"
| "context"
| "custom"
| "script"
| "workflow"
| "app";
status?: "active" | "inactive" | "deleted" | "archived" | "ingestion_error";
sourceMode?: "cloud" | "import" | "connector";
pluginId?: string;
connectorInstanceId?: string;
includeDeleted?: "true" | "false";
q?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "cursor" },
{ in: "query", key: "limit" },
{ in: "query", key: "type" },
{ in: "query", key: "status" },
{ in: "query", key: "sourceMode" },
{ in: "query", key: "pluginId" },
{ in: "query", key: "connectorInstanceId" },
{ in: "query", key: "includeDeleted" },
{ in: "query", key: "q" },
],
},
],
);
return (options?.client ?? this.client).get<GetV1ConfigObjectsResponses, GetV1ConfigObjectsErrors, ThrowOnError>({
url: "/v1/config-objects",
...options,
...params,
});
}
/**
* Create config object
*
* Creates a new private config object and initial immutable version.
*/
public postV1ConfigObjects<ThrowOnError extends boolean = false>(
parameters?: {
type?:
| "skill"
| "agent"
| "command"
| "tool"
| "mcp"
| "hook"
| "context"
| "custom"
| "script"
| "workflow"
| "app";
sourceMode?: "cloud" | "import" | "connector";
pluginIds?: Array<string>;
input?: {
rawSourceText?: string;
normalizedPayloadJson?: {
[key: string]: unknown;
};
parserMode?: string;
schemaVersion?: string;
metadata?: {
[key: string]: unknown;
};
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "type" },
{ in: "body", key: "sourceMode" },
{ in: "body", key: "pluginIds" },
{ in: "body", key: "input" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1ConfigObjectsResponses, PostV1ConfigObjectsErrors, ThrowOnError>(
{
url: "/v1/config-objects",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
},
);
}
/**
* Get config object
*
* Returns one config object detail when the caller can view it.
*/
public getV1ConfigObjectsByConfigObjectId<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "configObjectId" }] }]);
return (options?.client ?? this.client).get<
GetV1ConfigObjectsByConfigObjectIdResponses,
GetV1ConfigObjectsByConfigObjectIdErrors,
ThrowOnError
>({
url: "/v1/config-objects/{configObjectId}",
...options,
...params,
});
}
/**
* List config object versions
*
* Returns immutable versions for one config object.
*/
public getV1ConfigObjectsByConfigObjectIdVersions<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
cursor?: string;
limit?: number;
includeDeleted?: "true" | "false";
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "configObjectId" },
{ in: "query", key: "cursor" },
{ in: "query", key: "limit" },
{ in: "query", key: "includeDeleted" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1ConfigObjectsByConfigObjectIdVersionsResponses,
GetV1ConfigObjectsByConfigObjectIdVersionsErrors,
ThrowOnError
>({
url: "/v1/config-objects/{configObjectId}/versions",
...options,
...params,
});
}
/**
* Update config object with new version
*
* Updates an existing config object, including a Cloud skill, by creating a new immutable version without creating a duplicate.
*/
public postV1ConfigObjectsByConfigObjectIdVersions<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
input?: {
rawSourceText?: string;
normalizedPayloadJson?: {
[key: string]: unknown;
};
parserMode?: string;
schemaVersion?: string;
metadata?: {
[key: string]: unknown;
};
};
reason?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "configObjectId" },
{ in: "body", key: "input" },
{ in: "body", key: "reason" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConfigObjectsByConfigObjectIdVersionsResponses,
PostV1ConfigObjectsByConfigObjectIdVersionsErrors,
ThrowOnError
>({
url: "/v1/config-objects/{configObjectId}/versions",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Get config object version
*
* Returns one immutable config object version.
*/
public getV1ConfigObjectsByConfigObjectIdVersionsByVersionId<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
versionId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "configObjectId" },
{ in: "path", key: "versionId" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1ConfigObjectsByConfigObjectIdVersionsByVersionIdResponses,
GetV1ConfigObjectsByConfigObjectIdVersionsByVersionIdErrors,
ThrowOnError
>({
url: "/v1/config-objects/{configObjectId}/versions/{versionId}",
...options,
...params,
});
}
/**
* Get latest config object version
*
* Returns the latest config object version by created_at and id ordering.
*/
public getV1ConfigObjectsByConfigObjectIdVersionsLatest<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "configObjectId" }] }]);
return (options?.client ?? this.client).get<
GetV1ConfigObjectsByConfigObjectIdVersionsLatestResponses,
GetV1ConfigObjectsByConfigObjectIdVersionsLatestErrors,
ThrowOnError
>({
url: "/v1/config-objects/{configObjectId}/versions/latest",
...options,
...params,
});
}
/**
* archive config object
*
* archive a config object without removing its history.
*/
public postV1ConfigObjectsByConfigObjectIdArchive<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "configObjectId" }] }]);
return (options?.client ?? this.client).post<
PostV1ConfigObjectsByConfigObjectIdArchiveResponses,
PostV1ConfigObjectsByConfigObjectIdArchiveErrors,
ThrowOnError
>({
url: "/v1/config-objects/{configObjectId}/archive",
...options,
...params,
});
}
/**
* delete config object
*
* delete a config object without removing its history.
*/
public postV1ConfigObjectsByConfigObjectIdDelete<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "configObjectId" }] }]);
return (options?.client ?? this.client).post<
PostV1ConfigObjectsByConfigObjectIdDeleteResponses,
PostV1ConfigObjectsByConfigObjectIdDeleteErrors,
ThrowOnError
>({
url: "/v1/config-objects/{configObjectId}/delete",
...options,
...params,
});
}
/**
* restore config object
*
* restore a config object without removing its history.
*/
public postV1ConfigObjectsByConfigObjectIdRestore<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "configObjectId" }] }]);
return (options?.client ?? this.client).post<
PostV1ConfigObjectsByConfigObjectIdRestoreResponses,
PostV1ConfigObjectsByConfigObjectIdRestoreErrors,
ThrowOnError
>({
url: "/v1/config-objects/{configObjectId}/restore",
...options,
...params,
});
}
/**
* List config object plugins
*
* Lists plugins that currently include the config object.
*/
public getV1ConfigObjectsByConfigObjectIdPlugins<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "configObjectId" }] }]);
return (options?.client ?? this.client).get<
GetV1ConfigObjectsByConfigObjectIdPluginsResponses,
GetV1ConfigObjectsByConfigObjectIdPluginsErrors,
ThrowOnError
>({
url: "/v1/config-objects/{configObjectId}/plugins",
...options,
...params,
});
}
/**
* Attach config object to plugin
*
* Adds a config object to a plugin when the caller can edit the target plugin.
*/
public postV1ConfigObjectsByConfigObjectIdPlugins<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
pluginId?: string;
membershipSource?: "manual" | "connector" | "api" | "system";
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "configObjectId" },
{ in: "body", key: "pluginId" },
{ in: "body", key: "membershipSource" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConfigObjectsByConfigObjectIdPluginsResponses,
PostV1ConfigObjectsByConfigObjectIdPluginsErrors,
ThrowOnError
>({
url: "/v1/config-objects/{configObjectId}/plugins",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Remove config object from plugin
*
* Removes one active plugin membership from a config object.
*/
public deleteV1ConfigObjectsByConfigObjectIdPluginsByPluginId<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
pluginId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "configObjectId" },
{ in: "path", key: "pluginId" },
],
},
],
);
return (options?.client ?? this.client).delete<
DeleteV1ConfigObjectsByConfigObjectIdPluginsByPluginIdResponses,
DeleteV1ConfigObjectsByConfigObjectIdPluginsByPluginIdErrors,
ThrowOnError
>({
url: "/v1/config-objects/{configObjectId}/plugins/{pluginId}",
...options,
...params,
});
}
/**
* List config object access grants
*
* Lists direct, team, and org-wide grants for one config object.
*/
public getV1ConfigObjectsByConfigObjectIdAccess<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "configObjectId" }] }]);
return (options?.client ?? this.client).get<
GetV1ConfigObjectsByConfigObjectIdAccessResponses,
GetV1ConfigObjectsByConfigObjectIdAccessErrors,
ThrowOnError
>({
url: "/v1/config-objects/{configObjectId}/access",
...options,
...params,
});
}
/**
* Grant config object access
*
* Creates or reactivates one access grant for a config object.
*/
public postV1ConfigObjectsByConfigObjectIdAccess<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
orgMembershipId?: string;
teamId?: string;
orgWide?: boolean;
role?: "viewer" | "editor" | "manager";
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "configObjectId" },
{ in: "body", key: "orgMembershipId" },
{ in: "body", key: "teamId" },
{ in: "body", key: "orgWide" },
{ in: "body", key: "role" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConfigObjectsByConfigObjectIdAccessResponses,
PostV1ConfigObjectsByConfigObjectIdAccessErrors,
ThrowOnError
>({
url: "/v1/config-objects/{configObjectId}/access",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Revoke config object access
*
* Soft-revokes one config object access grant.
*/
public deleteV1ConfigObjectsByConfigObjectIdAccessByGrantId<ThrowOnError extends boolean = false>(
parameters: {
configObjectId: string;
grantId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "configObjectId" },
{ in: "path", key: "grantId" },
],
},
],
);
return (options?.client ?? this.client).delete<
DeleteV1ConfigObjectsByConfigObjectIdAccessByGrantIdResponses,
DeleteV1ConfigObjectsByConfigObjectIdAccessByGrantIdErrors,
ThrowOnError
>({
url: "/v1/config-objects/{configObjectId}/access/{grantId}",
...options,
...params,
});
}
/**
* List plugins
*
* Lists plugins visible to the current organization member.
*/
public getV1Plugins<ThrowOnError extends boolean = false>(
parameters?: {
cursor?: string;
limit?: number;
status?: "active" | "inactive" | "deleted" | "archived";
q?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "cursor" },
{ in: "query", key: "limit" },
{ in: "query", key: "status" },
{ in: "query", key: "q" },
],
},
],
);
return (options?.client ?? this.client).get<GetV1PluginsResponses, GetV1PluginsErrors, ThrowOnError>({
url: "/v1/plugins",
...options,
...params,
});
}
/**
* Create plugin
*
* Creates a plugin and can also create components, share org-wide, and publish to a marketplace in one request. An mcp component may carry the same connection setup as the Connections page (authentication, credential mode, API key, OAuth app), or instead reference an existing organization connection by connectionId, so its server is configured immediately; owners and admins only.
*/
public postV1Plugins<ThrowOnError extends boolean = false>(
parameters?: {
name?: string;
description?: string | null;
sourceRepositoryUrl?: string;
components?: Array<{
type:
| "skill"
| "agent"
| "command"
| "tool"
| "mcp"
| "hook"
| "context"
| "custom"
| "script"
| "workflow"
| "app";
input?: {
rawSourceText?: string;
normalizedPayloadJson?: {
[key: string]: unknown;
};
parserMode?: string;
schemaVersion?: string;
metadata?: {
[key: string]: unknown;
};
};
connection?: {
authType?: "oauth" | "apikey" | "none";
credentialMode?: "shared" | "per_member";
apiKey?: string;
oauthClient?: {
clientId: string;
clientSecret?: string;
};
};
connectionId?: string;
}>;
orgWide?: boolean;
marketplaceId?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "name" },
{ in: "body", key: "description" },
{ in: "body", key: "sourceRepositoryUrl" },
{ in: "body", key: "components" },
{ in: "body", key: "orgWide" },
{ in: "body", key: "marketplaceId" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1PluginsResponses, PostV1PluginsErrors, ThrowOnError>({
url: "/v1/plugins",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Get plugin
*
* Returns one plugin detail when the caller can view it.
*/
public getV1PluginsByPluginId<ThrowOnError extends boolean = false>(
parameters: {
pluginId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "pluginId" }] }]);
return (options?.client ?? this.client).get<
GetV1PluginsByPluginIdResponses,
GetV1PluginsByPluginIdErrors,
ThrowOnError
>({
url: "/v1/plugins/{pluginId}",
...options,
...params,
});
}
/**
* Update plugin
*
* Updates plugin metadata.
*/
public patchV1PluginsByPluginId<ThrowOnError extends boolean = false>(
parameters: {
pluginId: string;
name?: string;
description?: string | null;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "pluginId" },
{ in: "body", key: "name" },
{ in: "body", key: "description" },
],
},
],
);
return (options?.client ?? this.client).patch<
PatchV1PluginsByPluginIdResponses,
PatchV1PluginsByPluginIdErrors,
ThrowOnError
>({
url: "/v1/plugins/{pluginId}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* archive plugin
*
* archive a plugin without touching its historical memberships.
*/
public postV1PluginsByPluginIdArchive<ThrowOnError extends boolean = false>(
parameters: {
pluginId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "pluginId" }] }]);
return (options?.client ?? this.client).post<
PostV1PluginsByPluginIdArchiveResponses,
PostV1PluginsByPluginIdArchiveErrors,
ThrowOnError
>({
url: "/v1/plugins/{pluginId}/archive",
...options,
...params,
});
}
/**
* restore plugin
*
* restore a plugin without touching its historical memberships.
*/
public postV1PluginsByPluginIdRestore<ThrowOnError extends boolean = false>(
parameters: {
pluginId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "pluginId" }] }]);
return (options?.client ?? this.client).post<
PostV1PluginsByPluginIdRestoreResponses,
PostV1PluginsByPluginIdRestoreErrors,
ThrowOnError
>({
url: "/v1/plugins/{pluginId}/restore",
...options,
...params,
});
}
/**
* List plugin config objects
*
* Lists plugin memberships and resolved config object projections.
*/
public getV1PluginsByPluginIdConfigObjects<ThrowOnError extends boolean = false>(
parameters: {
pluginId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "pluginId" }] }]);
return (options?.client ?? this.client).get<
GetV1PluginsByPluginIdConfigObjectsResponses,
GetV1PluginsByPluginIdConfigObjectsErrors,
ThrowOnError
>({
url: "/v1/plugins/{pluginId}/config-objects",
...options,
...params,
});
}
/**
* Add plugin config object
*
* Adds a config object to a plugin. Workflows require manager access because this can expand their audience through Plugin and Marketplace grants.
*/
public postV1PluginsByPluginIdConfigObjects<ThrowOnError extends boolean = false>(
parameters: {
pluginId: string;
configObjectId?: string;
membershipSource?: "manual" | "connector" | "api" | "system";
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "pluginId" },
{ in: "body", key: "configObjectId" },
{ in: "body", key: "membershipSource" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1PluginsByPluginIdConfigObjectsResponses,
PostV1PluginsByPluginIdConfigObjectsErrors,
ThrowOnError
>({
url: "/v1/plugins/{pluginId}/config-objects",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Remove plugin config object
*
* Removes one config object from a plugin. Workflows require manager access because this revokes inherited Plugin or Marketplace access.
*/
public deleteV1PluginsByPluginIdConfigObjectsByConfigObjectId<ThrowOnError extends boolean = false>(
parameters: {
pluginId: string;
configObjectId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "pluginId" },
{ in: "path", key: "configObjectId" },
],
},
],
);
return (options?.client ?? this.client).delete<
DeleteV1PluginsByPluginIdConfigObjectsByConfigObjectIdResponses,
DeleteV1PluginsByPluginIdConfigObjectsByConfigObjectIdErrors,
ThrowOnError
>({
url: "/v1/plugins/{pluginId}/config-objects/{configObjectId}",
...options,
...params,
});
}
/**
* Get resolved plugin
*
* Lists active plugin memberships with the current config object projection for each item.
*/
public getV1PluginsByPluginIdResolved<ThrowOnError extends boolean = false>(
parameters: {
pluginId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "pluginId" }] }]);
return (options?.client ?? this.client).get<
GetV1PluginsByPluginIdResolvedResponses,
GetV1PluginsByPluginIdResolvedErrors,
ThrowOnError
>({
url: "/v1/plugins/{pluginId}/resolved",
...options,
...params,
});
}
/**
* Configure plugin MCP requirement
*
* Admin-only privileged setup for one declared remote MCP server. The server name and URL are derived from the active plugin config object; the request never supplies a URL and does not start OAuth.
*/
public postV1PluginsByPluginIdMcpConnections<ThrowOnError extends boolean = false>(
parameters: {
pluginId: string;
authType?: "oauth" | "apikey" | "none";
credentialMode?: "shared" | "per_member";
apiKey?: string;
oauthClient?: {
clientId: string;
clientSecret?: string;
};
configObjectId?: string;
serverName?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "pluginId" },
{ in: "body", key: "authType" },
{ in: "body", key: "credentialMode" },
{ in: "body", key: "apiKey" },
{ in: "body", key: "oauthClient" },
{ in: "body", key: "configObjectId" },
{ in: "body", key: "serverName" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1PluginsByPluginIdMcpConnectionsResponses,
PostV1PluginsByPluginIdMcpConnectionsErrors,
ThrowOnError
>({
url: "/v1/plugins/{pluginId}/mcp-connections",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Preview GitHub plugin marketplace import
*
* Reads a public GitHub plugin URL and returns skills and remote MCP servers that can be imported into an organization marketplace.
*/
public postV1PluginsImportMcpsFromGithubUrlPreview<ThrowOnError extends boolean = false>(
parameters?: {
githubUrl?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "githubUrl" }] }]);
return (options?.client ?? this.client).post<
PostV1PluginsImportMcpsFromGithubUrlPreviewResponses,
PostV1PluginsImportMcpsFromGithubUrlPreviewErrors,
ThrowOnError
>({
url: "/v1/plugins/import-mcps-from-github-url/preview",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Create a plugin from GitHub
*
* Creates one plugin from selected skills and remote MCP servers in a public GitHub plugin URL, applies the requested access grants, and optionally publishes it into an organization marketplace. Declared and known-server authentication requirements take precedence over the request-wide auth fallback.
*/
public postV1PluginsImportMcpsFromGithubUrl<ThrowOnError extends boolean = false>(
parameters?: {
githubUrl?: string;
access?: {
orgWide?: boolean;
memberIds?: Array<string>;
teamIds?: Array<string>;
};
authType?: "oauth" | "none";
credentialMode?: "shared" | "per_member";
description?: string | null;
marketplaceId?: string;
name?: string;
selectedSkillKeys?: Array<string>;
selectedServerKeys?: Array<string>;
selectedServerNames?: Array<string>;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "githubUrl" },
{ in: "body", key: "access" },
{ in: "body", key: "authType" },
{ in: "body", key: "credentialMode" },
{ in: "body", key: "description" },
{ in: "body", key: "marketplaceId" },
{ in: "body", key: "name" },
{ in: "body", key: "selectedSkillKeys" },
{ in: "body", key: "selectedServerKeys" },
{ in: "body", key: "selectedServerNames" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1PluginsImportMcpsFromGithubUrlResponses,
PostV1PluginsImportMcpsFromGithubUrlErrors,
ThrowOnError
>({
url: "/v1/plugins/import-mcps-from-github-url",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List plugin access grants
*
* Lists direct, team, and org-wide grants for a plugin.
*/
public getV1PluginsByPluginIdAccess<ThrowOnError extends boolean = false>(
parameters: {
pluginId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "pluginId" }] }]);
return (options?.client ?? this.client).get<
GetV1PluginsByPluginIdAccessResponses,
GetV1PluginsByPluginIdAccessErrors,
ThrowOnError
>({
url: "/v1/plugins/{pluginId}/access",
...options,
...params,
});
}
/**
* Grant plugin access
*
* Creates or reactivates one access grant for a plugin.
*/
public postV1PluginsByPluginIdAccess<ThrowOnError extends boolean = false>(
parameters: {
pluginId: string;
orgMembershipId?: string;
teamId?: string;
orgWide?: boolean;
role?: "viewer" | "editor" | "manager";
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "pluginId" },
{ in: "body", key: "orgMembershipId" },
{ in: "body", key: "teamId" },
{ in: "body", key: "orgWide" },
{ in: "body", key: "role" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1PluginsByPluginIdAccessResponses,
PostV1PluginsByPluginIdAccessErrors,
ThrowOnError
>({
url: "/v1/plugins/{pluginId}/access",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List my effective plugin access
*
* Lists active plugins in the caller's organization library and every access edge that applies to the caller.
*/
public getV1MePluginAccess<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1MePluginAccessResponses, GetV1MePluginAccessErrors, ThrowOnError>({
url: "/v1/me/plugin-access",
...options,
});
}
/**
* List my library
*
* Lists the Workflows, Remote MCP Apps, plugins, and connections the caller can use, with every applicable access edge. Workflows and Remote MCP Apps remain config objects contained by their parent OmniRush.ai Connect Plugin.
*/
public getV1MeLibrary<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1MeLibraryResponses, GetV1MeLibraryErrors, ThrowOnError>({
url: "/v1/me/library",
...options,
});
}
/**
* List effective team plugin access
*
* Lists plugins available to a team through direct grants, marketplace grants, and organization-wide grants.
*/
public getV1TeamsByTeamIdPluginAccess<ThrowOnError extends boolean = false>(
parameters: {
teamId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "teamId" }] }]);
return (options?.client ?? this.client).get<
GetV1TeamsByTeamIdPluginAccessResponses,
GetV1TeamsByTeamIdPluginAccessErrors,
ThrowOnError
>({
url: "/v1/teams/{teamId}/plugin-access",
...options,
...params,
});
}
/**
* Revoke plugin access
*
* Soft-revokes one plugin access grant.
*/
public deleteV1PluginsByPluginIdAccessByGrantId<ThrowOnError extends boolean = false>(
parameters: {
pluginId: string;
grantId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "pluginId" },
{ in: "path", key: "grantId" },
],
},
],
);
return (options?.client ?? this.client).delete<
DeleteV1PluginsByPluginIdAccessByGrantIdResponses,
DeleteV1PluginsByPluginIdAccessByGrantIdErrors,
ThrowOnError
>({
url: "/v1/plugins/{pluginId}/access/{grantId}",
...options,
...params,
});
}
/**
* Delete marketplace by stable key
*/
public deleteV1MarketplacesByKeyByExternalKey<ThrowOnError extends boolean = false>(
parameters: {
externalKey: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "externalKey" }] }]);
return (options?.client ?? this.client).delete<
DeleteV1MarketplacesByKeyByExternalKeyResponses,
unknown,
ThrowOnError
>({
url: "/v1/marketplaces/by-key/{externalKey}",
...options,
...params,
});
}
/**
* Read marketplace by stable key
*/
public getV1MarketplacesByKeyByExternalKey<ThrowOnError extends boolean = false>(
parameters: {
externalKey: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "externalKey" }] }]);
return (options?.client ?? this.client).get<
GetV1MarketplacesByKeyByExternalKeyResponses,
GetV1MarketplacesByKeyByExternalKeyErrors,
ThrowOnError
>({
url: "/v1/marketplaces/by-key/{externalKey}",
...options,
...params,
});
}
/**
* Apply marketplace by stable key
*
* Creates or replaces marketplace metadata. Omitted description and logo are cleared. Memberships and access grants are managed separately. Archived marketplaces must be explicitly restored before applying.
*/
public putV1MarketplacesByKeyByExternalKey<ThrowOnError extends boolean = false>(
parameters: {
externalKey: string;
name?: string;
description?: string | null;
logoUrl?: string | null;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "externalKey" },
{ in: "body", key: "name" },
{ in: "body", key: "description" },
{ in: "body", key: "logoUrl" },
],
},
],
);
return (options?.client ?? this.client).put<
PutV1MarketplacesByKeyByExternalKeyResponses,
PutV1MarketplacesByKeyByExternalKeyErrors,
ThrowOnError
>({
url: "/v1/marketplaces/by-key/{externalKey}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List marketplaces
*
* Lists marketplaces visible to the current organization member.
*/
public getV1Marketplaces<ThrowOnError extends boolean = false>(
parameters?: {
cursor?: string;
limit?: number;
status?: "active" | "inactive" | "deleted" | "archived";
q?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "cursor" },
{ in: "query", key: "limit" },
{ in: "query", key: "status" },
{ in: "query", key: "q" },
],
},
],
);
return (options?.client ?? this.client).get<GetV1MarketplacesResponses, GetV1MarketplacesErrors, ThrowOnError>({
url: "/v1/marketplaces",
...options,
...params,
});
}
/**
* Create marketplace
*
* Creates a new private marketplace and grants the creator manager access.
*/
public postV1Marketplaces<ThrowOnError extends boolean = false>(
parameters?: {
name?: string;
description?: string | null;
logoUrl?: string | null;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "name" },
{ in: "body", key: "description" },
{ in: "body", key: "logoUrl" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1MarketplacesResponses, PostV1MarketplacesErrors, ThrowOnError>({
url: "/v1/marketplaces",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Get marketplace
*
* Returns one marketplace detail when the caller can view it.
*/
public getV1MarketplacesByMarketplaceId<ThrowOnError extends boolean = false>(
parameters: {
marketplaceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "marketplaceId" }] }]);
return (options?.client ?? this.client).get<
GetV1MarketplacesByMarketplaceIdResponses,
GetV1MarketplacesByMarketplaceIdErrors,
ThrowOnError
>({
url: "/v1/marketplaces/{marketplaceId}",
...options,
...params,
});
}
/**
* Update marketplace
*
* Updates marketplace metadata.
*/
public patchV1MarketplacesByMarketplaceId<ThrowOnError extends boolean = false>(
parameters: {
marketplaceId: string;
name?: string;
description?: string | null;
logoUrl?: string | null;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "marketplaceId" },
{ in: "body", key: "name" },
{ in: "body", key: "description" },
{ in: "body", key: "logoUrl" },
],
},
],
);
return (options?.client ?? this.client).patch<
PatchV1MarketplacesByMarketplaceIdResponses,
PatchV1MarketplacesByMarketplaceIdErrors,
ThrowOnError
>({
url: "/v1/marketplaces/{marketplaceId}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* archive marketplace
*
* archive a marketplace without deleting its plugins.
*/
public postV1MarketplacesByMarketplaceIdArchive<ThrowOnError extends boolean = false>(
parameters: {
marketplaceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "marketplaceId" }] }]);
return (options?.client ?? this.client).post<
PostV1MarketplacesByMarketplaceIdArchiveResponses,
PostV1MarketplacesByMarketplaceIdArchiveErrors,
ThrowOnError
>({
url: "/v1/marketplaces/{marketplaceId}/archive",
...options,
...params,
});
}
/**
* delete marketplace
*
* Permanently deletes a custom marketplace and its relationships.
*/
public postV1MarketplacesByMarketplaceIdDelete<ThrowOnError extends boolean = false>(
parameters: {
marketplaceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "marketplaceId" }] }]);
return (options?.client ?? this.client).post<
PostV1MarketplacesByMarketplaceIdDeleteResponses,
PostV1MarketplacesByMarketplaceIdDeleteErrors,
ThrowOnError
>({
url: "/v1/marketplaces/{marketplaceId}/delete",
...options,
...params,
});
}
/**
* restore marketplace
*
* restore a marketplace without deleting its plugins.
*/
public postV1MarketplacesByMarketplaceIdRestore<ThrowOnError extends boolean = false>(
parameters: {
marketplaceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "marketplaceId" }] }]);
return (options?.client ?? this.client).post<
PostV1MarketplacesByMarketplaceIdRestoreResponses,
PostV1MarketplacesByMarketplaceIdRestoreErrors,
ThrowOnError
>({
url: "/v1/marketplaces/{marketplaceId}/restore",
...options,
...params,
});
}
/**
* List marketplace plugins
*
* Lists marketplace memberships and resolved plugin projections.
*/
public getV1MarketplacesByMarketplaceIdPlugins<ThrowOnError extends boolean = false>(
parameters: {
marketplaceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "marketplaceId" }] }]);
return (options?.client ?? this.client).get<
GetV1MarketplacesByMarketplaceIdPluginsResponses,
GetV1MarketplacesByMarketplaceIdPluginsErrors,
ThrowOnError
>({
url: "/v1/marketplaces/{marketplaceId}/plugins",
...options,
...params,
});
}
/**
* Add marketplace plugin
*
* Adds a plugin to a marketplace.
*/
public postV1MarketplacesByMarketplaceIdPlugins<ThrowOnError extends boolean = false>(
parameters: {
marketplaceId: string;
pluginId?: string;
membershipSource?: "manual" | "connector" | "api" | "system";
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "marketplaceId" },
{ in: "body", key: "pluginId" },
{ in: "body", key: "membershipSource" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1MarketplacesByMarketplaceIdPluginsResponses,
PostV1MarketplacesByMarketplaceIdPluginsErrors,
ThrowOnError
>({
url: "/v1/marketplaces/{marketplaceId}/plugins",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Get resolved marketplace plugin readiness
*
* Returns marketplace detail with plugins, derived source info, and each plugin's cloud readiness or required setup state.
*/
public getV1MarketplacesByMarketplaceIdResolved<ThrowOnError extends boolean = false>(
parameters: {
marketplaceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "marketplaceId" }] }]);
return (options?.client ?? this.client).get<
GetV1MarketplacesByMarketplaceIdResolvedResponses,
GetV1MarketplacesByMarketplaceIdResolvedErrors,
ThrowOnError
>({
url: "/v1/marketplaces/{marketplaceId}/resolved",
...options,
...params,
});
}
/**
* Remove marketplace plugin
*
* Removes one plugin from a marketplace.
*/
public deleteV1MarketplacesByMarketplaceIdPluginsByPluginId<ThrowOnError extends boolean = false>(
parameters: {
marketplaceId: string;
pluginId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "marketplaceId" },
{ in: "path", key: "pluginId" },
],
},
],
);
return (options?.client ?? this.client).delete<
DeleteV1MarketplacesByMarketplaceIdPluginsByPluginIdResponses,
DeleteV1MarketplacesByMarketplaceIdPluginsByPluginIdErrors,
ThrowOnError
>({
url: "/v1/marketplaces/{marketplaceId}/plugins/{pluginId}",
...options,
...params,
});
}
/**
* List marketplace access grants
*
* Lists direct, team, and org-wide grants for a marketplace.
*/
public getV1MarketplacesByMarketplaceIdAccess<ThrowOnError extends boolean = false>(
parameters: {
marketplaceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "marketplaceId" }] }]);
return (options?.client ?? this.client).get<
GetV1MarketplacesByMarketplaceIdAccessResponses,
GetV1MarketplacesByMarketplaceIdAccessErrors,
ThrowOnError
>({
url: "/v1/marketplaces/{marketplaceId}/access",
...options,
...params,
});
}
/**
* Grant marketplace access
*
* Creates or reactivates one access grant for a marketplace.
*/
public postV1MarketplacesByMarketplaceIdAccess<ThrowOnError extends boolean = false>(
parameters: {
marketplaceId: string;
orgMembershipId?: string;
teamId?: string;
orgWide?: boolean;
role?: "viewer" | "editor" | "manager";
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "marketplaceId" },
{ in: "body", key: "orgMembershipId" },
{ in: "body", key: "teamId" },
{ in: "body", key: "orgWide" },
{ in: "body", key: "role" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1MarketplacesByMarketplaceIdAccessResponses,
PostV1MarketplacesByMarketplaceIdAccessErrors,
ThrowOnError
>({
url: "/v1/marketplaces/{marketplaceId}/access",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Revoke marketplace access
*
* Soft-revokes one marketplace access grant.
*/
public deleteV1MarketplacesByMarketplaceIdAccessByGrantId<ThrowOnError extends boolean = false>(
parameters: {
marketplaceId: string;
grantId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "marketplaceId" },
{ in: "path", key: "grantId" },
],
},
],
);
return (options?.client ?? this.client).delete<
DeleteV1MarketplacesByMarketplaceIdAccessByGrantIdResponses,
DeleteV1MarketplacesByMarketplaceIdAccessByGrantIdErrors,
ThrowOnError
>({
url: "/v1/marketplaces/{marketplaceId}/access/{grantId}",
...options,
...params,
});
}
/**
* List connector accounts
*
* Lists connector accounts for the organization.
*/
public getV1ConnectorAccounts<ThrowOnError extends boolean = false>(
parameters?: {
cursor?: string;
limit?: number;
connectorType?: "github";
status?: "active" | "inactive" | "disconnected" | "error";
q?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "cursor" },
{ in: "query", key: "limit" },
{ in: "query", key: "connectorType" },
{ in: "query", key: "status" },
{ in: "query", key: "q" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1ConnectorAccountsResponses,
GetV1ConnectorAccountsErrors,
ThrowOnError
>({
url: "/v1/connector-accounts",
...options,
...params,
});
}
/**
* Create connector account
*
* Creates a connector account such as a GitHub App installation binding.
*/
public postV1ConnectorAccounts<ThrowOnError extends boolean = false>(
parameters?: {
connectorType?: "github";
remoteId?: string;
externalAccountRef?: string | null;
displayName?: string;
metadata?: {
[key: string]: unknown;
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "connectorType" },
{ in: "body", key: "remoteId" },
{ in: "body", key: "externalAccountRef" },
{ in: "body", key: "displayName" },
{ in: "body", key: "metadata" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConnectorAccountsResponses,
PostV1ConnectorAccountsErrors,
ThrowOnError
>({
url: "/v1/connector-accounts",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Get connector account
*
* Returns one connector account detail.
*/
public getV1ConnectorAccountsByConnectorAccountId<ThrowOnError extends boolean = false>(
parameters: {
connectorAccountId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorAccountId" }] }]);
return (options?.client ?? this.client).get<
GetV1ConnectorAccountsByConnectorAccountIdResponses,
GetV1ConnectorAccountsByConnectorAccountIdErrors,
ThrowOnError
>({
url: "/v1/connector-accounts/{connectorAccountId}",
...options,
...params,
});
}
/**
* Disconnect connector account
*
* Disconnects a connector account and cleans up all associated connector-managed records.
*/
public postV1ConnectorAccountsByConnectorAccountIdDisconnect<ThrowOnError extends boolean = false>(
parameters: {
connectorAccountId: string;
reason?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectorAccountId" },
{ in: "body", key: "reason" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConnectorAccountsByConnectorAccountIdDisconnectResponses,
PostV1ConnectorAccountsByConnectorAccountIdDisconnectErrors,
ThrowOnError
>({
url: "/v1/connector-accounts/{connectorAccountId}/disconnect",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List connector instances
*
* Lists connector instances visible to the current member.
*/
public getV1ConnectorInstances<ThrowOnError extends boolean = false>(
parameters?: {
cursor?: string;
limit?: number;
connectorAccountId?: string;
connectorType?: "github";
pluginId?: string;
status?: "active" | "disabled" | "archived" | "error";
q?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "cursor" },
{ in: "query", key: "limit" },
{ in: "query", key: "connectorAccountId" },
{ in: "query", key: "connectorType" },
{ in: "query", key: "pluginId" },
{ in: "query", key: "status" },
{ in: "query", key: "q" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1ConnectorInstancesResponses,
GetV1ConnectorInstancesErrors,
ThrowOnError
>({
url: "/v1/connector-instances",
...options,
...params,
});
}
/**
* Create connector instance
*
* Creates a new connector instance.
*/
public postV1ConnectorInstances<ThrowOnError extends boolean = false>(
parameters?: {
connectorAccountId?: string;
connectorType?: "github";
remoteId?: string | null;
name?: string;
config?: {
[key: string]: unknown;
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "connectorAccountId" },
{ in: "body", key: "connectorType" },
{ in: "body", key: "remoteId" },
{ in: "body", key: "name" },
{ in: "body", key: "config" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConnectorInstancesResponses,
PostV1ConnectorInstancesErrors,
ThrowOnError
>({
url: "/v1/connector-instances",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Get connector instance
*
* Returns one connector instance detail.
*/
public getV1ConnectorInstancesByConnectorInstanceId<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorInstanceId" }] }]);
return (options?.client ?? this.client).get<
GetV1ConnectorInstancesByConnectorInstanceIdResponses,
GetV1ConnectorInstancesByConnectorInstanceIdErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}",
...options,
...params,
});
}
/**
* Update connector instance
*
* Updates one connector instance.
*/
public patchV1ConnectorInstancesByConnectorInstanceId<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
remoteId?: string | null;
name?: string;
status?: "active" | "disabled" | "archived" | "error";
config?: {
[key: string]: unknown;
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectorInstanceId" },
{ in: "body", key: "remoteId" },
{ in: "body", key: "name" },
{ in: "body", key: "status" },
{ in: "body", key: "config" },
],
},
],
);
return (options?.client ?? this.client).patch<
PatchV1ConnectorInstancesByConnectorInstanceIdResponses,
PatchV1ConnectorInstancesByConnectorInstanceIdErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* archive connector instance
*
* archive a connector instance.
*/
public postV1ConnectorInstancesByConnectorInstanceIdArchive<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorInstanceId" }] }]);
return (options?.client ?? this.client).post<
PostV1ConnectorInstancesByConnectorInstanceIdArchiveResponses,
PostV1ConnectorInstancesByConnectorInstanceIdArchiveErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/archive",
...options,
...params,
});
}
/**
* disable connector instance
*
* disable a connector instance.
*/
public postV1ConnectorInstancesByConnectorInstanceIdDisable<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorInstanceId" }] }]);
return (options?.client ?? this.client).post<
PostV1ConnectorInstancesByConnectorInstanceIdDisableResponses,
PostV1ConnectorInstancesByConnectorInstanceIdDisableErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/disable",
...options,
...params,
});
}
/**
* enable connector instance
*
* enable a connector instance.
*/
public postV1ConnectorInstancesByConnectorInstanceIdEnable<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorInstanceId" }] }]);
return (options?.client ?? this.client).post<
PostV1ConnectorInstancesByConnectorInstanceIdEnableResponses,
PostV1ConnectorInstancesByConnectorInstanceIdEnableErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/enable",
...options,
...params,
});
}
/**
* Get connector instance configuration
*
* Returns the currently configured plugins and import stats for a connector instance.
*/
public getV1ConnectorInstancesByConnectorInstanceIdConfiguration<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorInstanceId" }] }]);
return (options?.client ?? this.client).get<
GetV1ConnectorInstancesByConnectorInstanceIdConfigurationResponses,
GetV1ConnectorInstancesByConnectorInstanceIdConfigurationErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/configuration",
...options,
...params,
});
}
/**
* Remove connector instance
*
* Removes a connector instance and deletes the plugins, mappings, config objects, and bindings associated with it.
*/
public postV1ConnectorInstancesByConnectorInstanceIdRemove<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorInstanceId" }] }]);
return (options?.client ?? this.client).post<
PostV1ConnectorInstancesByConnectorInstanceIdRemoveResponses,
PostV1ConnectorInstancesByConnectorInstanceIdRemoveErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/remove",
...options,
...params,
});
}
/**
* Set connector instance auto-import
*
* Enables or disables auto-import of new plugins on future push webhooks for a connector instance.
*/
public postV1ConnectorInstancesByConnectorInstanceIdAutoImport<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
autoImportNewPlugins?: boolean;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectorInstanceId" },
{ in: "body", key: "autoImportNewPlugins" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConnectorInstancesByConnectorInstanceIdAutoImportResponses,
PostV1ConnectorInstancesByConnectorInstanceIdAutoImportErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/auto-import",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Sync connector instance now
*
* Queues sync work for each connector target without sync work already queued or running.
*/
public postV1ConnectorInstancesByConnectorInstanceIdSyncNow<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorInstanceId" }] }]);
return (options?.client ?? this.client).post<
PostV1ConnectorInstancesByConnectorInstanceIdSyncNowResponses,
PostV1ConnectorInstancesByConnectorInstanceIdSyncNowErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/sync-now",
...options,
...params,
});
}
/**
* Get GitHub connector discovery
*
* Analyzes a GitHub connector target and returns discovered plugin candidates.
*/
public getV1ConnectorInstancesByConnectorInstanceIdDiscovery<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorInstanceId" }] }]);
return (options?.client ?? this.client).get<
GetV1ConnectorInstancesByConnectorInstanceIdDiscoveryResponses,
GetV1ConnectorInstancesByConnectorInstanceIdDiscoveryErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/discovery",
...options,
...params,
});
}
/**
* List GitHub discovery tree entries
*
* Pages through the normalized GitHub repository tree used during discovery.
*/
public getV1ConnectorInstancesByConnectorInstanceIdDiscoveryTree<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
cursor?: string;
limit?: number;
prefix?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectorInstanceId" },
{ in: "query", key: "cursor" },
{ in: "query", key: "limit" },
{ in: "query", key: "prefix" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1ConnectorInstancesByConnectorInstanceIdDiscoveryTreeResponses,
GetV1ConnectorInstancesByConnectorInstanceIdDiscoveryTreeErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/discovery/tree",
...options,
...params,
});
}
/**
* Apply GitHub discovery selection
*
* Creates OmniRush.ai plugins and connector mappings from selected discovery candidates.
*/
public postV1ConnectorInstancesByConnectorInstanceIdDiscoveryApply<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
autoImportNewPlugins?: boolean;
selectedKeys?: Array<string>;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectorInstanceId" },
{ in: "body", key: "autoImportNewPlugins" },
{ in: "body", key: "selectedKeys" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConnectorInstancesByConnectorInstanceIdDiscoveryApplyResponses,
PostV1ConnectorInstancesByConnectorInstanceIdDiscoveryApplyErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/discovery/apply",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List connector instance access grants
*
* Lists direct, team, and org-wide grants for a connector instance.
*/
public getV1ConnectorInstancesByConnectorInstanceIdAccess<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorInstanceId" }] }]);
return (options?.client ?? this.client).get<
GetV1ConnectorInstancesByConnectorInstanceIdAccessResponses,
GetV1ConnectorInstancesByConnectorInstanceIdAccessErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/access",
...options,
...params,
});
}
/**
* Grant connector instance access
*
* Creates or reactivates one access grant for a connector instance.
*/
public postV1ConnectorInstancesByConnectorInstanceIdAccess<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
orgMembershipId?: string;
teamId?: string;
orgWide?: boolean;
role?: "viewer" | "editor" | "manager";
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectorInstanceId" },
{ in: "body", key: "orgMembershipId" },
{ in: "body", key: "teamId" },
{ in: "body", key: "orgWide" },
{ in: "body", key: "role" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConnectorInstancesByConnectorInstanceIdAccessResponses,
PostV1ConnectorInstancesByConnectorInstanceIdAccessErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/access",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Revoke connector instance access
*
* Soft-revokes one connector instance access grant.
*/
public deleteV1ConnectorInstancesByConnectorInstanceIdAccessByGrantId<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
grantId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectorInstanceId" },
{ in: "path", key: "grantId" },
],
},
],
);
return (options?.client ?? this.client).delete<
DeleteV1ConnectorInstancesByConnectorInstanceIdAccessByGrantIdResponses,
DeleteV1ConnectorInstancesByConnectorInstanceIdAccessByGrantIdErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/access/{grantId}",
...options,
...params,
});
}
/**
* List connector targets
*
* Lists connector targets for one connector instance.
*/
public getV1ConnectorInstancesByConnectorInstanceIdTargets<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
cursor?: string;
limit?: number;
targetKind?: "repository_branch";
q?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectorInstanceId" },
{ in: "query", key: "cursor" },
{ in: "query", key: "limit" },
{ in: "query", key: "targetKind" },
{ in: "query", key: "q" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1ConnectorInstancesByConnectorInstanceIdTargetsResponses,
GetV1ConnectorInstancesByConnectorInstanceIdTargetsErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/targets",
...options,
...params,
});
}
/**
* Create connector target
*
* Creates a connector target under a connector instance.
*/
public postV1ConnectorInstancesByConnectorInstanceIdTargets<ThrowOnError extends boolean = false>(
parameters: {
connectorInstanceId: string;
connectorType?: "github";
remoteId?: string;
targetKind?: "repository_branch";
externalTargetRef?: string | null;
config?: {
[key: string]: unknown;
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectorInstanceId" },
{ in: "body", key: "connectorType" },
{ in: "body", key: "remoteId" },
{ in: "body", key: "targetKind" },
{ in: "body", key: "externalTargetRef" },
{ in: "body", key: "config" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConnectorInstancesByConnectorInstanceIdTargetsResponses,
PostV1ConnectorInstancesByConnectorInstanceIdTargetsErrors,
ThrowOnError
>({
url: "/v1/connector-instances/{connectorInstanceId}/targets",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Get connector target
*
* Returns one connector target detail.
*/
public getV1ConnectorTargetsByConnectorTargetId<ThrowOnError extends boolean = false>(
parameters: {
connectorTargetId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorTargetId" }] }]);
return (options?.client ?? this.client).get<
GetV1ConnectorTargetsByConnectorTargetIdResponses,
GetV1ConnectorTargetsByConnectorTargetIdErrors,
ThrowOnError
>({
url: "/v1/connector-targets/{connectorTargetId}",
...options,
...params,
});
}
/**
* Update connector target
*
* Updates one connector target.
*/
public patchV1ConnectorTargetsByConnectorTargetId<ThrowOnError extends boolean = false>(
parameters: {
connectorTargetId: string;
remoteId?: string;
externalTargetRef?: string | null;
config?: {
[key: string]: unknown;
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectorTargetId" },
{ in: "body", key: "remoteId" },
{ in: "body", key: "externalTargetRef" },
{ in: "body", key: "config" },
],
},
],
);
return (options?.client ?? this.client).patch<
PatchV1ConnectorTargetsByConnectorTargetIdResponses,
PatchV1ConnectorTargetsByConnectorTargetIdErrors,
ThrowOnError
>({
url: "/v1/connector-targets/{connectorTargetId}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Resync connector target
*
* Queues a manual resync for a connector target.
*/
public postV1ConnectorTargetsByConnectorTargetIdResync<ThrowOnError extends boolean = false>(
parameters: {
connectorTargetId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorTargetId" }] }]);
return (options?.client ?? this.client).post<
PostV1ConnectorTargetsByConnectorTargetIdResyncResponses,
PostV1ConnectorTargetsByConnectorTargetIdResyncErrors,
ThrowOnError
>({
url: "/v1/connector-targets/{connectorTargetId}/resync",
...options,
...params,
});
}
/**
* List connector mappings
*
* Lists mappings under a connector target.
*/
public getV1ConnectorTargetsByConnectorTargetIdMappings<ThrowOnError extends boolean = false>(
parameters: {
connectorTargetId: string;
cursor?: string;
limit?: number;
mappingKind?: "path" | "api" | "custom";
objectType?:
| "skill"
| "agent"
| "command"
| "tool"
| "mcp"
| "hook"
| "context"
| "custom"
| "script"
| "workflow"
| "app";
pluginId?: string;
q?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectorTargetId" },
{ in: "query", key: "cursor" },
{ in: "query", key: "limit" },
{ in: "query", key: "mappingKind" },
{ in: "query", key: "objectType" },
{ in: "query", key: "pluginId" },
{ in: "query", key: "q" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1ConnectorTargetsByConnectorTargetIdMappingsResponses,
GetV1ConnectorTargetsByConnectorTargetIdMappingsErrors,
ThrowOnError
>({
url: "/v1/connector-targets/{connectorTargetId}/mappings",
...options,
...params,
});
}
/**
* Create connector mapping
*
* Creates a connector mapping.
*/
public postV1ConnectorTargetsByConnectorTargetIdMappings<ThrowOnError extends boolean = false>(
parameters: {
connectorTargetId: string;
mappingKind?: "path" | "api" | "custom";
selector?: string;
objectType?:
| "skill"
| "agent"
| "command"
| "tool"
| "mcp"
| "hook"
| "context"
| "custom"
| "script"
| "workflow"
| "app";
pluginId?: string | null;
autoAddToPlugin?: boolean;
config?: {
[key: string]: unknown;
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectorTargetId" },
{ in: "body", key: "mappingKind" },
{ in: "body", key: "selector" },
{ in: "body", key: "objectType" },
{ in: "body", key: "pluginId" },
{ in: "body", key: "autoAddToPlugin" },
{ in: "body", key: "config" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConnectorTargetsByConnectorTargetIdMappingsResponses,
PostV1ConnectorTargetsByConnectorTargetIdMappingsErrors,
ThrowOnError
>({
url: "/v1/connector-targets/{connectorTargetId}/mappings",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Delete connector mapping
*
* Deletes one connector mapping.
*/
public deleteV1ConnectorMappingsByConnectorMappingId<ThrowOnError extends boolean = false>(
parameters: {
connectorMappingId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorMappingId" }] }]);
return (options?.client ?? this.client).delete<
DeleteV1ConnectorMappingsByConnectorMappingIdResponses,
DeleteV1ConnectorMappingsByConnectorMappingIdErrors,
ThrowOnError
>({
url: "/v1/connector-mappings/{connectorMappingId}",
...options,
...params,
});
}
/**
* Update connector mapping
*
* Updates one connector mapping.
*/
public patchV1ConnectorMappingsByConnectorMappingId<ThrowOnError extends boolean = false>(
parameters: {
connectorMappingId: string;
selector?: string;
objectType?:
| "skill"
| "agent"
| "command"
| "tool"
| "mcp"
| "hook"
| "context"
| "custom"
| "script"
| "workflow"
| "app";
pluginId?: string | null;
autoAddToPlugin?: boolean;
config?: {
[key: string]: unknown;
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectorMappingId" },
{ in: "body", key: "selector" },
{ in: "body", key: "objectType" },
{ in: "body", key: "pluginId" },
{ in: "body", key: "autoAddToPlugin" },
{ in: "body", key: "config" },
],
},
],
);
return (options?.client ?? this.client).patch<
PatchV1ConnectorMappingsByConnectorMappingIdResponses,
PatchV1ConnectorMappingsByConnectorMappingIdErrors,
ThrowOnError
>({
url: "/v1/connector-mappings/{connectorMappingId}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List connector sync events
*
* Lists connector sync events visible to the current member.
*/
public getV1ConnectorSyncEvents<ThrowOnError extends boolean = false>(
parameters?: {
cursor?: string;
limit?: number;
connectorInstanceId?: string;
connectorTargetId?: string;
eventType?: "push" | "installation" | "installation_repositories" | "repository" | "manual_resync";
status?: "pending" | "queued" | "running" | "completed" | "failed" | "partial" | "ignored";
q?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "cursor" },
{ in: "query", key: "limit" },
{ in: "query", key: "connectorInstanceId" },
{ in: "query", key: "connectorTargetId" },
{ in: "query", key: "eventType" },
{ in: "query", key: "status" },
{ in: "query", key: "q" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1ConnectorSyncEventsResponses,
GetV1ConnectorSyncEventsErrors,
ThrowOnError
>({
url: "/v1/connector-sync-events",
...options,
...params,
});
}
/**
* Get connector sync event
*
* Returns one connector sync event detail.
*/
public getV1ConnectorSyncEventsByConnectorSyncEventId<ThrowOnError extends boolean = false>(
parameters: {
connectorSyncEventId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorSyncEventId" }] }]);
return (options?.client ?? this.client).get<
GetV1ConnectorSyncEventsByConnectorSyncEventIdResponses,
GetV1ConnectorSyncEventsByConnectorSyncEventIdErrors,
ThrowOnError
>({
url: "/v1/connector-sync-events/{connectorSyncEventId}",
...options,
...params,
});
}
/**
* Retry connector sync event
*
* Re-queues one connector sync event.
*/
public postV1ConnectorSyncEventsByConnectorSyncEventIdRetry<ThrowOnError extends boolean = false>(
parameters: {
connectorSyncEventId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "connectorSyncEventId" }] }]);
return (options?.client ?? this.client).post<
PostV1ConnectorSyncEventsByConnectorSyncEventIdRetryResponses,
PostV1ConnectorSyncEventsByConnectorSyncEventIdRetryErrors,
ThrowOnError
>({
url: "/v1/connector-sync-events/{connectorSyncEventId}/retry",
...options,
...params,
});
}
/**
* Create GitHub connector account
*
* Persists one GitHub App installation as a connector account.
*/
public postV1ConnectorsGithubAccounts<ThrowOnError extends boolean = false>(
parameters?: {
installationId?: number;
accountLogin?: string;
accountType?: "Organization" | "User";
displayName?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "installationId" },
{ in: "body", key: "accountLogin" },
{ in: "body", key: "accountType" },
{ in: "body", key: "displayName" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConnectorsGithubAccountsResponses,
PostV1ConnectorsGithubAccountsErrors,
ThrowOnError
>({
url: "/v1/connectors/github/accounts",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Setup GitHub connector
*
* Creates a GitHub connector account, instance, target, and initial mappings in one flow.
*/
public postV1ConnectorsGithubSetup<ThrowOnError extends boolean = false>(
parameters?: {
installationId?: number;
connectorAccountId?: string;
connectorInstanceName?: string;
repositoryId?: number;
repositoryFullName?: string;
branch?: string;
ref?: string;
mappings?: Array<{
mappingKind: "path" | "api" | "custom";
selector: string;
objectType:
| "skill"
| "agent"
| "command"
| "tool"
| "mcp"
| "hook"
| "context"
| "custom"
| "script"
| "workflow"
| "app";
pluginId?: string | null;
autoAddToPlugin?: boolean;
config?: {
[key: string]: unknown;
};
}>;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "installationId" },
{ in: "body", key: "connectorAccountId" },
{ in: "body", key: "connectorInstanceName" },
{ in: "body", key: "repositoryId" },
{ in: "body", key: "repositoryFullName" },
{ in: "body", key: "branch" },
{ in: "body", key: "ref" },
{ in: "body", key: "mappings" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConnectorsGithubSetupResponses,
PostV1ConnectorsGithubSetupErrors,
ThrowOnError
>({
url: "/v1/connectors/github/setup",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List GitHub repositories
*
* Lists repositories visible to one GitHub connector account.
*/
public getV1ConnectorsGithubAccountsByConnectorAccountIdRepositories<ThrowOnError extends boolean = false>(
parameters: {
connectorAccountId: string;
cursor?: string;
limit?: number;
q?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "connectorAccountId" },
{ in: "query", key: "cursor" },
{ in: "query", key: "limit" },
{ in: "query", key: "q" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1ConnectorsGithubAccountsByConnectorAccountIdRepositoriesResponses,
GetV1ConnectorsGithubAccountsByConnectorAccountIdRepositoriesErrors,
ThrowOnError
>({
url: "/v1/connectors/github/accounts/{connectorAccountId}/repositories",
...options,
...params,
});
}
/**
* Validate GitHub target
*
* Validates one repository-branch target before persisting it.
*/
public postV1ConnectorsGithubValidateTarget<ThrowOnError extends boolean = false>(
parameters?: {
installationId?: number;
repositoryId?: number;
repositoryFullName?: string;
branch?: string;
ref?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "installationId" },
{ in: "body", key: "repositoryId" },
{ in: "body", key: "repositoryFullName" },
{ in: "body", key: "branch" },
{ in: "body", key: "ref" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1ConnectorsGithubValidateTargetResponses,
PostV1ConnectorsGithubValidateTargetErrors,
ThrowOnError
>({
url: "/v1/connectors/github/validate-target",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Create organization role
*
* Creates a custom organization role with a named permission map.
*/
public postV1Roles<ThrowOnError extends boolean = false>(
parameters?: {
roleName?: string;
permission?: {
[key: string]: Array<string>;
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "roleName" },
{ in: "body", key: "permission" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1RolesResponses, PostV1RolesErrors, ThrowOnError>({
url: "/v1/roles",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Delete organization role
*
* Deletes a custom organization role after confirming that no members or pending invitations still depend on it.
*/
public deleteV1RolesByRoleId<ThrowOnError extends boolean = false>(
parameters: {
roleId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "roleId" }] }]);
return (options?.client ?? this.client).delete<
DeleteV1RolesByRoleIdResponses,
DeleteV1RolesByRoleIdErrors,
ThrowOnError
>({
url: "/v1/roles/{roleId}",
...options,
...params,
});
}
/**
* Update organization role
*
* Updates a custom organization role and propagates role name changes to members and pending invitations.
*/
public patchV1RolesByRoleId<ThrowOnError extends boolean = false>(
parameters: {
roleId: string;
roleName?: string;
permission?: {
[key: string]: Array<string>;
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "roleId" },
{ in: "body", key: "roleName" },
{ in: "body", key: "permission" },
],
},
],
);
return (options?.client ?? this.client).patch<
PatchV1RolesByRoleIdResponses,
PatchV1RolesByRoleIdErrors,
ThrowOnError
>({
url: "/v1/roles/{roleId}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List assigned marketplace capabilities
*
* Returns grant-scoped marketplace capability references for the current member. Organization administration visibility never expands this desktop and agent inventory.
*/
public getV1ResourcesMarketplaceCapabilities<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<
GetV1ResourcesMarketplaceCapabilitiesResponses,
GetV1ResourcesMarketplaceCapabilitiesErrors,
ThrowOnError
>({ url: "/v1/resources/marketplace-capabilities", ...options });
}
/**
* Get accessible resource snapshot
*
* Returns IDs and update timestamps for cloud resources visible to the current organization member.
*/
public getV1Resources<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1ResourcesResponses, GetV1ResourcesErrors, ThrowOnError>({
url: "/v1/resources",
...options,
});
}
/**
* Delete teams by stable key
*/
public deleteV1TeamsByKeyByExternalKey<ThrowOnError extends boolean = false>(
parameters: {
externalKey: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "externalKey" }] }]);
return (options?.client ?? this.client).delete<DeleteV1TeamsByKeyByExternalKeyResponses, unknown, ThrowOnError>({
url: "/v1/teams/by-key/{externalKey}",
...options,
...params,
});
}
/**
* Read teams by stable key
*/
public getV1TeamsByKeyByExternalKey<ThrowOnError extends boolean = false>(
parameters: {
externalKey: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "externalKey" }] }]);
return (options?.client ?? this.client).get<
GetV1TeamsByKeyByExternalKeyResponses,
GetV1TeamsByKeyByExternalKeyErrors,
ThrowOnError
>({
url: "/v1/teams/by-key/{externalKey}",
...options,
...params,
});
}
/**
* Apply teams by stable key
*
* Creates or replaces an organization-scoped resource. Names do not identify resources; existing unkeyed resources are never adopted automatically. Assignments are replaced. Omitted write-only secrets are preserved. Concurrent writes are last-write-wins; conditional headers are not supported on this route.
*/
public putV1TeamsByKeyByExternalKey<ThrowOnError extends boolean = false>(
parameters: {
externalKey: string;
name?: string;
memberIds?: Array<string>;
grantsOrganizationAdmin?: boolean;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "externalKey" },
{ in: "body", key: "name" },
{ in: "body", key: "memberIds" },
{ in: "body", key: "grantsOrganizationAdmin" },
],
},
],
);
return (options?.client ?? this.client).put<
PutV1TeamsByKeyByExternalKeyResponses,
PutV1TeamsByKeyByExternalKeyErrors,
ThrowOnError
>({
url: "/v1/teams/by-key/{externalKey}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Delete team
*
* Deletes a team and removes its related team-membership records.
*/
public deleteV1TeamsByTeamId<ThrowOnError extends boolean = false>(
parameters: {
teamId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "teamId" }] }]);
return (options?.client ?? this.client).delete<
DeleteV1TeamsByTeamIdResponses,
DeleteV1TeamsByTeamIdErrors,
ThrowOnError
>({
url: "/v1/teams/{teamId}",
...options,
...params,
});
}
/**
* Read teams by id
*/
public getV1TeamsByTeamId<ThrowOnError extends boolean = false>(
parameters: {
teamId: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "teamId" }] }]);
return (options?.client ?? this.client).get<GetV1TeamsByTeamIdResponses, GetV1TeamsByTeamIdErrors, ThrowOnError>({
url: "/v1/teams/{teamId}",
...options,
...params,
});
}
/**
* Update team
*
* Updates a team's name and-or membership list within an organization.
*/
public patchV1TeamsByTeamId<ThrowOnError extends boolean = false>(
parameters: {
teamId: string;
name?: string;
memberIds?: Array<string>;
grantsOrganizationAdmin?: boolean;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "teamId" },
{ in: "body", key: "name" },
{ in: "body", key: "memberIds" },
{ in: "body", key: "grantsOrganizationAdmin" },
],
},
],
);
return (options?.client ?? this.client).patch<
PatchV1TeamsByTeamIdResponses,
PatchV1TeamsByTeamIdErrors,
ThrowOnError
>({
url: "/v1/teams/{teamId}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Create team
*
* Creates a team inside an organization and can optionally attach existing organization members to it.
*/
public postV1Teams<ThrowOnError extends boolean = false>(
parameters?: {
name?: string;
memberIds?: Array<string>;
grantsOrganizationAdmin?: boolean;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "name" },
{ in: "body", key: "memberIds" },
{ in: "body", key: "grantsOrganizationAdmin" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1TeamsResponses, PostV1TeamsErrors, ThrowOnError>({
url: "/v1/teams",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Get desktop app version metadata
*
* Returns the supported desktop app range, stable published desktop releases from GitHub, and, when available, this deployment's web app base URL so desktop clients only need to be configured with the API URL.
*/
public getV1AppVersion<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GetV1AppVersionResponses, unknown, ThrowOnError>({
url: "/v1/app-version",
...options,
});
}
/**
* GitHub webhook ingress
*
* Verifies a GitHub App webhook signature against the raw request body, then records any relevant sync work.
*/
public postV1WebhooksConnectorsGithub<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).post<
PostV1WebhooksConnectorsGithubResponses,
PostV1WebhooksConnectorsGithubErrors,
ThrowOnError
>({ url: "/v1/webhooks/connectors/github", ...options });
}
/**
* Record worker heartbeat
*
* Accepts signed heartbeat and recent-activity updates from a worker so Den can track worker health and recent usage.
*/
public postV1WorkersByIdActivityHeartbeat<ThrowOnError extends boolean = false>(
parameters: {
id: string;
sentAt?: string;
isActiveRecently?: boolean;
lastActivityAt?: string | null;
openSessionCount?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "id" },
{ in: "body", key: "sentAt" },
{ in: "body", key: "isActiveRecently" },
{ in: "body", key: "lastActivityAt" },
{ in: "body", key: "openSessionCount" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1WorkersByIdActivityHeartbeatResponses,
PostV1WorkersByIdActivityHeartbeatErrors,
ThrowOnError
>({
url: "/v1/workers/{id}/activity-heartbeat",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List workers
*
* Lists the workers that belong to the caller's active organization, including each worker's latest known instance state.
*/
public getV1Workers<ThrowOnError extends boolean = false>(
parameters?: {
limit?: number;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "limit" }] }]);
return (options?.client ?? this.client).get<GetV1WorkersResponses, GetV1WorkersErrors, ThrowOnError>({
url: "/v1/workers",
...options,
...params,
});
}
/**
* Create worker
*
* Creates a local worker or cloud worker for the active organization and returns the initial tokens needed to connect to it.
*/
public postV1Workers<ThrowOnError extends boolean = false>(
parameters?: {
name?: string;
description?: string;
destination?: "local" | "cloud";
workspacePath?: string;
sandboxBackend?: string;
imageVersion?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "body", key: "name" },
{ in: "body", key: "description" },
{ in: "body", key: "destination" },
{ in: "body", key: "workspacePath" },
{ in: "body", key: "sandboxBackend" },
{ in: "body", key: "imageVersion" },
],
},
],
);
return (options?.client ?? this.client).post<PostV1WorkersResponses, PostV1WorkersErrors, ThrowOnError>({
url: "/v1/workers",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Delete worker
*
* Deletes a worker and cascades cleanup for its tokens, runtime records, and provider-specific resources.
*/
public deleteV1WorkersById<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
return (options?.client ?? this.client).delete<
DeleteV1WorkersByIdResponses,
DeleteV1WorkersByIdErrors,
ThrowOnError
>({
url: "/v1/workers/{id}",
...options,
...params,
});
}
/**
* Get worker
*
* Returns one worker from the active organization together with its latest provisioned instance details.
*/
public getV1WorkersById<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
return (options?.client ?? this.client).get<GetV1WorkersByIdResponses, GetV1WorkersByIdErrors, ThrowOnError>({
url: "/v1/workers/{id}",
...options,
...params,
});
}
/**
* Update worker
*
* Renames a worker, but only when the caller is the user who originally created that worker.
*/
public patchV1WorkersById<ThrowOnError extends boolean = false>(
parameters: {
id: string;
name?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "id" },
{ in: "body", key: "name" },
],
},
],
);
return (options?.client ?? this.client).patch<PatchV1WorkersByIdResponses, PatchV1WorkersByIdErrors, ThrowOnError>({
url: "/v1/workers/{id}",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Get worker connection tokens
*
* Returns connection tokens and the resolved OmniRush.ai connect URL for an existing worker.
*/
public postV1WorkersByIdTokens<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
return (options?.client ?? this.client).post<
PostV1WorkersByIdTokensResponses,
PostV1WorkersByIdTokensErrors,
ThrowOnError
>({
url: "/v1/workers/{id}/tokens",
...options,
...params,
});
}
/**
* Get worker runtime status
*
* Fetches runtime version and status information from a specific worker's runtime endpoint.
*/
public getV1WorkersByIdRuntime<ThrowOnError extends boolean = false>(
parameters: {
id: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "id" }] }]);
return (options?.client ?? this.client).get<
GetV1WorkersByIdRuntimeResponses,
GetV1WorkersByIdRuntimeErrors,
ThrowOnError
>({
url: "/v1/workers/{id}/runtime",
...options,
...params,
});
}
/**
* Upgrade worker runtime
*
* Forwards a runtime upgrade request to a specific worker and returns the worker runtime's response.
*/
public postV1WorkersByIdRuntimeUpgrade<ThrowOnError extends boolean = false>(
parameters: {
id: string;
body: {
[key: string]: unknown;
};
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "path", key: "id" },
{ key: "body", map: "body" },
],
},
],
);
return (options?.client ?? this.client).post<
PostV1WorkersByIdRuntimeUpgradeResponses,
PostV1WorkersByIdRuntimeUpgradeErrors,
ThrowOnError
>({
url: "/v1/workers/{id}/runtime/upgrade",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* Mint MCP access token
*
* Mints an org-scoped MCP access token for the caller's active organization so first-party clients can connect to the Den MCP server without a separate browser OAuth flow.
*/
public postV1McpToken<ThrowOnError extends boolean = false>(
parameters?: {
scopes?: Array<"mcp:read" | "mcp:write">;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "scopes" }] }]);
return (options?.client ?? this.client).post<PostV1McpTokenResponses, PostV1McpTokenErrors, ThrowOnError>({
url: "/v1/mcp/token",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
public getWellKnownOauthProtectedResource<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<GetWellKnownOauthProtectedResourceResponses, unknown, ThrowOnError>({
url: "/.well-known/oauth-protected-resource",
...options,
});
}
public getWellKnownOauthProtectedResourceMcp<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<GetWellKnownOauthProtectedResourceMcpResponses, unknown, ThrowOnError>({
url: "/.well-known/oauth-protected-resource/mcp",
...options,
});
}
public getMcpWellKnownOauthProtectedResource<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<GetMcpWellKnownOauthProtectedResourceResponses, unknown, ThrowOnError>({
url: "/mcp/.well-known/oauth-protected-resource",
...options,
});
}
public getWellKnownOauthProtectedResourceMcpAgent<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<
GetWellKnownOauthProtectedResourceMcpAgentResponses,
unknown,
ThrowOnError
>({ url: "/.well-known/oauth-protected-resource/mcp/agent", ...options });
}
public getMcpAgentWellKnownOauthProtectedResource<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<
GetMcpAgentWellKnownOauthProtectedResourceResponses,
unknown,
ThrowOnError
>({ url: "/mcp/agent/.well-known/oauth-protected-resource", ...options });
}
public getWellKnownOauthProtectedResourceMcpAdmin<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<
GetWellKnownOauthProtectedResourceMcpAdminResponses,
unknown,
ThrowOnError
>({ url: "/.well-known/oauth-protected-resource/mcp/admin", ...options });
}
public getMcpAdminWellKnownOauthProtectedResource<ThrowOnError extends boolean = false>(
options?: Options<never, ThrowOnError>,
) {
return (options?.client ?? this.client).get<
GetMcpAdminWellKnownOauthProtectedResourceResponses,
unknown,
ThrowOnError
>({ url: "/mcp/admin/.well-known/oauth-protected-resource", ...options });
}
/**
* Ingest telemetry events
*
* Receives a batch of telemetry events from the OmniRush.ai app or workers. Auth provides org and member identity. Unknown event types and disallowed fields are dropped. Always returns 204.
*/
public postV1TelemetryIngest<ThrowOnError extends boolean = false>(
parameters?: {
events?: Array<{
type: string;
timestamp: string;
source?: string;
sessionId?: string;
durationMs?: number;
success?: boolean;
dimensions?: Array<{
type: string;
value?: string;
label: string;
metadata?: {
[key: string]: unknown;
};
}>;
}>;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "events" }] }]);
return (options?.client ?? this.client).post<
PostV1TelemetryIngestResponses,
PostV1TelemetryIngestErrors,
ThrowOnError
>({
url: "/v1/telemetry/ingest",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
});
}
/**
* List telemetry dimension values
*
* Returns unique analytics dimension values for the active organization, such as project labels for the project selector.
*/
public getV1TelemetryDimensions<ThrowOnError extends boolean = false>(
parameters: {
type: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "type" }] }]);
return (options?.client ?? this.client).get<
GetV1TelemetryDimensionsResponses,
GetV1TelemetryDimensionsErrors,
ThrowOnError
>({
url: "/v1/telemetry/dimensions",
...options,
...params,
});
}
/**
* Get adoption metrics
*
* Returns org adoption metrics: member count, pending invites, active members in 7d and 30d windows, and a 12-week weekly active member trend.
*/
public getV1TelemetryAdoption<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<
GetV1TelemetryAdoptionResponses,
GetV1TelemetryAdoptionErrors,
ThrowOnError
>({ url: "/v1/telemetry/adoption", ...options });
}
/**
* Get usage analytics
*
* Returns Layer 1 (who is using AI) and Layer 2 (how often) analytics for the active org: member counts, active members, session and task volume in 7d/30d windows, average task duration, model usage and selection in 30d, and a 12-week trend of active members, sessions, and tasks.
*/
public getV1TelemetryAnalytics<ThrowOnError extends boolean = false>(
parameters?: {
dimensionType?: string;
dimensionValue?: string;
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams(
[parameters],
[
{
args: [
{ in: "query", key: "dimensionType" },
{ in: "query", key: "dimensionValue" },
],
},
],
);
return (options?.client ?? this.client).get<
GetV1TelemetryAnalyticsResponses,
GetV1TelemetryAnalyticsErrors,
ThrowOnError
>({
url: "/v1/telemetry/analytics",
...options,
...params,
});
}
}