UNPKG

langsmith

Version:

Client library to connect to the LangSmith Observability and Evaluation Platform.

68 lines (67 loc) 2.2 kB
import { APIResource } from '../../core/resource.js'; import { APIPromise } from '../../core/api-promise.js'; import { RequestOptions } from '../../internal/request-options.js'; export declare class Registries extends APIResource { /** * Create a sandbox registry for pulling private images. */ create(body: RegistryCreateParams, options?: RequestOptions): APIPromise<RegistryResponse>; /** * Get a sandbox registry by name. */ retrieve(name: string, options?: RequestOptions): APIPromise<RegistryResponse>; /** * Update a sandbox registry's name and/or credentials. */ update(name: string, body: RegistryUpdateParams, options?: RequestOptions): APIPromise<RegistryResponse>; /** * List sandbox registries for pulling private images. */ list(query?: RegistryListParams | null | undefined, options?: RequestOptions): APIPromise<RegistryListResponse>; /** * Delete a sandbox registry by name. */ delete(name: string, options?: RequestOptions): APIPromise<void>; } export interface RegistryListResponse { offset?: number; registries?: Array<RegistryResponse>; } export interface RegistryResponse { id?: string; created_at?: string; created_by?: string; name?: string; updated_at?: string; updated_by?: string; url?: string; } export interface RegistryCreateParams { name: string; password: string; url: string; username: string; } export interface RegistryUpdateParams { name?: string; password?: string; url?: string; username?: string; } export interface RegistryListParams { /** * Maximum number of registries to return */ limit?: number; /** * Filter to registries whose name contains this substring */ name_contains?: string; /** * Number of registries to skip */ offset?: number; } export declare namespace Registries { export { type RegistryListResponse as RegistryListResponse, type RegistryResponse as RegistryResponse, type RegistryCreateParams as RegistryCreateParams, type RegistryUpdateParams as RegistryUpdateParams, type RegistryListParams as RegistryListParams, }; }