/** * 10DLC Campaign Registry namespace — brands, campaigns, orders, numbers. */ import type { HttpClient } from '../HttpClient.js'; import type { QueryParams } from '../types.js'; import { BaseResource } from '../base/BaseResource.js'; /** 10DLC brand management. */ export declare class RegistryBrands extends BaseResource { constructor(http: HttpClient, basePath: string); /** * List all 10DLC brands in the project. * * @param params - Optional filter / pagination query parameters. * @returns A paginated list of brands. * @throws {RestError} On any non-2xx HTTP response. */ list(params?: QueryParams): Promise; /** * Register a new 10DLC brand. * * @param body - Brand registration payload (EIN, legal name, etc.). * @returns The newly-registered brand record. * @throws {RestError} On any non-2xx HTTP response. */ create(body: any): Promise; /** * Fetch a brand by ID. * * @param brandId - Unique identifier of the brand. * @returns The brand record. * @throws {RestError} On any non-2xx HTTP response (including `404`). */ get(brandId: string): Promise; /** * List campaigns registered under a brand. * * @param brandId - Unique identifier of the brand. * @param params - Optional filter / pagination query parameters. * @returns A paginated list of campaigns. * @throws {RestError} On any non-2xx HTTP response. */ listCampaigns(brandId: string, params?: QueryParams): Promise; /** * Register a new campaign under a brand. * * @param brandId - Unique identifier of the brand. * @param body - Campaign registration payload (use case, sample messages, etc.). * @returns The newly-registered campaign record. * @throws {RestError} On any non-2xx HTTP response. */ createCampaign(brandId: string, body: any): Promise; } /** 10DLC campaign management. */ export declare class RegistryCampaigns extends BaseResource { constructor(http: HttpClient, basePath: string); /** * Fetch a campaign by ID. * * @param campaignId - Unique identifier of the campaign. * @returns The campaign record. * @throws {RestError} On any non-2xx HTTP response (including `404`). */ get(campaignId: string): Promise; /** * Update a campaign's attributes. * * @param campaignId - Unique identifier of the campaign. * @param body - Full updated campaign attributes (replace semantics). * @returns The updated campaign record. * @throws {RestError} On any non-2xx HTTP response. */ update(campaignId: string, body: any): Promise; /** * List the phone numbers assigned to a campaign. * * @param campaignId - Unique identifier of the campaign. * @param params - Optional filter / pagination query parameters. * @returns A paginated list of assigned numbers. * @throws {RestError} On any non-2xx HTTP response. */ listNumbers(campaignId: string, params?: QueryParams): Promise; /** * List number-assignment orders for a campaign. * * @param campaignId - Unique identifier of the campaign. * @param params - Optional filter / pagination query parameters. * @returns A paginated list of number-assignment orders. * @throws {RestError} On any non-2xx HTTP response. */ listOrders(campaignId: string, params?: QueryParams): Promise; /** * Create a new number-assignment order against a campaign. * * @param campaignId - Unique identifier of the campaign. * @param body - Order payload (phone number IDs, etc.). * @returns The newly-created order record. * @throws {RestError} On any non-2xx HTTP response. */ createOrder(campaignId: string, body: any): Promise; } /** 10DLC assignment order management. */ export declare class RegistryOrders extends BaseResource { constructor(http: HttpClient, basePath: string); /** * Fetch a number-assignment order by ID. * * @param orderId - Unique identifier of the order. * @returns The order record. * @throws {RestError} On any non-2xx HTTP response (including `404`). */ get(orderId: string): Promise; } /** 10DLC number assignment management. */ export declare class RegistryNumbers extends BaseResource { constructor(http: HttpClient, basePath: string); /** * Remove a number from a 10DLC campaign assignment. * * @param numberId - Unique identifier of the assigned number. * @returns The platform's delete response. * @throws {RestError} On any non-2xx HTTP response. */ delete(numberId: string): Promise; } /** * 10DLC Campaign Registry namespace. * * Access via `client.registry.*`. Groups brand, campaign, order, and number * resources for US A2P 10DLC compliance registration. */ export declare class RegistryNamespace { /** 10DLC brand CRUD and nested campaign operations. */ readonly brands: RegistryBrands; /** 10DLC campaign CRUD, number listing, and order management. */ readonly campaigns: RegistryCampaigns; /** 10DLC number-assignment order read access. */ readonly orders: RegistryOrders; /** 10DLC number assignment removal. */ readonly numbers: RegistryNumbers; constructor(http: HttpClient); }