/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { channelsDisconnect } from "../funcs/channels-disconnect.js"; import { channelsGet } from "../funcs/channels-get.js"; import { channelsLink } from "../funcs/channels-link.js"; import { channelsList } from "../funcs/channels-list.js"; import { channelsSlackManifest } from "../funcs/channels-slack-manifest.js"; import { channelsStatus } from "../funcs/channels-status.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 Channels extends ClientSDK { /** * List available channels */ async list( options?: RequestOptions, ): Promise { return unwrapAsync(channelsList( this, options, )); } /** * Get channel info and available endpoints */ async get( request: operations.GetRequest, options?: RequestOptions, ): Promise { return unwrapAsync(channelsGet( this, request, options, )); } /** * Create a linking code for a channel * * @remarks * Generates a short-lived linking code that pairs a user's wallet with an agent * on the specified channel. The response includes a URL or action that the user * must follow to complete the linking process (QR code for WhatsApp, OAuth redirect * for Slack/Discord, bot link for Telegram). */ async link( request: operations.LinkRequest, options?: RequestOptions, ): Promise { return unwrapAsync(channelsLink( this, request, options, )); } /** * Check connection status and list routes */ async status( request: operations.StatusRequest, options?: RequestOptions, ): Promise { return unwrapAsync(channelsStatus( this, request, options, )); } /** * Disconnect routes for a channel */ async disconnect( request: operations.DisconnectRequest, options?: RequestOptions, ): Promise { return unwrapAsync(channelsDisconnect( this, request, options, )); } /** * Get Slack app manifest */ async slackManifest( options?: RequestOptions, ): Promise { return unwrapAsync(channelsSlackManifest( this, options, )); } }