Add subscription support + license extension on renewal

This commit is contained in:
Krystie
2026-08-19 12:45:06 -07:00
parent 14d0eaa2b3
commit ff722aa4d8
2075 changed files with 357707 additions and 63 deletions
+27
View File
@@ -0,0 +1,27 @@
import { RequestHeaders, ResponseHeaders } from '../Types.js';
import { HttpClient, HttpClientResponse, FetchHttpClientInterface, FetchHttpClientResponseInterface } from './HttpClient.js';
/**
* HTTP client which uses a `fetch` function to issue requests.
*
* By default relies on the global `fetch` function, but an optional function
* can be passed in. If passing in a function, it is expected to match the Web
* Fetch API. As an example, this could be the function provided by the
* node-fetch package (https://github.com/node-fetch/node-fetch).
*/
export declare class FetchHttpClient extends HttpClient implements FetchHttpClientInterface {
private readonly _fetchFn;
constructor(fetchFn?: typeof fetch);
private static makeFetchWithRaceTimeout;
private static makeFetchWithAbortTimeout;
/** @override. */
getClientName(): string;
makeRequest(host: string, port: string, path: string, method: string, headers: RequestHeaders, requestData: string, protocol: string, timeout: number): Promise<FetchHttpClientResponseInterface>;
}
export declare class FetchHttpClientResponse extends HttpClientResponse implements FetchHttpClientResponseInterface {
_res: Response;
constructor(res: Response);
getRawResponse(): Response;
toStream(streamCompleteCallback: () => void): ReadableStream<Uint8Array> | null;
toJSON(): Promise<any>;
static _transformHeadersToObject(headers: Headers): ResponseHeaders;
}