@civitai/client 0.1.9-beta.20 → 0.1.9-beta.21
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.
|
@@ -529,13 +529,6 @@ export declare const $ComfyVideoGenJob: {
|
|
|
529
529
|
readonly format: 'uri';
|
|
530
530
|
readonly nullable: true;
|
|
531
531
|
};
|
|
532
|
-
readonly additionalNetworks: {
|
|
533
|
-
readonly type: 'array';
|
|
534
|
-
readonly items: {
|
|
535
|
-
readonly pattern: '^(?:urn:)?(?:air:)?(?:(?<ecosystem>[a-zA-Z0-9_\\-\\/]+):)?(?:(?<type>[a-zA-Z0-9_\\-\\/]+):)?(?<source>[a-zA-Z0-9_\\-\\/]+):(?<id>[a-zA-Z0-9_\\-\\/\\.]+)(?:@(?<version>[a-zA-Z0-9_\\-\\/.]+))?(?:\\.(?<format>[a-zA-Z0-9_\\-]+))?$';
|
|
536
|
-
readonly type: 'string';
|
|
537
|
-
};
|
|
538
|
-
};
|
|
539
532
|
readonly claimDuration: {
|
|
540
533
|
readonly type: 'string';
|
|
541
534
|
readonly format: 'date-span';
|
|
@@ -530,13 +530,6 @@ export const $ComfyVideoGenJob = {
|
|
|
530
530
|
format: 'uri',
|
|
531
531
|
nullable: true,
|
|
532
532
|
},
|
|
533
|
-
additionalNetworks: {
|
|
534
|
-
type: 'array',
|
|
535
|
-
items: {
|
|
536
|
-
pattern: '^(?:urn:)?(?:air:)?(?:(?<ecosystem>[a-zA-Z0-9_\\-\\/]+):)?(?:(?<type>[a-zA-Z0-9_\\-\\/]+):)?(?<source>[a-zA-Z0-9_\\-\\/]+):(?<id>[a-zA-Z0-9_\\-\\/\\.]+)(?:@(?<version>[a-zA-Z0-9_\\-\\/.]+))?(?:\\.(?<format>[a-zA-Z0-9_\\-]+))?$',
|
|
537
|
-
type: 'string',
|
|
538
|
-
},
|
|
539
|
-
},
|
|
540
533
|
claimDuration: {
|
|
541
534
|
type: 'string',
|
|
542
535
|
format: 'date-span',
|
|
@@ -2,6 +2,7 @@ import { type Options } from '@hey-api/client-fetch';
|
|
|
2
2
|
import type {
|
|
3
3
|
UploadBlobData,
|
|
4
4
|
GetBlobData,
|
|
5
|
+
HeadBlobData,
|
|
5
6
|
ClaimJobsData,
|
|
6
7
|
ClaimJobsResponse,
|
|
7
8
|
UpdateClaimStatusData,
|
|
@@ -47,11 +48,14 @@ export declare const uploadBlob: (
|
|
|
47
48
|
options: Options<UploadBlobData>
|
|
48
49
|
) => import('@hey-api/client-fetch').RequestResult<unknown, import('./types.gen').ProblemDetails>;
|
|
49
50
|
/**
|
|
50
|
-
* Get blob by ID.
|
|
51
|
+
* Get blob by ID. This will return the blob as a binary stream.
|
|
51
52
|
*/
|
|
52
53
|
export declare const getBlob: (
|
|
53
54
|
options: Options<GetBlobData>
|
|
54
55
|
) => import('@hey-api/client-fetch').RequestResult<void, unknown>;
|
|
56
|
+
export declare const headBlob: (
|
|
57
|
+
options: Options<HeadBlobData>
|
|
58
|
+
) => import('@hey-api/client-fetch').RequestResult<void, import('./types.gen').ProblemDetails>;
|
|
55
59
|
export declare const claimJobs: (
|
|
56
60
|
options: Options<ClaimJobsData>
|
|
57
61
|
) => import('@hey-api/client-fetch').RequestResult<
|
|
@@ -8,7 +8,7 @@ export const uploadBlob = (options) => {
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
-
* Get blob by ID.
|
|
11
|
+
* Get blob by ID. This will return the blob as a binary stream.
|
|
12
12
|
*/
|
|
13
13
|
export const getBlob = (options) => {
|
|
14
14
|
var _a;
|
|
@@ -17,6 +17,13 @@ export const getBlob = (options) => {
|
|
|
17
17
|
url: '/v2/consumer/blobs/{blobId}',
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
+
export const headBlob = (options) => {
|
|
21
|
+
var _a;
|
|
22
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).head({
|
|
23
|
+
...options,
|
|
24
|
+
url: '/v2/consumer/blobs/{blobId}',
|
|
25
|
+
});
|
|
26
|
+
};
|
|
20
27
|
export const claimJobs = (options) => {
|
|
21
28
|
var _a;
|
|
22
29
|
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
@@ -210,7 +210,6 @@ export type ComfyVideoGenJob = Job & {
|
|
|
210
210
|
seed?: number;
|
|
211
211
|
steps?: number;
|
|
212
212
|
sourceImageUrl?: string | null;
|
|
213
|
-
additionalNetworks?: Array<string>;
|
|
214
213
|
readonly claimDuration?: string;
|
|
215
214
|
readonly type?: string;
|
|
216
215
|
} & {
|
|
@@ -2520,6 +2519,13 @@ export type GetBlobData = {
|
|
|
2520
2519
|
nsfwLevel?: NSFWLevel;
|
|
2521
2520
|
};
|
|
2522
2521
|
};
|
|
2522
|
+
export type HeadBlobData = {
|
|
2523
|
+
path: {
|
|
2524
|
+
blobId: string;
|
|
2525
|
+
};
|
|
2526
|
+
};
|
|
2527
|
+
export type HeadBlobResponse = void;
|
|
2528
|
+
export type HeadBlobError = ProblemDetails;
|
|
2523
2529
|
export type ClaimJobsData = {
|
|
2524
2530
|
path: {
|
|
2525
2531
|
workerId: string;
|
|
@@ -2925,6 +2931,23 @@ export type $OpenApiTs = {
|
|
|
2925
2931
|
'401': ProblemDetails;
|
|
2926
2932
|
};
|
|
2927
2933
|
};
|
|
2934
|
+
head: {
|
|
2935
|
+
req: HeadBlobData;
|
|
2936
|
+
res: {
|
|
2937
|
+
/**
|
|
2938
|
+
* No Content
|
|
2939
|
+
*/
|
|
2940
|
+
'204': void;
|
|
2941
|
+
/**
|
|
2942
|
+
* Unauthorized
|
|
2943
|
+
*/
|
|
2944
|
+
'401': ProblemDetails;
|
|
2945
|
+
/**
|
|
2946
|
+
* Not Found
|
|
2947
|
+
*/
|
|
2948
|
+
'404': ProblemDetails;
|
|
2949
|
+
};
|
|
2950
|
+
};
|
|
2928
2951
|
};
|
|
2929
2952
|
'/v2/providers/workers/{workerId}/claims': {
|
|
2930
2953
|
get: {
|