// Copyright 2026 Arctel.net // SPDX-License-Identifier: Apache-2.0 import { BaseService } from '@/lib/services/core'; import type { BindMessageChannelRequest, MessageBinding, PublicMessageChannel, } from './types'; export class UserMessageGatewayService extends BaseService { protected static readonly basePath = '/api/v1/message-gateway'; static async listBindings(): Promise { return this.get('/bindings'); } static async listChannels(): Promise { return this.get('/channels'); } static async bind(data: BindMessageChannelRequest): Promise { return this.post('/bindings', data); } static async unbind(id: string): Promise { return this.delete(`/bindings/${id}`); } }