import { APIResource } from "../../core/resource.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; export declare class Registries extends APIResource { /** * Create a sandbox registry for pulling private images. */ create(body: RegistryCreateParams, options?: RequestOptions): APIPromise; /** * Get a sandbox registry by name. */ retrieve(name: string, options?: RequestOptions): APIPromise; /** * Update a sandbox registry's name and/or credentials. */ update(name: string, body: RegistryUpdateParams, options?: RequestOptions): APIPromise; /** * List sandbox registries for pulling private images. Page with page_size and * cursor, replaying next_cursor until it is null. Results are ordered newest * first, with stable ordering for equal creation times. Keep filters unchanged * between pages. Requests without page_size or cursor retain the legacy default of * 50 results. Cursor requests default to 20 results, with a maximum of 100. */ list(query?: RegistryListParams | null | undefined, options?: RequestOptions): APIPromise; /** * Delete a sandbox registry by name. */ delete(name: string, options?: RequestOptions): APIPromise; } export interface RegistryListResponse { items?: Array; next_cursor?: string | null; /** * Deprecated: only applies to limit/offset requests. Use next_cursor when paging * with a cursor. */ offset?: number; /** * Deprecated: use items. */ registries?: Array; } export interface RegistryResponse { id?: string; auth_type?: 'DOCKER_CONFIG' | 'AWS_ROLE'; aws_role_arn?: string; created_at?: string; created_by?: string; name?: string; provider?: 'DOCKER_REGISTRY' | 'HARBOR' | 'GHCR' | 'ECR' | 'GAR' | 'DOCKER_HUB'; repository_search_mode?: 'GLOBAL' | 'SCOPED' | 'NONE'; updated_at?: string; updated_by?: string; url?: string; } export interface RegistryCreateParams { name: string; url: string; auth_type?: 'DOCKER_CONFIG' | 'AWS_ROLE'; aws_role_arn?: string; password?: string; username?: string; } export interface RegistryUpdateParams { auth_type?: 'DOCKER_CONFIG' | 'AWS_ROLE'; aws_role_arn?: string; name?: string; password?: string; url?: string; username?: string; } export interface RegistryListParams { /** * Opaque cursor from a prior response's next_cursor */ cursor?: string; /** * Deprecated: use page_size. Maximum number of registries to return */ limit?: number; /** * Filter to registries whose name contains this substring */ name_contains?: string; /** * Deprecated: use cursor. Number of registries to skip */ offset?: number; /** * Number of results per cursor page */ page_size?: 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, }; }