@civitai/client 0.2.0-beta.10 → 0.2.0-beta.11
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.
|
@@ -5,6 +5,9 @@ import type {
|
|
|
5
5
|
HeadBlobData,
|
|
6
6
|
HeadBlobResponses,
|
|
7
7
|
HeadBlobErrors,
|
|
8
|
+
GetBlobContentData,
|
|
9
|
+
GetBlobContentResponses,
|
|
10
|
+
GetBlobContentErrors,
|
|
8
11
|
InvokeAgeClassificationStepTemplateData,
|
|
9
12
|
InvokeAgeClassificationStepTemplateResponses,
|
|
10
13
|
InvokeAgeClassificationStepTemplateErrors,
|
|
@@ -92,7 +95,7 @@ export type Options<
|
|
|
92
95
|
meta?: Record<string, unknown>;
|
|
93
96
|
};
|
|
94
97
|
/**
|
|
95
|
-
* Get blob by ID. This will
|
|
98
|
+
* Get blob by ID. This will redirect to a cacheable content URL.
|
|
96
99
|
*/
|
|
97
100
|
export declare const getBlob: <ThrowOnError extends boolean = false>(
|
|
98
101
|
options: Options<GetBlobData, ThrowOnError>
|
|
@@ -103,6 +106,17 @@ export declare const getBlob: <ThrowOnError extends boolean = false>(
|
|
|
103
106
|
export declare const headBlob: <ThrowOnError extends boolean = false>(
|
|
104
107
|
options: Options<HeadBlobData, ThrowOnError>
|
|
105
108
|
) => import('./client').RequestResult<HeadBlobResponses, HeadBlobErrors, ThrowOnError, 'fields'>;
|
|
109
|
+
/**
|
|
110
|
+
* Serves cacheable blob content using a deterministic encrypted token
|
|
111
|
+
*/
|
|
112
|
+
export declare const getBlobContent: <ThrowOnError extends boolean = false>(
|
|
113
|
+
options: Options<GetBlobContentData, ThrowOnError>
|
|
114
|
+
) => import('./client').RequestResult<
|
|
115
|
+
GetBlobContentResponses,
|
|
116
|
+
GetBlobContentErrors,
|
|
117
|
+
ThrowOnError,
|
|
118
|
+
'fields'
|
|
119
|
+
>;
|
|
106
120
|
/**
|
|
107
121
|
* Age classification
|
|
108
122
|
* Detects minors in media content. Returns a boolean value indicating whether the content contains minors as well as details on where minors are detected.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { client as _heyApiClient } from './client.gen';
|
|
3
3
|
/**
|
|
4
|
-
* Get blob by ID. This will
|
|
4
|
+
* Get blob by ID. This will redirect to a cacheable content URL.
|
|
5
5
|
*/
|
|
6
6
|
export const getBlob = (options) => {
|
|
7
7
|
var _a;
|
|
@@ -32,6 +32,22 @@ export const headBlob = (options) => {
|
|
|
32
32
|
...options,
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Serves cacheable blob content using a deterministic encrypted token
|
|
37
|
+
*/
|
|
38
|
+
export const getBlobContent = (options) => {
|
|
39
|
+
var _a;
|
|
40
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).get({
|
|
41
|
+
security: [
|
|
42
|
+
{
|
|
43
|
+
scheme: 'bearer',
|
|
44
|
+
type: 'http',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
url: '/v2/consumer/blobs/content/{encryptedToken}',
|
|
48
|
+
...options,
|
|
49
|
+
});
|
|
50
|
+
};
|
|
35
51
|
/**
|
|
36
52
|
* Age classification
|
|
37
53
|
* Detects minors in media content. Returns a boolean value indicating whether the content contains minors as well as details on where minors are detected.
|
|
@@ -1308,7 +1308,7 @@ export type SoraVideoGenInput = VideoGenInput & {
|
|
|
1308
1308
|
duration?: number;
|
|
1309
1309
|
seed?: number | null;
|
|
1310
1310
|
resolution?: '720p' | '1080p';
|
|
1311
|
-
aspectRatio?: '16:9' | '9:16';
|
|
1311
|
+
aspectRatio?: 'auto' | '16:9' | '9:16';
|
|
1312
1312
|
usePro?: boolean;
|
|
1313
1313
|
} & {
|
|
1314
1314
|
engine: 'sora';
|
|
@@ -1563,6 +1563,11 @@ export declare const Veo3AspectRatio: {
|
|
|
1563
1563
|
readonly '1:1': '1:1';
|
|
1564
1564
|
};
|
|
1565
1565
|
export type Veo3AspectRatio = (typeof Veo3AspectRatio)[keyof typeof Veo3AspectRatio];
|
|
1566
|
+
export declare const Veo3Version: {
|
|
1567
|
+
readonly '3_0': '3.0';
|
|
1568
|
+
readonly '3_1': '3.1';
|
|
1569
|
+
};
|
|
1570
|
+
export type Veo3Version = (typeof Veo3Version)[keyof typeof Veo3Version];
|
|
1566
1571
|
export type Veo3VideoGenInput = VideoGenInput & {
|
|
1567
1572
|
engine: 'veo3';
|
|
1568
1573
|
} & {
|
|
@@ -1574,6 +1579,7 @@ export type Veo3VideoGenInput = VideoGenInput & {
|
|
|
1574
1579
|
seed?: number | null;
|
|
1575
1580
|
fastMode?: boolean;
|
|
1576
1581
|
images?: Array<string>;
|
|
1582
|
+
version?: Veo3Version;
|
|
1577
1583
|
} & {
|
|
1578
1584
|
engine: 'veo3';
|
|
1579
1585
|
};
|
|
@@ -2263,6 +2269,14 @@ export type GetBlobErrors = {
|
|
|
2263
2269
|
* Unauthorized
|
|
2264
2270
|
*/
|
|
2265
2271
|
401: ProblemDetails;
|
|
2272
|
+
/**
|
|
2273
|
+
* Forbidden
|
|
2274
|
+
*/
|
|
2275
|
+
403: ProblemDetails;
|
|
2276
|
+
/**
|
|
2277
|
+
* Not Found
|
|
2278
|
+
*/
|
|
2279
|
+
404: ProblemDetails;
|
|
2266
2280
|
};
|
|
2267
2281
|
export type GetBlobError = GetBlobErrors[keyof GetBlobErrors];
|
|
2268
2282
|
export type HeadBlobData = {
|
|
@@ -2294,6 +2308,42 @@ export type HeadBlobResponses = {
|
|
|
2294
2308
|
204: void;
|
|
2295
2309
|
};
|
|
2296
2310
|
export type HeadBlobResponse = HeadBlobResponses[keyof HeadBlobResponses];
|
|
2311
|
+
export type GetBlobContentData = {
|
|
2312
|
+
body?: never;
|
|
2313
|
+
path: {
|
|
2314
|
+
/**
|
|
2315
|
+
* The encrypted token containing blob access parameters
|
|
2316
|
+
*/
|
|
2317
|
+
encryptedToken: string;
|
|
2318
|
+
};
|
|
2319
|
+
query?: never;
|
|
2320
|
+
url: '/v2/consumer/blobs/content/{encryptedToken}';
|
|
2321
|
+
};
|
|
2322
|
+
export type GetBlobContentErrors = {
|
|
2323
|
+
/**
|
|
2324
|
+
* Bad Request
|
|
2325
|
+
*/
|
|
2326
|
+
400: ProblemDetails;
|
|
2327
|
+
/**
|
|
2328
|
+
* Unauthorized
|
|
2329
|
+
*/
|
|
2330
|
+
401: ProblemDetails;
|
|
2331
|
+
/**
|
|
2332
|
+
* Not Found
|
|
2333
|
+
*/
|
|
2334
|
+
404: ProblemDetails;
|
|
2335
|
+
/**
|
|
2336
|
+
* Internal Server Error
|
|
2337
|
+
*/
|
|
2338
|
+
500: unknown;
|
|
2339
|
+
};
|
|
2340
|
+
export type GetBlobContentError = GetBlobContentErrors[keyof GetBlobContentErrors];
|
|
2341
|
+
export type GetBlobContentResponses = {
|
|
2342
|
+
/**
|
|
2343
|
+
* OK
|
|
2344
|
+
*/
|
|
2345
|
+
200: unknown;
|
|
2346
|
+
};
|
|
2297
2347
|
export type InvokeAgeClassificationStepTemplateData = {
|
|
2298
2348
|
body?: AgeClassificationInput;
|
|
2299
2349
|
path?: never;
|