/** * Tenant Resource * * Simple resource for managing tenant-level organization metadata. * NOT a BaseResource -- it's a singleton per (org, environment). * Direct tRPC calls, not registered in scope registry. */ import type { TenantResponse, UpdateTenantInput } from "@artu-ai/shared"; /** * Resource for managing tenant-level organization metadata. * * This is a singleton resource -- there is at most one tenant details record * per (organization, environment) pair. * * @example * ```typescript * // Get tenant details * const details = await sdk.tenant.get(); * console.log(details.data.name); * * // Update tenant details * const updated = await sdk.tenant.update({ * name: "My Company", * scopeData: { * MX: { rfc: "ABC123456789" }, * }, * }); * * ``` */ export declare class TenantResource { private readonly trpc; /** * Retrieves the tenant details for the current organization/environment. * * @returns The tenant response, or null if not set */ get(): Promise; /** * Updates the tenant details for the current organization/environment. * Creates the record if it doesn't exist. * * @param data - The tenant data to update * @param options - When `applyToBothEnvironments` is true, the same * values are also written to the other environment (Test ↔ Live). * @returns The updated tenant response */ update(data: UpdateTenantInput, options?: { applyToBothEnvironments?: boolean; }): Promise; private validate; private execute; }