@unityclaw/sdk 1.1.0 → 1.1.2

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/README.md CHANGED
@@ -25,8 +25,9 @@ const client = new UnityClawClient({
25
25
  });
26
26
 
27
27
  // Generate image
28
- const imageResult = await client.image.gemini({
29
- prompt: 'A beautiful sunset over mountains'
28
+ const imageResult = await client.image.jimeng({
29
+ prompt: 'A beautiful sunset over mountains',
30
+ size: '2048x2048'
30
31
  });
31
32
 
32
33
  // Generate video (Kling)
@@ -109,10 +110,10 @@ const client = new UnityClawClient({
109
110
  ### Image Generation
110
111
 
111
112
  ```typescript
112
- // Gemini
113
- await client.image.gemini({
113
+ // JiMeng
114
+ await client.image.jimeng({
114
115
  prompt: 'A sunset over mountains',
115
- aspect_ratio: '16:9'
116
+ size: '2048x2048'
116
117
  });
117
118
 
118
119
  // JiMeng (Doubao)
package/dist/index.cjs CHANGED
@@ -37,8 +37,6 @@ __export(index_exports, {
37
37
  DOC_CONVERT_OUTPUT_FORMATS: () => DOC_CONVERT_OUTPUT_FORMATS,
38
38
  DOC_TRANSLATE_LANGUAGE_CODES: () => DOC_TRANSLATE_LANGUAGE_CODES,
39
39
  DocumentAPI: () => DocumentAPI,
40
- GEMINI_IMAGE_ASPECT_RATIOS: () => GEMINI_IMAGE_ASPECT_RATIOS,
41
- GEMINI_IMAGE_SIZES: () => GEMINI_IMAGE_SIZES,
42
40
  IDPAPI: () => IDPAPI,
43
41
  IDP_TYPES: () => IDP_TYPES,
44
42
  ImageAPI: () => ImageAPI,
@@ -396,42 +394,6 @@ var ImageAPI = class {
396
394
  constructor(client) {
397
395
  this.client = client;
398
396
  }
399
- /**
400
- * Generate image using Gemini API
401
- * @see /api/gemini/image
402
- *
403
- * @example
404
- * ```typescript
405
- * const result = await client.image.gemini({
406
- * prompt: 'A beautiful sunset over mountains',
407
- * size: { value: '2K', label: '2K' }
408
- * });
409
- * console.log('Task folder:', result.taskFolder);
410
- * console.log('Local path:', result.response.data?.[0]?.localPath);
411
- * ```
412
- */
413
- async gemini(params) {
414
- return this.client.request("/api/gemini/image", {
415
- prompt: params.prompt,
416
- attachment: params.attachment,
417
- model: params.model,
418
- aspect_ratio: params.aspect_ratio,
419
- size: params.size
420
- });
421
- }
422
- /**
423
- * Generate image using Gemini API v2
424
- * @see /api/gemini/image/v2
425
- */
426
- async geminiV2(params) {
427
- return this.client.request("/api/gemini/image/v2", {
428
- prompt: params.prompt,
429
- attachment: params.attachment,
430
- model: params.model,
431
- aspect_ratio: params.aspect_ratio,
432
- size: params.size
433
- });
434
- }
435
397
  /**
436
398
  * Generate image using JiMeng (Doubao) API
437
399
  * @see /api/jimeng/image
@@ -1224,13 +1186,6 @@ var UnityClawClient = class {
1224
1186
  return isRecord(normalized) ? normalized : params;
1225
1187
  }
1226
1188
  // ==================== Convenience Methods ====================
1227
- /**
1228
- * Generate image using Gemini API
1229
- * @deprecated Use client.image.gemini() instead
1230
- */
1231
- async generateImage(params) {
1232
- return this.image.gemini(params);
1233
- }
1234
1189
  /**
1235
1190
  * Generate image using JiMeng API
1236
1191
  * @deprecated Use client.image.jimeng() instead
@@ -1276,23 +1231,6 @@ var UnityClawClient = class {
1276
1231
  };
1277
1232
 
1278
1233
  // src/types.ts
1279
- var GEMINI_IMAGE_ASPECT_RATIOS = [
1280
- "1:1",
1281
- "9:16",
1282
- "16:9",
1283
- "4:3",
1284
- "3:4",
1285
- "3:2",
1286
- "2:3",
1287
- "5:4",
1288
- "4:5",
1289
- "21:9",
1290
- "1:4",
1291
- "1:8",
1292
- "4:1",
1293
- "8:1"
1294
- ];
1295
- var GEMINI_IMAGE_SIZES = ["1K", "2K", "4K", "1K_pro", "2K_pro", "4K_pro"];
1296
1234
  var JIMENG_IMAGE_MODELS = ["doubao-seedream-5-0-260128", "doubao-seedream-4-5-251128"];
1297
1235
  var JIMENG_IMAGE_SIZES = [
1298
1236
  "2048x2048",
@@ -1377,8 +1315,6 @@ var IDP_TYPES = [
1377
1315
  DOC_CONVERT_OUTPUT_FORMATS,
1378
1316
  DOC_TRANSLATE_LANGUAGE_CODES,
1379
1317
  DocumentAPI,
1380
- GEMINI_IMAGE_ASPECT_RATIOS,
1381
- GEMINI_IMAGE_SIZES,
1382
1318
  IDPAPI,
1383
1319
  IDP_TYPES,
1384
1320
  ImageAPI,
package/dist/index.d.cts CHANGED
@@ -47,10 +47,6 @@ type SelectPrimitive = string | boolean | number;
47
47
  type SelectValue<T extends SelectPrimitive = SelectPrimitive> = LabelFieldItem | T;
48
48
  /** Union type for text input (string or TextFieldItem array) */
49
49
  type TextInput = string | TextFieldItem[];
50
- declare const GEMINI_IMAGE_ASPECT_RATIOS: readonly ["1:1", "9:16", "16:9", "4:3", "3:4", "3:2", "2:3", "5:4", "4:5", "21:9", "1:4", "1:8", "4:1", "8:1"];
51
- type GeminiImageAspectRatio = (typeof GEMINI_IMAGE_ASPECT_RATIOS)[number];
52
- declare const GEMINI_IMAGE_SIZES: readonly ["1K", "2K", "4K", "1K_pro", "2K_pro", "4K_pro"];
53
- type GeminiImageSize = (typeof GEMINI_IMAGE_SIZES)[number];
54
50
  declare const JIMENG_IMAGE_MODELS: readonly ["doubao-seedream-5-0-260128", "doubao-seedream-4-5-251128"];
55
51
  type JiMengImageModel = (typeof JIMENG_IMAGE_MODELS)[number];
56
52
  declare const JIMENG_IMAGE_SIZES: readonly ["2048x2048", "1728x2304", "2304x1728", "2848x1600", "1600x2848", "2496x1664", "1664x2496", "3136x1344", "3072x3072", "2592x3456", "3456x2592", "4096x2304", "2304x4096", "3744x2496", "2496x3744", "4704x2016", "4096x4096", "3520x4704", "4704x3520", "5504x3040", "3040x5504", "4992x3328", "3328x4992", "6240x2656"];
@@ -130,14 +126,6 @@ interface ImageGenParams {
130
126
  web_search?: SelectValue;
131
127
  image_count?: SelectValue | number;
132
128
  }
133
- /** Gemini image generation params */
134
- interface GeminiImageParams {
135
- prompt: TextInput;
136
- attachment?: AttachmentInput[];
137
- model?: SelectValue;
138
- aspect_ratio?: SelectValue<GeminiImageAspectRatio | ''>;
139
- size?: SelectValue<GeminiImageSize>;
140
- }
141
129
  /** JiMeng image generation params */
142
130
  interface JiMengImageParams {
143
131
  prompt: TextInput;
@@ -416,17 +404,9 @@ declare class TaskFolderManager {
416
404
 
417
405
  /**
418
406
  * Image Generation APIs
419
- * Handles Gemini and JiMeng image generation endpoints
407
+ * Handles JiMeng image generation endpoints
420
408
  */
421
409
 
422
- /** Gemini image generation parameters */
423
- interface GeminiImageRequestParams {
424
- prompt: string | TextFieldItem[];
425
- attachment?: GeminiImageParams['attachment'];
426
- model?: GeminiImageParams['model'];
427
- aspect_ratio?: GeminiImageParams['aspect_ratio'];
428
- size?: GeminiImageParams['size'];
429
- }
430
410
  /** JiMeng image generation parameters */
431
411
  interface JiMengImageRequestParams {
432
412
  prompt: string | TextFieldItem[];
@@ -443,26 +423,6 @@ interface JiMengImageRequestParams {
443
423
  declare class ImageAPI {
444
424
  private client;
445
425
  constructor(client: UnityClawClient);
446
- /**
447
- * Generate image using Gemini API
448
- * @see /api/gemini/image
449
- *
450
- * @example
451
- * ```typescript
452
- * const result = await client.image.gemini({
453
- * prompt: 'A beautiful sunset over mountains',
454
- * size: { value: '2K', label: '2K' }
455
- * });
456
- * console.log('Task folder:', result.taskFolder);
457
- * console.log('Local path:', result.response.data?.[0]?.localPath);
458
- * ```
459
- */
460
- gemini(params: GeminiImageRequestParams): Promise<TaskResult<APIResponse<AttachmentResult[]>>>;
461
- /**
462
- * Generate image using Gemini API v2
463
- * @see /api/gemini/image/v2
464
- */
465
- geminiV2(params: GeminiImageRequestParams): Promise<TaskResult<APIResponse<AttachmentResult[]>>>;
466
426
  /**
467
427
  * Generate image using JiMeng (Doubao) API
468
428
  * @see /api/jimeng/image
@@ -893,8 +853,9 @@ declare class IDPAPI {
893
853
  * const client = new UnityClawClient({ apiKey: 'your-api-key' });
894
854
  *
895
855
  * // Generate image
896
- * const result = await client.image.gemini({
897
- * prompt: 'A beautiful sunset over mountains'
856
+ * const result = await client.image.jimeng({
857
+ * prompt: 'A beautiful sunset over mountains',
858
+ * size: '2048x2048'
898
859
  * });
899
860
  * ```
900
861
  */
@@ -931,11 +892,6 @@ declare class UnityClawClient {
931
892
  request<T = unknown>(endpoint: string, params: Record<string, unknown>, contextOverrides?: Partial<SDKContext>): Promise<TaskResult<APIResponse<T>>>;
932
893
  private uploadLocalFile;
933
894
  private normalizeParams;
934
- /**
935
- * Generate image using Gemini API
936
- * @deprecated Use client.image.gemini() instead
937
- */
938
- generateImage(params: GeminiImageParams): Promise<TaskResult<APIResponse<AttachmentResult[]>>>;
939
895
  /**
940
896
  * Generate image using JiMeng API
941
897
  * @deprecated Use client.image.jimeng() instead
@@ -995,4 +951,4 @@ declare function setConfigValue(key: string, value: string): void;
995
951
  /** Get a config value */
996
952
  declare function getConfigValue(key: string): string | undefined;
997
953
 
998
- export { type APIResponse, type AttachmentFieldItem, type AttachmentInput, type AttachmentResult, type BitableContext, CONFIG_DIR, CONFIG_FILE, type Context, DEFAULT_TASKS_DIR, DOC_CONVERT_INPUT_FORMATS, DOC_CONVERT_OUTPUT_FORMATS, DOC_TRANSLATE_LANGUAGE_CODES, type DeepPartial, type DocConvertInputFormat, type DocConvertOutputFormat, type DocConvertParams, type DocTranslateLanguageCode, type DocTranslateParams, DocumentAPI, type DoubaoVideoParams, GEMINI_IMAGE_ASPECT_RATIOS, GEMINI_IMAGE_SIZES, type GeminiImageAspectRatio, type GeminiImageParams, type GeminiImageSize, IDPAPI, type IDPExtractParams, type IDPExtractResult, type IDPType, IDP_TYPES, ImageAPI, type ImageGenParams, JIMENG_IMAGE_MODELS, JIMENG_IMAGE_SIZES, JIMENG_IMAGE_WEB_SEARCH_OPTIONS, type JiMengImageModel, type JiMengImageParams, type JiMengImageSize, type JiMengImageWebSearchOption, type JiMengVideoParams, KLING_ASPECT_RATIOS, KLING_DURATIONS, KLING_MODELS, type KlingAspectRatio, type KlingDuration, type KlingModel, type KlingVideoParams, type LabelFieldItem, type LabelValue, type LocalAttachmentFieldItem, MediaAPI, type MediaAnalysisParams, type MediaAnalysisResult, type MediaLinkItem, type MediaSourceItem, type MediaStatsParams, type MediaStatsResult, type MediaUserInfoParams, type MediaUserInfoResult, type MiniMaxModel, type MiniMaxVideoParams, type OpenClawShortcutParams, type SDKContext, type SelectPrimitive, type SelectValue, type SoraVideoParams, type TaskFolderContext, TaskFolderManager, type TaskFolderOptions, type TaskLog, type TaskResult, type TextFieldItem, type TextInput, UnityClawClient, type UnityClawClientConfig, type UnityClawConfig, type UrlFieldItem, type VeoVideoParams, VideoAPI, type VideoFrameParams, WAN_DEFAULT_MODELS, WAN_SHOT_TYPES, type WanModel, type WanShotType, type WanVideoParams, type XiaohongshuDownloadParams, type XiaohongshuDownloadResult, getConfigPath, getConfigValue, loadConfig, saveConfig, setConfigValue };
954
+ export { type APIResponse, type AttachmentFieldItem, type AttachmentInput, type AttachmentResult, type BitableContext, CONFIG_DIR, CONFIG_FILE, type Context, DEFAULT_TASKS_DIR, DOC_CONVERT_INPUT_FORMATS, DOC_CONVERT_OUTPUT_FORMATS, DOC_TRANSLATE_LANGUAGE_CODES, type DeepPartial, type DocConvertInputFormat, type DocConvertOutputFormat, type DocConvertParams, type DocTranslateLanguageCode, type DocTranslateParams, DocumentAPI, type DoubaoVideoParams, IDPAPI, type IDPExtractParams, type IDPExtractResult, type IDPType, IDP_TYPES, ImageAPI, type ImageGenParams, JIMENG_IMAGE_MODELS, JIMENG_IMAGE_SIZES, JIMENG_IMAGE_WEB_SEARCH_OPTIONS, type JiMengImageModel, type JiMengImageParams, type JiMengImageSize, type JiMengImageWebSearchOption, type JiMengVideoParams, KLING_ASPECT_RATIOS, KLING_DURATIONS, KLING_MODELS, type KlingAspectRatio, type KlingDuration, type KlingModel, type KlingVideoParams, type LabelFieldItem, type LabelValue, type LocalAttachmentFieldItem, MediaAPI, type MediaAnalysisParams, type MediaAnalysisResult, type MediaLinkItem, type MediaSourceItem, type MediaStatsParams, type MediaStatsResult, type MediaUserInfoParams, type MediaUserInfoResult, type MiniMaxModel, type MiniMaxVideoParams, type OpenClawShortcutParams, type SDKContext, type SelectPrimitive, type SelectValue, type SoraVideoParams, type TaskFolderContext, TaskFolderManager, type TaskFolderOptions, type TaskLog, type TaskResult, type TextFieldItem, type TextInput, UnityClawClient, type UnityClawClientConfig, type UnityClawConfig, type UrlFieldItem, type VeoVideoParams, VideoAPI, type VideoFrameParams, WAN_DEFAULT_MODELS, WAN_SHOT_TYPES, type WanModel, type WanShotType, type WanVideoParams, type XiaohongshuDownloadParams, type XiaohongshuDownloadResult, getConfigPath, getConfigValue, loadConfig, saveConfig, setConfigValue };
package/dist/index.d.ts CHANGED
@@ -47,10 +47,6 @@ type SelectPrimitive = string | boolean | number;
47
47
  type SelectValue<T extends SelectPrimitive = SelectPrimitive> = LabelFieldItem | T;
48
48
  /** Union type for text input (string or TextFieldItem array) */
49
49
  type TextInput = string | TextFieldItem[];
50
- declare const GEMINI_IMAGE_ASPECT_RATIOS: readonly ["1:1", "9:16", "16:9", "4:3", "3:4", "3:2", "2:3", "5:4", "4:5", "21:9", "1:4", "1:8", "4:1", "8:1"];
51
- type GeminiImageAspectRatio = (typeof GEMINI_IMAGE_ASPECT_RATIOS)[number];
52
- declare const GEMINI_IMAGE_SIZES: readonly ["1K", "2K", "4K", "1K_pro", "2K_pro", "4K_pro"];
53
- type GeminiImageSize = (typeof GEMINI_IMAGE_SIZES)[number];
54
50
  declare const JIMENG_IMAGE_MODELS: readonly ["doubao-seedream-5-0-260128", "doubao-seedream-4-5-251128"];
55
51
  type JiMengImageModel = (typeof JIMENG_IMAGE_MODELS)[number];
56
52
  declare const JIMENG_IMAGE_SIZES: readonly ["2048x2048", "1728x2304", "2304x1728", "2848x1600", "1600x2848", "2496x1664", "1664x2496", "3136x1344", "3072x3072", "2592x3456", "3456x2592", "4096x2304", "2304x4096", "3744x2496", "2496x3744", "4704x2016", "4096x4096", "3520x4704", "4704x3520", "5504x3040", "3040x5504", "4992x3328", "3328x4992", "6240x2656"];
@@ -130,14 +126,6 @@ interface ImageGenParams {
130
126
  web_search?: SelectValue;
131
127
  image_count?: SelectValue | number;
132
128
  }
133
- /** Gemini image generation params */
134
- interface GeminiImageParams {
135
- prompt: TextInput;
136
- attachment?: AttachmentInput[];
137
- model?: SelectValue;
138
- aspect_ratio?: SelectValue<GeminiImageAspectRatio | ''>;
139
- size?: SelectValue<GeminiImageSize>;
140
- }
141
129
  /** JiMeng image generation params */
142
130
  interface JiMengImageParams {
143
131
  prompt: TextInput;
@@ -416,17 +404,9 @@ declare class TaskFolderManager {
416
404
 
417
405
  /**
418
406
  * Image Generation APIs
419
- * Handles Gemini and JiMeng image generation endpoints
407
+ * Handles JiMeng image generation endpoints
420
408
  */
421
409
 
422
- /** Gemini image generation parameters */
423
- interface GeminiImageRequestParams {
424
- prompt: string | TextFieldItem[];
425
- attachment?: GeminiImageParams['attachment'];
426
- model?: GeminiImageParams['model'];
427
- aspect_ratio?: GeminiImageParams['aspect_ratio'];
428
- size?: GeminiImageParams['size'];
429
- }
430
410
  /** JiMeng image generation parameters */
431
411
  interface JiMengImageRequestParams {
432
412
  prompt: string | TextFieldItem[];
@@ -443,26 +423,6 @@ interface JiMengImageRequestParams {
443
423
  declare class ImageAPI {
444
424
  private client;
445
425
  constructor(client: UnityClawClient);
446
- /**
447
- * Generate image using Gemini API
448
- * @see /api/gemini/image
449
- *
450
- * @example
451
- * ```typescript
452
- * const result = await client.image.gemini({
453
- * prompt: 'A beautiful sunset over mountains',
454
- * size: { value: '2K', label: '2K' }
455
- * });
456
- * console.log('Task folder:', result.taskFolder);
457
- * console.log('Local path:', result.response.data?.[0]?.localPath);
458
- * ```
459
- */
460
- gemini(params: GeminiImageRequestParams): Promise<TaskResult<APIResponse<AttachmentResult[]>>>;
461
- /**
462
- * Generate image using Gemini API v2
463
- * @see /api/gemini/image/v2
464
- */
465
- geminiV2(params: GeminiImageRequestParams): Promise<TaskResult<APIResponse<AttachmentResult[]>>>;
466
426
  /**
467
427
  * Generate image using JiMeng (Doubao) API
468
428
  * @see /api/jimeng/image
@@ -893,8 +853,9 @@ declare class IDPAPI {
893
853
  * const client = new UnityClawClient({ apiKey: 'your-api-key' });
894
854
  *
895
855
  * // Generate image
896
- * const result = await client.image.gemini({
897
- * prompt: 'A beautiful sunset over mountains'
856
+ * const result = await client.image.jimeng({
857
+ * prompt: 'A beautiful sunset over mountains',
858
+ * size: '2048x2048'
898
859
  * });
899
860
  * ```
900
861
  */
@@ -931,11 +892,6 @@ declare class UnityClawClient {
931
892
  request<T = unknown>(endpoint: string, params: Record<string, unknown>, contextOverrides?: Partial<SDKContext>): Promise<TaskResult<APIResponse<T>>>;
932
893
  private uploadLocalFile;
933
894
  private normalizeParams;
934
- /**
935
- * Generate image using Gemini API
936
- * @deprecated Use client.image.gemini() instead
937
- */
938
- generateImage(params: GeminiImageParams): Promise<TaskResult<APIResponse<AttachmentResult[]>>>;
939
895
  /**
940
896
  * Generate image using JiMeng API
941
897
  * @deprecated Use client.image.jimeng() instead
@@ -995,4 +951,4 @@ declare function setConfigValue(key: string, value: string): void;
995
951
  /** Get a config value */
996
952
  declare function getConfigValue(key: string): string | undefined;
997
953
 
998
- export { type APIResponse, type AttachmentFieldItem, type AttachmentInput, type AttachmentResult, type BitableContext, CONFIG_DIR, CONFIG_FILE, type Context, DEFAULT_TASKS_DIR, DOC_CONVERT_INPUT_FORMATS, DOC_CONVERT_OUTPUT_FORMATS, DOC_TRANSLATE_LANGUAGE_CODES, type DeepPartial, type DocConvertInputFormat, type DocConvertOutputFormat, type DocConvertParams, type DocTranslateLanguageCode, type DocTranslateParams, DocumentAPI, type DoubaoVideoParams, GEMINI_IMAGE_ASPECT_RATIOS, GEMINI_IMAGE_SIZES, type GeminiImageAspectRatio, type GeminiImageParams, type GeminiImageSize, IDPAPI, type IDPExtractParams, type IDPExtractResult, type IDPType, IDP_TYPES, ImageAPI, type ImageGenParams, JIMENG_IMAGE_MODELS, JIMENG_IMAGE_SIZES, JIMENG_IMAGE_WEB_SEARCH_OPTIONS, type JiMengImageModel, type JiMengImageParams, type JiMengImageSize, type JiMengImageWebSearchOption, type JiMengVideoParams, KLING_ASPECT_RATIOS, KLING_DURATIONS, KLING_MODELS, type KlingAspectRatio, type KlingDuration, type KlingModel, type KlingVideoParams, type LabelFieldItem, type LabelValue, type LocalAttachmentFieldItem, MediaAPI, type MediaAnalysisParams, type MediaAnalysisResult, type MediaLinkItem, type MediaSourceItem, type MediaStatsParams, type MediaStatsResult, type MediaUserInfoParams, type MediaUserInfoResult, type MiniMaxModel, type MiniMaxVideoParams, type OpenClawShortcutParams, type SDKContext, type SelectPrimitive, type SelectValue, type SoraVideoParams, type TaskFolderContext, TaskFolderManager, type TaskFolderOptions, type TaskLog, type TaskResult, type TextFieldItem, type TextInput, UnityClawClient, type UnityClawClientConfig, type UnityClawConfig, type UrlFieldItem, type VeoVideoParams, VideoAPI, type VideoFrameParams, WAN_DEFAULT_MODELS, WAN_SHOT_TYPES, type WanModel, type WanShotType, type WanVideoParams, type XiaohongshuDownloadParams, type XiaohongshuDownloadResult, getConfigPath, getConfigValue, loadConfig, saveConfig, setConfigValue };
954
+ export { type APIResponse, type AttachmentFieldItem, type AttachmentInput, type AttachmentResult, type BitableContext, CONFIG_DIR, CONFIG_FILE, type Context, DEFAULT_TASKS_DIR, DOC_CONVERT_INPUT_FORMATS, DOC_CONVERT_OUTPUT_FORMATS, DOC_TRANSLATE_LANGUAGE_CODES, type DeepPartial, type DocConvertInputFormat, type DocConvertOutputFormat, type DocConvertParams, type DocTranslateLanguageCode, type DocTranslateParams, DocumentAPI, type DoubaoVideoParams, IDPAPI, type IDPExtractParams, type IDPExtractResult, type IDPType, IDP_TYPES, ImageAPI, type ImageGenParams, JIMENG_IMAGE_MODELS, JIMENG_IMAGE_SIZES, JIMENG_IMAGE_WEB_SEARCH_OPTIONS, type JiMengImageModel, type JiMengImageParams, type JiMengImageSize, type JiMengImageWebSearchOption, type JiMengVideoParams, KLING_ASPECT_RATIOS, KLING_DURATIONS, KLING_MODELS, type KlingAspectRatio, type KlingDuration, type KlingModel, type KlingVideoParams, type LabelFieldItem, type LabelValue, type LocalAttachmentFieldItem, MediaAPI, type MediaAnalysisParams, type MediaAnalysisResult, type MediaLinkItem, type MediaSourceItem, type MediaStatsParams, type MediaStatsResult, type MediaUserInfoParams, type MediaUserInfoResult, type MiniMaxModel, type MiniMaxVideoParams, type OpenClawShortcutParams, type SDKContext, type SelectPrimitive, type SelectValue, type SoraVideoParams, type TaskFolderContext, TaskFolderManager, type TaskFolderOptions, type TaskLog, type TaskResult, type TextFieldItem, type TextInput, UnityClawClient, type UnityClawClientConfig, type UnityClawConfig, type UrlFieldItem, type VeoVideoParams, VideoAPI, type VideoFrameParams, WAN_DEFAULT_MODELS, WAN_SHOT_TYPES, type WanModel, type WanShotType, type WanVideoParams, type XiaohongshuDownloadParams, type XiaohongshuDownloadResult, getConfigPath, getConfigValue, loadConfig, saveConfig, setConfigValue };
package/dist/index.js CHANGED
@@ -282,42 +282,6 @@ var ImageAPI = class {
282
282
  constructor(client) {
283
283
  this.client = client;
284
284
  }
285
- /**
286
- * Generate image using Gemini API
287
- * @see /api/gemini/image
288
- *
289
- * @example
290
- * ```typescript
291
- * const result = await client.image.gemini({
292
- * prompt: 'A beautiful sunset over mountains',
293
- * size: { value: '2K', label: '2K' }
294
- * });
295
- * console.log('Task folder:', result.taskFolder);
296
- * console.log('Local path:', result.response.data?.[0]?.localPath);
297
- * ```
298
- */
299
- async gemini(params) {
300
- return this.client.request("/api/gemini/image", {
301
- prompt: params.prompt,
302
- attachment: params.attachment,
303
- model: params.model,
304
- aspect_ratio: params.aspect_ratio,
305
- size: params.size
306
- });
307
- }
308
- /**
309
- * Generate image using Gemini API v2
310
- * @see /api/gemini/image/v2
311
- */
312
- async geminiV2(params) {
313
- return this.client.request("/api/gemini/image/v2", {
314
- prompt: params.prompt,
315
- attachment: params.attachment,
316
- model: params.model,
317
- aspect_ratio: params.aspect_ratio,
318
- size: params.size
319
- });
320
- }
321
285
  /**
322
286
  * Generate image using JiMeng (Doubao) API
323
287
  * @see /api/jimeng/image
@@ -1110,13 +1074,6 @@ var UnityClawClient = class {
1110
1074
  return isRecord(normalized) ? normalized : params;
1111
1075
  }
1112
1076
  // ==================== Convenience Methods ====================
1113
- /**
1114
- * Generate image using Gemini API
1115
- * @deprecated Use client.image.gemini() instead
1116
- */
1117
- async generateImage(params) {
1118
- return this.image.gemini(params);
1119
- }
1120
1077
  /**
1121
1078
  * Generate image using JiMeng API
1122
1079
  * @deprecated Use client.image.jimeng() instead
@@ -1162,23 +1119,6 @@ var UnityClawClient = class {
1162
1119
  };
1163
1120
 
1164
1121
  // src/types.ts
1165
- var GEMINI_IMAGE_ASPECT_RATIOS = [
1166
- "1:1",
1167
- "9:16",
1168
- "16:9",
1169
- "4:3",
1170
- "3:4",
1171
- "3:2",
1172
- "2:3",
1173
- "5:4",
1174
- "4:5",
1175
- "21:9",
1176
- "1:4",
1177
- "1:8",
1178
- "4:1",
1179
- "8:1"
1180
- ];
1181
- var GEMINI_IMAGE_SIZES = ["1K", "2K", "4K", "1K_pro", "2K_pro", "4K_pro"];
1182
1122
  var JIMENG_IMAGE_MODELS = ["doubao-seedream-5-0-260128", "doubao-seedream-4-5-251128"];
1183
1123
  var JIMENG_IMAGE_SIZES = [
1184
1124
  "2048x2048",
@@ -1262,8 +1202,6 @@ export {
1262
1202
  DOC_CONVERT_OUTPUT_FORMATS,
1263
1203
  DOC_TRANSLATE_LANGUAGE_CODES,
1264
1204
  DocumentAPI,
1265
- GEMINI_IMAGE_ASPECT_RATIOS,
1266
- GEMINI_IMAGE_SIZES,
1267
1205
  IDPAPI,
1268
1206
  IDP_TYPES,
1269
1207
  ImageAPI,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unityclaw/sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Node.js SDK for UnityClaw API - AI-powered image/video generation, media analysis, and more",
5
5
  "type": "module",
6
6
  "bin": {
@@ -37,8 +37,8 @@
37
37
  "image-generation",
38
38
  "video-generation",
39
39
  "media-analysis",
40
- "gemini",
41
- "sora"
40
+ "jimeng",
41
+ "kling"
42
42
  ],
43
43
  "author": "UnityClaw",
44
44
  "license": "MIT",