/** * Automation Solutions package-version search. * * Hand-written wrapper — `POST /api/search/packages/{packageKey}/versions` is * in the committed swagger but not in the generator's include list, and the * generator can't currently be re-run (its swagger URL is auth-gated). It is * the same call Studio Web's deploy-setup uses to list deployable versions, * so feed deploys can target any published version, not just the latest. * Once the path is added to `explicitlyIncludedPaths` in * `src/scripts/generate-sdk.ts` and the SDK is regenerated, drop this file in * favor of the generated method. */ /** Auth/endpoint inputs for {@link searchPackageVersions}. */ export interface PackageVersionsClientConfig { /** Tenant-scoped Automation Solutions base path (`.../automationsolutions_`). */ basePath: string; accessToken: string; } /** Body of `POST /api/search/packages/{packageKey}/versions` (PackageVersionSearchFilter). */ export interface PackageVersionSearchFilter { searchTerm?: string; skip?: number; take?: number; orderByColumn?: string; orderByDirection?: "Ascending" | "Descending"; excludeInvalidPackages: boolean; } /** One row of the versions search (PackageVersionInfo, fields the CLI reads). */ export interface PackageVersionSearchRow { key: string; version: string; publishDate?: string; state?: string; } /** * Search a package's published versions within a feed. * * When `feedFolderKey` is set, it is sent as `X-UIPATH-FolderKey` so results * are scoped to that feed, matching the package search. Omitting it searches * the tenant feed. Non-2xx responses throw the generated runtime's * {@link ResponseError}. */ export declare function searchPackageVersions(config: PackageVersionsClientConfig, packageKey: string, filter: PackageVersionSearchFilter, feedFolderKey?: string): Promise<{ count?: number; values: PackageVersionSearchRow[]; }>;