/** Provider-specific JSON and contribution types for DeepSeek request extensions. */ /** Lossless JSON value accepted by the DeepSeek request body. */ export type DeepSeekLlmApiJson = null | boolean | number | string | DeepSeekLlmApiJson[] | { [key: string]: DeepSeekLlmApiJson; }; /** * Merge-extensible table of top-level DeepSeek request extension fields. * Contributor packages declaration-merge the field they own. */ export interface DeepSeekLlmApiExtensionMap { } /** Exact serialized request facts visible to extension providers. */ export interface DeepSeekLlmApiExtensionRequest { /** Base DeepSeek request body before extension fields are merged. */ readonly body: Readonly>; /** Session identity carried by the model request, when present. */ readonly sessionId?: string; /** Auxiliary request classification, when present. */ readonly purpose?: 'compaction' | 'session-title'; /** Cancellation for request preparation; providers must stop promptly after abort. */ readonly signal: AbortSignal; } /** One prepared field value and its optional post-2xx commit. */ export interface PreparedDeepSeekLlmApiExtension { /** Detached value merged under the provider's registered field. */ readonly value: T; /** Commit state that depends on confirmed provider acceptance. */ accept?(): void | Promise; } /** Provider registered under one key of {@link DeepSeekLlmApiExtensionMap}. */ export interface DeepSeekLlmApiExtensionProvider { /** * Prepare one field for an exact serialized request. * @param request - immutable base request facts. * @returns the prepared field, or `undefined` when this request has no value for it. */ prepare(request: DeepSeekLlmApiExtensionRequest): PreparedDeepSeekLlmApiExtension | undefined | Promise | undefined>; } /** All fields prepared for one request plus their joint acceptance transaction. */ export interface PreparedDeepSeekLlmApiExtensions { /** Detached top-level fields to merge into the base request. */ readonly fields: Readonly>; /** * Commit every captured provider after HTTP 2xx. Repeated calls join the same settlement. * @returns fulfillment after every commit succeeds. */ accept(): Promise; } //# sourceMappingURL=types.d.ts.map