Skip to content

PromptScript API


Interface: HttpRegistryOptions

Defined in: resolver/src/registry.ts:94

Options for HttpRegistry.

Properties

auth?

optional auth: object

Defined in: resolver/src/registry.ts:98

Authentication options

token

token: string

Token for bearer auth, or "username:password" for basic

type

type: "bearer" | "basic"

Auth type: 'bearer' or 'basic'


baseUrl

baseUrl: string

Defined in: resolver/src/registry.ts:96

Base URL of the registry


cache?

optional cache: object

Defined in: resolver/src/registry.ts:105

Cache settings

enabled

enabled: boolean

Whether caching is enabled

ttl

ttl: number

TTL in milliseconds


retry?

optional retry: object

Defined in: resolver/src/registry.ts:112

Retry settings

initialDelay

initialDelay: number

Initial delay in ms (doubles each retry)

maxRetries

maxRetries: number

Maximum number of retries


timeout?

optional timeout: number

Defined in: resolver/src/registry.ts:119

Request timeout in ms