@civitai/orchestration-client 0.2.0-beta.101
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/README.md +47 -0
- package/dist/client/CivitaiClient.d.ts +8 -0
- package/dist/client/CivitaiClient.js +29 -0
- package/dist/generated/client/client.gen.d.ts +2 -0
- package/dist/generated/client/client.gen.js +237 -0
- package/dist/generated/client/index.d.ts +8 -0
- package/dist/generated/client/index.js +6 -0
- package/dist/generated/client/types.gen.d.ts +117 -0
- package/dist/generated/client/types.gen.js +2 -0
- package/dist/generated/client/utils.gen.d.ts +33 -0
- package/dist/generated/client/utils.gen.js +234 -0
- package/dist/generated/client.gen.d.ts +12 -0
- package/dist/generated/client.gen.js +3 -0
- package/dist/generated/core/auth.gen.d.ts +18 -0
- package/dist/generated/core/auth.gen.js +14 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/core/bodySerializer.gen.js +57 -0
- package/dist/generated/core/params.gen.d.ts +43 -0
- package/dist/generated/core/params.gen.js +100 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/core/pathSerializer.gen.js +106 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/core/queryKeySerializer.gen.js +92 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/core/serverSentEvents.gen.js +134 -0
- package/dist/generated/core/types.gen.d.ts +78 -0
- package/dist/generated/core/types.gen.js +2 -0
- package/dist/generated/core/utils.gen.d.ts +19 -0
- package/dist/generated/core/utils.gen.js +87 -0
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/index.js +3 -0
- package/dist/generated/sdk.gen.d.ts +397 -0
- package/dist/generated/sdk.gen.js +1082 -0
- package/dist/generated/types.gen.d.ts +13600 -0
- package/dist/generated/types.gen.js +483 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/utils/Air.d.ts +23 -0
- package/dist/utils/Air.js +21 -0
- package/dist/utils/TimeSpan.d.ts +38 -0
- package/dist/utils/TimeSpan.js +108 -0
- package/dist/utils/handleError.d.ts +2 -0
- package/dist/utils/handleError.js +9 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/patch-json.d.ts +40 -0
- package/dist/utils/patch-json.js +175 -0
- package/package.json +56 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
/**
|
|
3
|
+
* Replacer that converts non-JSON values (bigint, Date, etc.) to safe substitutes.
|
|
4
|
+
*/
|
|
5
|
+
export const queryKeyJsonReplacer = (_key, value) => {
|
|
6
|
+
if (value === undefined || typeof value === 'function' || typeof value === 'symbol') {
|
|
7
|
+
return undefined;
|
|
8
|
+
}
|
|
9
|
+
if (typeof value === 'bigint') {
|
|
10
|
+
return value.toString();
|
|
11
|
+
}
|
|
12
|
+
if (value instanceof Date) {
|
|
13
|
+
return value.toISOString();
|
|
14
|
+
}
|
|
15
|
+
return value;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Safely stringifies a value and parses it back into a JsonValue.
|
|
19
|
+
*/
|
|
20
|
+
export const stringifyToJsonValue = (input) => {
|
|
21
|
+
try {
|
|
22
|
+
const json = JSON.stringify(input, queryKeyJsonReplacer);
|
|
23
|
+
if (json === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
return JSON.parse(json);
|
|
27
|
+
}
|
|
28
|
+
catch (_a) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Detects plain objects (including objects with a null prototype).
|
|
34
|
+
*/
|
|
35
|
+
const isPlainObject = (value) => {
|
|
36
|
+
if (value === null || typeof value !== 'object') {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
const prototype = Object.getPrototypeOf(value);
|
|
40
|
+
return prototype === Object.prototype || prototype === null;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Turns URLSearchParams into a sorted JSON object for deterministic keys.
|
|
44
|
+
*/
|
|
45
|
+
const serializeSearchParams = (params) => {
|
|
46
|
+
const entries = Array.from(params.entries()).sort(([a], [b]) => a.localeCompare(b));
|
|
47
|
+
const result = {};
|
|
48
|
+
for (const [key, value] of entries) {
|
|
49
|
+
const existing = result[key];
|
|
50
|
+
if (existing === undefined) {
|
|
51
|
+
result[key] = value;
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
if (Array.isArray(existing)) {
|
|
55
|
+
existing.push(value);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
result[key] = [existing, value];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return result;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Normalizes any accepted value into a JSON-friendly shape for query keys.
|
|
65
|
+
*/
|
|
66
|
+
export const serializeQueryKeyValue = (value) => {
|
|
67
|
+
if (value === null) {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
if (value === undefined || typeof value === 'function' || typeof value === 'symbol') {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
if (typeof value === 'bigint') {
|
|
77
|
+
return value.toString();
|
|
78
|
+
}
|
|
79
|
+
if (value instanceof Date) {
|
|
80
|
+
return value.toISOString();
|
|
81
|
+
}
|
|
82
|
+
if (Array.isArray(value)) {
|
|
83
|
+
return stringifyToJsonValue(value);
|
|
84
|
+
}
|
|
85
|
+
if (typeof URLSearchParams !== 'undefined' && value instanceof URLSearchParams) {
|
|
86
|
+
return serializeSearchParams(value);
|
|
87
|
+
}
|
|
88
|
+
if (isPlainObject(value)) {
|
|
89
|
+
return stringifyToJsonValue(value);
|
|
90
|
+
}
|
|
91
|
+
return undefined;
|
|
92
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { Config } from './types.gen';
|
|
2
|
+
export type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
3
|
+
/**
|
|
4
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
5
|
+
* fetch instance.
|
|
6
|
+
*
|
|
7
|
+
* @default globalThis.fetch
|
|
8
|
+
*/
|
|
9
|
+
fetch?: typeof fetch;
|
|
10
|
+
/**
|
|
11
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
12
|
+
*/
|
|
13
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
14
|
+
/**
|
|
15
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
16
|
+
*
|
|
17
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
18
|
+
*
|
|
19
|
+
* @param error The error that occurred.
|
|
20
|
+
*/
|
|
21
|
+
onSseError?: (error: unknown) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Callback invoked when an event is streamed from the server.
|
|
24
|
+
*
|
|
25
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
26
|
+
*
|
|
27
|
+
* @param event Event streamed from the server.
|
|
28
|
+
* @returns Nothing (void).
|
|
29
|
+
*/
|
|
30
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
31
|
+
serializedBody?: RequestInit['body'];
|
|
32
|
+
/**
|
|
33
|
+
* Default retry delay in milliseconds.
|
|
34
|
+
*
|
|
35
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
36
|
+
*
|
|
37
|
+
* @default 3000
|
|
38
|
+
*/
|
|
39
|
+
sseDefaultRetryDelay?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Maximum number of retry attempts before giving up.
|
|
42
|
+
*/
|
|
43
|
+
sseMaxRetryAttempts?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Maximum retry delay in milliseconds.
|
|
46
|
+
*
|
|
47
|
+
* Applies only when exponential backoff is used.
|
|
48
|
+
*
|
|
49
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
50
|
+
*
|
|
51
|
+
* @default 30000
|
|
52
|
+
*/
|
|
53
|
+
sseMaxRetryDelay?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Optional sleep function for retry backoff.
|
|
56
|
+
*
|
|
57
|
+
* Defaults to using `setTimeout`.
|
|
58
|
+
*/
|
|
59
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
60
|
+
url: string;
|
|
61
|
+
};
|
|
62
|
+
export interface StreamEvent<TData = unknown> {
|
|
63
|
+
data: TData;
|
|
64
|
+
event?: string;
|
|
65
|
+
id?: string;
|
|
66
|
+
retry?: number;
|
|
67
|
+
}
|
|
68
|
+
export type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
69
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
70
|
+
};
|
|
71
|
+
export declare const createSseClient: <TData = unknown>({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }: ServerSentEventsOptions) => ServerSentEventsResult<TData>;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
export const createSseClient = ({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }) => {
|
|
3
|
+
let lastEventId;
|
|
4
|
+
const sleep = sseSleepFn !== null && sseSleepFn !== void 0 ? sseSleepFn : ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
|
|
5
|
+
const createStream = async function* () {
|
|
6
|
+
var _a, _b, _c;
|
|
7
|
+
let retryDelay = sseDefaultRetryDelay !== null && sseDefaultRetryDelay !== void 0 ? sseDefaultRetryDelay : 3000;
|
|
8
|
+
let attempt = 0;
|
|
9
|
+
const signal = (_a = options.signal) !== null && _a !== void 0 ? _a : new AbortController().signal;
|
|
10
|
+
while (true) {
|
|
11
|
+
if (signal.aborted)
|
|
12
|
+
break;
|
|
13
|
+
attempt++;
|
|
14
|
+
const headers = options.headers instanceof Headers
|
|
15
|
+
? options.headers
|
|
16
|
+
: new Headers(options.headers);
|
|
17
|
+
if (lastEventId !== undefined) {
|
|
18
|
+
headers.set('Last-Event-ID', lastEventId);
|
|
19
|
+
}
|
|
20
|
+
try {
|
|
21
|
+
const requestInit = {
|
|
22
|
+
redirect: 'follow',
|
|
23
|
+
...options,
|
|
24
|
+
body: options.serializedBody,
|
|
25
|
+
headers,
|
|
26
|
+
signal,
|
|
27
|
+
};
|
|
28
|
+
let request = new Request(url, requestInit);
|
|
29
|
+
if (onRequest) {
|
|
30
|
+
request = await onRequest(url, requestInit);
|
|
31
|
+
}
|
|
32
|
+
// fetch must be assigned here, otherwise it would throw the error:
|
|
33
|
+
// TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
|
|
34
|
+
const _fetch = (_b = options.fetch) !== null && _b !== void 0 ? _b : globalThis.fetch;
|
|
35
|
+
const response = await _fetch(request);
|
|
36
|
+
if (!response.ok)
|
|
37
|
+
throw new Error(`SSE failed: ${response.status} ${response.statusText}`);
|
|
38
|
+
if (!response.body)
|
|
39
|
+
throw new Error('No body in SSE response');
|
|
40
|
+
const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
|
|
41
|
+
let buffer = '';
|
|
42
|
+
const abortHandler = () => {
|
|
43
|
+
try {
|
|
44
|
+
reader.cancel();
|
|
45
|
+
}
|
|
46
|
+
catch (_a) {
|
|
47
|
+
// noop
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
signal.addEventListener('abort', abortHandler);
|
|
51
|
+
try {
|
|
52
|
+
while (true) {
|
|
53
|
+
const { done, value } = await reader.read();
|
|
54
|
+
if (done)
|
|
55
|
+
break;
|
|
56
|
+
buffer += value;
|
|
57
|
+
// Normalize line endings: CRLF -> LF, then CR -> LF
|
|
58
|
+
buffer = buffer.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
|
|
59
|
+
const chunks = buffer.split('\n\n');
|
|
60
|
+
buffer = (_c = chunks.pop()) !== null && _c !== void 0 ? _c : '';
|
|
61
|
+
for (const chunk of chunks) {
|
|
62
|
+
const lines = chunk.split('\n');
|
|
63
|
+
const dataLines = [];
|
|
64
|
+
let eventName;
|
|
65
|
+
for (const line of lines) {
|
|
66
|
+
if (line.startsWith('data:')) {
|
|
67
|
+
dataLines.push(line.replace(/^data:\s*/, ''));
|
|
68
|
+
}
|
|
69
|
+
else if (line.startsWith('event:')) {
|
|
70
|
+
eventName = line.replace(/^event:\s*/, '');
|
|
71
|
+
}
|
|
72
|
+
else if (line.startsWith('id:')) {
|
|
73
|
+
lastEventId = line.replace(/^id:\s*/, '');
|
|
74
|
+
}
|
|
75
|
+
else if (line.startsWith('retry:')) {
|
|
76
|
+
const parsed = Number.parseInt(line.replace(/^retry:\s*/, ''), 10);
|
|
77
|
+
if (!Number.isNaN(parsed)) {
|
|
78
|
+
retryDelay = parsed;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
let data;
|
|
83
|
+
let parsedJson = false;
|
|
84
|
+
if (dataLines.length) {
|
|
85
|
+
const rawData = dataLines.join('\n');
|
|
86
|
+
try {
|
|
87
|
+
data = JSON.parse(rawData);
|
|
88
|
+
parsedJson = true;
|
|
89
|
+
}
|
|
90
|
+
catch (_d) {
|
|
91
|
+
data = rawData;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (parsedJson) {
|
|
95
|
+
if (responseValidator) {
|
|
96
|
+
await responseValidator(data);
|
|
97
|
+
}
|
|
98
|
+
if (responseTransformer) {
|
|
99
|
+
data = await responseTransformer(data);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
onSseEvent === null || onSseEvent === void 0 ? void 0 : onSseEvent({
|
|
103
|
+
data,
|
|
104
|
+
event: eventName,
|
|
105
|
+
id: lastEventId,
|
|
106
|
+
retry: retryDelay,
|
|
107
|
+
});
|
|
108
|
+
if (dataLines.length) {
|
|
109
|
+
yield data;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
finally {
|
|
115
|
+
signal.removeEventListener('abort', abortHandler);
|
|
116
|
+
reader.releaseLock();
|
|
117
|
+
}
|
|
118
|
+
break; // exit loop on normal completion
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
// connection failed or aborted; retry after delay
|
|
122
|
+
onSseError === null || onSseError === void 0 ? void 0 : onSseError(error);
|
|
123
|
+
if (sseMaxRetryAttempts !== undefined && attempt >= sseMaxRetryAttempts) {
|
|
124
|
+
break; // stop after firing error
|
|
125
|
+
}
|
|
126
|
+
// exponential backoff: double retry each attempt, cap at 30s
|
|
127
|
+
const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay !== null && sseMaxRetryDelay !== void 0 ? sseMaxRetryDelay : 30000);
|
|
128
|
+
await sleep(backoff);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
const stream = createStream();
|
|
133
|
+
return { stream };
|
|
134
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { Auth, AuthToken } from './auth.gen';
|
|
2
|
+
import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from './bodySerializer.gen';
|
|
3
|
+
export type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
4
|
+
export type Client<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the final request URL.
|
|
7
|
+
*/
|
|
8
|
+
buildUrl: BuildUrlFn;
|
|
9
|
+
getConfig: () => Config;
|
|
10
|
+
request: RequestFn;
|
|
11
|
+
setConfig: (config: Config) => Config;
|
|
12
|
+
} & {
|
|
13
|
+
[K in HttpMethod]: MethodFn;
|
|
14
|
+
} & ([SseFn] extends [never] ? {
|
|
15
|
+
sse?: never;
|
|
16
|
+
} : {
|
|
17
|
+
sse: {
|
|
18
|
+
[K in HttpMethod]: SseFn;
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
export interface Config {
|
|
22
|
+
/**
|
|
23
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
24
|
+
* added to the request payload as defined by its `security` array.
|
|
25
|
+
*/
|
|
26
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
27
|
+
/**
|
|
28
|
+
* A function for serializing request body parameter. By default,
|
|
29
|
+
* {@link JSON.stringify()} will be used.
|
|
30
|
+
*/
|
|
31
|
+
bodySerializer?: BodySerializer | null;
|
|
32
|
+
/**
|
|
33
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
34
|
+
* `Headers` object with.
|
|
35
|
+
*
|
|
36
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
37
|
+
*/
|
|
38
|
+
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
39
|
+
/**
|
|
40
|
+
* The request method.
|
|
41
|
+
*
|
|
42
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
43
|
+
*/
|
|
44
|
+
method?: Uppercase<HttpMethod>;
|
|
45
|
+
/**
|
|
46
|
+
* A function for serializing request query parameters. By default, arrays
|
|
47
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
48
|
+
* style, and reserved characters are percent-encoded.
|
|
49
|
+
*
|
|
50
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
51
|
+
* API function is used.
|
|
52
|
+
*
|
|
53
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
54
|
+
*/
|
|
55
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
56
|
+
/**
|
|
57
|
+
* A function validating request data. This is useful if you want to ensure
|
|
58
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
59
|
+
* the server.
|
|
60
|
+
*/
|
|
61
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
62
|
+
/**
|
|
63
|
+
* A function transforming response data before it's returned. This is useful
|
|
64
|
+
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
65
|
+
*/
|
|
66
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
67
|
+
/**
|
|
68
|
+
* A function validating response data. This is useful if you want to ensure
|
|
69
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
70
|
+
* the transformers and returned to the user.
|
|
71
|
+
*/
|
|
72
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
73
|
+
}
|
|
74
|
+
type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never] ? true : [T] extends [never | undefined] ? [undefined] extends [T] ? false : true : false;
|
|
75
|
+
export type OmitNever<T extends Record<string, unknown>> = {
|
|
76
|
+
[K in keyof T as IsExactlyNeverOrNeverUndefined<T[K]> extends true ? never : K]: T[K];
|
|
77
|
+
};
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { BodySerializer, QuerySerializer } from './bodySerializer.gen';
|
|
2
|
+
export interface PathSerializer {
|
|
3
|
+
path: Record<string, unknown>;
|
|
4
|
+
url: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const PATH_PARAM_RE: RegExp;
|
|
7
|
+
export declare const defaultPathSerializer: ({ path, url: _url }: PathSerializer) => string;
|
|
8
|
+
export declare const getUrl: ({ baseUrl, path, query, querySerializer, url: _url, }: {
|
|
9
|
+
baseUrl?: string;
|
|
10
|
+
path?: Record<string, unknown>;
|
|
11
|
+
query?: Record<string, unknown>;
|
|
12
|
+
querySerializer: QuerySerializer;
|
|
13
|
+
url: string;
|
|
14
|
+
}) => string;
|
|
15
|
+
export declare function getValidRequestBody(options: {
|
|
16
|
+
body?: unknown;
|
|
17
|
+
bodySerializer?: BodySerializer | null;
|
|
18
|
+
serializedBody?: unknown;
|
|
19
|
+
}): unknown;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam, } from './pathSerializer.gen';
|
|
3
|
+
export const PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
4
|
+
export const defaultPathSerializer = ({ path, url: _url }) => {
|
|
5
|
+
let url = _url;
|
|
6
|
+
const matches = _url.match(PATH_PARAM_RE);
|
|
7
|
+
if (matches) {
|
|
8
|
+
for (const match of matches) {
|
|
9
|
+
let explode = false;
|
|
10
|
+
let name = match.substring(1, match.length - 1);
|
|
11
|
+
let style = 'simple';
|
|
12
|
+
if (name.endsWith('*')) {
|
|
13
|
+
explode = true;
|
|
14
|
+
name = name.substring(0, name.length - 1);
|
|
15
|
+
}
|
|
16
|
+
if (name.startsWith('.')) {
|
|
17
|
+
name = name.substring(1);
|
|
18
|
+
style = 'label';
|
|
19
|
+
}
|
|
20
|
+
else if (name.startsWith(';')) {
|
|
21
|
+
name = name.substring(1);
|
|
22
|
+
style = 'matrix';
|
|
23
|
+
}
|
|
24
|
+
const value = path[name];
|
|
25
|
+
if (value === undefined || value === null) {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if (Array.isArray(value)) {
|
|
29
|
+
url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
if (typeof value === 'object') {
|
|
33
|
+
url = url.replace(match, serializeObjectParam({
|
|
34
|
+
explode,
|
|
35
|
+
name,
|
|
36
|
+
style,
|
|
37
|
+
value: value,
|
|
38
|
+
valueOnly: true,
|
|
39
|
+
}));
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (style === 'matrix') {
|
|
43
|
+
url = url.replace(match, `;${serializePrimitiveParam({
|
|
44
|
+
name,
|
|
45
|
+
value: value,
|
|
46
|
+
})}`);
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
const replaceValue = encodeURIComponent(style === 'label' ? `.${value}` : value);
|
|
50
|
+
url = url.replace(match, replaceValue);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return url;
|
|
54
|
+
};
|
|
55
|
+
export const getUrl = ({ baseUrl, path, query, querySerializer, url: _url, }) => {
|
|
56
|
+
const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;
|
|
57
|
+
let url = (baseUrl !== null && baseUrl !== void 0 ? baseUrl : '') + pathUrl;
|
|
58
|
+
if (path) {
|
|
59
|
+
url = defaultPathSerializer({ path, url });
|
|
60
|
+
}
|
|
61
|
+
let search = query ? querySerializer(query) : '';
|
|
62
|
+
if (search.startsWith('?')) {
|
|
63
|
+
search = search.substring(1);
|
|
64
|
+
}
|
|
65
|
+
if (search) {
|
|
66
|
+
url += `?${search}`;
|
|
67
|
+
}
|
|
68
|
+
return url;
|
|
69
|
+
};
|
|
70
|
+
export function getValidRequestBody(options) {
|
|
71
|
+
const hasBody = options.body !== undefined;
|
|
72
|
+
const isSerializedBody = hasBody && options.bodySerializer;
|
|
73
|
+
if (isSerializedBody) {
|
|
74
|
+
if ('serializedBody' in options) {
|
|
75
|
+
const hasSerializedBody = options.serializedBody !== undefined && options.serializedBody !== '';
|
|
76
|
+
return hasSerializedBody ? options.serializedBody : null;
|
|
77
|
+
}
|
|
78
|
+
// not all clients implement a serializedBody property (i.e., client-axios)
|
|
79
|
+
return options.body !== '' ? options.body : null;
|
|
80
|
+
}
|
|
81
|
+
// plain/text body
|
|
82
|
+
if (hasBody) {
|
|
83
|
+
return options.body;
|
|
84
|
+
}
|
|
85
|
+
// no body was provided
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { addWorkflowTag, deleteWorkflow, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getResource, getService, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateUserCache, invalidateUserTokens, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeAudioCaptioningStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyNodepackSnapshotStepTemplate, invokeComfyStepTemplate, invokeComposeMediaStepTemplate, invokeConvertImageStepTemplate, invokeCustomComfyStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageBackgroundRemovalStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageToSvgStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeMiniMaxMusic3StepTemplate, invokeModel3dPreviewStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, invokePolyGenStepTemplate, invokePrepareResourceStepTemplate, invokePreprocessImageStepTemplate, invokePreprocessVideoStepTemplate, invokePromptEnhancementStepTemplate, invokeQwenImageBenchStepTemplate, invokeRepeatStepTemplate, invokeShieldstralModerationStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoBackgroundRemovalStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeWebScrapeStepTemplate, invokeWebSearchStepTemplate, invokeXGuardModerationStepTemplate, listServices, type Options, patchWorkflow, patchWorkflowStep, queryResources, queryWorkflows, refreshBlob, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen';
|
|
2
|
+
export { type AceStep15AiToolkitTrainingInput, type AceStep15AiToolkitTrainingInputWritable, type AceStep15XlAiToolkitTrainingInput, type AceStep15XlAiToolkitTrainingInputWritable, type AceStep15XlBaseAiToolkitTrainingInput, type AceStep15XlBaseAiToolkitTrainingInputWritable, type AceStep15XlSftAiToolkitTrainingInput, type AceStep15XlSftAiToolkitTrainingInputWritable, type AceStepAudioCover, type AceStepAudioInput, type AceStepAudioOutput, type AceStepAudioStep, type AceStepAudioStepTemplate, type AceStepSampleOverride, type AddWorkflowTagData, type AddWorkflowTagError, type AddWorkflowTagErrors, type AddWorkflowTagResponse, type AddWorkflowTagResponses, type AgeClassificationInput, type AgeClassificationOutput, type AgeClassificationResult, type AgeClassificationStep, type AgeClassificationStepTemplate, type AgeClassifierLabel, type AgeDetection, type AiRecognitionResult, type AiToolkitTrainingInput, type AiToolkitTrainingInputWritable, type AnimaAiToolkitTrainingInput, type AnimaAiToolkitTrainingInputWritable, type AnimaCreateImageGenInput, type AnimaImageGenInput, AnimalPoseBboxDetector, AnimalPoseEstimator, type AnimaVariantImageGenInput, type AnimeBodyAgeClassificationResult, type AnimeRecognitionResult, AnylineMergeWith, ArchiveFormat, type AssistantMessage, type AudioBlob, type AudioCaptioningInput, type AudioCaptioningOutput, type AudioCaptioningOutputItem, type AudioCaptioningStep, type AudioCaptioningStepTemplate, type AudioComposeMediaOutput, type AvailableResourceAvailability, type BackgroundRemovalTransformer, type BasicAnimationsBlobs, type BatchOcrSafetyClassificationInput, type BatchOcrSafetyClassificationOutput, type BatchOcrSafetyClassificationResult, type Blob, type BlobArchiveEntry, type BlobArchiveInput, type BlobArchiveOutput, type BlobArchiveStep, type BlobArchiveStepTemplate, type BlobsTrainingData, type BlobTrainingDataItem, type BlurRegion, BlurRegionMode, type BlurTransform, type BodyAgeClassificationResult, type BodyAgeDetection, type BooguAiToolkitTrainingInput, type BooguAiToolkitTrainingInputWritable, type BoundingBox, type BucketResponse, BuzzClientAccount, type ChatCompletionChoice, type ChatCompletionContentPart, type ChatCompletionContentPartWritable, type ChatCompletionFunction, type ChatCompletionFunctionCall, type ChatCompletionGeneratedImage, type ChatCompletionGeneratedImageUrl, type ChatCompletionImageConfig, type ChatCompletionImageUrl, type ChatCompletionInput, type ChatCompletionJsonSchema, type ChatCompletionMessage, type ChatCompletionMessageWritable, type ChatCompletionOutput, type ChatCompletionResponseFormat, type ChatCompletionStep, type ChatCompletionStepTemplate, type ChatCompletionTool, type ChatCompletionToolCall, type ChatCompletionUsage, type ChromaAiToolkitTrainingInput, type ChromaAiToolkitTrainingInputWritable, type ClientOptions, CoarseMode, type ComfyAnimaCreateImageGenInput, type ComfyAnimaImageGenInput, type ComfyAnimaVariantImageGenInput, type ComfyBooguBaseCreateImageGenInput, type ComfyBooguBaseImageGenInput, type ComfyBooguEditImageGenInput, type ComfyBooguEditImageInput, type ComfyBooguEditTurboImageGenInput, type ComfyBooguEditTurboImageInput, type ComfyBooguImageGenInput, type ComfyBooguTurboCreateImageGenInput, type ComfyBooguTurboImageGenInput, type ComfyErnieImageGenInput, type ComfyErnieStandardCreateImageGenInput, type ComfyErnieStandardImageGenInput, type ComfyErnieTurboCreateImageGenInput, type ComfyErnieTurboImageGenInput, type ComfyFlux1CreateImageGenInput, type ComfyFlux1ImageGenInput, type ComfyFlux1VariantImageGenInput, type ComfyFlux2DevCreateImageInput, type ComfyFlux2DevEditImageInput, type ComfyFlux2DevImageGenInput, type ComfyHiDreamImageGenInput, type ComfyHiDreamO1CreateImageGenInput, type ComfyHiDreamO1DevCreateImageGenInput, type ComfyHiDreamO1DevEditImageGenInput, type ComfyHiDreamO1DevImageGenInput, type ComfyHiDreamO1EditImageGenInput, type ComfyHiDreamO1ImageGenInput, type ComfyIdeogram4CreateImageGenInput, type ComfyIdeogram4ImageGenInput, type ComfyImageGenInput, type ComfyImageToSvgInput, type ComfyInput, type ComfyKrea2EditImageGenInput, type ComfyKrea2EditImageInput, type ComfyKrea2ImageGenInput, type ComfyKrea2RawCreateImageGenInput, type ComfyKrea2RawImageGenInput, type ComfyKrea2TurboCreateImageGenInput, type ComfyKrea2TurboImageGenInput, type ComfyLensImageGenInput, type ComfyLensNormalCreateImageGenInput, type ComfyLensNormalImageGenInput, type ComfyLensTurboCreateImageGenInput, type ComfyLensTurboImageGenInput, type ComfyLtx23AudioToVideoInput, type ComfyLtx23CreateVideoInput, type ComfyLtx23EditVideoInput, type ComfyLtx23ExtendVideoInput, type ComfyLtx23FirstLastFrameToVideoInput, type ComfyLtx23VideoGenInput, type ComfyLtx23VideoToVideoInput, type ComfyLtx25AudioToVideoInput, type ComfyLtx25CreateVideoInput, type ComfyLtx25EditVideoInput, type ComfyLtx25ExtendVideoInput, type ComfyLtx25FirstLastFrameToVideoInput, type ComfyLtx25VideoGenInput, type ComfyLtx25VideoToVideoInput, type ComfyLtx2CreateVideoInput, type ComfyLtx2EditVideoInput, type ComfyLtx2ExtendVideoInput, type ComfyLtx2FirstLastFrameToVideoInput, type ComfyLtx2VideoGenInput, type ComfyMageFlow4bCreateImageGenInput, type ComfyMageFlow4bEditImageGenInput, type ComfyMageFlow4bEditImageInput, type ComfyMageFlow4bEditTurboImageGenInput, type ComfyMageFlow4bEditTurboImageInput, type ComfyMageFlow4bImageGenInput, type ComfyMageFlow4bTurboCreateImageGenInput, type ComfyMageFlow4bTurboImageGenInput, type ComfyMageFlowImageGenInput, type ComfyMiniMaxH3ControlVideoInput, type ComfyMiniMaxH3ImageToVideoInput, type ComfyMiniMaxH3ReferenceToVideoInput, type ComfyMiniMaxH3VideoGenInput, type ComfyNode, type ComfyNodepackSnapshotInput, type ComfyNodepackSnapshotOutput, type ComfyNodepackSnapshotResult, type ComfyNodepackSnapshotStep, type ComfyNodepackSnapshotStepTemplate, type ComfyOutput, type ComfyPolyGenInput, ComfySampler, ComfyScheduler, type ComfySd1CreateImageGenInput, type ComfySd1ImageGenInput, type ComfySd1VariantImageGenInput, type ComfySdxlCreateImageGenInput, type ComfySdxlImageGenInput, type ComfySdxlVariantImageGenInput, type ComfyStep, type ComfyStepTemplate, type ComfyTrainingInput, type ComfyTrainingInputWritable, type ComposeMediaElementInput, type ComposeMediaInput, type ComposeMediaOutput, type ComposeMediaOutputSpec, type ComposeMediaResolvedElement, type ComposeMediaStep, type ComposeMediaStepTemplate, type ConsumerBlobPresignResponse, ContainerFormat, type ConvertImageInput, type ConvertImageOutput, type ConvertImageStep, type ConvertImageStepTemplate, type CursedArrayOfStringAndResourceInfo, type CursedArrayOfTelemetryCursorAndWorkflow, type CursedArrayOfTelemetryCursorAndWorkflowWritable, type CustomComfyInput, type CustomComfyOutput, type CustomComfyStep, type CustomComfyStepTemplate, type CustomComfyUsage, type CustomTextToSpeechInput, type DeleteWorkflowData, type DeleteWorkflowError, type DeleteWorkflowErrors, type DeleteWorkflowResponse, type DeleteWorkflowResponses, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, type EchoInput, type EchoOutput, type EchoStep, type EchoStepTemplate, type EpochResult, type ErnieAiToolkitTrainingInput, type ErnieAiToolkitTrainingInputWritable, type FaceDetection, type FaceDetectionInfo, type FaceRecognitionResult, type FadeInTransformer, type FadeOutTransformer, type FalImageGenInput, type FalPolyGenInput, FileFormat, type Flux1AiToolkitTrainingInput, type Flux1AiToolkitTrainingInputWritable, type Flux1DevAiToolkitTrainingInput, type Flux1DevAiToolkitTrainingInputWritable, type Flux1KontextDevImageGenInput, type Flux1KontextDevImageGenInputWritable, type Flux1KontextImageGenInput, type Flux1KontextImageGenInputWritable, type Flux1KontextMaxImageGenInput, type Flux1KontextMaxImageGenInputWritable, type Flux1KontextProImageGenInput, type Flux1KontextProImageGenInputWritable, type Flux1SchnellAiToolkitTrainingInput, type Flux1SchnellAiToolkitTrainingInputWritable, type Flux1SdCppCreateImageInput, type Flux1SdCppEditImageInput, type Flux1SdCppImageGenInput, type Flux1SdCppVariantImageGenInput, type Flux2DevCreateImageInput, type Flux2DevEditImageInput, type Flux2DevEditImageResourceTrainingInput, type Flux2DevImageGenInput, type Flux2DevImageResourceTrainingInput, type Flux2DevSdCppCreateImageInput, type Flux2DevSdCppEditImageInput, type Flux2DevSdCppImageGenInput, type Flux2DevSdCppVariantImageGenInput, type Flux2FlexCreateImageInput, type Flux2FlexEditImageInput, type Flux2FlexImageGenInput, type Flux2ImageGenInput, type Flux2Klein4bAiToolkitTrainingInput, type Flux2Klein4bAiToolkitTrainingInputWritable, type Flux2Klein9bAiToolkitTrainingInput, type Flux2Klein9bAiToolkitTrainingInputWritable, type Flux2KleinAiToolkitTrainingInput, type Flux2KleinAiToolkitTrainingInputWritable, type Flux2KleinCreateImageInput, type Flux2KleinEditImageInput, type Flux2KleinImageGenInput, type Flux2KleinSdCppCreateImageInput, type Flux2KleinSdCppEditImageInput, type Flux2KleinSdCppImageGenInput, type Flux2KleinSdCppVariantImageGenInput, type Flux2MaxCreateImageInput, type Flux2MaxEditImageInput, type Flux2MaxImageGenInput, type Flux2ProCreateImageInput, type Flux2ProEditImageInput, type Flux2ProImageGenInput, type Flux3Keyframe, type Flux3V3DraftEnhanceInput, type Flux3V3ExtendVideoInput, type Flux3V3FirstLastFrameToVideoInput, type Flux3V3ImageToVideoInput, type Flux3V3KeyframesToVideoInput, type Flux3V3TextToVideoInput, type Flux3V3VideoGenInput, type Flux3VideoGenInput, type FluxDevFastImageResourceTrainingInput, type Gemini25FlashCreateImageGenInput, type Gemini25FlashEditImageGenInput, type Gemini25FlashImageGenInput, type GeminiImageGenInput, GeminiOmniModel, GeminiOmniResolution, type GeminiOmniVideoGenInput, type GeminiOmniVideoGenInputWritable, type GetBlobArchiveData, type GetBlobArchiveError, type GetBlobArchiveErrors, type GetBlobArchiveResponses, type GetBlobContentData, type GetBlobContentError, type GetBlobContentErrors, type GetBlobContentResponses, type GetBlobData, type GetBlobError, type GetBlobErrors, type GetBlockedContentData, type GetBlockedContentError, type GetBlockedContentErrors, type GetConsumerBlobUploadUrlData, type GetConsumerBlobUploadUrlError, type GetConsumerBlobUploadUrlErrors, type GetConsumerBlobUploadUrlResponse, type GetConsumerBlobUploadUrlResponses, type GetResourceData, type GetResourceError, type GetResourceErrors, type GetResourceResponse, type GetResourceResponses, type GetServiceData, type GetServiceError, type GetServiceErrors, type GetServiceResponse, type GetServiceResponses, type GetStreamingBlobData, type GetStreamingBlobError, type GetStreamingBlobErrors, type GetStreamingBlobResponses, type GetWorkflowData, type GetWorkflowError, type GetWorkflowErrors, type GetWorkflowResponse, type GetWorkflowResponses, type GetWorkflowStepData, type GetWorkflowStepError, type GetWorkflowStepErrors, type GetWorkflowStepResponse, type GetWorkflowStepResponses, type GifOutputFormat, type GoogleImageGenInput, type GrokCreateImageGenInput, type GrokEditImageGenInput, type GrokEditVideoInput, type GrokImageGenInput, type GrokImageToVideoInput, type GrokTextToVideoInput, type GrokV15ImageToVideoInput, type GrokV15ReferenceToVideoInput, type GrokV15TextToVideoInput, type GrokV15VideoGenInput, type GrokV1ImageGenInput, type GrokV1VideoGenInput, type GrokV2CreateImageGenInput, type GrokV2EditImageGenInput, type GrokV2ImageGenInput, type GrokVideoGenInput, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, type HaiperVideoGenInput, HaiperVideoGenModel, type HaiperVideoGenOutput, type HappyHorseV11ImageToVideoInput, type HappyHorseV11ReferenceToVideoInput, type HappyHorseV11TextToVideoInput, type HappyHorseV11VideoGenInput, type HappyHorseV1ImageToVideoInput, type HappyHorseV1ReferenceToVideoInput, type HappyHorseV1TextToVideoInput, type HappyHorseV1VideoEditInput, type HappyHorseV1VideoGenInput, type HappyHorseVideoGenInput, type HeadBlobData, type HeadBlobError, type HeadBlobErrors, type HeadBlobResponse, type HeadBlobResponses, type HiDreamO1AiToolkitTrainingInput, type HiDreamO1AiToolkitTrainingInputWritable, HumanoidImageMaskCategory, type HumanoidImageMaskInput, type HumanoidImageMaskOutput, type HumanRecognitionResult, type Hunyuan3dComfyPolyGenInput, type Hunyuan3dImageTo3dComfyPolyGenInput, type Hunyuan3dShapeGenComfyPolyGenInput, type Hunyuan3dTexGenComfyPolyGenInput, type HunyuanVdeoGenInput, type Ideogram4AiToolkitTrainingInput, type Ideogram4AiToolkitTrainingInputWritable, ImageBackgroundRemovalFormat, type ImageBackgroundRemovalInput, type ImageBackgroundRemovalOutput, type ImageBackgroundRemovalStep, type ImageBackgroundRemovalStepTemplate, type ImageBlob, type ImageGenInput, type ImageGenInputLora, type ImageGenInputWritable, type ImageGenOutput, ImageGenOutputFormat, type ImageGenStep, type ImageGenStepTemplate, type ImageJobControlNet, type ImageJobNetworkParams, type Imagen4ImageGenInput, type ImageOutputFormat, ImageResouceTrainingModerationStatus, type ImageResourceTrainingInput, type ImageResourceTrainingInputWritable, type ImageResourceTrainingOutput, type ImageResourceTrainingStep, type ImageResourceTrainingStepTemplate, type ImageToSvgInput, type ImageToSvgOutput, type ImageToSvgStep, type ImageToSvgStepTemplate, type ImageTransform, ImageTransformer, type ImageUploadOutput, type ImageUploadStep, type ImageUploadStepTemplate, type ImageUpscalerInput, type ImageUpscalerOutput, type ImageUpscalerStep, type ImageUpscalerStepTemplate, type InvalidateUserCacheData, type InvalidateUserCacheError, type InvalidateUserCacheErrors, type InvalidateUserCacheResponse, type InvalidateUserCacheResponses, type InvalidateUserTokensData, type InvalidateUserTokensError, type InvalidateUserTokensErrors, type InvalidateUserTokensResponse, type InvalidateUserTokensResponses, type InvokeAceStepAudioStepTemplateData, type InvokeAceStepAudioStepTemplateError, type InvokeAceStepAudioStepTemplateErrors, type InvokeAceStepAudioStepTemplateResponse, type InvokeAceStepAudioStepTemplateResponses, type InvokeAgeClassificationStepTemplateData, type InvokeAgeClassificationStepTemplateError, type InvokeAgeClassificationStepTemplateErrors, type InvokeAgeClassificationStepTemplateResponse, type InvokeAgeClassificationStepTemplateResponses, type InvokeAudioCaptioningStepTemplateData, type InvokeAudioCaptioningStepTemplateError, type InvokeAudioCaptioningStepTemplateErrors, type InvokeAudioCaptioningStepTemplateResponse, type InvokeAudioCaptioningStepTemplateResponses, type InvokeBatchOcrSafetyClassificationStepTemplateData, type InvokeBatchOcrSafetyClassificationStepTemplateError, type InvokeBatchOcrSafetyClassificationStepTemplateErrors, type InvokeBatchOcrSafetyClassificationStepTemplateResponse, type InvokeBatchOcrSafetyClassificationStepTemplateResponses, type InvokeBlobArchiveStepTemplateData, type InvokeBlobArchiveStepTemplateError, type InvokeBlobArchiveStepTemplateErrors, type InvokeBlobArchiveStepTemplateResponse, type InvokeBlobArchiveStepTemplateResponses, type InvokeChatCompletionStepTemplateData, type InvokeChatCompletionStepTemplateError, type InvokeChatCompletionStepTemplateErrors, type InvokeChatCompletionStepTemplateResponse, type InvokeChatCompletionStepTemplateResponses, type InvokeComfyNodepackSnapshotStepTemplateData, type InvokeComfyNodepackSnapshotStepTemplateError, type InvokeComfyNodepackSnapshotStepTemplateErrors, type InvokeComfyNodepackSnapshotStepTemplateResponse, type InvokeComfyNodepackSnapshotStepTemplateResponses, type InvokeComfyStepTemplateData, type InvokeComfyStepTemplateError, type InvokeComfyStepTemplateErrors, type InvokeComfyStepTemplateResponse, type InvokeComfyStepTemplateResponses, type InvokeComposeMediaStepTemplateData, type InvokeComposeMediaStepTemplateError, type InvokeComposeMediaStepTemplateErrors, type InvokeComposeMediaStepTemplateResponse, type InvokeComposeMediaStepTemplateResponses, type InvokeConvertImageStepTemplateData, type InvokeConvertImageStepTemplateError, type InvokeConvertImageStepTemplateErrors, type InvokeConvertImageStepTemplateResponse, type InvokeConvertImageStepTemplateResponses, type InvokeCustomComfyStepTemplateData, type InvokeCustomComfyStepTemplateError, type InvokeCustomComfyStepTemplateErrors, type InvokeCustomComfyStepTemplateResponse, type InvokeCustomComfyStepTemplateResponses, type InvokeEchoStepTemplateData, type InvokeEchoStepTemplateError, type InvokeEchoStepTemplateErrors, type InvokeEchoStepTemplateResponse, type InvokeEchoStepTemplateResponses, type InvokeHumanoidImageMaskStepTemplateData, type InvokeHumanoidImageMaskStepTemplateError, type InvokeHumanoidImageMaskStepTemplateErrors, type InvokeHumanoidImageMaskStepTemplateResponse, type InvokeHumanoidImageMaskStepTemplateResponses, type InvokeImageBackgroundRemovalStepTemplateData, type InvokeImageBackgroundRemovalStepTemplateError, type InvokeImageBackgroundRemovalStepTemplateErrors, type InvokeImageBackgroundRemovalStepTemplateResponse, type InvokeImageBackgroundRemovalStepTemplateResponses, type InvokeImageGenStepTemplateData, type InvokeImageGenStepTemplateError, type InvokeImageGenStepTemplateErrors, type InvokeImageGenStepTemplateResponse, type InvokeImageGenStepTemplateResponses, type InvokeImageResourceTrainingStepTemplateData, type InvokeImageResourceTrainingStepTemplateError, type InvokeImageResourceTrainingStepTemplateErrors, type InvokeImageResourceTrainingStepTemplateResponse, type InvokeImageResourceTrainingStepTemplateResponses, type InvokeImageToSvgStepTemplateData, type InvokeImageToSvgStepTemplateError, type InvokeImageToSvgStepTemplateErrors, type InvokeImageToSvgStepTemplateResponse, type InvokeImageToSvgStepTemplateResponses, type InvokeImageUploadStepTemplateData, type InvokeImageUploadStepTemplateError, type InvokeImageUploadStepTemplateErrors, type InvokeImageUploadStepTemplateResponse, type InvokeImageUploadStepTemplateResponses, type InvokeImageUpscalerStepTemplateData, type InvokeImageUpscalerStepTemplateError, type InvokeImageUpscalerStepTemplateErrors, type InvokeImageUpscalerStepTemplateResponse, type InvokeImageUpscalerStepTemplateResponses, type InvokeMediaCaptioningStepTemplateData, type InvokeMediaCaptioningStepTemplateError, type InvokeMediaCaptioningStepTemplateErrors, type InvokeMediaCaptioningStepTemplateResponse, type InvokeMediaCaptioningStepTemplateResponses, type InvokeMediaHashStepTemplateData, type InvokeMediaHashStepTemplateError, type InvokeMediaHashStepTemplateErrors, type InvokeMediaHashStepTemplateResponse, type InvokeMediaHashStepTemplateResponses, type InvokeMediaRatingStepTemplateData, type InvokeMediaRatingStepTemplateError, type InvokeMediaRatingStepTemplateErrors, type InvokeMediaRatingStepTemplateResponse, type InvokeMediaRatingStepTemplateResponses, type InvokeMiniMaxMusic3StepTemplateData, type InvokeMiniMaxMusic3StepTemplateError, type InvokeMiniMaxMusic3StepTemplateErrors, type InvokeMiniMaxMusic3StepTemplateResponse, type InvokeMiniMaxMusic3StepTemplateResponses, type InvokeModel3dPreviewStepTemplateData, type InvokeModel3dPreviewStepTemplateError, type InvokeModel3dPreviewStepTemplateErrors, type InvokeModel3dPreviewStepTemplateResponse, type InvokeModel3dPreviewStepTemplateResponses, type InvokeModelClamScanStepTemplateData, type InvokeModelClamScanStepTemplateError, type InvokeModelClamScanStepTemplateErrors, type InvokeModelClamScanStepTemplateResponse, type InvokeModelClamScanStepTemplateResponses, type InvokeModelHashStepTemplateData, type InvokeModelHashStepTemplateError, type InvokeModelHashStepTemplateErrors, type InvokeModelHashStepTemplateResponse, type InvokeModelHashStepTemplateResponses, type InvokeModelParseMetadataStepTemplateData, type InvokeModelParseMetadataStepTemplateError, type InvokeModelParseMetadataStepTemplateErrors, type InvokeModelParseMetadataStepTemplateResponse, type InvokeModelParseMetadataStepTemplateResponses, type InvokeModelPickleScanStepTemplateData, type InvokeModelPickleScanStepTemplateError, type InvokeModelPickleScanStepTemplateErrors, type InvokeModelPickleScanStepTemplateResponse, type InvokeModelPickleScanStepTemplateResponses, type InvokePolyGenStepTemplateData, type InvokePolyGenStepTemplateError, type InvokePolyGenStepTemplateErrors, type InvokePolyGenStepTemplateResponse, type InvokePolyGenStepTemplateResponses, type InvokePrepareResourceStepTemplateData, type InvokePrepareResourceStepTemplateError, type InvokePrepareResourceStepTemplateErrors, type InvokePrepareResourceStepTemplateResponse, type InvokePrepareResourceStepTemplateResponses, type InvokePreprocessImageStepTemplateData, type InvokePreprocessImageStepTemplateError, type InvokePreprocessImageStepTemplateErrors, type InvokePreprocessImageStepTemplateResponse, type InvokePreprocessImageStepTemplateResponses, type InvokePreprocessVideoStepTemplateData, type InvokePreprocessVideoStepTemplateError, type InvokePreprocessVideoStepTemplateErrors, type InvokePreprocessVideoStepTemplateResponse, type InvokePreprocessVideoStepTemplateResponses, type InvokePromptEnhancementStepTemplateData, type InvokePromptEnhancementStepTemplateError, type InvokePromptEnhancementStepTemplateErrors, type InvokePromptEnhancementStepTemplateResponse, type InvokePromptEnhancementStepTemplateResponses, type InvokeQwenImageBenchStepTemplateData, type InvokeQwenImageBenchStepTemplateError, type InvokeQwenImageBenchStepTemplateErrors, type InvokeQwenImageBenchStepTemplateResponse, type InvokeQwenImageBenchStepTemplateResponses, type InvokeRepeatStepTemplateData, type InvokeRepeatStepTemplateError, type InvokeRepeatStepTemplateErrors, type InvokeRepeatStepTemplateResponse, type InvokeRepeatStepTemplateResponses, type InvokeShieldstralModerationStepTemplateData, type InvokeShieldstralModerationStepTemplateError, type InvokeShieldstralModerationStepTemplateErrors, type InvokeShieldstralModerationStepTemplateResponse, type InvokeShieldstralModerationStepTemplateResponses, type InvokeTextToImageStepTemplateData, type InvokeTextToImageStepTemplateError, type InvokeTextToImageStepTemplateErrors, type InvokeTextToImageStepTemplateResponse, type InvokeTextToImageStepTemplateResponses, type InvokeTextToSpeechStepTemplateData, type InvokeTextToSpeechStepTemplateError, type InvokeTextToSpeechStepTemplateErrors, type InvokeTextToSpeechStepTemplateResponse, type InvokeTextToSpeechStepTemplateResponses, type InvokeTrainingStepTemplateData, type InvokeTrainingStepTemplateError, type InvokeTrainingStepTemplateErrors, type InvokeTrainingStepTemplateResponse, type InvokeTrainingStepTemplateResponses, type InvokeTranscodeStepTemplateData, type InvokeTranscodeStepTemplateError, type InvokeTranscodeStepTemplateErrors, type InvokeTranscodeStepTemplateResponse, type InvokeTranscodeStepTemplateResponses, type InvokeTranscriptionStepTemplateData, type InvokeTranscriptionStepTemplateError, type InvokeTranscriptionStepTemplateErrors, type InvokeTranscriptionStepTemplateResponse, type InvokeTranscriptionStepTemplateResponses, type InvokeTryOnUStepTemplateData, type InvokeTryOnUStepTemplateError, type InvokeTryOnUStepTemplateErrors, type InvokeTryOnUStepTemplateResponse, type InvokeTryOnUStepTemplateResponses, type InvokeVideoBackgroundRemovalStepTemplateData, type InvokeVideoBackgroundRemovalStepTemplateError, type InvokeVideoBackgroundRemovalStepTemplateErrors, type InvokeVideoBackgroundRemovalStepTemplateResponse, type InvokeVideoBackgroundRemovalStepTemplateResponses, type InvokeVideoEnhancementStepTemplateData, type InvokeVideoEnhancementStepTemplateError, type InvokeVideoEnhancementStepTemplateErrors, type InvokeVideoEnhancementStepTemplateResponse, type InvokeVideoEnhancementStepTemplateResponses, type InvokeVideoFrameExtractionStepTemplateData, type InvokeVideoFrameExtractionStepTemplateError, type InvokeVideoFrameExtractionStepTemplateErrors, type InvokeVideoFrameExtractionStepTemplateResponse, type InvokeVideoFrameExtractionStepTemplateResponses, type InvokeVideoGenStepTemplateData, type InvokeVideoGenStepTemplateError, type InvokeVideoGenStepTemplateErrors, type InvokeVideoGenStepTemplateResponse, type InvokeVideoGenStepTemplateResponses, type InvokeVideoInterpolationStepTemplateData, type InvokeVideoInterpolationStepTemplateError, type InvokeVideoInterpolationStepTemplateErrors, type InvokeVideoInterpolationStepTemplateResponse, type InvokeVideoInterpolationStepTemplateResponses, type InvokeVideoMetadataStepTemplateData, type InvokeVideoMetadataStepTemplateError, type InvokeVideoMetadataStepTemplateErrors, type InvokeVideoMetadataStepTemplateResponse, type InvokeVideoMetadataStepTemplateResponses, type InvokeVideoUpscalerStepTemplateData, type InvokeVideoUpscalerStepTemplateError, type InvokeVideoUpscalerStepTemplateErrors, type InvokeVideoUpscalerStepTemplateResponse, type InvokeVideoUpscalerStepTemplateResponses, type InvokeWdTaggingStepTemplateData, type InvokeWdTaggingStepTemplateError, type InvokeWdTaggingStepTemplateErrors, type InvokeWdTaggingStepTemplateResponse, type InvokeWdTaggingStepTemplateResponses, type InvokeWebScrapeStepTemplateData, type InvokeWebScrapeStepTemplateError, type InvokeWebScrapeStepTemplateErrors, type InvokeWebScrapeStepTemplateResponse, type InvokeWebScrapeStepTemplateResponses, type InvokeWebSearchStepTemplateData, type InvokeWebSearchStepTemplateError, type InvokeWebSearchStepTemplateErrors, type InvokeWebSearchStepTemplateResponse, type InvokeWebSearchStepTemplateResponses, type InvokeXGuardModerationStepTemplateData, type InvokeXGuardModerationStepTemplateError, type InvokeXGuardModerationStepTemplateErrors, type InvokeXGuardModerationStepTemplateResponse, type InvokeXGuardModerationStepTemplateResponses, JobSupport, type JointAgeClassificationResult, type JointAgeDetection, type JpegOutputFormat, type JsonPatchDocument, type JsonPatchOperation, type KlingCameraControl, type KlingCameraControlConfig, KlingMode, KlingModel, type KlingV3ElementInput, type KlingV3MultiPrompt, KlingV3Operation, type KlingV3VideoGenInput, KlingVideoGenAspectRatio, KlingVideoGenDuration, type KlingVideoGenInput, type KohyaImageResourceTrainingInput, type KohyaImageResourceTrainingInputWritable, type Krea2AiToolkitTrainingInput, type Krea2AiToolkitTrainingInputWritable, type Krea2CreateFalImageGenInput, type Krea2FalImageGenInput, type Krea2StyleReference, type KreaCreateImageGenInput, type KreaImageGenInput, LeresBoost, LightricksAspectRatio, type LightricksVideoGenInput, type ListServicesData, type ListServicesError, type ListServicesErrors, type ListServicesResponse, type ListServicesResponses, type LoadingResourceAvailability, type Ltx23AiToolkitTrainingInput, type Ltx23AiToolkitTrainingInputWritable, type Ltx25AiToolkitTrainingInput, type Ltx25AiToolkitTrainingInputWritable, type Ltx2AiToolkitTrainingInput, type Ltx2AiToolkitTrainingInputWritable, type MageFlowAiToolkitTrainingInput, type MageFlowAiToolkitTrainingInputWritable, type MaiImageCreateFalImageGenInput, type MaiImageEditFalImageGenInput, type MaiImageFalImageGenInput, type MediaCanvas, type MediaCaptioningInput, type MediaCaptioningOutput, type MediaCaptioningStep, type MediaCaptioningStepTemplate, MediaContainer, MediaFit, type MediaHashInput, type MediaHashOutput, type MediaHashStep, type MediaHashStepTemplate, MediaHashType, type MediaLayout, MediaOutputType, type MediaRatingInput, type MediaRatingOutput, type MediaRatingStep, type MediaRatingStepTemplate, type MediaTransformer, type MeshyFalPolyGenInput, type MeshyImageTo3dFalPolyGenInput, type MeshyTextTo3dFalPolyGenInput, type MeshyV6FalPolyGenInput, type MeshyV7FalPolyGenInput, type MeshyV7ImageTo3dFalPolyGenInput, type MeshyV7MultiImageTo3dFalPolyGenInput, Metric3dBackbone, type MetricsResponse, type MiniMaxH3AiToolkitTrainingInput, type MiniMaxH3AiToolkitTrainingInputWritable, type MiniMaxH3VideoGenInput, type MiniMaxMusic3Input, type MiniMaxMusic3Output, type MiniMaxMusic3Step, type MiniMaxMusic3StepTemplate, type MiniMaxVideoGenInput, MiniMaxVideoGenModel, type MochiVideoGenInput, type ModalitiesResponse, type Model3dBlob, type Model3dPreviewCameraPose, type Model3dPreviewInput, type Model3dPreviewOutput, type Model3dPreviewStep, type Model3dPreviewStepTemplate, type ModelClamScanInput, type ModelClamScanOutput, ModelClamScanStatus, type ModelClamScanStep, type ModelClamScanStepTemplate, type ModelHashInput, type ModelHashOutput, type ModelHashStep, type ModelHashStepTemplate, type ModelParseMetadataInput, type ModelParseMetadataOutput, type ModelParseMetadataStep, type ModelParseMetadataStepTemplate, type ModelPickleScanInput, type ModelPickleScanOutput, ModelPickleScanStatus, type ModelPickleScanStep, type ModelPickleScanStepTemplate, type MuseImageCreateFalImageGenInput, type MuseImageEditFalImageGenInput, type MuseImageFalImageGenInput, type MusubiImageResourceTrainingInput, type MusubiImageResourceTrainingInputWritable, type NanoBanana2ImageGenInput, type NanoBanana2LiteImageGenInput, type NanoBananaProImageGenInput, NsfwLevel, type OmniSvgImageToSvgInput, type OmniVoiceTextToSpeechInput, type OpenAiDallE2CreateImageGenInput, type OpenAiDallE2EditImageInput, type OpenAiDallE2ImageGenInput, type OpenAiDallE3CreateImageGenInput, type OpenAiDallE3ImageGenInput, type OpenAiGpt15CreateImageInput, type OpenAiGpt15EditImageInput, type OpenAiGpt15ImageGenInput, type OpenAiGpt1CreateImageInput, type OpenAiGpt1EditImageInput, type OpenAiGpt1ImageGenInput, type OpenAiGpt2CreateImageInput, type OpenAiGpt2EditImageInput, type OpenAiGpt2ImageGenInput, type OpenApiImageGenInput, OutputFormat, type PaginatedResponseOfServiceResponse, type PatchWorkflowData, type PatchWorkflowError, type PatchWorkflowErrors, type PatchWorkflowResponse, type PatchWorkflowResponses, type PatchWorkflowStepData, type PatchWorkflowStepError, type PatchWorkflowStepErrors, type PatchWorkflowStepResponse, type PatchWorkflowStepResponses, type PercentilesResponse, type PngOutputFormat, type PolyGenInput, type PolyGenOutput, type PolyGenStep, type PolyGenStepTemplate, type PrepareResourceInput, type PrepareResourceOutput, type PreprocessImageAnimalPoseInput, type PreprocessImageAnimalPoseInputWritable, type PreprocessImageAnimeLineartInput, type PreprocessImageAnimeLineartInputWritable, type PreprocessImageAnylineInput, type PreprocessImageAnylineInputWritable, type PreprocessImageBaeNormalInput, type PreprocessImageBaeNormalInputWritable, type PreprocessImageBinaryInput, type PreprocessImageBinaryInputWritable, type PreprocessImageCannyInput, type PreprocessImageCannyInputWritable, type PreprocessImageColorInput, type PreprocessImageColorInputWritable, type PreprocessImageDensePoseInput, type PreprocessImageDensePoseInputWritable, type PreprocessImageDepthAnythingInput, type PreprocessImageDepthAnythingInputWritable, type PreprocessImageDepthAnythingV2Input, type PreprocessImageDepthAnythingV2InputWritable, type PreprocessImageDsineNormalInput, type PreprocessImageDsineNormalInputWritable, type PreprocessImageDwPoseInput, type PreprocessImageDwPoseInputWritable, type PreprocessImageFakeScribbleInput, type PreprocessImageFakeScribbleInputWritable, type PreprocessImageHedInput, type PreprocessImageHedInputWritable, type PreprocessImageInput, type PreprocessImageInputWritable, type PreprocessImageInputWritable2, type PreprocessImageLeresDepthInput, type PreprocessImageLeresDepthInputWritable, type PreprocessImageMangaLineartInput, type PreprocessImageMangaLineartInputWritable, type PreprocessImageMediaPipeFaceInput, type PreprocessImageMediaPipeFaceInputWritable, type PreprocessImageMetric3dDepthInput, type PreprocessImageMetric3dDepthInputWritable, type PreprocessImageMetric3dNormalInput, type PreprocessImageMetric3dNormalInputWritable, type PreprocessImageMidasDepthInput, type PreprocessImageMidasDepthInputWritable, type PreprocessImageMidasNormalInput, type PreprocessImageMidasNormalInputWritable, type PreprocessImageMlsdInput, type PreprocessImageMlsdInputWritable, type PreprocessImageOneFormerAde20kInput, type PreprocessImageOneFormerAde20kInputWritable, type PreprocessImageOneFormerCocoInput, type PreprocessImageOneFormerCocoInputWritable, type PreprocessImageOpenPoseInput, type PreprocessImageOpenPoseInputWritable, type PreprocessImageOutput, type PreprocessImagePidinetInput, type PreprocessImagePidinetInputWritable, type PreprocessImageRealisticLineartInput, type PreprocessImageRealisticLineartInputWritable, type PreprocessImageScribbleInput, type PreprocessImageScribbleInputWritable, type PreprocessImageScribblePidinetInput, type PreprocessImageScribblePidinetInputWritable, type PreprocessImageScribbleXdogInput, type PreprocessImageScribbleXdogInputWritable, type PreprocessImageShuffleInput, type PreprocessImageShuffleInputWritable, type PreprocessImageStandardLineartInput, type PreprocessImageStandardLineartInputWritable, type PreprocessImageStep, type PreprocessImageStepTemplate, type PreprocessImageStepTemplateWritable, type PreprocessImageStepWritable, type PreprocessImageTeedInput, type PreprocessImageTeedInputWritable, type PreprocessImageTileInput, type PreprocessImageTileInputWritable, type PreprocessImageUniFormerInput, type PreprocessImageUniFormerInputWritable, type PreprocessImageZoeDepthAnythingInput, type PreprocessImageZoeDepthAnythingInputWritable, type PreprocessImageZoeDepthInput, type PreprocessImageZoeDepthInputWritable, type PreprocessVideoCannyInput, type PreprocessVideoCannyInputWritable, type PreprocessVideoDepthAnythingV2Input, type PreprocessVideoDepthAnythingV2InputWritable, type PreprocessVideoDwPoseInput, type PreprocessVideoDwPoseInputWritable, type PreprocessVideoHedInput, type PreprocessVideoHedInputWritable, type PreprocessVideoInput, type PreprocessVideoInputWritable, type PreprocessVideoInputWritable2, type PreprocessVideoMlsdInput, type PreprocessVideoMlsdInputWritable, type PreprocessVideoOutput, type PreprocessVideoStep, type PreprocessVideoStepTemplate, type PreprocessVideoStepTemplateWritable, type PreprocessVideoStepWritable, Priority, type ProblemDetails, type PromptEnhancementInput, type PromptEnhancementOutput, type PromptEnhancementStep, type PromptEnhancementStepTemplate, type PromptIssue, type QueryResourcesData, type QueryResourcesError, type QueryResourcesErrors, type QueryResourcesResponse, type QueryResourcesResponses, type QueryWorkflowsData, type QueryWorkflowsError, type QueryWorkflowsErrors, type QueryWorkflowsResponse, type QueryWorkflowsResponses, type Qwen20bCreateImageGenInput, type Qwen20bEditImageGenInput, type Qwen20bEditImageGenInputWritable, type Qwen20bImageGenInput, type Qwen20bVariantImageGenInput, type Qwen20bVariantImageGenInputWritable, type Qwen2CreateFalImageGenInput, type Qwen2EditFalImageGenInput, type Qwen2FalImageGenInput, type Qwen2ProCreateFalImageGenInput, type Qwen2ProEditFalImageGenInput, type Qwen3BaseTtsInput, type Qwen3CustomVoiceTtsInput, type Qwen3TextToSpeechInput, type Qwen3VoiceDesignTtsInput, type QwenAiToolkitTrainingInput, type QwenAiToolkitTrainingInputWritable, type QwenApiCreateImageGenInput, type QwenApiEditImageGenInput, type QwenApiImageGenInput, type QwenImageBenchInput, type QwenImageBenchItem, type QwenImageBenchItemResult, type QwenImageBenchOutput, type QwenImageBenchScoreNode, type QwenImageBenchStep, type QwenImageBenchStepTemplate, type QwenImageGenInput, type RefreshBlobData, type RefreshBlobError, type RefreshBlobErrors, type RefreshBlobResponse, type RefreshBlobResponses, type RemoveAllWorkflowTagsData, type RemoveAllWorkflowTagsError, type RemoveAllWorkflowTagsErrors, type RemoveAllWorkflowTagsResponse, type RemoveAllWorkflowTagsResponses, type RemoveWorkflowTagData, type RemoveWorkflowTagError, type RemoveWorkflowTagErrors, type RemoveWorkflowTagResponse, type RemoveWorkflowTagResponses, type RepeatForClause, type RepeatInput, type RepeatOutput, type ResizeTransform, type ResourceAvailability, type ResourceFee, ResourceFeeType, type ResourceInfo, ResourceView, type ReveCreateFalImageGenInput, type ReveEditFalImageGenInput, type ReveFalImageGenInput, SafeMode, Scheduler, type Sd1AiToolkitTrainingInput, type Sd1AiToolkitTrainingInputWritable, type Sd1CreateImageGenInput, type Sd1ImageGenInput, type Sd1VariantImageGenInput, type SdCppImageGenInput, SdCppSampleMethod, SdCppSchedule, SdCppUCacheMode, type SdxlAiToolkitTrainingInput, type SdxlAiToolkitTrainingInputWritable, type SdxlCreateImageGenInput, type SdxlImageGenInput, type SdxlVariantImageGenInput, SeedanceModel, type SeedanceVideoGenInput, type SeedreamImageGenInput, SeedreamVersion, type ServiceHistory, type ServiceResponse, ServiceStatus, SettlementCurrency, ShadowRemoval, type ShieldstralModerationInput, type ShieldstralModerationOutput, type ShieldstralModerationStep, type ShieldstralModerationStepTemplate, type ShieldstralPolicyConfiguration, type ShieldstralPolicyResult, type ShieldstralPromptModerationInput, type ShieldstralTextModerationInput, type Sora2ImageToVideoInput, type Sora2TextToVideoInput, type SoraVideoGenInput, type StarVectorImageToSvgInput, type SubmitWorkflowData, type SubmitWorkflowError, type SubmitWorkflowErrors, type SubmitWorkflowResponse, type SubmitWorkflowResponses, type SystemMessage, type TextToImageInput, type TextToImageOutput, type TextToImageStep, type TextToImageStepTemplate, type TextToSpeechInput, type TextToSpeechOutput, type TextToSpeechStep, type TextToSpeechStepTemplate, type ToolMessage, TraceMode, type TrainingData, type TrainingInput, type TrainingInputSamples, type TrainingInputWritable, type TrainingInputWritable2, TrainingModerationStatus, type TrainingOutput, type TrainingOutputEpochResult, type TrainingStep, type TrainingStepTemplate, type TrainingStepTemplateWritable, type TrainingStepWritable, TrainingTraceMode, type TransactionInfo, type TransactionSummary, TransactionType, type TranscodeInput, type TranscodeOutput, type TranscodeStep, type TranscodeStepTemplate, type TranscriptionInput, type TranscriptionOutput, type TranscriptionStep, type TranscriptionStepTemplate, type TranscriptionTimeStamp, type Trellis2ComfyPolyGenInput, type Trellis2ImageTo3dComfyPolyGenInput, type Trellis2ShapeGenComfyPolyGenInput, type Trellis2TexGenComfyPolyGenInput, type TripoFalPolyGenInput, type TryOnUInput, type TryOnUOutput, type UnavailableResourceAvailability, type UnsupportedResourceAvailability, type UpdateWorkflowData, type UpdateWorkflowError, type UpdateWorkflowErrors, type UpdateWorkflowRequest, type UpdateWorkflowResponse, type UpdateWorkflowResponses, UpdateWorkflowStatus, type UpdateWorkflowStepData, type UpdateWorkflowStepError, type UpdateWorkflowStepErrors, type UpdateWorkflowStepRequest, type UpdateWorkflowStepResponse, type UpdateWorkflowStepResponses, type UploadConsumerBlobData, type UploadConsumerBlobError, type UploadConsumerBlobErrors, type UploadConsumerBlobResponse, type UploadConsumerBlobResponses, type UserMessage, type UserMessageWritable, type ValidationProblemDetails, type ValueTupleOfDoubleAndDouble, type ValueTupleOfStringAndInt32, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, type Veo3VideoGenInput, type VideoBackgroundRemovalInput, type VideoBackgroundRemovalOutput, type VideoBackgroundRemovalPoint, type VideoBackgroundRemovalStep, type VideoBackgroundRemovalStepTemplate, type VideoBlob, type VideoComposeMediaOutput, type VideoEnhancementInput, type VideoEnhancementInputInterpolationOptions, type VideoEnhancementInputUpscalerOptions, type VideoEnhancementOutput, type VideoEnhancementStep, type VideoEnhancementStepTemplate, type VideoFrameExtractionInput, type VideoFrameExtractionOutput, type VideoFrameExtractionStep, type VideoFrameExtractionStepTemplate, type VideoGenInput, type VideoGenInputLora, type VideoGenInputWritable, type VideoGenOutput, type VideoGenStep, type VideoGenStepTemplate, type VideoInterpolationInput, type VideoInterpolationOutput, type VideoInterpolationStep, type VideoInterpolationStepTemplate, type VideoMetadataInput, type VideoMetadataOutput, type VideoMetadataStep, type VideoMetadataStepTemplate, type VideoUpscalerInput, type VideoUpscalerOutput, type VideoUpscalerStep, type VideoUpscalerStepTemplate, type ViduQ3VideoGenInput, type ViduVideoGenInput, ViduVideoGenModel, ViduVideoGenStyle, type VllmOmniTextToSpeechInput, type VolumeTransformer, type VTracerImageToSvgInput, type Wan21CivitaiVideoGenInput, type Wan21FalVideoGenInput, type Wan21VideoGenInput, type Wan225bFalImageGenInput, type Wan225bFalImageToVideoInput, type Wan225bFalTextToVideoInput, type Wan225bFalVideoGenInput, type Wan225bImageGenInput, type Wan225bVideoGenInput, type Wan22ComfyVideoGenInput, type Wan22FalImageGenInput, type Wan22FalImageToVideoInput, type Wan22FalTextToVideoInput, type Wan22FalVideoGenInput, type Wan22ImageGenInput, type Wan22VideoGenInput, type Wan25FalImageGenInput, type Wan25FalImageToImageInput, type Wan25FalImageToVideoInput, type Wan25FalTextToImageInput, type Wan25FalTextToVideoInput, type Wan25FalVideoGenInput, type Wan25ImageGenInput, type Wan25VideoGenInput, type Wan26FalImageToVideoInput, type Wan26FalReferenceToVideoInput, type Wan26FalTextToVideoInput, type Wan26FalVideoGenInput, type Wan26VideoGenInput, type Wan27FalEditVideoInput, type Wan27FalImageEditInput, type Wan27FalImageGenInput, type Wan27FalImageToVideoInput, type Wan27FalReferenceToVideoInput, type Wan27FalTextToImageInput, type Wan27FalTextToVideoInput, type Wan27FalVideoGenInput, type Wan27ImageGenInput, type Wan27VideoGenInput, type Wan30ImageToVideoInput, type Wan30TextToVideoInput, type Wan30VideoGenInput, type WanImageGenInput, type WanVideoGenInput, type WdTaggingInput, type WdTaggingOutput, type WdTaggingStep, type WdTaggingStepTemplate, type WebpOutputFormat, type WebScrapeInput, type WebScrapeOutput, type WebScrapeStep, type WebScrapeStepTemplate, type WebSearchInput, type WebSearchOutput, type WebSearchResult, type WebSearchStep, type WebSearchStepTemplate, type Workflow, type WorkflowCallback, type WorkflowCost, type WorkflowCostTips, type WorkflowCostWritable, type WorkflowEvent, type WorkflowEventDetails, type WorkflowEventStepDetails, type WorkflowEventWritable, WorkflowStatus, type WorkflowStep, type WorkflowStepEvent, type WorkflowStepEventDetails, type WorkflowStepEventWritable, type WorkflowStepJob, type WorkflowStepJobEvent, type WorkflowStepJobEventWritable, type WorkflowStepJobQueuePosition, type WorkflowStepPreparation, type WorkflowStepQueuePosition, type WorkflowStepTemplate, type WorkflowStepTemplateWritable, type WorkflowStepWritable, type WorkflowTemplate, type WorkflowTips, WorkflowUpgradeMode, type WorkflowWritable, type XGuardCustomSignalMetadata, type XGuardCustomSignalMetadataWritable, type XGuardLabelConfiguration, type XGuardLabelResult, type XGuardMatchedTerms, type XGuardModerationInput, type XGuardModerationOutput, type XGuardModerationOutputWritable, type XGuardModerationStep, type XGuardModerationStepTemplate, type XGuardModerationStepWritable, type XGuardPromptModerationInput, XGuardPromptScope, type XGuardSignalMetadata, type XGuardSignalMetadataWritable, type XGuardTextModerationInput, type ZImageBaseAiToolkitTrainingInput, type ZImageBaseAiToolkitTrainingInputWritable, type ZImageBaseCreateImageGenInput, type ZImageBaseImageGenInput, type ZImageImageGenInput, type ZImageTurboAiToolkitTrainingInput, type ZImageTurboAiToolkitTrainingInputWritable, type ZImageTurboCreateImageGenInput, type ZImageTurboImageGenInput, type ZipTrainingData, ZoeDepthEnvironment, } from './types.gen';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
export { addWorkflowTag, deleteWorkflow, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getResource, getService, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateUserCache, invalidateUserTokens, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeAudioCaptioningStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyNodepackSnapshotStepTemplate, invokeComfyStepTemplate, invokeComposeMediaStepTemplate, invokeConvertImageStepTemplate, invokeCustomComfyStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageBackgroundRemovalStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageToSvgStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeMiniMaxMusic3StepTemplate, invokeModel3dPreviewStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, invokePolyGenStepTemplate, invokePrepareResourceStepTemplate, invokePreprocessImageStepTemplate, invokePreprocessVideoStepTemplate, invokePromptEnhancementStepTemplate, invokeQwenImageBenchStepTemplate, invokeRepeatStepTemplate, invokeShieldstralModerationStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoBackgroundRemovalStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeWebScrapeStepTemplate, invokeWebSearchStepTemplate, invokeXGuardModerationStepTemplate, listServices, patchWorkflow, patchWorkflowStep, queryResources, queryWorkflows, refreshBlob, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen';
|
|
3
|
+
export { AnimalPoseBboxDetector, AnimalPoseEstimator, AnylineMergeWith, ArchiveFormat, BlurRegionMode, BuzzClientAccount, CoarseMode, ComfySampler, ComfyScheduler, ContainerFormat, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, FileFormat, GeminiOmniModel, GeminiOmniResolution, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, HaiperVideoGenModel, HumanoidImageMaskCategory, ImageBackgroundRemovalFormat, ImageGenOutputFormat, ImageResouceTrainingModerationStatus, ImageTransformer, JobSupport, KlingMode, KlingModel, KlingV3Operation, KlingVideoGenAspectRatio, KlingVideoGenDuration, LeresBoost, LightricksAspectRatio, MediaContainer, MediaFit, MediaHashType, MediaOutputType, Metric3dBackbone, MiniMaxVideoGenModel, ModelClamScanStatus, ModelPickleScanStatus, NsfwLevel, OutputFormat, Priority, ResourceFeeType, ResourceView, SafeMode, Scheduler, SdCppSampleMethod, SdCppSchedule, SdCppUCacheMode, SeedanceModel, SeedreamVersion, ServiceStatus, SettlementCurrency, ShadowRemoval, TraceMode, TrainingModerationStatus, TrainingTraceMode, TransactionType, UpdateWorkflowStatus, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, ViduVideoGenModel, ViduVideoGenStyle, WorkflowStatus, WorkflowUpgradeMode, XGuardPromptScope, ZoeDepthEnvironment, } from './types.gen';
|