/** * Linkbreakers API * This is a documentation of all the APIs of Linkbreakers * * The version of the OpenAPI document: 1.118.3 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { CompleteSlackOAuthRequest, CompleteSlackOAuthResponse, GetSlackIntegrationResponse, GetSlackOAuthURLResponse, ListSlackChannelsResponse, TestSlackIntegrationResponse, UpdateSlackIntegrationRequest, UpdateSlackIntegrationResponse } from '../models/index'; export interface SlackIntegrationsServiceCompleteOAuthRequest { completeSlackOAuthRequest: CompleteSlackOAuthRequest; } export interface SlackIntegrationsServiceTestRequest { body: object; } export interface SlackIntegrationsServiceUpdateRequest { updateSlackIntegrationRequest: UpdateSlackIntegrationRequest; } /** * SlackIntegrationsApi - interface * * @export * @interface SlackIntegrationsApiInterface */ export interface SlackIntegrationsApiInterface { /** * Creates request options for slackIntegrationsServiceCompleteOAuth without sending the request * @param {CompleteSlackOAuthRequest} completeSlackOAuthRequest * @throws {RequiredError} * @memberof SlackIntegrationsApiInterface */ slackIntegrationsServiceCompleteOAuthRequestOpts(requestParameters: SlackIntegrationsServiceCompleteOAuthRequest): Promise; /** * Exchanges the Slack authorization code for a bot token and creates the workspace integration. * @summary Complete Slack OAuth * @param {CompleteSlackOAuthRequest} completeSlackOAuthRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SlackIntegrationsApiInterface */ slackIntegrationsServiceCompleteOAuthRaw(requestParameters: SlackIntegrationsServiceCompleteOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Exchanges the Slack authorization code for a bot token and creates the workspace integration. * Complete Slack OAuth */ slackIntegrationsServiceCompleteOAuth(requestParameters: SlackIntegrationsServiceCompleteOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for slackIntegrationsServiceDelete without sending the request * @throws {RequiredError} * @memberof SlackIntegrationsApiInterface */ slackIntegrationsServiceDeleteRequestOpts(): Promise; /** * Disconnect and remove the Slack integration from the workspace. * @summary Disconnect Slack integration * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SlackIntegrationsApiInterface */ slackIntegrationsServiceDeleteRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Disconnect and remove the Slack integration from the workspace. * Disconnect Slack integration */ slackIntegrationsServiceDelete(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for slackIntegrationsServiceGet without sending the request * @throws {RequiredError} * @memberof SlackIntegrationsApiInterface */ slackIntegrationsServiceGetRequestOpts(): Promise; /** * Retrieve the Slack integration configuration for the workspace. * @summary Get Slack integration * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SlackIntegrationsApiInterface */ slackIntegrationsServiceGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Retrieve the Slack integration configuration for the workspace. * Get Slack integration */ slackIntegrationsServiceGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for slackIntegrationsServiceGetOAuthURL without sending the request * @throws {RequiredError} * @memberof SlackIntegrationsApiInterface */ slackIntegrationsServiceGetOAuthURLRequestOpts(): Promise; /** * Returns the Slack OAuth authorization URL to initiate the Add to Slack flow. * @summary Get Slack OAuth URL * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SlackIntegrationsApiInterface */ slackIntegrationsServiceGetOAuthURLRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Returns the Slack OAuth authorization URL to initiate the Add to Slack flow. * Get Slack OAuth URL */ slackIntegrationsServiceGetOAuthURL(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for slackIntegrationsServiceListChannels without sending the request * @throws {RequiredError} * @memberof SlackIntegrationsApiInterface */ slackIntegrationsServiceListChannelsRequestOpts(): Promise; /** * List available Slack channels the bot can send notifications to. * @summary List Slack channels * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SlackIntegrationsApiInterface */ slackIntegrationsServiceListChannelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List available Slack channels the bot can send notifications to. * List Slack channels */ slackIntegrationsServiceListChannels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for slackIntegrationsServiceTest without sending the request * @param {object} body * @throws {RequiredError} * @memberof SlackIntegrationsApiInterface */ slackIntegrationsServiceTestRequestOpts(requestParameters: SlackIntegrationsServiceTestRequest): Promise; /** * Send a test notification to verify the Slack integration is working. * @summary Test Slack integration * @param {object} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SlackIntegrationsApiInterface */ slackIntegrationsServiceTestRaw(requestParameters: SlackIntegrationsServiceTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Send a test notification to verify the Slack integration is working. * Test Slack integration */ slackIntegrationsServiceTest(requestParameters: SlackIntegrationsServiceTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for slackIntegrationsServiceUpdate without sending the request * @param {UpdateSlackIntegrationRequest} updateSlackIntegrationRequest * @throws {RequiredError} * @memberof SlackIntegrationsApiInterface */ slackIntegrationsServiceUpdateRequestOpts(requestParameters: SlackIntegrationsServiceUpdateRequest): Promise; /** * Update the Slack integration configuration (channel, triggers, status). * @summary Update Slack integration * @param {UpdateSlackIntegrationRequest} updateSlackIntegrationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SlackIntegrationsApiInterface */ slackIntegrationsServiceUpdateRaw(requestParameters: SlackIntegrationsServiceUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update the Slack integration configuration (channel, triggers, status). * Update Slack integration */ slackIntegrationsServiceUpdate(requestParameters: SlackIntegrationsServiceUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * */ export declare class SlackIntegrationsApi extends runtime.BaseAPI implements SlackIntegrationsApiInterface { /** * Creates request options for slackIntegrationsServiceCompleteOAuth without sending the request */ slackIntegrationsServiceCompleteOAuthRequestOpts(requestParameters: SlackIntegrationsServiceCompleteOAuthRequest): Promise; /** * Exchanges the Slack authorization code for a bot token and creates the workspace integration. * Complete Slack OAuth */ slackIntegrationsServiceCompleteOAuthRaw(requestParameters: SlackIntegrationsServiceCompleteOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Exchanges the Slack authorization code for a bot token and creates the workspace integration. * Complete Slack OAuth */ slackIntegrationsServiceCompleteOAuth(requestParameters: SlackIntegrationsServiceCompleteOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for slackIntegrationsServiceDelete without sending the request */ slackIntegrationsServiceDeleteRequestOpts(): Promise; /** * Disconnect and remove the Slack integration from the workspace. * Disconnect Slack integration */ slackIntegrationsServiceDeleteRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Disconnect and remove the Slack integration from the workspace. * Disconnect Slack integration */ slackIntegrationsServiceDelete(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for slackIntegrationsServiceGet without sending the request */ slackIntegrationsServiceGetRequestOpts(): Promise; /** * Retrieve the Slack integration configuration for the workspace. * Get Slack integration */ slackIntegrationsServiceGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Retrieve the Slack integration configuration for the workspace. * Get Slack integration */ slackIntegrationsServiceGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for slackIntegrationsServiceGetOAuthURL without sending the request */ slackIntegrationsServiceGetOAuthURLRequestOpts(): Promise; /** * Returns the Slack OAuth authorization URL to initiate the Add to Slack flow. * Get Slack OAuth URL */ slackIntegrationsServiceGetOAuthURLRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Returns the Slack OAuth authorization URL to initiate the Add to Slack flow. * Get Slack OAuth URL */ slackIntegrationsServiceGetOAuthURL(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for slackIntegrationsServiceListChannels without sending the request */ slackIntegrationsServiceListChannelsRequestOpts(): Promise; /** * List available Slack channels the bot can send notifications to. * List Slack channels */ slackIntegrationsServiceListChannelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List available Slack channels the bot can send notifications to. * List Slack channels */ slackIntegrationsServiceListChannels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for slackIntegrationsServiceTest without sending the request */ slackIntegrationsServiceTestRequestOpts(requestParameters: SlackIntegrationsServiceTestRequest): Promise; /** * Send a test notification to verify the Slack integration is working. * Test Slack integration */ slackIntegrationsServiceTestRaw(requestParameters: SlackIntegrationsServiceTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Send a test notification to verify the Slack integration is working. * Test Slack integration */ slackIntegrationsServiceTest(requestParameters: SlackIntegrationsServiceTestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for slackIntegrationsServiceUpdate without sending the request */ slackIntegrationsServiceUpdateRequestOpts(requestParameters: SlackIntegrationsServiceUpdateRequest): Promise; /** * Update the Slack integration configuration (channel, triggers, status). * Update Slack integration */ slackIntegrationsServiceUpdateRaw(requestParameters: SlackIntegrationsServiceUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update the Slack integration configuration (channel, triggers, status). * Update Slack integration */ slackIntegrationsServiceUpdate(requestParameters: SlackIntegrationsServiceUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }