feat: complete Ancestor quote bot with production-ready Docker support

This commit is contained in:
unfunny
2026-09-13 14:14:38 -04:00
parent f2016da05a
commit fe7351a7dc
1145 changed files with 30890 additions and 97684 deletions

View File

@@ -1,7 +1,15 @@
import { type OlmMachine, type OutgoingRequest, PutDehydratedDeviceRequest, UploadSigningKeysRequest } from "@matrix-org/matrix-sdk-crypto-wasm";
import { type Logger } from "../logger.ts";
import { type IHttpOpts, type MatrixHttpApi } from "../http-api/index.ts";
import { type UIAuthCallback } from "../interactive-auth.ts";
import { OlmMachine } from "@matrix-org/matrix-sdk-crypto-wasm";
import { IHttpOpts, MatrixHttpApi } from "../http-api";
import { UIAuthCallback } from "../interactive-auth";
/**
* Common interface for all the request types returned by `OlmMachine.outgoingRequests`.
*
* @internal
*/
export interface OutgoingRequest {
readonly id: string | undefined;
readonly type: number;
}
/**
* OutgoingRequestManager: turns `OutgoingRequest`s from the rust sdk into HTTP requests
*
@@ -15,22 +23,13 @@ import { type UIAuthCallback } from "../interactive-auth.ts";
* @internal
*/
export declare class OutgoingRequestProcessor {
private readonly logger;
private readonly olmMachine;
private readonly http;
constructor(logger: Logger, olmMachine: OlmMachine, http: MatrixHttpApi<IHttpOpts & {
constructor(olmMachine: OlmMachine, http: MatrixHttpApi<IHttpOpts & {
onlyData: true;
}>);
makeOutgoingRequest<T>(msg: OutgoingRequest | UploadSigningKeysRequest | PutDehydratedDeviceRequest, uiaCallback?: UIAuthCallback<T>): Promise<void>;
/**
* Send the HTTP request for a `ToDeviceRequest`
*
* @param request - request to send
* @returns JSON-serialized body of the response, if successful
*/
private sendToDeviceRequest;
makeOutgoingRequest<T>(msg: OutgoingRequest, uiaCallback?: UIAuthCallback<T>): Promise<void>;
private makeRequestWithUIA;
private requestWithRetry;
private rawJsonRequest;
}
//# sourceMappingURL=OutgoingRequestProcessor.d.ts.map