@imgly/plugin-ai-image-generation-web 0.2.7 → 0.2.9

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.
@@ -0,0 +1,13 @@
1
+ import { ImageOutput, type Provider, type CommonProviderConfiguration } from '@imgly/plugin-ai-generation-web';
2
+ import CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ type Gemini25FlashImageEditInput = {
4
+ prompt: string;
5
+ image_url?: string;
6
+ image_urls?: string[];
7
+ exportFromBlockIds?: number[];
8
+ };
9
+ export declare function Gemini25FlashImageEdit(config: CommonProviderConfiguration<Gemini25FlashImageEditInput, ImageOutput>): (context: {
10
+ cesdk: CreativeEditorSDK;
11
+ }) => Promise<Provider<'image', Gemini25FlashImageEditInput, ImageOutput>>;
12
+ declare function getProvider(cesdk: CreativeEditorSDK, config: CommonProviderConfiguration<Gemini25FlashImageEditInput, ImageOutput>): Provider<'image', Gemini25FlashImageEditInput, ImageOutput>;
13
+ export default getProvider;
@@ -0,0 +1,21 @@
1
+ import { ImageOutput, type Provider, type CommonProviderConfiguration } from '@imgly/plugin-ai-generation-web';
2
+ import CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ type GeminiFlash25Input = {
4
+ prompt: string;
5
+ aspect_ratio?: '1:1' | '3:4' | '4:3' | '9:16' | '16:9' | {
6
+ width: number;
7
+ height: number;
8
+ };
9
+ output_format?: 'jpeg' | 'png' | 'webp';
10
+ num_images?: number;
11
+ safety_settings?: Array<{
12
+ category: string;
13
+ threshold: string;
14
+ }>;
15
+ seed?: number;
16
+ };
17
+ export declare function GeminiFlash25(config: CommonProviderConfiguration<GeminiFlash25Input, ImageOutput>): (context: {
18
+ cesdk: CreativeEditorSDK;
19
+ }) => Promise<Provider<'image', GeminiFlash25Input, ImageOutput>>;
20
+ declare function getProvider(cesdk: CreativeEditorSDK, config: CommonProviderConfiguration<GeminiFlash25Input, ImageOutput>): Provider<'image', GeminiFlash25Input, ImageOutput>;
21
+ export default getProvider;
@@ -0,0 +1,4 @@
1
+ export declare function getImageDimensions(id: string): {
2
+ width: number;
3
+ height: number;
4
+ };
@@ -0,0 +1,23 @@
1
+ import { type Provider, type CommonProviderConfiguration } from '@imgly/plugin-ai-generation-web';
2
+ import CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ export interface SeedreamV4TextToImageInput {
4
+ prompt: string;
5
+ image_size?: 'square_hd' | 'square' | 'portrait_4_3' | 'portrait_16_9' | 'landscape_4_3' | 'landscape_16_9' | {
6
+ width: number;
7
+ height: number;
8
+ };
9
+ num_images?: number;
10
+ max_images?: number;
11
+ seed?: number;
12
+ sync_mode?: boolean;
13
+ enable_safety_checker?: boolean;
14
+ }
15
+ type SeedreamV4Output = {
16
+ kind: 'image';
17
+ url: string;
18
+ };
19
+ export declare function SeedreamV4(config: CommonProviderConfiguration<SeedreamV4TextToImageInput, SeedreamV4Output>): (context: {
20
+ cesdk: CreativeEditorSDK;
21
+ }) => Promise<Provider<'image', SeedreamV4TextToImageInput, SeedreamV4Output>>;
22
+ declare function getProvider(cesdk: CreativeEditorSDK, config: CommonProviderConfiguration<SeedreamV4TextToImageInput, SeedreamV4Output>): Provider<'image', SeedreamV4TextToImageInput, SeedreamV4Output>;
23
+ export default getProvider;
@@ -0,0 +1,22 @@
1
+ import { ImageOutput, type Provider, type CommonProviderConfiguration } from '@imgly/plugin-ai-generation-web';
2
+ import CreativeEditorSDK from '@cesdk/cesdk-js';
3
+ type SeedreamV4EditInput = {
4
+ prompt: string;
5
+ image_url?: string;
6
+ image_urls?: string[];
7
+ exportFromBlockIds?: number[];
8
+ num_images?: number;
9
+ image_size?: string | {
10
+ width: number;
11
+ height: number;
12
+ };
13
+ max_images?: number;
14
+ seed?: number;
15
+ sync_mode?: boolean;
16
+ enable_safety_checker?: boolean;
17
+ };
18
+ export declare function SeedreamV4Edit(config: CommonProviderConfiguration<SeedreamV4EditInput, ImageOutput>): (context: {
19
+ cesdk: CreativeEditorSDK;
20
+ }) => Promise<Provider<'image', SeedreamV4EditInput, ImageOutput>>;
21
+ declare function getProvider(cesdk: CreativeEditorSDK, config: CommonProviderConfiguration<SeedreamV4EditInput, ImageOutput>): Provider<'image', SeedreamV4EditInput, ImageOutput>;
22
+ export default getProvider;
@@ -1,5 +1,7 @@
1
1
  import { RecraftV3 } from './RecraftV3';
2
2
  import { Recraft20b } from './Recraft20b';
3
+ import { GeminiFlash25 } from './GeminiFlash25';
4
+ import { Gemini25FlashImageEdit } from './Gemini25FlashImageEdit';
3
5
  import { GeminiFlashEdit } from './GeminiFlashEdit';
4
6
  import { FluxProKontextEdit } from './FluxProKontextEdit';
5
7
  import { FluxProKontextMaxEdit } from './FluxProKontextMaxEdit';
@@ -8,9 +10,13 @@ import { IdeogramV3Remix } from './IdeogramV3Remix';
8
10
  import { QwenImageEdit } from './QwenImageEdit';
9
11
  import { NanoBanana } from './NanoBanana';
10
12
  import { NanoBananaEdit } from './NanoBananaEdit';
13
+ import { SeedreamV4 } from './SeedreamV4';
14
+ import { SeedreamV4Edit } from './SeedreamV4Edit';
11
15
  declare const FalAi: {
12
16
  FluxProKontextEdit: typeof FluxProKontextEdit;
13
17
  FluxProKontextMaxEdit: typeof FluxProKontextMaxEdit;
18
+ Gemini25FlashImageEdit: typeof Gemini25FlashImageEdit;
19
+ GeminiFlash25: typeof GeminiFlash25;
14
20
  GeminiFlashEdit: typeof GeminiFlashEdit;
15
21
  IdeogramV3: typeof IdeogramV3;
16
22
  IdeogramV3Remix: typeof IdeogramV3Remix;
@@ -19,5 +25,7 @@ declare const FalAi: {
19
25
  NanoBananaEdit: typeof NanoBananaEdit;
20
26
  Recraft20b: typeof Recraft20b;
21
27
  RecraftV3: typeof RecraftV3;
28
+ SeedreamV4: typeof SeedreamV4;
29
+ SeedreamV4Edit: typeof SeedreamV4Edit;
22
30
  };
23
31
  export default FalAi;