import { APIResource } from "../../core/resource.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; export declare class Share extends APIResource { /** * Fetch the active share-link details for a conversation without mutating * anything. */ list(conversationID: string, params?: ShareListParams | null | undefined, options?: RequestOptions): APIPromise; /** * Create a shareable link for a conversation with optional expiry days. */ createOrUpdate(conversationID: string, params?: ShareCreateOrUpdateParams | null | undefined, options?: RequestOptions): APIPromise; } /** * Response model for sharing a conversation. * * Attributes: shared_conversation_id (str): The unique identifier for the shared * conversation. last_updated_time (datetime): The last time the shared * conversation was updated. expired_time (datetime | None): When the shared * conversation access id expires. Defaults to None (no expiry). */ export interface SharedConversation { last_updated_time: string; shared_conversation_id: string; expired_time?: string | null; } export interface ShareListParams { 'Accept-Language'?: string; 'If-None-Match'?: string; /** * Set to `structured` to receive errors in the structured envelope. Omit it to * keep the legacy error body. */ 'X-Error-Format'?: string; } export interface ShareCreateOrUpdateParams { /** * Body param */ expiry_days?: number | null; /** * Header param */ 'Accept-Language'?: string; /** * Header param: Set to `structured` to receive errors in the structured envelope. * Omit it to keep the legacy error body. */ 'X-Error-Format'?: string; } export declare namespace Share { export { type SharedConversation as SharedConversation, type ShareListParams as ShareListParams, type ShareCreateOrUpdateParams as ShareCreateOrUpdateParams, }; } //# sourceMappingURL=share.d.ts.map