/** * API client for the Nori registrar * * The registrar is a package registry for Nori profiles. * Read operations (search, packument, download) are public. * Write operations (upload) require authentication. */ export declare const REGISTRAR_URL = "https://noriskillsets.dev"; /** * Package metadata from the registrar */ export type Package = { id: string; name: string; description: string; authorEmail: string; createdAt: string; updatedAt: string; }; /** * npm-compatible packument format */ export type Packument = { name: string; description?: string | null; "dist-tags": Record; versions: Record; time?: Record | null; readme?: string | null; }; export type SearchPackagesRequest = { query: string; limit?: number | null; offset?: number | null; registryUrl?: string | null; authToken?: string | null; }; export type SearchPackagesOnRegistryRequest = { query: string; registryUrl: string; authToken?: string | null; limit?: number | null; offset?: number | null; }; export type GetPackumentRequest = { packageName: string; registryUrl?: string | null; authToken?: string | null; }; export type DownloadTarballRequest = { packageName: string; version?: string | null; registryUrl?: string | null; authToken?: string | null; }; export type UploadProfileRequest = { packageName: string; version: string; archiveData: ArrayBuffer; description?: string | null; authToken: string; registryUrl?: string | null; }; export type UploadProfileResponse = { name: string; version: string; description?: string | null; tarballSha: string; createdAt: string; }; export type SearchSkillsRequest = { query: string; limit?: number | null; offset?: number | null; registryUrl?: string | null; authToken?: string | null; }; export type GetSkillPackumentRequest = { skillName: string; registryUrl?: string | null; authToken?: string | null; }; export type DownloadSkillTarballRequest = { skillName: string; version?: string | null; registryUrl?: string | null; authToken?: string | null; }; export type UploadSkillRequest = { skillName: string; version: string; archiveData: ArrayBuffer; description?: string | null; authToken: string; registryUrl?: string | null; }; export type UploadSkillResponse = { name: string; version: string; description?: string | null; tarballSha: string; createdAt: string; }; export declare const registrarApi: { /** * Search for packages in the registrar * @param args - The search parameters * * @returns Array of matching packages */ searchPackages: (args: SearchPackagesRequest) => Promise>; /** * Search for packages on a specific registry * @param args - The search parameters including registry URL * * @returns Array of matching packages */ searchPackagesOnRegistry: (args: SearchPackagesOnRegistryRequest) => Promise>; /** * Get the packument (package metadata) for a package * @param args - The request parameters * * @returns The package packument */ getPackument: (args: GetPackumentRequest) => Promise; /** * Download a tarball for a package * * If no version is specified, the latest version is downloaded. * @param args - The download parameters * * @returns The tarball data as ArrayBuffer */ downloadTarball: (args: DownloadTarballRequest) => Promise; /** * Upload a profile to the registrar * @param args - The upload parameters * * @returns The upload response with package metadata */ uploadProfile: (args: UploadProfileRequest) => Promise; /** * Search for skills in the registrar * @param args - The search parameters * * @returns Array of matching skills */ searchSkills: (args: SearchSkillsRequest) => Promise>; /** * Get the packument (package metadata) for a skill * @param args - The request parameters * * @returns The skill packument */ getSkillPackument: (args: GetSkillPackumentRequest) => Promise; /** * Download a tarball for a skill * * If no version is specified, the latest version is downloaded. * @param args - The download parameters * * @returns The tarball data as ArrayBuffer */ downloadSkillTarball: (args: DownloadSkillTarballRequest) => Promise; /** * Upload a skill to the registrar * @param args - The upload parameters * * @returns The upload response with skill metadata */ uploadSkill: (args: UploadSkillRequest) => Promise; }; //# sourceMappingURL=registrar.d.ts.map