@imgly/plugin-ai-image-generation-web 0.2.8 → 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;
@@ -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';
@@ -13,6 +15,8 @@ import { SeedreamV4Edit } from './SeedreamV4Edit';
13
15
  declare const FalAi: {
14
16
  FluxProKontextEdit: typeof FluxProKontextEdit;
15
17
  FluxProKontextMaxEdit: typeof FluxProKontextMaxEdit;
18
+ Gemini25FlashImageEdit: typeof Gemini25FlashImageEdit;
19
+ GeminiFlash25: typeof GeminiFlash25;
16
20
  GeminiFlashEdit: typeof GeminiFlashEdit;
17
21
  IdeogramV3: typeof IdeogramV3;
18
22
  IdeogramV3Remix: typeof IdeogramV3Remix;