@zodic/shared 0.0.332 → 0.0.333
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/package.json
CHANGED
package/types/scopes/generic.ts
CHANGED
|
@@ -404,6 +404,13 @@ export type ControlNetStrenghtType = 'Low' | 'Mid' | 'High';
|
|
|
404
404
|
|
|
405
405
|
export type ControlNetPreprocessorId = 100 | 19 | 133;
|
|
406
406
|
|
|
407
|
+
export interface ControlNet {
|
|
408
|
+
initImageId: string;
|
|
409
|
+
initImageType: 'UPLOADED' | 'GENERATED';
|
|
410
|
+
preprocessorId: number;
|
|
411
|
+
weight: number; // Required, between 0 and 2
|
|
412
|
+
}
|
|
413
|
+
|
|
407
414
|
export type ControlNetConfig =
|
|
408
415
|
| {
|
|
409
416
|
initImageId: string;
|
package/types/scopes/legacy.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { pointNameMap } from '../../utils/astroPrompts/pointNameMap';
|
|
2
2
|
import { BackendBindings } from './cloudflare';
|
|
3
|
-
import { ControlNetConfig, Gender } from './generic';
|
|
3
|
+
import { ControlNet, ControlNetConfig, Gender } from './generic';
|
|
4
4
|
|
|
5
5
|
export const zodiacSigns = [
|
|
6
6
|
'aries',
|
|
@@ -301,7 +301,7 @@ export interface LeonardoRequestBody {
|
|
|
301
301
|
modelId: string;
|
|
302
302
|
presetStyle: string;
|
|
303
303
|
alchemy: boolean;
|
|
304
|
-
controlnets?: Array<
|
|
304
|
+
controlnets?: Array<ControlNet>;
|
|
305
305
|
init_generation_image_id?: string;
|
|
306
306
|
init_strength?: number;
|
|
307
307
|
}
|