@kokimoki/app 2.0.2 → 2.1.0

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.
@@ -97,6 +97,8 @@ declare class KokimokiAiService {
97
97
  * - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
98
98
  * - `gemini-2.5-flash-lite`: Google Gemini lite variant
99
99
  * - `gemini-2.5-flash`: Google Gemini fast variant
100
+ * - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
101
+ * - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
100
102
  * @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
101
103
  * This helps define the AI's role, personality, and constraints.
102
104
  * @param req.userPrompt The user's message or question to send to the AI.
@@ -124,12 +126,14 @@ declare class KokimokiAiService {
124
126
  * ```
125
127
  */
126
128
  chat(req: {
127
- model?: "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.5-flash-lite" | "gemini-2.5-flash";
129
+ model?: "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-3-flash-preview" | "gemini-3-pro-preview";
128
130
  systemPrompt?: string;
129
131
  userPrompt: string;
130
132
  temperature?: number;
131
133
  maxTokens?: number;
132
134
  responseMimeType?: string;
135
+ /** Image URLs to include with the user prompt (Gemini models only) */
136
+ imageUrls?: string[];
133
137
  }): Promise<{
134
138
  content: string;
135
139
  }>;
@@ -140,6 +144,10 @@ declare class KokimokiAiService {
140
144
  * a JSON-formatted response. This is useful for scenarios where the output
141
145
  * needs to be parsed or processed programmatically.
142
146
  *
147
+ * **Important:** Your prompt must include the word "json" and should describe
148
+ * the expected output schema (field names, types, and structure) to ensure
149
+ * the AI generates properly formatted responses.
150
+ *
143
151
  * @param req The chat request parameters.
144
152
  * @param req.model Optional. The AI model to use. Defaults to server-side default if not specified.
145
153
  * Available models:
@@ -150,6 +158,8 @@ declare class KokimokiAiService {
150
158
  * - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
151
159
  * - `gemini-2.5-flash-lite`: Google Gemini lite variant
152
160
  * - `gemini-2.5-flash`: Google Gemini fast variant
161
+ * - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
162
+ * - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
153
163
  * @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
154
164
  * This helps define the AI's role, personality, and constraints.
155
165
  * @param req.userPrompt The user's message or question to send to the AI.
@@ -158,17 +168,21 @@ declare class KokimokiAiService {
158
168
  * higher values make it more creative and varied.
159
169
  * @param req.maxTokens Optional. The maximum number of tokens to generate in the response.
160
170
  * Controls the length of the AI's output.
171
+ * @param req.imageUrls Optional. Image URLs to include with the user prompt (Gemini models only).
172
+ * Allows the AI to analyze images and generate structured JSON based on them.
161
173
  *
162
174
  * @returns A promise that resolves to the parsed JSON object generated by the AI.
163
175
  *
164
176
  * @throws An error object if the API request fails or if the response is not valid JSON.
165
177
  */
166
178
  generateJson<T extends object>(req: {
167
- model?: "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.5-flash-lite" | "gemini-2.5-flash";
179
+ model?: "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-3-flash-preview" | "gemini-3-pro-preview";
168
180
  systemPrompt?: string;
169
181
  userPrompt: string;
170
182
  temperature?: number;
171
183
  maxTokens?: number;
184
+ /** Image URLs to include with the user prompt (Gemini models only) */
185
+ imageUrls?: string[];
172
186
  }): Promise<T>;
173
187
  /**
174
188
  * Modify an image using the AI service.
@@ -11330,6 +11330,8 @@ class KokimokiAiService {
11330
11330
  * - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
11331
11331
  * - `gemini-2.5-flash-lite`: Google Gemini lite variant
11332
11332
  * - `gemini-2.5-flash`: Google Gemini fast variant
11333
+ * - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
11334
+ * - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
11333
11335
  * @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
11334
11336
  * This helps define the AI's role, personality, and constraints.
11335
11337
  * @param req.userPrompt The user's message or question to send to the AI.
@@ -11374,6 +11376,10 @@ class KokimokiAiService {
11374
11376
  * a JSON-formatted response. This is useful for scenarios where the output
11375
11377
  * needs to be parsed or processed programmatically.
11376
11378
  *
11379
+ * **Important:** Your prompt must include the word "json" and should describe
11380
+ * the expected output schema (field names, types, and structure) to ensure
11381
+ * the AI generates properly formatted responses.
11382
+ *
11377
11383
  * @param req The chat request parameters.
11378
11384
  * @param req.model Optional. The AI model to use. Defaults to server-side default if not specified.
11379
11385
  * Available models:
@@ -11384,6 +11390,8 @@ class KokimokiAiService {
11384
11390
  * - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
11385
11391
  * - `gemini-2.5-flash-lite`: Google Gemini lite variant
11386
11392
  * - `gemini-2.5-flash`: Google Gemini fast variant
11393
+ * - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
11394
+ * - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
11387
11395
  * @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
11388
11396
  * This helps define the AI's role, personality, and constraints.
11389
11397
  * @param req.userPrompt The user's message or question to send to the AI.
@@ -11392,6 +11400,8 @@ class KokimokiAiService {
11392
11400
  * higher values make it more creative and varied.
11393
11401
  * @param req.maxTokens Optional. The maximum number of tokens to generate in the response.
11394
11402
  * Controls the length of the AI's output.
11403
+ * @param req.imageUrls Optional. Image URLs to include with the user prompt (Gemini models only).
11404
+ * Allows the AI to analyze images and generate structured JSON based on them.
11395
11405
  *
11396
11406
  * @returns A promise that resolves to the parsed JSON object generated by the AI.
11397
11407
  *
@@ -12116,16 +12126,16 @@ var functionApply = Function.prototype.apply;
12116
12126
  /** @type {import('./reflectApply')} */
12117
12127
  var reflectApply$1 = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
12118
12128
 
12119
- var bind$4 = functionBind;
12129
+ var bind$5 = functionBind;
12120
12130
 
12121
12131
  var $apply$2 = functionApply;
12122
12132
  var $call$2 = functionCall;
12123
12133
  var $reflectApply = reflectApply$1;
12124
12134
 
12125
12135
  /** @type {import('./actualApply')} */
12126
- var actualApply$1 = $reflectApply || bind$4.call($call$2, $apply$2);
12136
+ var actualApply$1 = $reflectApply || bind$5.call($call$2, $apply$2);
12127
12137
 
12128
- var bind$3 = functionBind;
12138
+ var bind$4 = functionBind;
12129
12139
  var $TypeError$4 = requireType();
12130
12140
 
12131
12141
  var $call$1 = functionCall;
@@ -12136,7 +12146,7 @@ var callBindApplyHelpers = function callBindBasic(args) {
12136
12146
  if (args.length < 1 || typeof args[0] !== 'function') {
12137
12147
  throw new $TypeError$4('a function is required');
12138
12148
  }
12139
- return $actualApply(bind$3, $call$1, args);
12149
+ return $actualApply(bind$4, $call$1, args);
12140
12150
  };
12141
12151
 
12142
12152
  var callBind$2 = callBindApplyHelpers;
@@ -12194,21 +12204,12 @@ var getProto$4 = reflectGetProto
12194
12204
  }
12195
12205
  : null;
12196
12206
 
12197
- var hasown;
12198
- var hasRequiredHasown;
12199
-
12200
- function requireHasown () {
12201
- if (hasRequiredHasown) return hasown;
12202
- hasRequiredHasown = 1;
12203
-
12204
- var call = Function.prototype.call;
12205
- var $hasOwn = Object.prototype.hasOwnProperty;
12206
- var bind = functionBind;
12207
+ var call = Function.prototype.call;
12208
+ var $hasOwn = Object.prototype.hasOwnProperty;
12209
+ var bind$3 = functionBind;
12207
12210
 
12208
- /** @type {import('.')} */
12209
- hasown = bind.call(call, $hasOwn);
12210
- return hasown;
12211
- }
12211
+ /** @type {import('.')} */
12212
+ var hasown = bind$3.call(call, $hasOwn);
12212
12213
 
12213
12214
  var undefined$1;
12214
12215
 
@@ -12451,7 +12452,7 @@ var LEGACY_ALIASES = {
12451
12452
  };
12452
12453
 
12453
12454
  var bind$2 = functionBind;
12454
- var hasOwn$1 = requireHasown();
12455
+ var hasOwn$1 = hasown;
12455
12456
  var $concat = bind$2.call($call, Array.prototype.concat);
12456
12457
  var $spliceApply = bind$2.call($apply$1, Array.prototype.splice);
12457
12458
  var $replace = bind$2.call($call, String.prototype.replace);
@@ -12650,7 +12651,7 @@ var isArguments = supportsStandardArguments ? isStandardArguments : isLegacyArgu
12650
12651
 
12651
12652
  var callBound$3 = callBound$5;
12652
12653
  var hasToStringTag$3 = shams();
12653
- var hasOwn = requireHasown();
12654
+ var hasOwn = hasown;
12654
12655
  var gOPD$2 = gopd$1;
12655
12656
 
12656
12657
  /** @type {import('.')} */
@@ -15958,7 +15959,7 @@ class KokimokiTransaction {
15958
15959
  }
15959
15960
 
15960
15961
  // Auto-generated file. Do not edit manually.
15961
- const KOKIMOKI_APP_VERSION = '2.0.2';
15962
+ const KOKIMOKI_APP_VERSION = '2.1.0';
15962
15963
 
15963
15964
  var RoomSubscriptionMode;
15964
15965
  (function (RoomSubscriptionMode) {