@nextblock-cms/cortex 0.20.3 → 0.21.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.
Files changed (71) hide show
  1. package/client.cjs.js +1 -1
  2. package/client.es.js +3 -7
  3. package/index.cjs.js +1 -1
  4. package/index.es.js +24 -277
  5. package/lib/ai-block-generation.cjs.js +3 -4
  6. package/lib/ai-block-generation.es.js +143 -182
  7. package/lib/ai-client.cjs.js +1 -1
  8. package/lib/ai-client.d.ts +1 -1
  9. package/lib/ai-client.es.js +101 -135
  10. package/lib/ai-config.cjs.js +1 -1
  11. package/lib/ai-config.es.js +89 -108
  12. package/lib/ai-cortex-widget-builder.cjs.js +1 -1
  13. package/lib/ai-cortex-widget-builder.es.js +56 -70
  14. package/lib/ai-global-agent-content-ops-tools.cjs.js +1 -1
  15. package/lib/ai-global-agent-content-ops-tools.d.ts +1943 -68
  16. package/lib/ai-global-agent-content-ops-tools.es.js +185 -199
  17. package/lib/ai-global-agent-custom-block-tools.cjs.js +1 -1
  18. package/lib/ai-global-agent-custom-block-tools.d.ts +2160 -95
  19. package/lib/ai-global-agent-custom-block-tools.es.js +226 -223
  20. package/lib/ai-global-agent-db-tools.cjs.js +1 -1
  21. package/lib/ai-global-agent-db-tools.d.ts +2708 -98
  22. package/lib/ai-global-agent-db-tools.es.js +1013 -986
  23. package/lib/ai-global-agent-ecommerce.cjs.js +1 -1
  24. package/lib/ai-global-agent-ecommerce.es.js +3 -7
  25. package/lib/ai-global-agent-site-tools.cjs.js +2 -3
  26. package/lib/ai-global-agent-site-tools.d.ts +10695 -500
  27. package/lib/ai-global-agent-site-tools.es.js +750 -757
  28. package/lib/ai-global-agent-theming-tools.cjs.js +1 -3
  29. package/lib/ai-global-agent-theming-tools.d.ts +2905 -105
  30. package/lib/ai-global-agent-theming-tools.es.js +326 -396
  31. package/lib/ai-global-agent-tools.cjs.js +2 -2
  32. package/lib/ai-global-agent-tools.d.ts +4 -2230
  33. package/lib/ai-global-agent-tools.es.js +3899 -4328
  34. package/lib/ai-key-crypto.cjs.js +1 -1
  35. package/lib/ai-key-crypto.es.js +63 -82
  36. package/lib/ai-key-verification.cjs.js +1 -1
  37. package/lib/ai-key-verification.es.js +74 -63
  38. package/lib/ai-model-catalog.cjs.js +1 -1
  39. package/lib/ai-model-catalog.es.js +18 -22
  40. package/lib/ai-model-registry.cjs.js +2 -2
  41. package/lib/ai-model-registry.es.js +246 -309
  42. package/lib/ai-seo-metadata.cjs.js +2 -3
  43. package/lib/ai-seo-metadata.es.js +143 -185
  44. package/lib/ai-vision.cjs.js +2 -2
  45. package/lib/ai-vision.d.ts +6 -6
  46. package/lib/ai-vision.es.js +161 -215
  47. package/lib/block-content-schemas.cjs.js +1 -1
  48. package/lib/block-content-schemas.es.js +324 -254
  49. package/lib/cortex-widget-registry.cjs.js +1 -1
  50. package/lib/cortex-widget-registry.es.js +35 -43
  51. package/lib/cortex-widget-schema.cjs.js +2 -3
  52. package/lib/cortex-widget-schema.es.js +280 -309
  53. package/lib/editor-document-from-html.cjs.js +1 -1
  54. package/lib/editor-document-from-html.es.js +334 -278
  55. package/lib/fetch-host-guard.cjs.js +1 -0
  56. package/lib/fetch-host-guard.d.ts +2 -0
  57. package/lib/fetch-host-guard.es.js +30 -0
  58. package/lib/mcp-server.cjs.js +1 -1
  59. package/lib/mcp-server.es.js +155 -173
  60. package/lib/mcp-tokens.cjs.js +1 -1
  61. package/lib/mcp-tokens.es.js +95 -107
  62. package/lib/mcp-tool-registry.cjs.js +5 -6
  63. package/lib/mcp-tool-registry.es.js +533 -411
  64. package/lib/site-brief.cjs.js +2 -2
  65. package/lib/site-brief.es.js +102 -108
  66. package/lib/vision-image-download.cjs.js +1 -0
  67. package/lib/vision-image-download.d.ts +43 -0
  68. package/lib/vision-image-download.es.js +120 -0
  69. package/lib/zod-config.cjs.js +1 -1
  70. package/lib/zod-config.es.js +5 -6
  71. package/package.json +8 -8
@@ -173,22 +173,1393 @@ export declare function executeDatabaseActionPlan(input: ExecuteDatabaseActionPl
173
173
  auditLogged: boolean;
174
174
  }>;
175
175
  export declare function createCortexDatabaseAgentTools(context?: ToolExecutionContext): {
176
- describe_database_schema: import('ai').Tool<{
177
- includeReadOnly: boolean;
178
- table?: string | undefined;
179
- }, {
180
- safetyNotes: string[];
181
- success: boolean;
182
- tables: {
183
- columns: string[];
184
- description: string;
185
- primaryKey: readonly string[];
186
- readOnly: boolean;
176
+ describe_database_schema: ({
177
+ deferLoading?: boolean;
178
+ title?: string;
179
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
180
+ metadata?: import('@ai-sdk/provider').JSONObject;
181
+ inputSchema: import('ai').FlexibleSchema<{
182
+ includeReadOnly: boolean;
183
+ table?: string | undefined;
184
+ }>;
185
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
186
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
187
+ includeReadOnly: boolean;
188
+ table?: string | undefined;
189
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
190
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
191
+ onInputDelta?: ((options: {
192
+ inputTextDelta: string;
193
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
194
+ onInputAvailable?: ((options: {
195
+ input: {
196
+ includeReadOnly: boolean;
197
+ table?: string | undefined;
198
+ };
199
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
200
+ toModelOutput?: ((options: {
201
+ toolCallId: string;
202
+ input: {
203
+ includeReadOnly: boolean;
204
+ table?: string | undefined;
205
+ };
206
+ output: NoInfer<{
207
+ safetyNotes: string[];
208
+ success: boolean;
209
+ tables: {
210
+ columns: string[];
211
+ description: string;
212
+ primaryKey: readonly string[];
213
+ readOnly: boolean;
214
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
215
+ }[];
216
+ }>;
217
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
218
+ } & {
219
+ outputSchema?: import('ai').FlexibleSchema<{
220
+ safetyNotes: string[];
221
+ success: boolean;
222
+ tables: {
223
+ columns: string[];
224
+ description: string;
225
+ primaryKey: readonly string[];
226
+ readOnly: boolean;
227
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
228
+ }[];
229
+ }> | undefined;
230
+ execute: import('ai').ToolExecuteFunction<{
231
+ includeReadOnly: boolean;
232
+ table?: string | undefined;
233
+ }, {
234
+ safetyNotes: string[];
235
+ success: boolean;
236
+ tables: {
237
+ columns: string[];
238
+ description: string;
239
+ primaryKey: readonly string[];
240
+ readOnly: boolean;
241
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
242
+ }[];
243
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
244
+ } & {
245
+ description?: string | ((options: {
246
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
247
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
248
+ }) => string) | undefined;
249
+ strict?: boolean;
250
+ inputExamples?: {
251
+ input: NoInfer<{
252
+ includeReadOnly: boolean;
253
+ table?: string | undefined;
254
+ }>;
255
+ }[] | undefined;
256
+ id?: never;
257
+ isProviderExecuted?: never;
258
+ args?: never;
259
+ supportsDeferredResults?: never;
260
+ } & {
261
+ type?: undefined | "function";
262
+ } & {
263
+ execute: import('ai').ToolExecuteFunction<{
264
+ includeReadOnly: boolean;
265
+ table?: string | undefined;
266
+ }, {
267
+ safetyNotes: string[];
268
+ success: boolean;
269
+ tables: {
270
+ columns: string[];
271
+ description: string;
272
+ primaryKey: readonly string[];
273
+ readOnly: boolean;
274
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
275
+ }[];
276
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
277
+ }) | ({
278
+ deferLoading?: boolean;
279
+ title?: string;
280
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
281
+ metadata?: import('@ai-sdk/provider').JSONObject;
282
+ inputSchema: import('ai').FlexibleSchema<{
283
+ includeReadOnly: boolean;
284
+ table?: string | undefined;
285
+ }>;
286
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
287
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
288
+ includeReadOnly: boolean;
289
+ table?: string | undefined;
290
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
291
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
292
+ onInputDelta?: ((options: {
293
+ inputTextDelta: string;
294
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
295
+ onInputAvailable?: ((options: {
296
+ input: {
297
+ includeReadOnly: boolean;
298
+ table?: string | undefined;
299
+ };
300
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
301
+ toModelOutput?: ((options: {
302
+ toolCallId: string;
303
+ input: {
304
+ includeReadOnly: boolean;
305
+ table?: string | undefined;
306
+ };
307
+ output: NoInfer<{
308
+ safetyNotes: string[];
309
+ success: boolean;
310
+ tables: {
311
+ columns: string[];
312
+ description: string;
313
+ primaryKey: readonly string[];
314
+ readOnly: boolean;
315
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
316
+ }[];
317
+ }>;
318
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
319
+ } & {
320
+ outputSchema?: import('ai').FlexibleSchema<{
321
+ safetyNotes: string[];
322
+ success: boolean;
323
+ tables: {
324
+ columns: string[];
325
+ description: string;
326
+ primaryKey: readonly string[];
327
+ readOnly: boolean;
328
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
329
+ }[];
330
+ }> | undefined;
331
+ execute: import('ai').ToolExecuteFunction<{
332
+ includeReadOnly: boolean;
333
+ table?: string | undefined;
334
+ }, {
335
+ safetyNotes: string[];
336
+ success: boolean;
337
+ tables: {
338
+ columns: string[];
339
+ description: string;
340
+ primaryKey: readonly string[];
341
+ readOnly: boolean;
342
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
343
+ }[];
344
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
345
+ } & {
346
+ description?: string | ((options: {
347
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
348
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
349
+ }) => string) | undefined;
350
+ strict?: boolean;
351
+ inputExamples?: {
352
+ input: NoInfer<{
353
+ includeReadOnly: boolean;
354
+ table?: string | undefined;
355
+ }>;
356
+ }[] | undefined;
357
+ id?: never;
358
+ isProviderExecuted?: never;
359
+ args?: never;
360
+ supportsDeferredResults?: never;
361
+ } & {
362
+ type: "dynamic";
363
+ } & {
364
+ execute: import('ai').ToolExecuteFunction<{
365
+ includeReadOnly: boolean;
366
+ table?: string | undefined;
367
+ }, {
368
+ safetyNotes: string[];
369
+ success: boolean;
370
+ tables: {
371
+ columns: string[];
372
+ description: string;
373
+ primaryKey: readonly string[];
374
+ readOnly: boolean;
375
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
376
+ }[];
377
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
378
+ }) | ({
379
+ deferLoading?: boolean;
380
+ title?: string;
381
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
382
+ metadata?: import('@ai-sdk/provider').JSONObject;
383
+ inputSchema: import('ai').FlexibleSchema<{
384
+ includeReadOnly: boolean;
385
+ table?: string | undefined;
386
+ }>;
387
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
388
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
389
+ includeReadOnly: boolean;
390
+ table?: string | undefined;
391
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
392
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
393
+ onInputDelta?: ((options: {
394
+ inputTextDelta: string;
395
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
396
+ onInputAvailable?: ((options: {
397
+ input: {
398
+ includeReadOnly: boolean;
399
+ table?: string | undefined;
400
+ };
401
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
402
+ toModelOutput?: ((options: {
403
+ toolCallId: string;
404
+ input: {
405
+ includeReadOnly: boolean;
406
+ table?: string | undefined;
407
+ };
408
+ output: NoInfer<{
409
+ safetyNotes: string[];
410
+ success: boolean;
411
+ tables: {
412
+ columns: string[];
413
+ description: string;
414
+ primaryKey: readonly string[];
415
+ readOnly: boolean;
416
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
417
+ }[];
418
+ }>;
419
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
420
+ } & {
421
+ outputSchema?: import('ai').FlexibleSchema<{
422
+ safetyNotes: string[];
423
+ success: boolean;
424
+ tables: {
425
+ columns: string[];
426
+ description: string;
427
+ primaryKey: readonly string[];
428
+ readOnly: boolean;
429
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
430
+ }[];
431
+ }> | undefined;
432
+ execute: import('ai').ToolExecuteFunction<{
433
+ includeReadOnly: boolean;
434
+ table?: string | undefined;
435
+ }, {
436
+ safetyNotes: string[];
437
+ success: boolean;
438
+ tables: {
439
+ columns: string[];
440
+ description: string;
441
+ primaryKey: readonly string[];
442
+ readOnly: boolean;
443
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
444
+ }[];
445
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
446
+ } & {
447
+ type: "provider";
448
+ id: `${string}.${string}`;
449
+ args: Record<string, unknown>;
450
+ description?: never;
451
+ strict?: never;
452
+ inputExamples?: never;
453
+ } & {
454
+ isProviderExecuted: false;
455
+ supportsDeferredResults?: never;
456
+ } & {
457
+ execute: import('ai').ToolExecuteFunction<{
458
+ includeReadOnly: boolean;
459
+ table?: string | undefined;
460
+ }, {
461
+ safetyNotes: string[];
462
+ success: boolean;
463
+ tables: {
464
+ columns: string[];
465
+ description: string;
466
+ primaryKey: readonly string[];
467
+ readOnly: boolean;
468
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
469
+ }[];
470
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
471
+ }) | ({
472
+ deferLoading?: boolean;
473
+ title?: string;
474
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
475
+ metadata?: import('@ai-sdk/provider').JSONObject;
476
+ inputSchema: import('ai').FlexibleSchema<{
477
+ includeReadOnly: boolean;
478
+ table?: string | undefined;
479
+ }>;
480
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
481
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
482
+ includeReadOnly: boolean;
483
+ table?: string | undefined;
484
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
485
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
486
+ onInputDelta?: ((options: {
487
+ inputTextDelta: string;
488
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
489
+ onInputAvailable?: ((options: {
490
+ input: {
491
+ includeReadOnly: boolean;
492
+ table?: string | undefined;
493
+ };
494
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
495
+ toModelOutput?: ((options: {
496
+ toolCallId: string;
497
+ input: {
498
+ includeReadOnly: boolean;
499
+ table?: string | undefined;
500
+ };
501
+ output: NoInfer<{
502
+ safetyNotes: string[];
503
+ success: boolean;
504
+ tables: {
505
+ columns: string[];
506
+ description: string;
507
+ primaryKey: readonly string[];
508
+ readOnly: boolean;
509
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
510
+ }[];
511
+ }>;
512
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
513
+ } & {
514
+ outputSchema?: import('ai').FlexibleSchema<{
515
+ safetyNotes: string[];
516
+ success: boolean;
517
+ tables: {
518
+ columns: string[];
519
+ description: string;
520
+ primaryKey: readonly string[];
521
+ readOnly: boolean;
522
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
523
+ }[];
524
+ }> | undefined;
525
+ execute: import('ai').ToolExecuteFunction<{
526
+ includeReadOnly: boolean;
527
+ table?: string | undefined;
528
+ }, {
529
+ safetyNotes: string[];
530
+ success: boolean;
531
+ tables: {
532
+ columns: string[];
533
+ description: string;
534
+ primaryKey: readonly string[];
535
+ readOnly: boolean;
536
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
537
+ }[];
538
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
539
+ } & {
540
+ type: "provider";
541
+ id: `${string}.${string}`;
542
+ args: Record<string, unknown>;
543
+ description?: never;
544
+ strict?: never;
545
+ inputExamples?: never;
546
+ } & {
547
+ isProviderExecuted: true;
548
+ supportsDeferredResults?: boolean;
549
+ } & {
550
+ execute: import('ai').ToolExecuteFunction<{
551
+ includeReadOnly: boolean;
552
+ table?: string | undefined;
553
+ }, {
554
+ safetyNotes: string[];
555
+ success: boolean;
556
+ tables: {
557
+ columns: string[];
558
+ description: string;
559
+ primaryKey: readonly string[];
560
+ readOnly: boolean;
561
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
562
+ }[];
563
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
564
+ });
565
+ execute_database_action_plan: ({
566
+ deferLoading?: boolean;
567
+ title?: string;
568
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
569
+ metadata?: import('@ai-sdk/provider').JSONObject;
570
+ inputSchema: import('ai').FlexibleSchema<{
571
+ actions: {
572
+ operation: "delete" | "update" | "insert" | "upsert";
573
+ table: string;
574
+ filters?: {
575
+ column: string;
576
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
577
+ value: unknown;
578
+ }[] | undefined;
579
+ rows?: Record<string, unknown>[] | undefined;
580
+ summary?: string | undefined;
581
+ values?: Record<string, unknown> | undefined;
582
+ }[];
583
+ summary?: string | undefined;
584
+ }>;
585
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
586
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
587
+ actions: {
588
+ operation: "delete" | "update" | "insert" | "upsert";
589
+ table: string;
590
+ filters?: {
591
+ column: string;
592
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
593
+ value: unknown;
594
+ }[] | undefined;
595
+ rows?: Record<string, unknown>[] | undefined;
596
+ summary?: string | undefined;
597
+ values?: Record<string, unknown> | undefined;
598
+ }[];
599
+ summary?: string | undefined;
600
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
601
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
602
+ onInputDelta?: ((options: {
603
+ inputTextDelta: string;
604
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
605
+ onInputAvailable?: ((options: {
606
+ input: {
607
+ actions: {
608
+ operation: "delete" | "update" | "insert" | "upsert";
609
+ table: string;
610
+ filters?: {
611
+ column: string;
612
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
613
+ value: unknown;
614
+ }[] | undefined;
615
+ rows?: Record<string, unknown>[] | undefined;
616
+ summary?: string | undefined;
617
+ values?: Record<string, unknown> | undefined;
618
+ }[];
619
+ summary?: string | undefined;
620
+ };
621
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
622
+ toModelOutput?: ((options: {
623
+ toolCallId: string;
624
+ input: {
625
+ actions: {
626
+ operation: "delete" | "update" | "insert" | "upsert";
627
+ table: string;
628
+ filters?: {
629
+ column: string;
630
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
631
+ value: unknown;
632
+ }[] | undefined;
633
+ rows?: Record<string, unknown>[] | undefined;
634
+ summary?: string | undefined;
635
+ values?: Record<string, unknown> | undefined;
636
+ }[];
637
+ summary?: string | undefined;
638
+ };
639
+ output: NoInfer<{
640
+ confirmationPhrase: string;
641
+ mutationExecuted: boolean;
642
+ preview: Record<string, unknown>;
643
+ requiresConfirmation: boolean;
644
+ success: boolean;
645
+ } | {
646
+ failedActionIndex: number;
647
+ message: any;
648
+ mutationExecuted: boolean;
649
+ results: unknown[];
650
+ success: boolean;
651
+ auditError?: string | undefined;
652
+ actionCount: number;
653
+ auditLogged: boolean;
654
+ } | {
655
+ mutationExecuted: boolean;
656
+ results: unknown[];
657
+ success: boolean;
658
+ summary: string | null;
659
+ auditError?: string | undefined;
660
+ actionCount: number;
661
+ auditLogged: boolean;
662
+ }>;
663
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
664
+ } & {
665
+ outputSchema?: import('ai').FlexibleSchema<{
666
+ confirmationPhrase: string;
667
+ mutationExecuted: boolean;
668
+ preview: Record<string, unknown>;
669
+ requiresConfirmation: boolean;
670
+ success: boolean;
671
+ } | {
672
+ failedActionIndex: number;
673
+ message: any;
674
+ mutationExecuted: boolean;
675
+ results: unknown[];
676
+ success: boolean;
677
+ auditError?: string | undefined;
678
+ actionCount: number;
679
+ auditLogged: boolean;
680
+ } | {
681
+ mutationExecuted: boolean;
682
+ results: unknown[];
683
+ success: boolean;
684
+ summary: string | null;
685
+ auditError?: string | undefined;
686
+ actionCount: number;
687
+ auditLogged: boolean;
688
+ }> | undefined;
689
+ execute: import('ai').ToolExecuteFunction<{
690
+ actions: {
691
+ operation: "delete" | "update" | "insert" | "upsert";
692
+ table: string;
693
+ filters?: {
694
+ column: string;
695
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
696
+ value: unknown;
697
+ }[] | undefined;
698
+ rows?: Record<string, unknown>[] | undefined;
699
+ summary?: string | undefined;
700
+ values?: Record<string, unknown> | undefined;
701
+ }[];
702
+ summary?: string | undefined;
703
+ }, {
704
+ confirmationPhrase: string;
705
+ mutationExecuted: boolean;
706
+ preview: Record<string, unknown>;
707
+ requiresConfirmation: boolean;
708
+ success: boolean;
709
+ } | {
710
+ failedActionIndex: number;
711
+ message: any;
712
+ mutationExecuted: boolean;
713
+ results: unknown[];
714
+ success: boolean;
715
+ auditError?: string | undefined;
716
+ actionCount: number;
717
+ auditLogged: boolean;
718
+ } | {
719
+ mutationExecuted: boolean;
720
+ results: unknown[];
721
+ success: boolean;
722
+ summary: string | null;
723
+ auditError?: string | undefined;
724
+ actionCount: number;
725
+ auditLogged: boolean;
726
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
727
+ } & {
728
+ description?: string | ((options: {
729
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
730
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
731
+ }) => string) | undefined;
732
+ strict?: boolean;
733
+ inputExamples?: {
734
+ input: NoInfer<{
735
+ actions: {
736
+ operation: "delete" | "update" | "insert" | "upsert";
737
+ table: string;
738
+ filters?: {
739
+ column: string;
740
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
741
+ value: unknown;
742
+ }[] | undefined;
743
+ rows?: Record<string, unknown>[] | undefined;
744
+ summary?: string | undefined;
745
+ values?: Record<string, unknown> | undefined;
746
+ }[];
747
+ summary?: string | undefined;
748
+ }>;
749
+ }[] | undefined;
750
+ id?: never;
751
+ isProviderExecuted?: never;
752
+ args?: never;
753
+ supportsDeferredResults?: never;
754
+ } & {
755
+ type?: undefined | "function";
756
+ } & {
757
+ execute: import('ai').ToolExecuteFunction<{
758
+ actions: {
759
+ operation: "delete" | "update" | "insert" | "upsert";
760
+ table: string;
761
+ filters?: {
762
+ column: string;
763
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
764
+ value: unknown;
765
+ }[] | undefined;
766
+ rows?: Record<string, unknown>[] | undefined;
767
+ summary?: string | undefined;
768
+ values?: Record<string, unknown> | undefined;
769
+ }[];
770
+ summary?: string | undefined;
771
+ }, {
772
+ confirmationPhrase: string;
773
+ mutationExecuted: boolean;
774
+ preview: Record<string, unknown>;
775
+ requiresConfirmation: boolean;
776
+ success: boolean;
777
+ } | {
778
+ failedActionIndex: number;
779
+ message: any;
780
+ mutationExecuted: boolean;
781
+ results: unknown[];
782
+ success: boolean;
783
+ auditError?: string | undefined;
784
+ actionCount: number;
785
+ auditLogged: boolean;
786
+ } | {
787
+ mutationExecuted: boolean;
788
+ results: unknown[];
789
+ success: boolean;
790
+ summary: string | null;
791
+ auditError?: string | undefined;
792
+ actionCount: number;
793
+ auditLogged: boolean;
794
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
795
+ }) | ({
796
+ deferLoading?: boolean;
797
+ title?: string;
798
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
799
+ metadata?: import('@ai-sdk/provider').JSONObject;
800
+ inputSchema: import('ai').FlexibleSchema<{
801
+ actions: {
802
+ operation: "delete" | "update" | "insert" | "upsert";
803
+ table: string;
804
+ filters?: {
805
+ column: string;
806
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
807
+ value: unknown;
808
+ }[] | undefined;
809
+ rows?: Record<string, unknown>[] | undefined;
810
+ summary?: string | undefined;
811
+ values?: Record<string, unknown> | undefined;
812
+ }[];
813
+ summary?: string | undefined;
814
+ }>;
815
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
816
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
817
+ actions: {
818
+ operation: "delete" | "update" | "insert" | "upsert";
819
+ table: string;
820
+ filters?: {
821
+ column: string;
822
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
823
+ value: unknown;
824
+ }[] | undefined;
825
+ rows?: Record<string, unknown>[] | undefined;
826
+ summary?: string | undefined;
827
+ values?: Record<string, unknown> | undefined;
828
+ }[];
829
+ summary?: string | undefined;
830
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
831
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
832
+ onInputDelta?: ((options: {
833
+ inputTextDelta: string;
834
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
835
+ onInputAvailable?: ((options: {
836
+ input: {
837
+ actions: {
838
+ operation: "delete" | "update" | "insert" | "upsert";
839
+ table: string;
840
+ filters?: {
841
+ column: string;
842
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
843
+ value: unknown;
844
+ }[] | undefined;
845
+ rows?: Record<string, unknown>[] | undefined;
846
+ summary?: string | undefined;
847
+ values?: Record<string, unknown> | undefined;
848
+ }[];
849
+ summary?: string | undefined;
850
+ };
851
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
852
+ toModelOutput?: ((options: {
853
+ toolCallId: string;
854
+ input: {
855
+ actions: {
856
+ operation: "delete" | "update" | "insert" | "upsert";
857
+ table: string;
858
+ filters?: {
859
+ column: string;
860
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
861
+ value: unknown;
862
+ }[] | undefined;
863
+ rows?: Record<string, unknown>[] | undefined;
864
+ summary?: string | undefined;
865
+ values?: Record<string, unknown> | undefined;
866
+ }[];
867
+ summary?: string | undefined;
868
+ };
869
+ output: NoInfer<{
870
+ confirmationPhrase: string;
871
+ mutationExecuted: boolean;
872
+ preview: Record<string, unknown>;
873
+ requiresConfirmation: boolean;
874
+ success: boolean;
875
+ } | {
876
+ failedActionIndex: number;
877
+ message: any;
878
+ mutationExecuted: boolean;
879
+ results: unknown[];
880
+ success: boolean;
881
+ auditError?: string | undefined;
882
+ actionCount: number;
883
+ auditLogged: boolean;
884
+ } | {
885
+ mutationExecuted: boolean;
886
+ results: unknown[];
887
+ success: boolean;
888
+ summary: string | null;
889
+ auditError?: string | undefined;
890
+ actionCount: number;
891
+ auditLogged: boolean;
892
+ }>;
893
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
894
+ } & {
895
+ outputSchema?: import('ai').FlexibleSchema<{
896
+ confirmationPhrase: string;
897
+ mutationExecuted: boolean;
898
+ preview: Record<string, unknown>;
899
+ requiresConfirmation: boolean;
900
+ success: boolean;
901
+ } | {
902
+ failedActionIndex: number;
903
+ message: any;
904
+ mutationExecuted: boolean;
905
+ results: unknown[];
906
+ success: boolean;
907
+ auditError?: string | undefined;
908
+ actionCount: number;
909
+ auditLogged: boolean;
910
+ } | {
911
+ mutationExecuted: boolean;
912
+ results: unknown[];
913
+ success: boolean;
914
+ summary: string | null;
915
+ auditError?: string | undefined;
916
+ actionCount: number;
917
+ auditLogged: boolean;
918
+ }> | undefined;
919
+ execute: import('ai').ToolExecuteFunction<{
920
+ actions: {
921
+ operation: "delete" | "update" | "insert" | "upsert";
922
+ table: string;
923
+ filters?: {
924
+ column: string;
925
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
926
+ value: unknown;
927
+ }[] | undefined;
928
+ rows?: Record<string, unknown>[] | undefined;
929
+ summary?: string | undefined;
930
+ values?: Record<string, unknown> | undefined;
931
+ }[];
932
+ summary?: string | undefined;
933
+ }, {
934
+ confirmationPhrase: string;
935
+ mutationExecuted: boolean;
936
+ preview: Record<string, unknown>;
937
+ requiresConfirmation: boolean;
938
+ success: boolean;
939
+ } | {
940
+ failedActionIndex: number;
941
+ message: any;
942
+ mutationExecuted: boolean;
943
+ results: unknown[];
944
+ success: boolean;
945
+ auditError?: string | undefined;
946
+ actionCount: number;
947
+ auditLogged: boolean;
948
+ } | {
949
+ mutationExecuted: boolean;
950
+ results: unknown[];
951
+ success: boolean;
952
+ summary: string | null;
953
+ auditError?: string | undefined;
954
+ actionCount: number;
955
+ auditLogged: boolean;
956
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
957
+ } & {
958
+ description?: string | ((options: {
959
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
960
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
961
+ }) => string) | undefined;
962
+ strict?: boolean;
963
+ inputExamples?: {
964
+ input: NoInfer<{
965
+ actions: {
966
+ operation: "delete" | "update" | "insert" | "upsert";
967
+ table: string;
968
+ filters?: {
969
+ column: string;
970
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
971
+ value: unknown;
972
+ }[] | undefined;
973
+ rows?: Record<string, unknown>[] | undefined;
974
+ summary?: string | undefined;
975
+ values?: Record<string, unknown> | undefined;
976
+ }[];
977
+ summary?: string | undefined;
978
+ }>;
979
+ }[] | undefined;
980
+ id?: never;
981
+ isProviderExecuted?: never;
982
+ args?: never;
983
+ supportsDeferredResults?: never;
984
+ } & {
985
+ type: "dynamic";
986
+ } & {
987
+ execute: import('ai').ToolExecuteFunction<{
988
+ actions: {
989
+ operation: "delete" | "update" | "insert" | "upsert";
990
+ table: string;
991
+ filters?: {
992
+ column: string;
993
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
994
+ value: unknown;
995
+ }[] | undefined;
996
+ rows?: Record<string, unknown>[] | undefined;
997
+ summary?: string | undefined;
998
+ values?: Record<string, unknown> | undefined;
999
+ }[];
1000
+ summary?: string | undefined;
1001
+ }, {
1002
+ confirmationPhrase: string;
1003
+ mutationExecuted: boolean;
1004
+ preview: Record<string, unknown>;
1005
+ requiresConfirmation: boolean;
1006
+ success: boolean;
1007
+ } | {
1008
+ failedActionIndex: number;
1009
+ message: any;
1010
+ mutationExecuted: boolean;
1011
+ results: unknown[];
1012
+ success: boolean;
1013
+ auditError?: string | undefined;
1014
+ actionCount: number;
1015
+ auditLogged: boolean;
1016
+ } | {
1017
+ mutationExecuted: boolean;
1018
+ results: unknown[];
1019
+ success: boolean;
1020
+ summary: string | null;
1021
+ auditError?: string | undefined;
1022
+ actionCount: number;
1023
+ auditLogged: boolean;
1024
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1025
+ }) | ({
1026
+ deferLoading?: boolean;
1027
+ title?: string;
1028
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1029
+ metadata?: import('@ai-sdk/provider').JSONObject;
1030
+ inputSchema: import('ai').FlexibleSchema<{
1031
+ actions: {
1032
+ operation: "delete" | "update" | "insert" | "upsert";
1033
+ table: string;
1034
+ filters?: {
1035
+ column: string;
1036
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1037
+ value: unknown;
1038
+ }[] | undefined;
1039
+ rows?: Record<string, unknown>[] | undefined;
1040
+ summary?: string | undefined;
1041
+ values?: Record<string, unknown> | undefined;
1042
+ }[];
1043
+ summary?: string | undefined;
1044
+ }>;
1045
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1046
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1047
+ actions: {
1048
+ operation: "delete" | "update" | "insert" | "upsert";
1049
+ table: string;
1050
+ filters?: {
1051
+ column: string;
1052
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1053
+ value: unknown;
1054
+ }[] | undefined;
1055
+ rows?: Record<string, unknown>[] | undefined;
1056
+ summary?: string | undefined;
1057
+ values?: Record<string, unknown> | undefined;
1058
+ }[];
1059
+ summary?: string | undefined;
1060
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1061
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1062
+ onInputDelta?: ((options: {
1063
+ inputTextDelta: string;
1064
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1065
+ onInputAvailable?: ((options: {
1066
+ input: {
1067
+ actions: {
1068
+ operation: "delete" | "update" | "insert" | "upsert";
1069
+ table: string;
1070
+ filters?: {
1071
+ column: string;
1072
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1073
+ value: unknown;
1074
+ }[] | undefined;
1075
+ rows?: Record<string, unknown>[] | undefined;
1076
+ summary?: string | undefined;
1077
+ values?: Record<string, unknown> | undefined;
1078
+ }[];
1079
+ summary?: string | undefined;
1080
+ };
1081
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1082
+ toModelOutput?: ((options: {
1083
+ toolCallId: string;
1084
+ input: {
1085
+ actions: {
1086
+ operation: "delete" | "update" | "insert" | "upsert";
1087
+ table: string;
1088
+ filters?: {
1089
+ column: string;
1090
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1091
+ value: unknown;
1092
+ }[] | undefined;
1093
+ rows?: Record<string, unknown>[] | undefined;
1094
+ summary?: string | undefined;
1095
+ values?: Record<string, unknown> | undefined;
1096
+ }[];
1097
+ summary?: string | undefined;
1098
+ };
1099
+ output: NoInfer<{
1100
+ confirmationPhrase: string;
1101
+ mutationExecuted: boolean;
1102
+ preview: Record<string, unknown>;
1103
+ requiresConfirmation: boolean;
1104
+ success: boolean;
1105
+ } | {
1106
+ failedActionIndex: number;
1107
+ message: any;
1108
+ mutationExecuted: boolean;
1109
+ results: unknown[];
1110
+ success: boolean;
1111
+ auditError?: string | undefined;
1112
+ actionCount: number;
1113
+ auditLogged: boolean;
1114
+ } | {
1115
+ mutationExecuted: boolean;
1116
+ results: unknown[];
1117
+ success: boolean;
1118
+ summary: string | null;
1119
+ auditError?: string | undefined;
1120
+ actionCount: number;
1121
+ auditLogged: boolean;
1122
+ }>;
1123
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1124
+ } & {
1125
+ outputSchema?: import('ai').FlexibleSchema<{
1126
+ confirmationPhrase: string;
1127
+ mutationExecuted: boolean;
1128
+ preview: Record<string, unknown>;
1129
+ requiresConfirmation: boolean;
1130
+ success: boolean;
1131
+ } | {
1132
+ failedActionIndex: number;
1133
+ message: any;
1134
+ mutationExecuted: boolean;
1135
+ results: unknown[];
1136
+ success: boolean;
1137
+ auditError?: string | undefined;
1138
+ actionCount: number;
1139
+ auditLogged: boolean;
1140
+ } | {
1141
+ mutationExecuted: boolean;
1142
+ results: unknown[];
1143
+ success: boolean;
1144
+ summary: string | null;
1145
+ auditError?: string | undefined;
1146
+ actionCount: number;
1147
+ auditLogged: boolean;
1148
+ }> | undefined;
1149
+ execute: import('ai').ToolExecuteFunction<{
1150
+ actions: {
1151
+ operation: "delete" | "update" | "insert" | "upsert";
1152
+ table: string;
1153
+ filters?: {
1154
+ column: string;
1155
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1156
+ value: unknown;
1157
+ }[] | undefined;
1158
+ rows?: Record<string, unknown>[] | undefined;
1159
+ summary?: string | undefined;
1160
+ values?: Record<string, unknown> | undefined;
1161
+ }[];
1162
+ summary?: string | undefined;
1163
+ }, {
1164
+ confirmationPhrase: string;
1165
+ mutationExecuted: boolean;
1166
+ preview: Record<string, unknown>;
1167
+ requiresConfirmation: boolean;
1168
+ success: boolean;
1169
+ } | {
1170
+ failedActionIndex: number;
1171
+ message: any;
1172
+ mutationExecuted: boolean;
1173
+ results: unknown[];
1174
+ success: boolean;
1175
+ auditError?: string | undefined;
1176
+ actionCount: number;
1177
+ auditLogged: boolean;
1178
+ } | {
1179
+ mutationExecuted: boolean;
1180
+ results: unknown[];
1181
+ success: boolean;
1182
+ summary: string | null;
1183
+ auditError?: string | undefined;
1184
+ actionCount: number;
1185
+ auditLogged: boolean;
1186
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1187
+ } & {
1188
+ type: "provider";
1189
+ id: `${string}.${string}`;
1190
+ args: Record<string, unknown>;
1191
+ description?: never;
1192
+ strict?: never;
1193
+ inputExamples?: never;
1194
+ } & {
1195
+ isProviderExecuted: false;
1196
+ supportsDeferredResults?: never;
1197
+ } & {
1198
+ execute: import('ai').ToolExecuteFunction<{
1199
+ actions: {
1200
+ operation: "delete" | "update" | "insert" | "upsert";
1201
+ table: string;
1202
+ filters?: {
1203
+ column: string;
1204
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1205
+ value: unknown;
1206
+ }[] | undefined;
1207
+ rows?: Record<string, unknown>[] | undefined;
1208
+ summary?: string | undefined;
1209
+ values?: Record<string, unknown> | undefined;
1210
+ }[];
1211
+ summary?: string | undefined;
1212
+ }, {
1213
+ confirmationPhrase: string;
1214
+ mutationExecuted: boolean;
1215
+ preview: Record<string, unknown>;
1216
+ requiresConfirmation: boolean;
1217
+ success: boolean;
1218
+ } | {
1219
+ failedActionIndex: number;
1220
+ message: any;
1221
+ mutationExecuted: boolean;
1222
+ results: unknown[];
1223
+ success: boolean;
1224
+ auditError?: string | undefined;
1225
+ actionCount: number;
1226
+ auditLogged: boolean;
1227
+ } | {
1228
+ mutationExecuted: boolean;
1229
+ results: unknown[];
1230
+ success: boolean;
1231
+ summary: string | null;
1232
+ auditError?: string | undefined;
1233
+ actionCount: number;
1234
+ auditLogged: boolean;
1235
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1236
+ }) | ({
1237
+ deferLoading?: boolean;
1238
+ title?: string;
1239
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1240
+ metadata?: import('@ai-sdk/provider').JSONObject;
1241
+ inputSchema: import('ai').FlexibleSchema<{
1242
+ actions: {
1243
+ operation: "delete" | "update" | "insert" | "upsert";
1244
+ table: string;
1245
+ filters?: {
1246
+ column: string;
1247
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1248
+ value: unknown;
1249
+ }[] | undefined;
1250
+ rows?: Record<string, unknown>[] | undefined;
1251
+ summary?: string | undefined;
1252
+ values?: Record<string, unknown> | undefined;
1253
+ }[];
1254
+ summary?: string | undefined;
1255
+ }>;
1256
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1257
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1258
+ actions: {
1259
+ operation: "delete" | "update" | "insert" | "upsert";
1260
+ table: string;
1261
+ filters?: {
1262
+ column: string;
1263
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1264
+ value: unknown;
1265
+ }[] | undefined;
1266
+ rows?: Record<string, unknown>[] | undefined;
1267
+ summary?: string | undefined;
1268
+ values?: Record<string, unknown> | undefined;
1269
+ }[];
1270
+ summary?: string | undefined;
1271
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1272
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1273
+ onInputDelta?: ((options: {
1274
+ inputTextDelta: string;
1275
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1276
+ onInputAvailable?: ((options: {
1277
+ input: {
1278
+ actions: {
1279
+ operation: "delete" | "update" | "insert" | "upsert";
1280
+ table: string;
1281
+ filters?: {
1282
+ column: string;
1283
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1284
+ value: unknown;
1285
+ }[] | undefined;
1286
+ rows?: Record<string, unknown>[] | undefined;
1287
+ summary?: string | undefined;
1288
+ values?: Record<string, unknown> | undefined;
1289
+ }[];
1290
+ summary?: string | undefined;
1291
+ };
1292
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1293
+ toModelOutput?: ((options: {
1294
+ toolCallId: string;
1295
+ input: {
1296
+ actions: {
1297
+ operation: "delete" | "update" | "insert" | "upsert";
1298
+ table: string;
1299
+ filters?: {
1300
+ column: string;
1301
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1302
+ value: unknown;
1303
+ }[] | undefined;
1304
+ rows?: Record<string, unknown>[] | undefined;
1305
+ summary?: string | undefined;
1306
+ values?: Record<string, unknown> | undefined;
1307
+ }[];
1308
+ summary?: string | undefined;
1309
+ };
1310
+ output: NoInfer<{
1311
+ confirmationPhrase: string;
1312
+ mutationExecuted: boolean;
1313
+ preview: Record<string, unknown>;
1314
+ requiresConfirmation: boolean;
1315
+ success: boolean;
1316
+ } | {
1317
+ failedActionIndex: number;
1318
+ message: any;
1319
+ mutationExecuted: boolean;
1320
+ results: unknown[];
1321
+ success: boolean;
1322
+ auditError?: string | undefined;
1323
+ actionCount: number;
1324
+ auditLogged: boolean;
1325
+ } | {
1326
+ mutationExecuted: boolean;
1327
+ results: unknown[];
1328
+ success: boolean;
1329
+ summary: string | null;
1330
+ auditError?: string | undefined;
1331
+ actionCount: number;
1332
+ auditLogged: boolean;
1333
+ }>;
1334
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1335
+ } & {
1336
+ outputSchema?: import('ai').FlexibleSchema<{
1337
+ confirmationPhrase: string;
1338
+ mutationExecuted: boolean;
1339
+ preview: Record<string, unknown>;
1340
+ requiresConfirmation: boolean;
1341
+ success: boolean;
1342
+ } | {
1343
+ failedActionIndex: number;
1344
+ message: any;
1345
+ mutationExecuted: boolean;
1346
+ results: unknown[];
1347
+ success: boolean;
1348
+ auditError?: string | undefined;
1349
+ actionCount: number;
1350
+ auditLogged: boolean;
1351
+ } | {
1352
+ mutationExecuted: boolean;
1353
+ results: unknown[];
1354
+ success: boolean;
1355
+ summary: string | null;
1356
+ auditError?: string | undefined;
1357
+ actionCount: number;
1358
+ auditLogged: boolean;
1359
+ }> | undefined;
1360
+ execute: import('ai').ToolExecuteFunction<{
1361
+ actions: {
1362
+ operation: "delete" | "update" | "insert" | "upsert";
1363
+ table: string;
1364
+ filters?: {
1365
+ column: string;
1366
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1367
+ value: unknown;
1368
+ }[] | undefined;
1369
+ rows?: Record<string, unknown>[] | undefined;
1370
+ summary?: string | undefined;
1371
+ values?: Record<string, unknown> | undefined;
1372
+ }[];
1373
+ summary?: string | undefined;
1374
+ }, {
1375
+ confirmationPhrase: string;
1376
+ mutationExecuted: boolean;
1377
+ preview: Record<string, unknown>;
1378
+ requiresConfirmation: boolean;
1379
+ success: boolean;
1380
+ } | {
1381
+ failedActionIndex: number;
1382
+ message: any;
1383
+ mutationExecuted: boolean;
1384
+ results: unknown[];
1385
+ success: boolean;
1386
+ auditError?: string | undefined;
1387
+ actionCount: number;
1388
+ auditLogged: boolean;
1389
+ } | {
1390
+ mutationExecuted: boolean;
1391
+ results: unknown[];
1392
+ success: boolean;
1393
+ summary: string | null;
1394
+ auditError?: string | undefined;
1395
+ actionCount: number;
1396
+ auditLogged: boolean;
1397
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1398
+ } & {
1399
+ type: "provider";
1400
+ id: `${string}.${string}`;
1401
+ args: Record<string, unknown>;
1402
+ description?: never;
1403
+ strict?: never;
1404
+ inputExamples?: never;
1405
+ } & {
1406
+ isProviderExecuted: true;
1407
+ supportsDeferredResults?: boolean;
1408
+ } & {
1409
+ execute: import('ai').ToolExecuteFunction<{
1410
+ actions: {
1411
+ operation: "delete" | "update" | "insert" | "upsert";
1412
+ table: string;
1413
+ filters?: {
1414
+ column: string;
1415
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1416
+ value: unknown;
1417
+ }[] | undefined;
1418
+ rows?: Record<string, unknown>[] | undefined;
1419
+ summary?: string | undefined;
1420
+ values?: Record<string, unknown> | undefined;
1421
+ }[];
1422
+ summary?: string | undefined;
1423
+ }, {
1424
+ confirmationPhrase: string;
1425
+ mutationExecuted: boolean;
1426
+ preview: Record<string, unknown>;
1427
+ requiresConfirmation: boolean;
1428
+ success: boolean;
1429
+ } | {
1430
+ failedActionIndex: number;
1431
+ message: any;
1432
+ mutationExecuted: boolean;
1433
+ results: unknown[];
1434
+ success: boolean;
1435
+ auditError?: string | undefined;
1436
+ actionCount: number;
1437
+ auditLogged: boolean;
1438
+ } | {
1439
+ mutationExecuted: boolean;
1440
+ results: unknown[];
1441
+ success: boolean;
1442
+ summary: string | null;
1443
+ auditError?: string | undefined;
1444
+ actionCount: number;
1445
+ auditLogged: boolean;
1446
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1447
+ });
1448
+ execute_database_mutation: ({
1449
+ deferLoading?: boolean;
1450
+ title?: string;
1451
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1452
+ metadata?: import('@ai-sdk/provider').JSONObject;
1453
+ inputSchema: import('ai').FlexibleSchema<{
1454
+ operation: "delete" | "update" | "insert" | "upsert";
1455
+ table: string;
1456
+ filters?: {
1457
+ column: string;
1458
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1459
+ value: unknown;
1460
+ }[] | undefined;
1461
+ rows?: Record<string, unknown>[] | undefined;
1462
+ summary?: string | undefined;
1463
+ values?: Record<string, unknown> | undefined;
1464
+ }>;
1465
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1466
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1467
+ operation: "delete" | "update" | "insert" | "upsert";
1468
+ table: string;
1469
+ filters?: {
1470
+ column: string;
1471
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1472
+ value: unknown;
1473
+ }[] | undefined;
1474
+ rows?: Record<string, unknown>[] | undefined;
1475
+ summary?: string | undefined;
1476
+ values?: Record<string, unknown> | undefined;
1477
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1478
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1479
+ onInputDelta?: ((options: {
1480
+ inputTextDelta: string;
1481
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1482
+ onInputAvailable?: ((options: {
1483
+ input: {
1484
+ operation: "delete" | "update" | "insert" | "upsert";
1485
+ table: string;
1486
+ filters?: {
1487
+ column: string;
1488
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1489
+ value: unknown;
1490
+ }[] | undefined;
1491
+ rows?: Record<string, unknown>[] | undefined;
1492
+ summary?: string | undefined;
1493
+ values?: Record<string, unknown> | undefined;
1494
+ };
1495
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1496
+ toModelOutput?: ((options: {
1497
+ toolCallId: string;
1498
+ input: {
1499
+ operation: "delete" | "update" | "insert" | "upsert";
1500
+ table: string;
1501
+ filters?: {
1502
+ column: string;
1503
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1504
+ value: unknown;
1505
+ }[] | undefined;
1506
+ rows?: Record<string, unknown>[] | undefined;
1507
+ summary?: string | undefined;
1508
+ values?: Record<string, unknown> | undefined;
1509
+ };
1510
+ output: NoInfer<{
1511
+ confirmationPhrase: string;
1512
+ mutationExecuted: boolean;
1513
+ preview: Record<string, unknown>;
1514
+ requiresConfirmation: boolean;
1515
+ success: boolean;
1516
+ } | {
1517
+ mutationExecuted: boolean;
1518
+ operation: "delete" | "update" | "insert" | "upsert";
1519
+ sampleTargetIds: string[];
1520
+ success: boolean;
1521
+ summary: string;
1522
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1523
+ auditError?: string | undefined;
1524
+ affectedCount: number;
1525
+ auditLogged: boolean;
1526
+ } | {
1527
+ message: string;
1528
+ mutationExecuted: boolean;
1529
+ operation: "delete" | "update" | "insert" | "upsert";
1530
+ success: boolean;
1531
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1532
+ auditError?: string | undefined;
1533
+ auditLogged: boolean;
1534
+ }>;
1535
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1536
+ } & {
1537
+ outputSchema?: import('ai').FlexibleSchema<{
1538
+ confirmationPhrase: string;
1539
+ mutationExecuted: boolean;
1540
+ preview: Record<string, unknown>;
1541
+ requiresConfirmation: boolean;
1542
+ success: boolean;
1543
+ } | {
1544
+ mutationExecuted: boolean;
1545
+ operation: "delete" | "update" | "insert" | "upsert";
1546
+ sampleTargetIds: string[];
1547
+ success: boolean;
1548
+ summary: string;
187
1549
  table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
188
- }[];
189
- }>;
190
- execute_database_action_plan: import('ai').Tool<{
191
- actions: {
1550
+ auditError?: string | undefined;
1551
+ affectedCount: number;
1552
+ auditLogged: boolean;
1553
+ } | {
1554
+ message: string;
1555
+ mutationExecuted: boolean;
1556
+ operation: "delete" | "update" | "insert" | "upsert";
1557
+ success: boolean;
1558
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1559
+ auditError?: string | undefined;
1560
+ auditLogged: boolean;
1561
+ }> | undefined;
1562
+ execute: import('ai').ToolExecuteFunction<{
192
1563
  operation: "delete" | "update" | "insert" | "upsert";
193
1564
  table: string;
194
1565
  filters?: {
@@ -199,89 +1570,1328 @@ export declare function createCortexDatabaseAgentTools(context?: ToolExecutionCo
199
1570
  rows?: Record<string, unknown>[] | undefined;
200
1571
  summary?: string | undefined;
201
1572
  values?: Record<string, unknown> | undefined;
202
- }[];
203
- summary?: string | undefined;
204
- }, {
205
- confirmationPhrase: string;
206
- mutationExecuted: boolean;
207
- preview: Record<string, unknown>;
208
- requiresConfirmation: boolean;
209
- success: boolean;
210
- } | {
211
- failedActionIndex: number;
212
- message: any;
213
- mutationExecuted: boolean;
214
- results: unknown[];
215
- success: boolean;
216
- auditError?: string | undefined;
217
- actionCount: number;
218
- auditLogged: boolean;
219
- } | {
220
- mutationExecuted: boolean;
221
- results: unknown[];
222
- success: boolean;
223
- summary: string | null;
224
- auditError?: string | undefined;
225
- actionCount: number;
226
- auditLogged: boolean;
227
- }>;
228
- execute_database_mutation: import('ai').Tool<{
229
- operation: "delete" | "update" | "insert" | "upsert";
230
- table: string;
231
- filters?: {
232
- column: string;
233
- operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
234
- value: unknown;
1573
+ }, {
1574
+ confirmationPhrase: string;
1575
+ mutationExecuted: boolean;
1576
+ preview: Record<string, unknown>;
1577
+ requiresConfirmation: boolean;
1578
+ success: boolean;
1579
+ } | {
1580
+ mutationExecuted: boolean;
1581
+ operation: "delete" | "update" | "insert" | "upsert";
1582
+ sampleTargetIds: string[];
1583
+ success: boolean;
1584
+ summary: string;
1585
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1586
+ auditError?: string | undefined;
1587
+ affectedCount: number;
1588
+ auditLogged: boolean;
1589
+ } | {
1590
+ message: string;
1591
+ mutationExecuted: boolean;
1592
+ operation: "delete" | "update" | "insert" | "upsert";
1593
+ success: boolean;
1594
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1595
+ auditError?: string | undefined;
1596
+ auditLogged: boolean;
1597
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1598
+ } & {
1599
+ description?: string | ((options: {
1600
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
1601
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
1602
+ }) => string) | undefined;
1603
+ strict?: boolean;
1604
+ inputExamples?: {
1605
+ input: NoInfer<{
1606
+ operation: "delete" | "update" | "insert" | "upsert";
1607
+ table: string;
1608
+ filters?: {
1609
+ column: string;
1610
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1611
+ value: unknown;
1612
+ }[] | undefined;
1613
+ rows?: Record<string, unknown>[] | undefined;
1614
+ summary?: string | undefined;
1615
+ values?: Record<string, unknown> | undefined;
1616
+ }>;
235
1617
  }[] | undefined;
236
- rows?: Record<string, unknown>[] | undefined;
237
- summary?: string | undefined;
238
- values?: Record<string, unknown> | undefined;
239
- }, {
240
- confirmationPhrase: string;
241
- mutationExecuted: boolean;
242
- preview: Record<string, unknown>;
243
- requiresConfirmation: boolean;
244
- success: boolean;
245
- } | {
246
- mutationExecuted: boolean;
247
- operation: "delete" | "update" | "insert" | "upsert";
248
- sampleTargetIds: string[];
249
- success: boolean;
250
- summary: string;
251
- table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
252
- auditError?: string | undefined;
253
- affectedCount: number;
254
- auditLogged: boolean;
255
- } | {
256
- message: string;
257
- mutationExecuted: boolean;
258
- operation: "delete" | "update" | "insert" | "upsert";
259
- success: boolean;
260
- table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
261
- auditError?: string | undefined;
262
- auditLogged: boolean;
263
- }>;
264
- read_database_records: import('ai').Tool<{
265
- filters: {
266
- column: string;
267
- operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
268
- value: unknown;
269
- }[];
270
- limit: number;
271
- offset: number;
272
- table: string;
273
- columns?: string[] | undefined;
274
- orderBy?: {
275
- ascending: boolean;
276
- column: string;
277
- } | undefined;
278
- }, {
279
- columns: string[];
280
- limit: number;
281
- offset: number;
282
- rows: unknown[];
283
- success: boolean;
284
- table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
285
- }>;
1618
+ id?: never;
1619
+ isProviderExecuted?: never;
1620
+ args?: never;
1621
+ supportsDeferredResults?: never;
1622
+ } & {
1623
+ type?: undefined | "function";
1624
+ } & {
1625
+ execute: import('ai').ToolExecuteFunction<{
1626
+ operation: "delete" | "update" | "insert" | "upsert";
1627
+ table: string;
1628
+ filters?: {
1629
+ column: string;
1630
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1631
+ value: unknown;
1632
+ }[] | undefined;
1633
+ rows?: Record<string, unknown>[] | undefined;
1634
+ summary?: string | undefined;
1635
+ values?: Record<string, unknown> | undefined;
1636
+ }, {
1637
+ confirmationPhrase: string;
1638
+ mutationExecuted: boolean;
1639
+ preview: Record<string, unknown>;
1640
+ requiresConfirmation: boolean;
1641
+ success: boolean;
1642
+ } | {
1643
+ mutationExecuted: boolean;
1644
+ operation: "delete" | "update" | "insert" | "upsert";
1645
+ sampleTargetIds: string[];
1646
+ success: boolean;
1647
+ summary: string;
1648
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1649
+ auditError?: string | undefined;
1650
+ affectedCount: number;
1651
+ auditLogged: boolean;
1652
+ } | {
1653
+ message: string;
1654
+ mutationExecuted: boolean;
1655
+ operation: "delete" | "update" | "insert" | "upsert";
1656
+ success: boolean;
1657
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1658
+ auditError?: string | undefined;
1659
+ auditLogged: boolean;
1660
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1661
+ }) | ({
1662
+ deferLoading?: boolean;
1663
+ title?: string;
1664
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1665
+ metadata?: import('@ai-sdk/provider').JSONObject;
1666
+ inputSchema: import('ai').FlexibleSchema<{
1667
+ operation: "delete" | "update" | "insert" | "upsert";
1668
+ table: string;
1669
+ filters?: {
1670
+ column: string;
1671
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1672
+ value: unknown;
1673
+ }[] | undefined;
1674
+ rows?: Record<string, unknown>[] | undefined;
1675
+ summary?: string | undefined;
1676
+ values?: Record<string, unknown> | undefined;
1677
+ }>;
1678
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1679
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1680
+ operation: "delete" | "update" | "insert" | "upsert";
1681
+ table: string;
1682
+ filters?: {
1683
+ column: string;
1684
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1685
+ value: unknown;
1686
+ }[] | undefined;
1687
+ rows?: Record<string, unknown>[] | undefined;
1688
+ summary?: string | undefined;
1689
+ values?: Record<string, unknown> | undefined;
1690
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1691
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1692
+ onInputDelta?: ((options: {
1693
+ inputTextDelta: string;
1694
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1695
+ onInputAvailable?: ((options: {
1696
+ input: {
1697
+ operation: "delete" | "update" | "insert" | "upsert";
1698
+ table: string;
1699
+ filters?: {
1700
+ column: string;
1701
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1702
+ value: unknown;
1703
+ }[] | undefined;
1704
+ rows?: Record<string, unknown>[] | undefined;
1705
+ summary?: string | undefined;
1706
+ values?: Record<string, unknown> | undefined;
1707
+ };
1708
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1709
+ toModelOutput?: ((options: {
1710
+ toolCallId: string;
1711
+ input: {
1712
+ operation: "delete" | "update" | "insert" | "upsert";
1713
+ table: string;
1714
+ filters?: {
1715
+ column: string;
1716
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1717
+ value: unknown;
1718
+ }[] | undefined;
1719
+ rows?: Record<string, unknown>[] | undefined;
1720
+ summary?: string | undefined;
1721
+ values?: Record<string, unknown> | undefined;
1722
+ };
1723
+ output: NoInfer<{
1724
+ confirmationPhrase: string;
1725
+ mutationExecuted: boolean;
1726
+ preview: Record<string, unknown>;
1727
+ requiresConfirmation: boolean;
1728
+ success: boolean;
1729
+ } | {
1730
+ mutationExecuted: boolean;
1731
+ operation: "delete" | "update" | "insert" | "upsert";
1732
+ sampleTargetIds: string[];
1733
+ success: boolean;
1734
+ summary: string;
1735
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1736
+ auditError?: string | undefined;
1737
+ affectedCount: number;
1738
+ auditLogged: boolean;
1739
+ } | {
1740
+ message: string;
1741
+ mutationExecuted: boolean;
1742
+ operation: "delete" | "update" | "insert" | "upsert";
1743
+ success: boolean;
1744
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1745
+ auditError?: string | undefined;
1746
+ auditLogged: boolean;
1747
+ }>;
1748
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1749
+ } & {
1750
+ outputSchema?: import('ai').FlexibleSchema<{
1751
+ confirmationPhrase: string;
1752
+ mutationExecuted: boolean;
1753
+ preview: Record<string, unknown>;
1754
+ requiresConfirmation: boolean;
1755
+ success: boolean;
1756
+ } | {
1757
+ mutationExecuted: boolean;
1758
+ operation: "delete" | "update" | "insert" | "upsert";
1759
+ sampleTargetIds: string[];
1760
+ success: boolean;
1761
+ summary: string;
1762
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1763
+ auditError?: string | undefined;
1764
+ affectedCount: number;
1765
+ auditLogged: boolean;
1766
+ } | {
1767
+ message: string;
1768
+ mutationExecuted: boolean;
1769
+ operation: "delete" | "update" | "insert" | "upsert";
1770
+ success: boolean;
1771
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1772
+ auditError?: string | undefined;
1773
+ auditLogged: boolean;
1774
+ }> | undefined;
1775
+ execute: import('ai').ToolExecuteFunction<{
1776
+ operation: "delete" | "update" | "insert" | "upsert";
1777
+ table: string;
1778
+ filters?: {
1779
+ column: string;
1780
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1781
+ value: unknown;
1782
+ }[] | undefined;
1783
+ rows?: Record<string, unknown>[] | undefined;
1784
+ summary?: string | undefined;
1785
+ values?: Record<string, unknown> | undefined;
1786
+ }, {
1787
+ confirmationPhrase: string;
1788
+ mutationExecuted: boolean;
1789
+ preview: Record<string, unknown>;
1790
+ requiresConfirmation: boolean;
1791
+ success: boolean;
1792
+ } | {
1793
+ mutationExecuted: boolean;
1794
+ operation: "delete" | "update" | "insert" | "upsert";
1795
+ sampleTargetIds: string[];
1796
+ success: boolean;
1797
+ summary: string;
1798
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1799
+ auditError?: string | undefined;
1800
+ affectedCount: number;
1801
+ auditLogged: boolean;
1802
+ } | {
1803
+ message: string;
1804
+ mutationExecuted: boolean;
1805
+ operation: "delete" | "update" | "insert" | "upsert";
1806
+ success: boolean;
1807
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1808
+ auditError?: string | undefined;
1809
+ auditLogged: boolean;
1810
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1811
+ } & {
1812
+ description?: string | ((options: {
1813
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
1814
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
1815
+ }) => string) | undefined;
1816
+ strict?: boolean;
1817
+ inputExamples?: {
1818
+ input: NoInfer<{
1819
+ operation: "delete" | "update" | "insert" | "upsert";
1820
+ table: string;
1821
+ filters?: {
1822
+ column: string;
1823
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1824
+ value: unknown;
1825
+ }[] | undefined;
1826
+ rows?: Record<string, unknown>[] | undefined;
1827
+ summary?: string | undefined;
1828
+ values?: Record<string, unknown> | undefined;
1829
+ }>;
1830
+ }[] | undefined;
1831
+ id?: never;
1832
+ isProviderExecuted?: never;
1833
+ args?: never;
1834
+ supportsDeferredResults?: never;
1835
+ } & {
1836
+ type: "dynamic";
1837
+ } & {
1838
+ execute: import('ai').ToolExecuteFunction<{
1839
+ operation: "delete" | "update" | "insert" | "upsert";
1840
+ table: string;
1841
+ filters?: {
1842
+ column: string;
1843
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1844
+ value: unknown;
1845
+ }[] | undefined;
1846
+ rows?: Record<string, unknown>[] | undefined;
1847
+ summary?: string | undefined;
1848
+ values?: Record<string, unknown> | undefined;
1849
+ }, {
1850
+ confirmationPhrase: string;
1851
+ mutationExecuted: boolean;
1852
+ preview: Record<string, unknown>;
1853
+ requiresConfirmation: boolean;
1854
+ success: boolean;
1855
+ } | {
1856
+ mutationExecuted: boolean;
1857
+ operation: "delete" | "update" | "insert" | "upsert";
1858
+ sampleTargetIds: string[];
1859
+ success: boolean;
1860
+ summary: string;
1861
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1862
+ auditError?: string | undefined;
1863
+ affectedCount: number;
1864
+ auditLogged: boolean;
1865
+ } | {
1866
+ message: string;
1867
+ mutationExecuted: boolean;
1868
+ operation: "delete" | "update" | "insert" | "upsert";
1869
+ success: boolean;
1870
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1871
+ auditError?: string | undefined;
1872
+ auditLogged: boolean;
1873
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1874
+ }) | ({
1875
+ deferLoading?: boolean;
1876
+ title?: string;
1877
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1878
+ metadata?: import('@ai-sdk/provider').JSONObject;
1879
+ inputSchema: import('ai').FlexibleSchema<{
1880
+ operation: "delete" | "update" | "insert" | "upsert";
1881
+ table: string;
1882
+ filters?: {
1883
+ column: string;
1884
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1885
+ value: unknown;
1886
+ }[] | undefined;
1887
+ rows?: Record<string, unknown>[] | undefined;
1888
+ summary?: string | undefined;
1889
+ values?: Record<string, unknown> | undefined;
1890
+ }>;
1891
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1892
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1893
+ operation: "delete" | "update" | "insert" | "upsert";
1894
+ table: string;
1895
+ filters?: {
1896
+ column: string;
1897
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1898
+ value: unknown;
1899
+ }[] | undefined;
1900
+ rows?: Record<string, unknown>[] | undefined;
1901
+ summary?: string | undefined;
1902
+ values?: Record<string, unknown> | undefined;
1903
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1904
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1905
+ onInputDelta?: ((options: {
1906
+ inputTextDelta: string;
1907
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1908
+ onInputAvailable?: ((options: {
1909
+ input: {
1910
+ operation: "delete" | "update" | "insert" | "upsert";
1911
+ table: string;
1912
+ filters?: {
1913
+ column: string;
1914
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1915
+ value: unknown;
1916
+ }[] | undefined;
1917
+ rows?: Record<string, unknown>[] | undefined;
1918
+ summary?: string | undefined;
1919
+ values?: Record<string, unknown> | undefined;
1920
+ };
1921
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1922
+ toModelOutput?: ((options: {
1923
+ toolCallId: string;
1924
+ input: {
1925
+ operation: "delete" | "update" | "insert" | "upsert";
1926
+ table: string;
1927
+ filters?: {
1928
+ column: string;
1929
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1930
+ value: unknown;
1931
+ }[] | undefined;
1932
+ rows?: Record<string, unknown>[] | undefined;
1933
+ summary?: string | undefined;
1934
+ values?: Record<string, unknown> | undefined;
1935
+ };
1936
+ output: NoInfer<{
1937
+ confirmationPhrase: string;
1938
+ mutationExecuted: boolean;
1939
+ preview: Record<string, unknown>;
1940
+ requiresConfirmation: boolean;
1941
+ success: boolean;
1942
+ } | {
1943
+ mutationExecuted: boolean;
1944
+ operation: "delete" | "update" | "insert" | "upsert";
1945
+ sampleTargetIds: string[];
1946
+ success: boolean;
1947
+ summary: string;
1948
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1949
+ auditError?: string | undefined;
1950
+ affectedCount: number;
1951
+ auditLogged: boolean;
1952
+ } | {
1953
+ message: string;
1954
+ mutationExecuted: boolean;
1955
+ operation: "delete" | "update" | "insert" | "upsert";
1956
+ success: boolean;
1957
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1958
+ auditError?: string | undefined;
1959
+ auditLogged: boolean;
1960
+ }>;
1961
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1962
+ } & {
1963
+ outputSchema?: import('ai').FlexibleSchema<{
1964
+ confirmationPhrase: string;
1965
+ mutationExecuted: boolean;
1966
+ preview: Record<string, unknown>;
1967
+ requiresConfirmation: boolean;
1968
+ success: boolean;
1969
+ } | {
1970
+ mutationExecuted: boolean;
1971
+ operation: "delete" | "update" | "insert" | "upsert";
1972
+ sampleTargetIds: string[];
1973
+ success: boolean;
1974
+ summary: string;
1975
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1976
+ auditError?: string | undefined;
1977
+ affectedCount: number;
1978
+ auditLogged: boolean;
1979
+ } | {
1980
+ message: string;
1981
+ mutationExecuted: boolean;
1982
+ operation: "delete" | "update" | "insert" | "upsert";
1983
+ success: boolean;
1984
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
1985
+ auditError?: string | undefined;
1986
+ auditLogged: boolean;
1987
+ }> | undefined;
1988
+ execute: import('ai').ToolExecuteFunction<{
1989
+ operation: "delete" | "update" | "insert" | "upsert";
1990
+ table: string;
1991
+ filters?: {
1992
+ column: string;
1993
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
1994
+ value: unknown;
1995
+ }[] | undefined;
1996
+ rows?: Record<string, unknown>[] | undefined;
1997
+ summary?: string | undefined;
1998
+ values?: Record<string, unknown> | undefined;
1999
+ }, {
2000
+ confirmationPhrase: string;
2001
+ mutationExecuted: boolean;
2002
+ preview: Record<string, unknown>;
2003
+ requiresConfirmation: boolean;
2004
+ success: boolean;
2005
+ } | {
2006
+ mutationExecuted: boolean;
2007
+ operation: "delete" | "update" | "insert" | "upsert";
2008
+ sampleTargetIds: string[];
2009
+ success: boolean;
2010
+ summary: string;
2011
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2012
+ auditError?: string | undefined;
2013
+ affectedCount: number;
2014
+ auditLogged: boolean;
2015
+ } | {
2016
+ message: string;
2017
+ mutationExecuted: boolean;
2018
+ operation: "delete" | "update" | "insert" | "upsert";
2019
+ success: boolean;
2020
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2021
+ auditError?: string | undefined;
2022
+ auditLogged: boolean;
2023
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2024
+ } & {
2025
+ type: "provider";
2026
+ id: `${string}.${string}`;
2027
+ args: Record<string, unknown>;
2028
+ description?: never;
2029
+ strict?: never;
2030
+ inputExamples?: never;
2031
+ } & {
2032
+ isProviderExecuted: false;
2033
+ supportsDeferredResults?: never;
2034
+ } & {
2035
+ execute: import('ai').ToolExecuteFunction<{
2036
+ operation: "delete" | "update" | "insert" | "upsert";
2037
+ table: string;
2038
+ filters?: {
2039
+ column: string;
2040
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2041
+ value: unknown;
2042
+ }[] | undefined;
2043
+ rows?: Record<string, unknown>[] | undefined;
2044
+ summary?: string | undefined;
2045
+ values?: Record<string, unknown> | undefined;
2046
+ }, {
2047
+ confirmationPhrase: string;
2048
+ mutationExecuted: boolean;
2049
+ preview: Record<string, unknown>;
2050
+ requiresConfirmation: boolean;
2051
+ success: boolean;
2052
+ } | {
2053
+ mutationExecuted: boolean;
2054
+ operation: "delete" | "update" | "insert" | "upsert";
2055
+ sampleTargetIds: string[];
2056
+ success: boolean;
2057
+ summary: string;
2058
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2059
+ auditError?: string | undefined;
2060
+ affectedCount: number;
2061
+ auditLogged: boolean;
2062
+ } | {
2063
+ message: string;
2064
+ mutationExecuted: boolean;
2065
+ operation: "delete" | "update" | "insert" | "upsert";
2066
+ success: boolean;
2067
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2068
+ auditError?: string | undefined;
2069
+ auditLogged: boolean;
2070
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2071
+ }) | ({
2072
+ deferLoading?: boolean;
2073
+ title?: string;
2074
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2075
+ metadata?: import('@ai-sdk/provider').JSONObject;
2076
+ inputSchema: import('ai').FlexibleSchema<{
2077
+ operation: "delete" | "update" | "insert" | "upsert";
2078
+ table: string;
2079
+ filters?: {
2080
+ column: string;
2081
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2082
+ value: unknown;
2083
+ }[] | undefined;
2084
+ rows?: Record<string, unknown>[] | undefined;
2085
+ summary?: string | undefined;
2086
+ values?: Record<string, unknown> | undefined;
2087
+ }>;
2088
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2089
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
2090
+ operation: "delete" | "update" | "insert" | "upsert";
2091
+ table: string;
2092
+ filters?: {
2093
+ column: string;
2094
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2095
+ value: unknown;
2096
+ }[] | undefined;
2097
+ rows?: Record<string, unknown>[] | undefined;
2098
+ summary?: string | undefined;
2099
+ values?: Record<string, unknown> | undefined;
2100
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2101
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2102
+ onInputDelta?: ((options: {
2103
+ inputTextDelta: string;
2104
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2105
+ onInputAvailable?: ((options: {
2106
+ input: {
2107
+ operation: "delete" | "update" | "insert" | "upsert";
2108
+ table: string;
2109
+ filters?: {
2110
+ column: string;
2111
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2112
+ value: unknown;
2113
+ }[] | undefined;
2114
+ rows?: Record<string, unknown>[] | undefined;
2115
+ summary?: string | undefined;
2116
+ values?: Record<string, unknown> | undefined;
2117
+ };
2118
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2119
+ toModelOutput?: ((options: {
2120
+ toolCallId: string;
2121
+ input: {
2122
+ operation: "delete" | "update" | "insert" | "upsert";
2123
+ table: string;
2124
+ filters?: {
2125
+ column: string;
2126
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2127
+ value: unknown;
2128
+ }[] | undefined;
2129
+ rows?: Record<string, unknown>[] | undefined;
2130
+ summary?: string | undefined;
2131
+ values?: Record<string, unknown> | undefined;
2132
+ };
2133
+ output: NoInfer<{
2134
+ confirmationPhrase: string;
2135
+ mutationExecuted: boolean;
2136
+ preview: Record<string, unknown>;
2137
+ requiresConfirmation: boolean;
2138
+ success: boolean;
2139
+ } | {
2140
+ mutationExecuted: boolean;
2141
+ operation: "delete" | "update" | "insert" | "upsert";
2142
+ sampleTargetIds: string[];
2143
+ success: boolean;
2144
+ summary: string;
2145
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2146
+ auditError?: string | undefined;
2147
+ affectedCount: number;
2148
+ auditLogged: boolean;
2149
+ } | {
2150
+ message: string;
2151
+ mutationExecuted: boolean;
2152
+ operation: "delete" | "update" | "insert" | "upsert";
2153
+ success: boolean;
2154
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2155
+ auditError?: string | undefined;
2156
+ auditLogged: boolean;
2157
+ }>;
2158
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2159
+ } & {
2160
+ outputSchema?: import('ai').FlexibleSchema<{
2161
+ confirmationPhrase: string;
2162
+ mutationExecuted: boolean;
2163
+ preview: Record<string, unknown>;
2164
+ requiresConfirmation: boolean;
2165
+ success: boolean;
2166
+ } | {
2167
+ mutationExecuted: boolean;
2168
+ operation: "delete" | "update" | "insert" | "upsert";
2169
+ sampleTargetIds: string[];
2170
+ success: boolean;
2171
+ summary: string;
2172
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2173
+ auditError?: string | undefined;
2174
+ affectedCount: number;
2175
+ auditLogged: boolean;
2176
+ } | {
2177
+ message: string;
2178
+ mutationExecuted: boolean;
2179
+ operation: "delete" | "update" | "insert" | "upsert";
2180
+ success: boolean;
2181
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2182
+ auditError?: string | undefined;
2183
+ auditLogged: boolean;
2184
+ }> | undefined;
2185
+ execute: import('ai').ToolExecuteFunction<{
2186
+ operation: "delete" | "update" | "insert" | "upsert";
2187
+ table: string;
2188
+ filters?: {
2189
+ column: string;
2190
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2191
+ value: unknown;
2192
+ }[] | undefined;
2193
+ rows?: Record<string, unknown>[] | undefined;
2194
+ summary?: string | undefined;
2195
+ values?: Record<string, unknown> | undefined;
2196
+ }, {
2197
+ confirmationPhrase: string;
2198
+ mutationExecuted: boolean;
2199
+ preview: Record<string, unknown>;
2200
+ requiresConfirmation: boolean;
2201
+ success: boolean;
2202
+ } | {
2203
+ mutationExecuted: boolean;
2204
+ operation: "delete" | "update" | "insert" | "upsert";
2205
+ sampleTargetIds: string[];
2206
+ success: boolean;
2207
+ summary: string;
2208
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2209
+ auditError?: string | undefined;
2210
+ affectedCount: number;
2211
+ auditLogged: boolean;
2212
+ } | {
2213
+ message: string;
2214
+ mutationExecuted: boolean;
2215
+ operation: "delete" | "update" | "insert" | "upsert";
2216
+ success: boolean;
2217
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2218
+ auditError?: string | undefined;
2219
+ auditLogged: boolean;
2220
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2221
+ } & {
2222
+ type: "provider";
2223
+ id: `${string}.${string}`;
2224
+ args: Record<string, unknown>;
2225
+ description?: never;
2226
+ strict?: never;
2227
+ inputExamples?: never;
2228
+ } & {
2229
+ isProviderExecuted: true;
2230
+ supportsDeferredResults?: boolean;
2231
+ } & {
2232
+ execute: import('ai').ToolExecuteFunction<{
2233
+ operation: "delete" | "update" | "insert" | "upsert";
2234
+ table: string;
2235
+ filters?: {
2236
+ column: string;
2237
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2238
+ value: unknown;
2239
+ }[] | undefined;
2240
+ rows?: Record<string, unknown>[] | undefined;
2241
+ summary?: string | undefined;
2242
+ values?: Record<string, unknown> | undefined;
2243
+ }, {
2244
+ confirmationPhrase: string;
2245
+ mutationExecuted: boolean;
2246
+ preview: Record<string, unknown>;
2247
+ requiresConfirmation: boolean;
2248
+ success: boolean;
2249
+ } | {
2250
+ mutationExecuted: boolean;
2251
+ operation: "delete" | "update" | "insert" | "upsert";
2252
+ sampleTargetIds: string[];
2253
+ success: boolean;
2254
+ summary: string;
2255
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2256
+ auditError?: string | undefined;
2257
+ affectedCount: number;
2258
+ auditLogged: boolean;
2259
+ } | {
2260
+ message: string;
2261
+ mutationExecuted: boolean;
2262
+ operation: "delete" | "update" | "insert" | "upsert";
2263
+ success: boolean;
2264
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2265
+ auditError?: string | undefined;
2266
+ auditLogged: boolean;
2267
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2268
+ });
2269
+ read_database_records: ({
2270
+ deferLoading?: boolean;
2271
+ title?: string;
2272
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2273
+ metadata?: import('@ai-sdk/provider').JSONObject;
2274
+ inputSchema: import('ai').FlexibleSchema<{
2275
+ filters: {
2276
+ column: string;
2277
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2278
+ value: unknown;
2279
+ }[];
2280
+ limit: number;
2281
+ offset: number;
2282
+ table: string;
2283
+ columns?: string[] | undefined;
2284
+ orderBy?: {
2285
+ ascending: boolean;
2286
+ column: string;
2287
+ } | undefined;
2288
+ }>;
2289
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2290
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
2291
+ filters: {
2292
+ column: string;
2293
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2294
+ value: unknown;
2295
+ }[];
2296
+ limit: number;
2297
+ offset: number;
2298
+ table: string;
2299
+ columns?: string[] | undefined;
2300
+ orderBy?: {
2301
+ ascending: boolean;
2302
+ column: string;
2303
+ } | undefined;
2304
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2305
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2306
+ onInputDelta?: ((options: {
2307
+ inputTextDelta: string;
2308
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2309
+ onInputAvailable?: ((options: {
2310
+ input: {
2311
+ filters: {
2312
+ column: string;
2313
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2314
+ value: unknown;
2315
+ }[];
2316
+ limit: number;
2317
+ offset: number;
2318
+ table: string;
2319
+ columns?: string[] | undefined;
2320
+ orderBy?: {
2321
+ ascending: boolean;
2322
+ column: string;
2323
+ } | undefined;
2324
+ };
2325
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2326
+ toModelOutput?: ((options: {
2327
+ toolCallId: string;
2328
+ input: {
2329
+ filters: {
2330
+ column: string;
2331
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2332
+ value: unknown;
2333
+ }[];
2334
+ limit: number;
2335
+ offset: number;
2336
+ table: string;
2337
+ columns?: string[] | undefined;
2338
+ orderBy?: {
2339
+ ascending: boolean;
2340
+ column: string;
2341
+ } | undefined;
2342
+ };
2343
+ output: NoInfer<{
2344
+ columns: string[];
2345
+ limit: number;
2346
+ offset: number;
2347
+ rows: unknown[];
2348
+ success: boolean;
2349
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2350
+ }>;
2351
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2352
+ } & {
2353
+ outputSchema?: import('ai').FlexibleSchema<{
2354
+ columns: string[];
2355
+ limit: number;
2356
+ offset: number;
2357
+ rows: unknown[];
2358
+ success: boolean;
2359
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2360
+ }> | undefined;
2361
+ execute: import('ai').ToolExecuteFunction<{
2362
+ filters: {
2363
+ column: string;
2364
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2365
+ value: unknown;
2366
+ }[];
2367
+ limit: number;
2368
+ offset: number;
2369
+ table: string;
2370
+ columns?: string[] | undefined;
2371
+ orderBy?: {
2372
+ ascending: boolean;
2373
+ column: string;
2374
+ } | undefined;
2375
+ }, {
2376
+ columns: string[];
2377
+ limit: number;
2378
+ offset: number;
2379
+ rows: unknown[];
2380
+ success: boolean;
2381
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2382
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2383
+ } & {
2384
+ description?: string | ((options: {
2385
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
2386
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
2387
+ }) => string) | undefined;
2388
+ strict?: boolean;
2389
+ inputExamples?: {
2390
+ input: NoInfer<{
2391
+ filters: {
2392
+ column: string;
2393
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2394
+ value: unknown;
2395
+ }[];
2396
+ limit: number;
2397
+ offset: number;
2398
+ table: string;
2399
+ columns?: string[] | undefined;
2400
+ orderBy?: {
2401
+ ascending: boolean;
2402
+ column: string;
2403
+ } | undefined;
2404
+ }>;
2405
+ }[] | undefined;
2406
+ id?: never;
2407
+ isProviderExecuted?: never;
2408
+ args?: never;
2409
+ supportsDeferredResults?: never;
2410
+ } & {
2411
+ type?: undefined | "function";
2412
+ } & {
2413
+ execute: import('ai').ToolExecuteFunction<{
2414
+ filters: {
2415
+ column: string;
2416
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2417
+ value: unknown;
2418
+ }[];
2419
+ limit: number;
2420
+ offset: number;
2421
+ table: string;
2422
+ columns?: string[] | undefined;
2423
+ orderBy?: {
2424
+ ascending: boolean;
2425
+ column: string;
2426
+ } | undefined;
2427
+ }, {
2428
+ columns: string[];
2429
+ limit: number;
2430
+ offset: number;
2431
+ rows: unknown[];
2432
+ success: boolean;
2433
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2434
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2435
+ }) | ({
2436
+ deferLoading?: boolean;
2437
+ title?: string;
2438
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2439
+ metadata?: import('@ai-sdk/provider').JSONObject;
2440
+ inputSchema: import('ai').FlexibleSchema<{
2441
+ filters: {
2442
+ column: string;
2443
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2444
+ value: unknown;
2445
+ }[];
2446
+ limit: number;
2447
+ offset: number;
2448
+ table: string;
2449
+ columns?: string[] | undefined;
2450
+ orderBy?: {
2451
+ ascending: boolean;
2452
+ column: string;
2453
+ } | undefined;
2454
+ }>;
2455
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2456
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
2457
+ filters: {
2458
+ column: string;
2459
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2460
+ value: unknown;
2461
+ }[];
2462
+ limit: number;
2463
+ offset: number;
2464
+ table: string;
2465
+ columns?: string[] | undefined;
2466
+ orderBy?: {
2467
+ ascending: boolean;
2468
+ column: string;
2469
+ } | undefined;
2470
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2471
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2472
+ onInputDelta?: ((options: {
2473
+ inputTextDelta: string;
2474
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2475
+ onInputAvailable?: ((options: {
2476
+ input: {
2477
+ filters: {
2478
+ column: string;
2479
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2480
+ value: unknown;
2481
+ }[];
2482
+ limit: number;
2483
+ offset: number;
2484
+ table: string;
2485
+ columns?: string[] | undefined;
2486
+ orderBy?: {
2487
+ ascending: boolean;
2488
+ column: string;
2489
+ } | undefined;
2490
+ };
2491
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2492
+ toModelOutput?: ((options: {
2493
+ toolCallId: string;
2494
+ input: {
2495
+ filters: {
2496
+ column: string;
2497
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2498
+ value: unknown;
2499
+ }[];
2500
+ limit: number;
2501
+ offset: number;
2502
+ table: string;
2503
+ columns?: string[] | undefined;
2504
+ orderBy?: {
2505
+ ascending: boolean;
2506
+ column: string;
2507
+ } | undefined;
2508
+ };
2509
+ output: NoInfer<{
2510
+ columns: string[];
2511
+ limit: number;
2512
+ offset: number;
2513
+ rows: unknown[];
2514
+ success: boolean;
2515
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2516
+ }>;
2517
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2518
+ } & {
2519
+ outputSchema?: import('ai').FlexibleSchema<{
2520
+ columns: string[];
2521
+ limit: number;
2522
+ offset: number;
2523
+ rows: unknown[];
2524
+ success: boolean;
2525
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2526
+ }> | undefined;
2527
+ execute: import('ai').ToolExecuteFunction<{
2528
+ filters: {
2529
+ column: string;
2530
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2531
+ value: unknown;
2532
+ }[];
2533
+ limit: number;
2534
+ offset: number;
2535
+ table: string;
2536
+ columns?: string[] | undefined;
2537
+ orderBy?: {
2538
+ ascending: boolean;
2539
+ column: string;
2540
+ } | undefined;
2541
+ }, {
2542
+ columns: string[];
2543
+ limit: number;
2544
+ offset: number;
2545
+ rows: unknown[];
2546
+ success: boolean;
2547
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2548
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2549
+ } & {
2550
+ description?: string | ((options: {
2551
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
2552
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
2553
+ }) => string) | undefined;
2554
+ strict?: boolean;
2555
+ inputExamples?: {
2556
+ input: NoInfer<{
2557
+ filters: {
2558
+ column: string;
2559
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2560
+ value: unknown;
2561
+ }[];
2562
+ limit: number;
2563
+ offset: number;
2564
+ table: string;
2565
+ columns?: string[] | undefined;
2566
+ orderBy?: {
2567
+ ascending: boolean;
2568
+ column: string;
2569
+ } | undefined;
2570
+ }>;
2571
+ }[] | undefined;
2572
+ id?: never;
2573
+ isProviderExecuted?: never;
2574
+ args?: never;
2575
+ supportsDeferredResults?: never;
2576
+ } & {
2577
+ type: "dynamic";
2578
+ } & {
2579
+ execute: import('ai').ToolExecuteFunction<{
2580
+ filters: {
2581
+ column: string;
2582
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2583
+ value: unknown;
2584
+ }[];
2585
+ limit: number;
2586
+ offset: number;
2587
+ table: string;
2588
+ columns?: string[] | undefined;
2589
+ orderBy?: {
2590
+ ascending: boolean;
2591
+ column: string;
2592
+ } | undefined;
2593
+ }, {
2594
+ columns: string[];
2595
+ limit: number;
2596
+ offset: number;
2597
+ rows: unknown[];
2598
+ success: boolean;
2599
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2600
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2601
+ }) | ({
2602
+ deferLoading?: boolean;
2603
+ title?: string;
2604
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2605
+ metadata?: import('@ai-sdk/provider').JSONObject;
2606
+ inputSchema: import('ai').FlexibleSchema<{
2607
+ filters: {
2608
+ column: string;
2609
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2610
+ value: unknown;
2611
+ }[];
2612
+ limit: number;
2613
+ offset: number;
2614
+ table: string;
2615
+ columns?: string[] | undefined;
2616
+ orderBy?: {
2617
+ ascending: boolean;
2618
+ column: string;
2619
+ } | undefined;
2620
+ }>;
2621
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2622
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
2623
+ filters: {
2624
+ column: string;
2625
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2626
+ value: unknown;
2627
+ }[];
2628
+ limit: number;
2629
+ offset: number;
2630
+ table: string;
2631
+ columns?: string[] | undefined;
2632
+ orderBy?: {
2633
+ ascending: boolean;
2634
+ column: string;
2635
+ } | undefined;
2636
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2637
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2638
+ onInputDelta?: ((options: {
2639
+ inputTextDelta: string;
2640
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2641
+ onInputAvailable?: ((options: {
2642
+ input: {
2643
+ filters: {
2644
+ column: string;
2645
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2646
+ value: unknown;
2647
+ }[];
2648
+ limit: number;
2649
+ offset: number;
2650
+ table: string;
2651
+ columns?: string[] | undefined;
2652
+ orderBy?: {
2653
+ ascending: boolean;
2654
+ column: string;
2655
+ } | undefined;
2656
+ };
2657
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2658
+ toModelOutput?: ((options: {
2659
+ toolCallId: string;
2660
+ input: {
2661
+ filters: {
2662
+ column: string;
2663
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2664
+ value: unknown;
2665
+ }[];
2666
+ limit: number;
2667
+ offset: number;
2668
+ table: string;
2669
+ columns?: string[] | undefined;
2670
+ orderBy?: {
2671
+ ascending: boolean;
2672
+ column: string;
2673
+ } | undefined;
2674
+ };
2675
+ output: NoInfer<{
2676
+ columns: string[];
2677
+ limit: number;
2678
+ offset: number;
2679
+ rows: unknown[];
2680
+ success: boolean;
2681
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2682
+ }>;
2683
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2684
+ } & {
2685
+ outputSchema?: import('ai').FlexibleSchema<{
2686
+ columns: string[];
2687
+ limit: number;
2688
+ offset: number;
2689
+ rows: unknown[];
2690
+ success: boolean;
2691
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2692
+ }> | undefined;
2693
+ execute: import('ai').ToolExecuteFunction<{
2694
+ filters: {
2695
+ column: string;
2696
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2697
+ value: unknown;
2698
+ }[];
2699
+ limit: number;
2700
+ offset: number;
2701
+ table: string;
2702
+ columns?: string[] | undefined;
2703
+ orderBy?: {
2704
+ ascending: boolean;
2705
+ column: string;
2706
+ } | undefined;
2707
+ }, {
2708
+ columns: string[];
2709
+ limit: number;
2710
+ offset: number;
2711
+ rows: unknown[];
2712
+ success: boolean;
2713
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2714
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2715
+ } & {
2716
+ type: "provider";
2717
+ id: `${string}.${string}`;
2718
+ args: Record<string, unknown>;
2719
+ description?: never;
2720
+ strict?: never;
2721
+ inputExamples?: never;
2722
+ } & {
2723
+ isProviderExecuted: false;
2724
+ supportsDeferredResults?: never;
2725
+ } & {
2726
+ execute: import('ai').ToolExecuteFunction<{
2727
+ filters: {
2728
+ column: string;
2729
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2730
+ value: unknown;
2731
+ }[];
2732
+ limit: number;
2733
+ offset: number;
2734
+ table: string;
2735
+ columns?: string[] | undefined;
2736
+ orderBy?: {
2737
+ ascending: boolean;
2738
+ column: string;
2739
+ } | undefined;
2740
+ }, {
2741
+ columns: string[];
2742
+ limit: number;
2743
+ offset: number;
2744
+ rows: unknown[];
2745
+ success: boolean;
2746
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2747
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2748
+ }) | ({
2749
+ deferLoading?: boolean;
2750
+ title?: string;
2751
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2752
+ metadata?: import('@ai-sdk/provider').JSONObject;
2753
+ inputSchema: import('ai').FlexibleSchema<{
2754
+ filters: {
2755
+ column: string;
2756
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2757
+ value: unknown;
2758
+ }[];
2759
+ limit: number;
2760
+ offset: number;
2761
+ table: string;
2762
+ columns?: string[] | undefined;
2763
+ orderBy?: {
2764
+ ascending: boolean;
2765
+ column: string;
2766
+ } | undefined;
2767
+ }>;
2768
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2769
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
2770
+ filters: {
2771
+ column: string;
2772
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2773
+ value: unknown;
2774
+ }[];
2775
+ limit: number;
2776
+ offset: number;
2777
+ table: string;
2778
+ columns?: string[] | undefined;
2779
+ orderBy?: {
2780
+ ascending: boolean;
2781
+ column: string;
2782
+ } | undefined;
2783
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2784
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2785
+ onInputDelta?: ((options: {
2786
+ inputTextDelta: string;
2787
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2788
+ onInputAvailable?: ((options: {
2789
+ input: {
2790
+ filters: {
2791
+ column: string;
2792
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2793
+ value: unknown;
2794
+ }[];
2795
+ limit: number;
2796
+ offset: number;
2797
+ table: string;
2798
+ columns?: string[] | undefined;
2799
+ orderBy?: {
2800
+ ascending: boolean;
2801
+ column: string;
2802
+ } | undefined;
2803
+ };
2804
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2805
+ toModelOutput?: ((options: {
2806
+ toolCallId: string;
2807
+ input: {
2808
+ filters: {
2809
+ column: string;
2810
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2811
+ value: unknown;
2812
+ }[];
2813
+ limit: number;
2814
+ offset: number;
2815
+ table: string;
2816
+ columns?: string[] | undefined;
2817
+ orderBy?: {
2818
+ ascending: boolean;
2819
+ column: string;
2820
+ } | undefined;
2821
+ };
2822
+ output: NoInfer<{
2823
+ columns: string[];
2824
+ limit: number;
2825
+ offset: number;
2826
+ rows: unknown[];
2827
+ success: boolean;
2828
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2829
+ }>;
2830
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2831
+ } & {
2832
+ outputSchema?: import('ai').FlexibleSchema<{
2833
+ columns: string[];
2834
+ limit: number;
2835
+ offset: number;
2836
+ rows: unknown[];
2837
+ success: boolean;
2838
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2839
+ }> | undefined;
2840
+ execute: import('ai').ToolExecuteFunction<{
2841
+ filters: {
2842
+ column: string;
2843
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2844
+ value: unknown;
2845
+ }[];
2846
+ limit: number;
2847
+ offset: number;
2848
+ table: string;
2849
+ columns?: string[] | undefined;
2850
+ orderBy?: {
2851
+ ascending: boolean;
2852
+ column: string;
2853
+ } | undefined;
2854
+ }, {
2855
+ columns: string[];
2856
+ limit: number;
2857
+ offset: number;
2858
+ rows: unknown[];
2859
+ success: boolean;
2860
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2861
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2862
+ } & {
2863
+ type: "provider";
2864
+ id: `${string}.${string}`;
2865
+ args: Record<string, unknown>;
2866
+ description?: never;
2867
+ strict?: never;
2868
+ inputExamples?: never;
2869
+ } & {
2870
+ isProviderExecuted: true;
2871
+ supportsDeferredResults?: boolean;
2872
+ } & {
2873
+ execute: import('ai').ToolExecuteFunction<{
2874
+ filters: {
2875
+ column: string;
2876
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
2877
+ value: unknown;
2878
+ }[];
2879
+ limit: number;
2880
+ offset: number;
2881
+ table: string;
2882
+ columns?: string[] | undefined;
2883
+ orderBy?: {
2884
+ ascending: boolean;
2885
+ column: string;
2886
+ } | undefined;
2887
+ }, {
2888
+ columns: string[];
2889
+ limit: number;
2890
+ offset: number;
2891
+ rows: unknown[];
2892
+ success: boolean;
2893
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
2894
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2895
+ });
286
2896
  };
287
2897
  export {};