|
|
@@ -433,22 +433,6 @@ export const TYPE_API: readonly TypeApiEntry[] = [
|
|
|
name: 'AgentContext',
|
|
|
declaration: 'export type AgentContext = Omit<Context, \'remote\'> & {\n readonly remote: ClientRemote & TypertRemoteScopeApi<\'agent\'>;\n};',
|
|
|
},
|
|
|
- {
|
|
|
- name: 'BackgroundUploadProgress',
|
|
|
- declaration: 'export interface BackgroundUploadProgress {\n readonly loaded: number;\n readonly total?: number;\n}',
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'BackgroundUploadRequest',
|
|
|
- declaration: 'export interface BackgroundUploadRequest {\n readonly path: string;\n readonly body: Blob;\n readonly headers?: Readonly<Record<string, string>>;\n readonly signal?: AbortSignal;\n readonly onProgress?: (progress: BackgroundUploadProgress) => void;\n}',
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'BackgroundUploadResponse',
|
|
|
- declaration: 'export interface BackgroundUploadResponse {\n readonly status: number;\n readonly body: string;\n}',
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'BackgroundUploadTransport',
|
|
|
- declaration: 'export interface BackgroundUploadTransport {\n post(request: BackgroundUploadRequest): Promise<BackgroundUploadResponse>;\n}',
|
|
|
- },
|
|
|
{
|
|
|
name: 'BakedActions',
|
|
|
declaration: 'export type BakedActions<T, A extends ActionsDecl<T>> = {\n [K in keyof A]: A[K] extends (draft: T, ...params: infer P) => void ? (...params: P) => void : never;\n};',
|
|
|
@@ -515,7 +499,7 @@ export const TYPE_API: readonly TypeApiEntry[] = [
|
|
|
},
|
|
|
{
|
|
|
name: 'ConnectionHandle',
|
|
|
- declaration: 'export interface ConnectionHandle {\n readonly isLoopback: boolean;\n readonly generation: ConnectionGenerationState;\n readonly state: ConnectionStateSource;\n readonly rpc: ClientConnectionRpc;\n readonly backgroundUploads?: BackgroundUploadTransport;\n reconnect(): void;\n registerGenerationSource(source: ConnectionGenerationSource): () => void;\n start(sinks: ConnectionSinks, config?: ConnectionConfig): ConnectionLoop;\n}',
|
|
|
+ declaration: 'export interface ConnectionHandle {\n readonly isLoopback: boolean;\n readonly generation: ConnectionGenerationState;\n readonly state: ConnectionStateSource;\n readonly rpc: ClientConnectionRpc;\n reconnect(): void;\n registerGenerationSource(source: ConnectionGenerationSource): () => void;\n start(sinks: ConnectionSinks, config?: ConnectionConfig): ConnectionLoop;\n}',
|
|
|
},
|
|
|
{
|
|
|
name: 'ConnectionHostInfo',
|
|
|
@@ -579,7 +563,7 @@ export const TYPE_API: readonly TypeApiEntry[] = [
|
|
|
},
|
|
|
{
|
|
|
name: 'ISession',
|
|
|
- declaration: 'export interface ISession {\n readonly sessionId: SessionId;\n readonly projections: ProjectionsFace;\n beginSubmission(input: BeginSubmissionInput): SubmissionHandle;\n prompt(content: PromptContentPart[], mode: \'queue\' | \'steer\', signal?: AbortSignal, requestId?: SessionRequestId): Promise<RemoteResult<{\n accepted: true;\n }>>;\n uploadFile(data: Blob | Uint8Array, name?: string, signal?: AbortSignal, onProgress?: (progress: {\n readonly loaded: number;\n readonly total?: number;\n }) => void): Promise<RemoteResult<{\n receiptId: FileUploadReceiptId;\n file: FileAttachmentRef;\n }>>;\n readAttachment(attachmentId: AttachmentIdType): Promise<RemoteResult<{\n attachment: ImageAttachmentRef;\n data: Uint8Array;\n }>>;\n updateQueue(itemId: MessageId, action: QueueAction): Promise<RemoteResult<{\n accepted: true;\n }>>;\n cancel(): Promise<RemoteResult<{\n accepted: true;\n }>>;\n rename(title: string): Promise<RemoteResult<{\n title: string;\n seq: SessionSeq;\n }>>;\n loadOlder(): Promise<void>;\n loadThrough(seq: SessionSeq): Promise<void>;\n command(line: string): Promise<RemoteResult<{\n matched: boolean;\n }>>;\n}',
|
|
|
+ declaration: 'export interface ISession {\n readonly sessionId: SessionId;\n readonly projections: ProjectionsFace;\n beginSubmission(input: BeginSubmissionInput): SubmissionHandle;\n prompt(content: PromptContentPart[], mode: \'queue\' | \'steer\', signal?: AbortSignal, requestId?: SessionRequestId): Promise<RemoteResult<{\n accepted: true;\n }>>;\n uploadFile(data: Blob | Uint8Array | ReadableStream<Uint8Array>, name?: string, signal?: AbortSignal, onProgress?: (progress: {\n readonly loaded: number;\n readonly total?: number;\n }) => void): Promise<RemoteResult<{\n receiptId: FileUploadReceiptId;\n file: FileAttachmentRef;\n }>>;\n readAttachment(attachmentId: AttachmentIdType): Promise<RemoteResult<{\n attachment: ImageAttachmentRef;\n data: Uint8Array;\n }>>;\n updateQueue(itemId: MessageId, action: QueueAction): Promise<RemoteResult<{\n accepted: true;\n }>>;\n cancel(): Promise<RemoteResult<{\n accepted: true;\n }>>;\n rename(title: string): Promise<RemoteResult<{\n title: string;\n seq: SessionSeq;\n }>>;\n loadOlder(): Promise<void>;\n loadThrough(seq: SessionSeq): Promise<void>;\n command(line: string): Promise<RemoteResult<{\n matched: boolean;\n }>>;\n}',
|
|
|
},
|
|
|
{
|
|
|
name: 'KeyedHooksSources',
|
|
|
@@ -651,12 +635,20 @@ export const TYPE_API: readonly TypeApiEntry[] = [
|
|
|
},
|
|
|
{
|
|
|
name: 'PendingSubmissionAttachment',
|
|
|
- declaration: 'export type PendingSubmissionAttachment = ({\n readonly type: \'image\';\n} & PendingSubmissionImage) | {\n readonly type: \'file\';\n readonly attachment: FileAttachmentRef;\n};',
|
|
|
+ declaration: 'export type PendingSubmissionAttachment = PendingSubmissionImageAttachment | PendingSubmissionFileAttachment;',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'PendingSubmissionFileAttachment',
|
|
|
+ declaration: 'export interface PendingSubmissionFileAttachment {\n readonly type: \'file\';\n readonly value: FileAttachmentRef;\n}',
|
|
|
},
|
|
|
{
|
|
|
name: 'PendingSubmissionImage',
|
|
|
declaration: 'export interface PendingSubmissionImage {\n readonly previewUrl: string;\n readonly name?: string;\n readonly width?: number;\n readonly height?: number;\n}',
|
|
|
},
|
|
|
+ {
|
|
|
+ name: 'PendingSubmissionImageAttachment',
|
|
|
+ declaration: 'export interface PendingSubmissionImageAttachment {\n readonly type: \'image\';\n readonly value: PendingSubmissionImage;\n}',
|
|
|
+ },
|
|
|
{
|
|
|
name: 'PendingSubmissionPlacement',
|
|
|
declaration: 'export type PendingSubmissionPlacement = \'transcript\' | \'queued\' | \'steering\';',
|