/** * Palantir Foundry Datasets API. * Datasets, branches, transactions, files, schemas, table reads. * * File upload uses binary PUT with application/octet-stream content type * (NOT FormData). Schema endpoints use /getSchema and /putSchema verbs. * * @see https://www.palantir.com/docs/foundry/api/v2/datasets-v2-resources/ */ import type { PalantirClient } from "./client.js"; import type { Dataset, CreateDatasetParams, Branch, CreateBranchParams, Transaction, CreateTransactionParams, FileMetadata, DatasetSchema, PageResponse, PageParams } from "./types.js"; export declare class DatasetsNamespace { private client; constructor(client: PalantirClient); /** Create a new dataset. */ create(params: CreateDatasetParams): Promise; /** Get a dataset by RID. */ get(datasetRid: string): Promise; /** Get a specific branch. */ getBranch(datasetRid: string, branchId: string): Promise; /** List branches for a dataset. */ listBranches(datasetRid: string, params?: PageParams): Promise>; /** Create a branch. */ createBranch(datasetRid: string, params: CreateBranchParams): Promise; /** Delete a branch. */ deleteBranch(datasetRid: string, branchId: string): Promise; /** Create a transaction. */ createTransaction(datasetRid: string, params: CreateTransactionParams): Promise; /** Get a transaction. */ getTransaction(datasetRid: string, transactionRid: string): Promise; /** List transactions for a dataset. Requires preview=true. */ listTransactions(datasetRid: string, params?: PageParams): Promise>; /** Commit a transaction. */ commitTransaction(datasetRid: string, transactionRid: string): Promise; /** Abort a transaction. */ abortTransaction(datasetRid: string, transactionRid: string): Promise; /** List files in a dataset. */ listFiles(datasetRid: string, params?: PageParams & { branch?: string; endTransactionRid?: string; pathPrefix?: string; }): Promise>; /** Get file metadata. */ getFile(datasetRid: string, filePath: string, params?: { branch?: string; endTransactionRid?: string; }): Promise; /** * Delete a file from a dataset. * Uses query params (branchName or transactionRid), not path params. * @see https://www.palantir.com/docs/foundry/api/v2/datasets-v2-resources/files/delete-file */ deleteFile(datasetRid: string, filePath: string, params: { branchName?: string; transactionRid?: string; }): Promise; /** * Upload a file to a dataset transaction. * Uses binary PUT with application/octet-stream content type. * The file path is URL-encoded in the endpoint path. */ uploadFile(datasetRid: string, transactionRid: string, filePath: string, content: string | Blob | ArrayBuffer | Uint8Array): Promise; /** * Read file content from a dataset as a raw Response stream. * Returns the fetch Response so the caller can consume the body as needed. */ readFileContent(datasetRid: string, filePath: string, params?: { branch?: string; endTransactionRid?: string; }): Promise; /** Get the schema of a dataset. */ getSchema(datasetRid: string, params?: { branchName?: string; endTransactionRid?: string; versionId?: string; }): Promise; /** * Get schemas for multiple datasets in a single request. * Max batch size: 1000. */ getSchemaBatch(items: Array<{ datasetRid: string; branchName?: string; endTransactionRid?: string; versionId?: string; }>): Promise; /** Set the schema of a dataset. Supports optional query params for branch/transaction/reader. */ putSchema(datasetRid: string, schema: DatasetSchema, params?: { branchName?: string; endTransactionRid?: string; dataframeReader?: string; }): Promise; /** Get schedules targeting this dataset. */ getSchedules(datasetRid: string, params?: PageParams & { branchName?: string; }): Promise; /** Get health checks configured for a dataset. */ getHealthChecks(datasetRid: string, params?: { branchName?: string; preview?: boolean; }): Promise; /** Get health check reports for a dataset. */ getHealthCheckReports(datasetRid: string, params?: { branchName?: string; preview?: boolean; }): Promise; /** Get job RIDs for a dataset. */ getJobs(datasetRid: string, params?: PageParams & { branchName?: string; where?: Record; orderBy?: Record[]; }): Promise; /** * Read dataset as a table (structured rows). * Supports ARROW and CSV formats, column selection, and transaction scoping. * @see https://www.palantir.com/docs/foundry/api/v2/datasets-v2-resources/tables/read-table */ readTable(datasetRid: string, params?: PageParams & { branch?: string; rowLimit?: number; format?: "ARROW" | "CSV"; columns?: string[]; startTransactionRid?: string; }): Promise; } //# sourceMappingURL=datasets.d.ts.map