@umituz/react-native-ai-generation-content 1.17.215 → 1.17.216

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": "@umituz/react-native-ai-generation-content",
3
- "version": "1.17.215",
3
+ "version": "1.17.216",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -104,6 +104,24 @@ export interface IAnalyticsService {
104
104
  track: (event: string, data: Record<string, unknown>) => void;
105
105
  }
106
106
 
107
+ /**
108
+ * Feature utils interface (optional)
109
+ * Provides utility functions for AI features
110
+ */
111
+ export interface IFeatureUtils {
112
+ /**
113
+ * Select image from gallery
114
+ * @returns Image URI or null if cancelled
115
+ */
116
+ selectImage: () => Promise<string | null>;
117
+
118
+ /**
119
+ * Save video to device library
120
+ * @param uri - Video URI to save
121
+ */
122
+ saveVideo: (uri: string) => Promise<void>;
123
+ }
124
+
107
125
  /**
108
126
  * Combined app services interface
109
127
  * Apps implement this to provide all required services
@@ -114,6 +132,7 @@ export interface IAppServices {
114
132
  readonly paywall: IPaywallService;
115
133
  readonly auth: IAuthService;
116
134
  readonly analytics?: IAnalyticsService;
135
+ readonly featureUtils?: IFeatureUtils;
117
136
  }
118
137
 
119
138
  /**
package/src/index.ts CHANGED
@@ -10,6 +10,7 @@ export type {
10
10
  SubscribeOptions, RunOptions, ImageFeatureType, VideoFeatureType, ImageFeatureInputData,
11
11
  VideoFeatureInputData, ProviderCapabilities, ProviderProgressInfo, INetworkService,
12
12
  ICreditService, IPaywallService, IAuthService, IAnalyticsService, IAppServices, PartialAppServices,
13
+ IFeatureUtils,
13
14
  } from "./domain/interfaces";
14
15
 
15
16
  export { AIErrorType } from "./domain/entities";