/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 1c730525bb1b */ import { slackIntegrationInstallUrl } from "../funcs/slackIntegrationInstallUrl.js"; import { slackIntegrationListChannels } from "../funcs/slackIntegrationListChannels.js"; import { slackIntegrationSetNotificationChannel } from "../funcs/slackIntegrationSetNotificationChannel.js"; import { slackIntegrationStatus } from "../funcs/slackIntegrationStatus.js"; import { slackIntegrationUninstall } from "../funcs/slackIntegrationUninstall.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class SlackIntegration extends ClientSDK { /** * Generate the Slack OAuth consent URL for this workspace. */ async installUrl( request?: operations.SlackIntegrationInstallUrlRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(slackIntegrationInstallUrl( this, request, options, )); } /** * Return the Slack install for this workspace (if any). */ async status( request?: operations.SlackIntegrationStatusRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(slackIntegrationStatus( this, request, options, )); } /** * List public Slack channels for this workspace's install. Used by the dashboard's notification-channel picker. */ async listChannels( request?: operations.SlackIntegrationChannelsRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(slackIntegrationListChannels( this, request, options, )); } /** * Configure which Slack channel receives ai-agent monitor reports. */ async setNotificationChannel( request?: models.SlackNotificationChannelRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(slackIntegrationSetNotificationChannel( this, request, options, )); } /** * Uninstall the Slack integration for this workspace. Revokes the bot token at Slack and deletes the row. */ async uninstall( request?: operations.SlackIntegrationUninstallRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(slackIntegrationUninstall( this, request, options, )); } }