import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; export declare class Integrations extends ClientSDK { /** * List all integrations * * @remarks * List all the channels integrations created in the organization */ list(idempotencyKey?: string | undefined, options?: RequestOptions): Promise; /** * Create an integration * * @remarks * Create an integration for the current environment the user is based on the API key provided. * Each provider supports different credentials, check the provider documentation for more details. */ create(createIntegrationRequestDto: components.CreateIntegrationRequestDto, idempotencyKey?: string | undefined, options?: RequestOptions): Promise; /** * Update an integration * * @remarks * Update an integration by its unique key identifier **integrationId**. * Each provider supports different credentials, check the provider documentation for more details. */ update(updateIntegrationRequestDto: components.UpdateIntegrationRequestDto, integrationId: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise; /** * Delete an integration * * @remarks * Delete an integration by its unique key identifier **integrationId**. * This action is irreversible. */ delete(integrationId: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise; /** * Auto-configure an integration for inbound webhooks * * @remarks * Auto-configure an integration by its unique key identifier **integrationId** for inbound webhook support. * This will automatically generate required webhook signing keys and configure webhook endpoints. */ integrationsControllerAutoConfigureIntegration(integrationId: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise; /** * Update integration as primary * * @remarks * Update an integration as **primary** by its unique key identifier **integrationId**. * This API will set the integration as primary for that channel in the current environment. * Primary integration is used to deliver notification for sms and email channels in the workflow. */ setAsPrimary(integrationId: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise; /** * List active integrations * * @remarks * List all the active integrations created in the organization */ listActive(idempotencyKey?: string | undefined, options?: RequestOptions): Promise; /** * Generate OAuth URL for a workspace/tenant connection * * @remarks * Generate an OAuth URL that creates a workspace or tenant-level channel connection (Slack workspace install or MS Teams admin consent). * The generated URL expires after 5 minutes. */ generateConnectOAuthUrl(generateConnectOauthUrlRequestDto: components.GenerateConnectOauthUrlRequestDto, idempotencyKey?: string | undefined, options?: RequestOptions): Promise; /** * Generate OAuth URL to link a subscriber user identity * * @remarks * Generate an OAuth URL that links a specific subscriber to their chat identity (Slack user ID or MS Teams user OID). * The generated URL expires after 5 minutes. */ generateLinkUserOAuthUrl(generateLinkUserOauthUrlRequestDto: components.GenerateLinkUserOauthUrlRequestDto, idempotencyKey?: string | undefined, options?: RequestOptions): Promise; /** * Generate chat OAuth URL * * @remarks * **Deprecated** — use `POST /integrations/channel-connections/oauth` (connect) or `POST /integrations/channel-endpoints/oauth` (link_user) instead. * Generate an OAuth URL for chat integrations like Slack and MS Teams. * This URL allows subscribers to authorize the integration, enabling the system to send messages * through their chat workspace. The generated URL expires after 5 minutes. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ generateChatOAuthUrl(generateChatOauthUrlRequestDto: components.GenerateChatOauthUrlRequestDto, idempotencyKey?: string | undefined, options?: RequestOptions): Promise; } //# sourceMappingURL=integrations.d.ts.map