1 | import type { RequestHeaders } from "./RequestHeaders.js";
|
2 | import type { RequestMethod } from "./RequestMethod.js";
|
3 | import type { RequestParameters } from "./RequestParameters.js";
|
4 | import type { Url } from "./Url.js";
|
5 | /**
|
6 | * The `.endpoint()` method is guaranteed to set all keys defined by RequestParameters
|
7 | * as well as the method property.
|
8 | */
|
9 | export type EndpointDefaults = RequestParameters & {
|
10 | baseUrl: Url;
|
11 | method: RequestMethod;
|
12 | url?: Url;
|
13 | headers: RequestHeaders & {
|
14 | accept: string;
|
15 | "user-agent": string;
|
16 | };
|
17 | mediaType: {
|
18 | format: string;
|
19 | previews?: string[];
|
20 | };
|
21 | };
|