import { APIResource } from "../../core/resource.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; export declare class Aip extends APIResource { /** * Get media file by knowledge base ID, file ID, and media ID. */ retrieve(mediaID: string, params: AipRetrieveParams, options?: RequestOptions): APIPromise; /** * Get AIP media file via proxy with presigned URL regeneration. */ list(params: AipListParams, options?: RequestOptions): APIPromise; } export type AipRetrieveResponse = unknown; export type AipListResponse = unknown; export interface AipRetrieveParams { /** * Path param */ kb_id: string; /** * Path param */ file_id: string; /** * 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 interface AipListParams { /** * Query param: The object path in AIP storage (URL encoded) */ object_path: string; /** * Query param: Signed, URL-safe fallback token for the original presigned URL. * Generated by the backend and used only when AIP is unavailable. */ fallback?: string | null; /** * Query param: Hourly cache-busting parameter (YYYYMMDDHH format) */ t?: string | 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 Aip { export { type AipRetrieveResponse as AipRetrieveResponse, type AipListResponse as AipListResponse, type AipRetrieveParams as AipRetrieveParams, type AipListParams as AipListParams, }; } //# sourceMappingURL=aip.d.mts.map