@zodic/shared 0.0.332 → 0.0.334

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.332",
3
+ "version": "0.0.334",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -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;
@@ -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, Gender } from './generic';
4
4
 
5
5
  export const zodiacSigns = [
6
6
  'aries',
@@ -163,7 +163,7 @@ export interface LeonardoGenerateImageParams {
163
163
  prompt: string;
164
164
  width: number;
165
165
  height: number;
166
- controlNets?: Array<ControlNetConfig>;
166
+ controlNets?: Array<ControlNet>;
167
167
  quantity?: number;
168
168
  negPrompt?: string | null;
169
169
  }
@@ -301,7 +301,7 @@ export interface LeonardoRequestBody {
301
301
  modelId: string;
302
302
  presetStyle: string;
303
303
  alchemy: boolean;
304
- controlnets?: Array<ControlNetConfig>;
304
+ controlnets?: Array<ControlNet>;
305
305
  init_generation_image_id?: string;
306
306
  init_strength?: number;
307
307
  }