@zodic/shared 0.0.331 → 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 +1 -1
- package/types/scopes/generic.ts +11 -2
- package/types/scopes/legacy.ts +2 -2
package/package.json
CHANGED
package/types/scopes/generic.ts
CHANGED
|
@@ -404,12 +404,20 @@ 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;
|
|
410
417
|
initImageType: 'UPLOADED' | 'GENERATED';
|
|
411
418
|
preprocessorId: 100;
|
|
412
|
-
strengthType
|
|
419
|
+
strengthType?: ControlNetStrenghtType;
|
|
420
|
+
weight?: number;
|
|
413
421
|
}
|
|
414
422
|
| {
|
|
415
423
|
initImageId: string;
|
|
@@ -421,7 +429,8 @@ export type ControlNetConfig =
|
|
|
421
429
|
initImageId: string;
|
|
422
430
|
initImageType: 'UPLOADED' | 'GENERATED';
|
|
423
431
|
preprocessorId: 133;
|
|
424
|
-
strengthType
|
|
432
|
+
strengthType?: ControlNetStrenghtType;
|
|
433
|
+
weight?: number;
|
|
425
434
|
};
|
|
426
435
|
|
|
427
436
|
export type PlacementObject = {
|
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
|
}
|