@civitai/client 0.2.0-beta.36 → 0.2.0-beta.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/client/types.d.ts +5 -4
- package/dist/generated/schemas.gen.d.ts +2083 -2028
- package/dist/generated/schemas.gen.js +2093 -2031
- package/dist/generated/services.gen.d.ts +88 -90
- package/dist/generated/services.gen.js +100 -147
- package/dist/generated/types.gen.d.ts +47 -0
- package/dist/utils/types.d.ts +3 -0
- package/dist/utils/types.js +1 -0
- package/package.json +1 -1
|
@@ -3,7 +3,8 @@ import type { Client as CoreClient, Config as CoreConfig } from '../core/types';
|
|
|
3
3
|
import type { Middleware } from './utils';
|
|
4
4
|
export type ResponseStyle = 'data' | 'fields';
|
|
5
5
|
export interface Config<T extends ClientOptions = ClientOptions>
|
|
6
|
-
extends Omit<RequestInit, 'body' | 'headers' | 'method'>,
|
|
6
|
+
extends Omit<RequestInit, 'body' | 'headers' | 'method'>,
|
|
7
|
+
CoreConfig {
|
|
7
8
|
/**
|
|
8
9
|
* Base URL for all requests made by this client.
|
|
9
10
|
*/
|
|
@@ -49,9 +50,9 @@ export interface RequestOptions<
|
|
|
49
50
|
ThrowOnError extends boolean = boolean,
|
|
50
51
|
Url extends string = string,
|
|
51
52
|
> extends Config<{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}> {
|
|
53
|
+
responseStyle: TResponseStyle;
|
|
54
|
+
throwOnError: ThrowOnError;
|
|
55
|
+
}> {
|
|
55
56
|
/**
|
|
56
57
|
* Any body that you want to add to your request.
|
|
57
58
|
*
|