@nextblock-cms/cortex 0.20.1 → 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
@@ -103,73 +103,1948 @@ export declare function executeListProductCategories(_input: unknown, context?:
103
103
  success: boolean;
104
104
  }>;
105
105
  export declare function createCortexContentOpsTools(context?: ContentOpsToolContext): {
106
- list_media: import('ai').Tool<{
107
- limit: number;
108
- query?: string | undefined;
109
- }, {
110
- count: any;
111
- media: any;
112
- success: boolean;
113
- }>;
114
- list_product_categories: import('ai').Tool<Record<string, never>, {
115
- categories: any;
116
- count: any;
117
- success: boolean;
118
- }>;
119
- manage_language: import('ai').Tool<{
120
- code: string;
121
- is_active: boolean;
122
- is_default: boolean;
123
- name: string;
124
- }, {
125
- code: string;
126
- created: boolean;
127
- languageId: number;
128
- mutationExecuted: boolean;
129
- success: boolean;
130
- }>;
131
- manage_product_category: import('ai').Tool<{
132
- action: "delete" | "upsert";
133
- name: string;
134
- description?: string | null | undefined;
135
- name_translations?: Record<string, string> | undefined;
136
- productSlugs?: string[] | undefined;
137
- slug?: string | undefined;
138
- }, {
139
- message: string;
140
- mutationExecuted: boolean;
141
- success: boolean;
142
- action?: undefined;
143
- slug?: undefined;
144
- categoryId?: undefined;
145
- created?: undefined;
146
- linkedProducts?: undefined;
147
- } | {
148
- action: string;
149
- mutationExecuted: boolean;
150
- slug: string;
151
- success: boolean;
152
- message?: undefined;
153
- categoryId?: undefined;
154
- created?: undefined;
155
- linkedProducts?: undefined;
156
- } | {
157
- categoryId: string;
158
- created: boolean;
159
- linkedProducts: number;
160
- mutationExecuted: boolean;
161
- slug: string;
162
- success: boolean;
163
- message?: undefined;
164
- action?: undefined;
165
- }>;
166
- upload_media: import('ai').Tool<{
167
- url: string;
168
- altText?: string | undefined;
169
- }, {
170
- mediaId: string;
171
- mutationExecuted: boolean;
172
- success: boolean;
173
- }>;
106
+ list_media: ({
107
+ deferLoading?: boolean;
108
+ title?: string;
109
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
110
+ metadata?: import('@ai-sdk/provider').JSONObject;
111
+ inputSchema: import('ai').FlexibleSchema<{
112
+ limit: number;
113
+ query?: string | undefined;
114
+ }>;
115
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
116
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
117
+ limit: number;
118
+ query?: string | undefined;
119
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
120
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
121
+ onInputDelta?: ((options: {
122
+ inputTextDelta: string;
123
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
124
+ onInputAvailable?: ((options: {
125
+ input: {
126
+ limit: number;
127
+ query?: string | undefined;
128
+ };
129
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
130
+ toModelOutput?: ((options: {
131
+ toolCallId: string;
132
+ input: {
133
+ limit: number;
134
+ query?: string | undefined;
135
+ };
136
+ output: NoInfer<{
137
+ count: any;
138
+ media: any;
139
+ success: boolean;
140
+ }>;
141
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
142
+ } & {
143
+ outputSchema?: import('ai').FlexibleSchema<{
144
+ count: any;
145
+ media: any;
146
+ success: boolean;
147
+ }> | undefined;
148
+ execute: import('ai').ToolExecuteFunction<{
149
+ limit: number;
150
+ query?: string | undefined;
151
+ }, {
152
+ count: any;
153
+ media: any;
154
+ success: boolean;
155
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
156
+ } & {
157
+ description?: string | ((options: {
158
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
159
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
160
+ }) => string) | undefined;
161
+ strict?: boolean;
162
+ inputExamples?: {
163
+ input: NoInfer<{
164
+ limit: number;
165
+ query?: string | undefined;
166
+ }>;
167
+ }[] | undefined;
168
+ id?: never;
169
+ isProviderExecuted?: never;
170
+ args?: never;
171
+ supportsDeferredResults?: never;
172
+ } & {
173
+ type?: undefined | "function";
174
+ } & {
175
+ execute: import('ai').ToolExecuteFunction<{
176
+ limit: number;
177
+ query?: string | undefined;
178
+ }, {
179
+ count: any;
180
+ media: any;
181
+ success: boolean;
182
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
183
+ }) | ({
184
+ deferLoading?: boolean;
185
+ title?: string;
186
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
187
+ metadata?: import('@ai-sdk/provider').JSONObject;
188
+ inputSchema: import('ai').FlexibleSchema<{
189
+ limit: number;
190
+ query?: string | undefined;
191
+ }>;
192
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
193
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
194
+ limit: number;
195
+ query?: string | undefined;
196
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
197
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
198
+ onInputDelta?: ((options: {
199
+ inputTextDelta: string;
200
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
201
+ onInputAvailable?: ((options: {
202
+ input: {
203
+ limit: number;
204
+ query?: string | undefined;
205
+ };
206
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
207
+ toModelOutput?: ((options: {
208
+ toolCallId: string;
209
+ input: {
210
+ limit: number;
211
+ query?: string | undefined;
212
+ };
213
+ output: NoInfer<{
214
+ count: any;
215
+ media: any;
216
+ success: boolean;
217
+ }>;
218
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
219
+ } & {
220
+ outputSchema?: import('ai').FlexibleSchema<{
221
+ count: any;
222
+ media: any;
223
+ success: boolean;
224
+ }> | undefined;
225
+ execute: import('ai').ToolExecuteFunction<{
226
+ limit: number;
227
+ query?: string | undefined;
228
+ }, {
229
+ count: any;
230
+ media: any;
231
+ success: boolean;
232
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
233
+ } & {
234
+ description?: string | ((options: {
235
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
236
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
237
+ }) => string) | undefined;
238
+ strict?: boolean;
239
+ inputExamples?: {
240
+ input: NoInfer<{
241
+ limit: number;
242
+ query?: string | undefined;
243
+ }>;
244
+ }[] | undefined;
245
+ id?: never;
246
+ isProviderExecuted?: never;
247
+ args?: never;
248
+ supportsDeferredResults?: never;
249
+ } & {
250
+ type: "dynamic";
251
+ } & {
252
+ execute: import('ai').ToolExecuteFunction<{
253
+ limit: number;
254
+ query?: string | undefined;
255
+ }, {
256
+ count: any;
257
+ media: any;
258
+ success: boolean;
259
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
260
+ }) | ({
261
+ deferLoading?: boolean;
262
+ title?: string;
263
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
264
+ metadata?: import('@ai-sdk/provider').JSONObject;
265
+ inputSchema: import('ai').FlexibleSchema<{
266
+ limit: number;
267
+ query?: string | undefined;
268
+ }>;
269
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
270
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
271
+ limit: number;
272
+ query?: string | undefined;
273
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
274
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
275
+ onInputDelta?: ((options: {
276
+ inputTextDelta: string;
277
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
278
+ onInputAvailable?: ((options: {
279
+ input: {
280
+ limit: number;
281
+ query?: string | undefined;
282
+ };
283
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
284
+ toModelOutput?: ((options: {
285
+ toolCallId: string;
286
+ input: {
287
+ limit: number;
288
+ query?: string | undefined;
289
+ };
290
+ output: NoInfer<{
291
+ count: any;
292
+ media: any;
293
+ success: boolean;
294
+ }>;
295
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
296
+ } & {
297
+ outputSchema?: import('ai').FlexibleSchema<{
298
+ count: any;
299
+ media: any;
300
+ success: boolean;
301
+ }> | undefined;
302
+ execute: import('ai').ToolExecuteFunction<{
303
+ limit: number;
304
+ query?: string | undefined;
305
+ }, {
306
+ count: any;
307
+ media: any;
308
+ success: boolean;
309
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
310
+ } & {
311
+ type: "provider";
312
+ id: `${string}.${string}`;
313
+ args: Record<string, unknown>;
314
+ description?: never;
315
+ strict?: never;
316
+ inputExamples?: never;
317
+ } & {
318
+ isProviderExecuted: false;
319
+ supportsDeferredResults?: never;
320
+ } & {
321
+ execute: import('ai').ToolExecuteFunction<{
322
+ limit: number;
323
+ query?: string | undefined;
324
+ }, {
325
+ count: any;
326
+ media: any;
327
+ success: boolean;
328
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
329
+ }) | ({
330
+ deferLoading?: boolean;
331
+ title?: string;
332
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
333
+ metadata?: import('@ai-sdk/provider').JSONObject;
334
+ inputSchema: import('ai').FlexibleSchema<{
335
+ limit: number;
336
+ query?: string | undefined;
337
+ }>;
338
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
339
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
340
+ limit: number;
341
+ query?: string | undefined;
342
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
343
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
344
+ onInputDelta?: ((options: {
345
+ inputTextDelta: string;
346
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
347
+ onInputAvailable?: ((options: {
348
+ input: {
349
+ limit: number;
350
+ query?: string | undefined;
351
+ };
352
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
353
+ toModelOutput?: ((options: {
354
+ toolCallId: string;
355
+ input: {
356
+ limit: number;
357
+ query?: string | undefined;
358
+ };
359
+ output: NoInfer<{
360
+ count: any;
361
+ media: any;
362
+ success: boolean;
363
+ }>;
364
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
365
+ } & {
366
+ outputSchema?: import('ai').FlexibleSchema<{
367
+ count: any;
368
+ media: any;
369
+ success: boolean;
370
+ }> | undefined;
371
+ execute: import('ai').ToolExecuteFunction<{
372
+ limit: number;
373
+ query?: string | undefined;
374
+ }, {
375
+ count: any;
376
+ media: any;
377
+ success: boolean;
378
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
379
+ } & {
380
+ type: "provider";
381
+ id: `${string}.${string}`;
382
+ args: Record<string, unknown>;
383
+ description?: never;
384
+ strict?: never;
385
+ inputExamples?: never;
386
+ } & {
387
+ isProviderExecuted: true;
388
+ supportsDeferredResults?: boolean;
389
+ } & {
390
+ execute: import('ai').ToolExecuteFunction<{
391
+ limit: number;
392
+ query?: string | undefined;
393
+ }, {
394
+ count: any;
395
+ media: any;
396
+ success: boolean;
397
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
398
+ });
399
+ list_product_categories: ({
400
+ deferLoading?: boolean;
401
+ title?: string;
402
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
403
+ metadata?: import('@ai-sdk/provider').JSONObject;
404
+ inputSchema: import('ai').FlexibleSchema<Record<string, never>>;
405
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
406
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<Record<string, never>, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
407
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
408
+ onInputDelta?: ((options: {
409
+ inputTextDelta: string;
410
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
411
+ onInputAvailable?: ((options: {
412
+ input: Record<string, never>;
413
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
414
+ toModelOutput?: ((options: {
415
+ toolCallId: string;
416
+ input: Record<string, never>;
417
+ output: NoInfer<{
418
+ categories: any;
419
+ count: any;
420
+ success: boolean;
421
+ }>;
422
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
423
+ } & {
424
+ outputSchema?: import('ai').FlexibleSchema<{
425
+ categories: any;
426
+ count: any;
427
+ success: boolean;
428
+ }> | undefined;
429
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
430
+ categories: any;
431
+ count: any;
432
+ success: boolean;
433
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
434
+ } & {
435
+ description?: string | ((options: {
436
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
437
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
438
+ }) => string) | undefined;
439
+ strict?: boolean;
440
+ inputExamples?: {
441
+ input: NoInfer<Record<string, never>>;
442
+ }[] | undefined;
443
+ id?: never;
444
+ isProviderExecuted?: never;
445
+ args?: never;
446
+ supportsDeferredResults?: never;
447
+ } & {
448
+ type?: undefined | "function";
449
+ } & {
450
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
451
+ categories: any;
452
+ count: any;
453
+ success: boolean;
454
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
455
+ }) | ({
456
+ deferLoading?: boolean;
457
+ title?: string;
458
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
459
+ metadata?: import('@ai-sdk/provider').JSONObject;
460
+ inputSchema: import('ai').FlexibleSchema<Record<string, never>>;
461
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
462
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<Record<string, never>, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
463
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
464
+ onInputDelta?: ((options: {
465
+ inputTextDelta: string;
466
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
467
+ onInputAvailable?: ((options: {
468
+ input: Record<string, never>;
469
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
470
+ toModelOutput?: ((options: {
471
+ toolCallId: string;
472
+ input: Record<string, never>;
473
+ output: NoInfer<{
474
+ categories: any;
475
+ count: any;
476
+ success: boolean;
477
+ }>;
478
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
479
+ } & {
480
+ outputSchema?: import('ai').FlexibleSchema<{
481
+ categories: any;
482
+ count: any;
483
+ success: boolean;
484
+ }> | undefined;
485
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
486
+ categories: any;
487
+ count: any;
488
+ success: boolean;
489
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
490
+ } & {
491
+ description?: string | ((options: {
492
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
493
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
494
+ }) => string) | undefined;
495
+ strict?: boolean;
496
+ inputExamples?: {
497
+ input: NoInfer<Record<string, never>>;
498
+ }[] | undefined;
499
+ id?: never;
500
+ isProviderExecuted?: never;
501
+ args?: never;
502
+ supportsDeferredResults?: never;
503
+ } & {
504
+ type: "dynamic";
505
+ } & {
506
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
507
+ categories: any;
508
+ count: any;
509
+ success: boolean;
510
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
511
+ }) | ({
512
+ deferLoading?: boolean;
513
+ title?: string;
514
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
515
+ metadata?: import('@ai-sdk/provider').JSONObject;
516
+ inputSchema: import('ai').FlexibleSchema<Record<string, never>>;
517
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
518
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<Record<string, never>, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
519
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
520
+ onInputDelta?: ((options: {
521
+ inputTextDelta: string;
522
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
523
+ onInputAvailable?: ((options: {
524
+ input: Record<string, never>;
525
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
526
+ toModelOutput?: ((options: {
527
+ toolCallId: string;
528
+ input: Record<string, never>;
529
+ output: NoInfer<{
530
+ categories: any;
531
+ count: any;
532
+ success: boolean;
533
+ }>;
534
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
535
+ } & {
536
+ outputSchema?: import('ai').FlexibleSchema<{
537
+ categories: any;
538
+ count: any;
539
+ success: boolean;
540
+ }> | undefined;
541
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
542
+ categories: any;
543
+ count: any;
544
+ success: boolean;
545
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
546
+ } & {
547
+ type: "provider";
548
+ id: `${string}.${string}`;
549
+ args: Record<string, unknown>;
550
+ description?: never;
551
+ strict?: never;
552
+ inputExamples?: never;
553
+ } & {
554
+ isProviderExecuted: false;
555
+ supportsDeferredResults?: never;
556
+ } & {
557
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
558
+ categories: any;
559
+ count: any;
560
+ success: boolean;
561
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
562
+ }) | ({
563
+ deferLoading?: boolean;
564
+ title?: string;
565
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
566
+ metadata?: import('@ai-sdk/provider').JSONObject;
567
+ inputSchema: import('ai').FlexibleSchema<Record<string, never>>;
568
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
569
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<Record<string, never>, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
570
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
571
+ onInputDelta?: ((options: {
572
+ inputTextDelta: string;
573
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
574
+ onInputAvailable?: ((options: {
575
+ input: Record<string, never>;
576
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
577
+ toModelOutput?: ((options: {
578
+ toolCallId: string;
579
+ input: Record<string, never>;
580
+ output: NoInfer<{
581
+ categories: any;
582
+ count: any;
583
+ success: boolean;
584
+ }>;
585
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
586
+ } & {
587
+ outputSchema?: import('ai').FlexibleSchema<{
588
+ categories: any;
589
+ count: any;
590
+ success: boolean;
591
+ }> | undefined;
592
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
593
+ categories: any;
594
+ count: any;
595
+ success: boolean;
596
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
597
+ } & {
598
+ type: "provider";
599
+ id: `${string}.${string}`;
600
+ args: Record<string, unknown>;
601
+ description?: never;
602
+ strict?: never;
603
+ inputExamples?: never;
604
+ } & {
605
+ isProviderExecuted: true;
606
+ supportsDeferredResults?: boolean;
607
+ } & {
608
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
609
+ categories: any;
610
+ count: any;
611
+ success: boolean;
612
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
613
+ });
614
+ manage_language: ({
615
+ deferLoading?: boolean;
616
+ title?: string;
617
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
618
+ metadata?: import('@ai-sdk/provider').JSONObject;
619
+ inputSchema: import('ai').FlexibleSchema<{
620
+ code: string;
621
+ is_active: boolean;
622
+ is_default: boolean;
623
+ name: string;
624
+ }>;
625
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
626
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
627
+ code: string;
628
+ is_active: boolean;
629
+ is_default: boolean;
630
+ name: string;
631
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
632
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
633
+ onInputDelta?: ((options: {
634
+ inputTextDelta: string;
635
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
636
+ onInputAvailable?: ((options: {
637
+ input: {
638
+ code: string;
639
+ is_active: boolean;
640
+ is_default: boolean;
641
+ name: string;
642
+ };
643
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
644
+ toModelOutput?: ((options: {
645
+ toolCallId: string;
646
+ input: {
647
+ code: string;
648
+ is_active: boolean;
649
+ is_default: boolean;
650
+ name: string;
651
+ };
652
+ output: NoInfer<{
653
+ code: string;
654
+ created: boolean;
655
+ languageId: number;
656
+ mutationExecuted: boolean;
657
+ success: boolean;
658
+ }>;
659
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
660
+ } & {
661
+ outputSchema?: import('ai').FlexibleSchema<{
662
+ code: string;
663
+ created: boolean;
664
+ languageId: number;
665
+ mutationExecuted: boolean;
666
+ success: boolean;
667
+ }> | undefined;
668
+ execute: import('ai').ToolExecuteFunction<{
669
+ code: string;
670
+ is_active: boolean;
671
+ is_default: boolean;
672
+ name: string;
673
+ }, {
674
+ code: string;
675
+ created: boolean;
676
+ languageId: number;
677
+ mutationExecuted: boolean;
678
+ success: boolean;
679
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
680
+ } & {
681
+ description?: string | ((options: {
682
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
683
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
684
+ }) => string) | undefined;
685
+ strict?: boolean;
686
+ inputExamples?: {
687
+ input: NoInfer<{
688
+ code: string;
689
+ is_active: boolean;
690
+ is_default: boolean;
691
+ name: string;
692
+ }>;
693
+ }[] | undefined;
694
+ id?: never;
695
+ isProviderExecuted?: never;
696
+ args?: never;
697
+ supportsDeferredResults?: never;
698
+ } & {
699
+ type?: undefined | "function";
700
+ } & {
701
+ execute: import('ai').ToolExecuteFunction<{
702
+ code: string;
703
+ is_active: boolean;
704
+ is_default: boolean;
705
+ name: string;
706
+ }, {
707
+ code: string;
708
+ created: boolean;
709
+ languageId: number;
710
+ mutationExecuted: boolean;
711
+ success: boolean;
712
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
713
+ }) | ({
714
+ deferLoading?: boolean;
715
+ title?: string;
716
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
717
+ metadata?: import('@ai-sdk/provider').JSONObject;
718
+ inputSchema: import('ai').FlexibleSchema<{
719
+ code: string;
720
+ is_active: boolean;
721
+ is_default: boolean;
722
+ name: string;
723
+ }>;
724
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
725
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
726
+ code: string;
727
+ is_active: boolean;
728
+ is_default: boolean;
729
+ name: string;
730
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
731
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
732
+ onInputDelta?: ((options: {
733
+ inputTextDelta: string;
734
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
735
+ onInputAvailable?: ((options: {
736
+ input: {
737
+ code: string;
738
+ is_active: boolean;
739
+ is_default: boolean;
740
+ name: string;
741
+ };
742
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
743
+ toModelOutput?: ((options: {
744
+ toolCallId: string;
745
+ input: {
746
+ code: string;
747
+ is_active: boolean;
748
+ is_default: boolean;
749
+ name: string;
750
+ };
751
+ output: NoInfer<{
752
+ code: string;
753
+ created: boolean;
754
+ languageId: number;
755
+ mutationExecuted: boolean;
756
+ success: boolean;
757
+ }>;
758
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
759
+ } & {
760
+ outputSchema?: import('ai').FlexibleSchema<{
761
+ code: string;
762
+ created: boolean;
763
+ languageId: number;
764
+ mutationExecuted: boolean;
765
+ success: boolean;
766
+ }> | undefined;
767
+ execute: import('ai').ToolExecuteFunction<{
768
+ code: string;
769
+ is_active: boolean;
770
+ is_default: boolean;
771
+ name: string;
772
+ }, {
773
+ code: string;
774
+ created: boolean;
775
+ languageId: number;
776
+ mutationExecuted: boolean;
777
+ success: boolean;
778
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
779
+ } & {
780
+ description?: string | ((options: {
781
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
782
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
783
+ }) => string) | undefined;
784
+ strict?: boolean;
785
+ inputExamples?: {
786
+ input: NoInfer<{
787
+ code: string;
788
+ is_active: boolean;
789
+ is_default: boolean;
790
+ name: string;
791
+ }>;
792
+ }[] | undefined;
793
+ id?: never;
794
+ isProviderExecuted?: never;
795
+ args?: never;
796
+ supportsDeferredResults?: never;
797
+ } & {
798
+ type: "dynamic";
799
+ } & {
800
+ execute: import('ai').ToolExecuteFunction<{
801
+ code: string;
802
+ is_active: boolean;
803
+ is_default: boolean;
804
+ name: string;
805
+ }, {
806
+ code: string;
807
+ created: boolean;
808
+ languageId: number;
809
+ mutationExecuted: boolean;
810
+ success: boolean;
811
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
812
+ }) | ({
813
+ deferLoading?: boolean;
814
+ title?: string;
815
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
816
+ metadata?: import('@ai-sdk/provider').JSONObject;
817
+ inputSchema: import('ai').FlexibleSchema<{
818
+ code: string;
819
+ is_active: boolean;
820
+ is_default: boolean;
821
+ name: string;
822
+ }>;
823
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
824
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
825
+ code: string;
826
+ is_active: boolean;
827
+ is_default: boolean;
828
+ name: string;
829
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
830
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
831
+ onInputDelta?: ((options: {
832
+ inputTextDelta: string;
833
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
834
+ onInputAvailable?: ((options: {
835
+ input: {
836
+ code: string;
837
+ is_active: boolean;
838
+ is_default: boolean;
839
+ name: string;
840
+ };
841
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
842
+ toModelOutput?: ((options: {
843
+ toolCallId: string;
844
+ input: {
845
+ code: string;
846
+ is_active: boolean;
847
+ is_default: boolean;
848
+ name: string;
849
+ };
850
+ output: NoInfer<{
851
+ code: string;
852
+ created: boolean;
853
+ languageId: number;
854
+ mutationExecuted: boolean;
855
+ success: boolean;
856
+ }>;
857
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
858
+ } & {
859
+ outputSchema?: import('ai').FlexibleSchema<{
860
+ code: string;
861
+ created: boolean;
862
+ languageId: number;
863
+ mutationExecuted: boolean;
864
+ success: boolean;
865
+ }> | undefined;
866
+ execute: import('ai').ToolExecuteFunction<{
867
+ code: string;
868
+ is_active: boolean;
869
+ is_default: boolean;
870
+ name: string;
871
+ }, {
872
+ code: string;
873
+ created: boolean;
874
+ languageId: number;
875
+ mutationExecuted: boolean;
876
+ success: boolean;
877
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
878
+ } & {
879
+ type: "provider";
880
+ id: `${string}.${string}`;
881
+ args: Record<string, unknown>;
882
+ description?: never;
883
+ strict?: never;
884
+ inputExamples?: never;
885
+ } & {
886
+ isProviderExecuted: false;
887
+ supportsDeferredResults?: never;
888
+ } & {
889
+ execute: import('ai').ToolExecuteFunction<{
890
+ code: string;
891
+ is_active: boolean;
892
+ is_default: boolean;
893
+ name: string;
894
+ }, {
895
+ code: string;
896
+ created: boolean;
897
+ languageId: number;
898
+ mutationExecuted: boolean;
899
+ success: boolean;
900
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
901
+ }) | ({
902
+ deferLoading?: boolean;
903
+ title?: string;
904
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
905
+ metadata?: import('@ai-sdk/provider').JSONObject;
906
+ inputSchema: import('ai').FlexibleSchema<{
907
+ code: string;
908
+ is_active: boolean;
909
+ is_default: boolean;
910
+ name: string;
911
+ }>;
912
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
913
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
914
+ code: string;
915
+ is_active: boolean;
916
+ is_default: boolean;
917
+ name: string;
918
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
919
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
920
+ onInputDelta?: ((options: {
921
+ inputTextDelta: string;
922
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
923
+ onInputAvailable?: ((options: {
924
+ input: {
925
+ code: string;
926
+ is_active: boolean;
927
+ is_default: boolean;
928
+ name: string;
929
+ };
930
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
931
+ toModelOutput?: ((options: {
932
+ toolCallId: string;
933
+ input: {
934
+ code: string;
935
+ is_active: boolean;
936
+ is_default: boolean;
937
+ name: string;
938
+ };
939
+ output: NoInfer<{
940
+ code: string;
941
+ created: boolean;
942
+ languageId: number;
943
+ mutationExecuted: boolean;
944
+ success: boolean;
945
+ }>;
946
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
947
+ } & {
948
+ outputSchema?: import('ai').FlexibleSchema<{
949
+ code: string;
950
+ created: boolean;
951
+ languageId: number;
952
+ mutationExecuted: boolean;
953
+ success: boolean;
954
+ }> | undefined;
955
+ execute: import('ai').ToolExecuteFunction<{
956
+ code: string;
957
+ is_active: boolean;
958
+ is_default: boolean;
959
+ name: string;
960
+ }, {
961
+ code: string;
962
+ created: boolean;
963
+ languageId: number;
964
+ mutationExecuted: boolean;
965
+ success: boolean;
966
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
967
+ } & {
968
+ type: "provider";
969
+ id: `${string}.${string}`;
970
+ args: Record<string, unknown>;
971
+ description?: never;
972
+ strict?: never;
973
+ inputExamples?: never;
974
+ } & {
975
+ isProviderExecuted: true;
976
+ supportsDeferredResults?: boolean;
977
+ } & {
978
+ execute: import('ai').ToolExecuteFunction<{
979
+ code: string;
980
+ is_active: boolean;
981
+ is_default: boolean;
982
+ name: string;
983
+ }, {
984
+ code: string;
985
+ created: boolean;
986
+ languageId: number;
987
+ mutationExecuted: boolean;
988
+ success: boolean;
989
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
990
+ });
991
+ manage_product_category: ({
992
+ deferLoading?: boolean;
993
+ title?: string;
994
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
995
+ metadata?: import('@ai-sdk/provider').JSONObject;
996
+ inputSchema: import('ai').FlexibleSchema<{
997
+ action: "delete" | "upsert";
998
+ name: string;
999
+ description?: string | null | undefined;
1000
+ name_translations?: Record<string, string> | undefined;
1001
+ productSlugs?: string[] | undefined;
1002
+ slug?: string | undefined;
1003
+ }>;
1004
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1005
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1006
+ action: "delete" | "upsert";
1007
+ name: string;
1008
+ description?: string | null | undefined;
1009
+ name_translations?: Record<string, string> | undefined;
1010
+ productSlugs?: string[] | undefined;
1011
+ slug?: string | undefined;
1012
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1013
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1014
+ onInputDelta?: ((options: {
1015
+ inputTextDelta: string;
1016
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1017
+ onInputAvailable?: ((options: {
1018
+ input: {
1019
+ action: "delete" | "upsert";
1020
+ name: string;
1021
+ description?: string | null | undefined;
1022
+ name_translations?: Record<string, string> | undefined;
1023
+ productSlugs?: string[] | undefined;
1024
+ slug?: string | undefined;
1025
+ };
1026
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1027
+ toModelOutput?: ((options: {
1028
+ toolCallId: string;
1029
+ input: {
1030
+ action: "delete" | "upsert";
1031
+ name: string;
1032
+ description?: string | null | undefined;
1033
+ name_translations?: Record<string, string> | undefined;
1034
+ productSlugs?: string[] | undefined;
1035
+ slug?: string | undefined;
1036
+ };
1037
+ output: NoInfer<{
1038
+ message: string;
1039
+ mutationExecuted: boolean;
1040
+ success: boolean;
1041
+ action?: undefined;
1042
+ slug?: undefined;
1043
+ categoryId?: undefined;
1044
+ created?: undefined;
1045
+ linkedProducts?: undefined;
1046
+ } | {
1047
+ action: string;
1048
+ mutationExecuted: boolean;
1049
+ slug: string;
1050
+ success: boolean;
1051
+ message?: undefined;
1052
+ categoryId?: undefined;
1053
+ created?: undefined;
1054
+ linkedProducts?: undefined;
1055
+ } | {
1056
+ categoryId: string;
1057
+ created: boolean;
1058
+ linkedProducts: number;
1059
+ mutationExecuted: boolean;
1060
+ slug: string;
1061
+ success: boolean;
1062
+ message?: undefined;
1063
+ action?: undefined;
1064
+ }>;
1065
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1066
+ } & {
1067
+ outputSchema?: import('ai').FlexibleSchema<{
1068
+ message: string;
1069
+ mutationExecuted: boolean;
1070
+ success: boolean;
1071
+ action?: undefined;
1072
+ slug?: undefined;
1073
+ categoryId?: undefined;
1074
+ created?: undefined;
1075
+ linkedProducts?: undefined;
1076
+ } | {
1077
+ action: string;
1078
+ mutationExecuted: boolean;
1079
+ slug: string;
1080
+ success: boolean;
1081
+ message?: undefined;
1082
+ categoryId?: undefined;
1083
+ created?: undefined;
1084
+ linkedProducts?: undefined;
1085
+ } | {
1086
+ categoryId: string;
1087
+ created: boolean;
1088
+ linkedProducts: number;
1089
+ mutationExecuted: boolean;
1090
+ slug: string;
1091
+ success: boolean;
1092
+ message?: undefined;
1093
+ action?: undefined;
1094
+ }> | undefined;
1095
+ execute: import('ai').ToolExecuteFunction<{
1096
+ action: "delete" | "upsert";
1097
+ name: string;
1098
+ description?: string | null | undefined;
1099
+ name_translations?: Record<string, string> | undefined;
1100
+ productSlugs?: string[] | undefined;
1101
+ slug?: string | undefined;
1102
+ }, {
1103
+ message: string;
1104
+ mutationExecuted: boolean;
1105
+ success: boolean;
1106
+ action?: undefined;
1107
+ slug?: undefined;
1108
+ categoryId?: undefined;
1109
+ created?: undefined;
1110
+ linkedProducts?: undefined;
1111
+ } | {
1112
+ action: string;
1113
+ mutationExecuted: boolean;
1114
+ slug: string;
1115
+ success: boolean;
1116
+ message?: undefined;
1117
+ categoryId?: undefined;
1118
+ created?: undefined;
1119
+ linkedProducts?: undefined;
1120
+ } | {
1121
+ categoryId: string;
1122
+ created: boolean;
1123
+ linkedProducts: number;
1124
+ mutationExecuted: boolean;
1125
+ slug: string;
1126
+ success: boolean;
1127
+ message?: undefined;
1128
+ action?: undefined;
1129
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1130
+ } & {
1131
+ description?: string | ((options: {
1132
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
1133
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
1134
+ }) => string) | undefined;
1135
+ strict?: boolean;
1136
+ inputExamples?: {
1137
+ input: NoInfer<{
1138
+ action: "delete" | "upsert";
1139
+ name: string;
1140
+ description?: string | null | undefined;
1141
+ name_translations?: Record<string, string> | undefined;
1142
+ productSlugs?: string[] | undefined;
1143
+ slug?: string | undefined;
1144
+ }>;
1145
+ }[] | undefined;
1146
+ id?: never;
1147
+ isProviderExecuted?: never;
1148
+ args?: never;
1149
+ supportsDeferredResults?: never;
1150
+ } & {
1151
+ type?: undefined | "function";
1152
+ } & {
1153
+ execute: import('ai').ToolExecuteFunction<{
1154
+ action: "delete" | "upsert";
1155
+ name: string;
1156
+ description?: string | null | undefined;
1157
+ name_translations?: Record<string, string> | undefined;
1158
+ productSlugs?: string[] | undefined;
1159
+ slug?: string | undefined;
1160
+ }, {
1161
+ message: string;
1162
+ mutationExecuted: boolean;
1163
+ success: boolean;
1164
+ action?: undefined;
1165
+ slug?: undefined;
1166
+ categoryId?: undefined;
1167
+ created?: undefined;
1168
+ linkedProducts?: undefined;
1169
+ } | {
1170
+ action: string;
1171
+ mutationExecuted: boolean;
1172
+ slug: string;
1173
+ success: boolean;
1174
+ message?: undefined;
1175
+ categoryId?: undefined;
1176
+ created?: undefined;
1177
+ linkedProducts?: undefined;
1178
+ } | {
1179
+ categoryId: string;
1180
+ created: boolean;
1181
+ linkedProducts: number;
1182
+ mutationExecuted: boolean;
1183
+ slug: string;
1184
+ success: boolean;
1185
+ message?: undefined;
1186
+ action?: undefined;
1187
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1188
+ }) | ({
1189
+ deferLoading?: boolean;
1190
+ title?: string;
1191
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1192
+ metadata?: import('@ai-sdk/provider').JSONObject;
1193
+ inputSchema: import('ai').FlexibleSchema<{
1194
+ action: "delete" | "upsert";
1195
+ name: string;
1196
+ description?: string | null | undefined;
1197
+ name_translations?: Record<string, string> | undefined;
1198
+ productSlugs?: string[] | undefined;
1199
+ slug?: string | undefined;
1200
+ }>;
1201
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1202
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1203
+ action: "delete" | "upsert";
1204
+ name: string;
1205
+ description?: string | null | undefined;
1206
+ name_translations?: Record<string, string> | undefined;
1207
+ productSlugs?: string[] | undefined;
1208
+ slug?: string | undefined;
1209
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1210
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1211
+ onInputDelta?: ((options: {
1212
+ inputTextDelta: string;
1213
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1214
+ onInputAvailable?: ((options: {
1215
+ input: {
1216
+ action: "delete" | "upsert";
1217
+ name: string;
1218
+ description?: string | null | undefined;
1219
+ name_translations?: Record<string, string> | undefined;
1220
+ productSlugs?: string[] | undefined;
1221
+ slug?: string | undefined;
1222
+ };
1223
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1224
+ toModelOutput?: ((options: {
1225
+ toolCallId: string;
1226
+ input: {
1227
+ action: "delete" | "upsert";
1228
+ name: string;
1229
+ description?: string | null | undefined;
1230
+ name_translations?: Record<string, string> | undefined;
1231
+ productSlugs?: string[] | undefined;
1232
+ slug?: string | undefined;
1233
+ };
1234
+ output: NoInfer<{
1235
+ message: string;
1236
+ mutationExecuted: boolean;
1237
+ success: boolean;
1238
+ action?: undefined;
1239
+ slug?: undefined;
1240
+ categoryId?: undefined;
1241
+ created?: undefined;
1242
+ linkedProducts?: undefined;
1243
+ } | {
1244
+ action: string;
1245
+ mutationExecuted: boolean;
1246
+ slug: string;
1247
+ success: boolean;
1248
+ message?: undefined;
1249
+ categoryId?: undefined;
1250
+ created?: undefined;
1251
+ linkedProducts?: undefined;
1252
+ } | {
1253
+ categoryId: string;
1254
+ created: boolean;
1255
+ linkedProducts: number;
1256
+ mutationExecuted: boolean;
1257
+ slug: string;
1258
+ success: boolean;
1259
+ message?: undefined;
1260
+ action?: undefined;
1261
+ }>;
1262
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1263
+ } & {
1264
+ outputSchema?: import('ai').FlexibleSchema<{
1265
+ message: string;
1266
+ mutationExecuted: boolean;
1267
+ success: boolean;
1268
+ action?: undefined;
1269
+ slug?: undefined;
1270
+ categoryId?: undefined;
1271
+ created?: undefined;
1272
+ linkedProducts?: undefined;
1273
+ } | {
1274
+ action: string;
1275
+ mutationExecuted: boolean;
1276
+ slug: string;
1277
+ success: boolean;
1278
+ message?: undefined;
1279
+ categoryId?: undefined;
1280
+ created?: undefined;
1281
+ linkedProducts?: undefined;
1282
+ } | {
1283
+ categoryId: string;
1284
+ created: boolean;
1285
+ linkedProducts: number;
1286
+ mutationExecuted: boolean;
1287
+ slug: string;
1288
+ success: boolean;
1289
+ message?: undefined;
1290
+ action?: undefined;
1291
+ }> | undefined;
1292
+ execute: import('ai').ToolExecuteFunction<{
1293
+ action: "delete" | "upsert";
1294
+ name: string;
1295
+ description?: string | null | undefined;
1296
+ name_translations?: Record<string, string> | undefined;
1297
+ productSlugs?: string[] | undefined;
1298
+ slug?: string | undefined;
1299
+ }, {
1300
+ message: string;
1301
+ mutationExecuted: boolean;
1302
+ success: boolean;
1303
+ action?: undefined;
1304
+ slug?: undefined;
1305
+ categoryId?: undefined;
1306
+ created?: undefined;
1307
+ linkedProducts?: undefined;
1308
+ } | {
1309
+ action: string;
1310
+ mutationExecuted: boolean;
1311
+ slug: string;
1312
+ success: boolean;
1313
+ message?: undefined;
1314
+ categoryId?: undefined;
1315
+ created?: undefined;
1316
+ linkedProducts?: undefined;
1317
+ } | {
1318
+ categoryId: string;
1319
+ created: boolean;
1320
+ linkedProducts: number;
1321
+ mutationExecuted: boolean;
1322
+ slug: string;
1323
+ success: boolean;
1324
+ message?: undefined;
1325
+ action?: undefined;
1326
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1327
+ } & {
1328
+ description?: string | ((options: {
1329
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
1330
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
1331
+ }) => string) | undefined;
1332
+ strict?: boolean;
1333
+ inputExamples?: {
1334
+ input: NoInfer<{
1335
+ action: "delete" | "upsert";
1336
+ name: string;
1337
+ description?: string | null | undefined;
1338
+ name_translations?: Record<string, string> | undefined;
1339
+ productSlugs?: string[] | undefined;
1340
+ slug?: string | undefined;
1341
+ }>;
1342
+ }[] | undefined;
1343
+ id?: never;
1344
+ isProviderExecuted?: never;
1345
+ args?: never;
1346
+ supportsDeferredResults?: never;
1347
+ } & {
1348
+ type: "dynamic";
1349
+ } & {
1350
+ execute: import('ai').ToolExecuteFunction<{
1351
+ action: "delete" | "upsert";
1352
+ name: string;
1353
+ description?: string | null | undefined;
1354
+ name_translations?: Record<string, string> | undefined;
1355
+ productSlugs?: string[] | undefined;
1356
+ slug?: string | undefined;
1357
+ }, {
1358
+ message: string;
1359
+ mutationExecuted: boolean;
1360
+ success: boolean;
1361
+ action?: undefined;
1362
+ slug?: undefined;
1363
+ categoryId?: undefined;
1364
+ created?: undefined;
1365
+ linkedProducts?: undefined;
1366
+ } | {
1367
+ action: string;
1368
+ mutationExecuted: boolean;
1369
+ slug: string;
1370
+ success: boolean;
1371
+ message?: undefined;
1372
+ categoryId?: undefined;
1373
+ created?: undefined;
1374
+ linkedProducts?: undefined;
1375
+ } | {
1376
+ categoryId: string;
1377
+ created: boolean;
1378
+ linkedProducts: number;
1379
+ mutationExecuted: boolean;
1380
+ slug: string;
1381
+ success: boolean;
1382
+ message?: undefined;
1383
+ action?: undefined;
1384
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1385
+ }) | ({
1386
+ deferLoading?: boolean;
1387
+ title?: string;
1388
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1389
+ metadata?: import('@ai-sdk/provider').JSONObject;
1390
+ inputSchema: import('ai').FlexibleSchema<{
1391
+ action: "delete" | "upsert";
1392
+ name: string;
1393
+ description?: string | null | undefined;
1394
+ name_translations?: Record<string, string> | undefined;
1395
+ productSlugs?: string[] | undefined;
1396
+ slug?: string | undefined;
1397
+ }>;
1398
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1399
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1400
+ action: "delete" | "upsert";
1401
+ name: string;
1402
+ description?: string | null | undefined;
1403
+ name_translations?: Record<string, string> | undefined;
1404
+ productSlugs?: string[] | undefined;
1405
+ slug?: string | undefined;
1406
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1407
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1408
+ onInputDelta?: ((options: {
1409
+ inputTextDelta: string;
1410
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1411
+ onInputAvailable?: ((options: {
1412
+ input: {
1413
+ action: "delete" | "upsert";
1414
+ name: string;
1415
+ description?: string | null | undefined;
1416
+ name_translations?: Record<string, string> | undefined;
1417
+ productSlugs?: string[] | undefined;
1418
+ slug?: string | undefined;
1419
+ };
1420
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1421
+ toModelOutput?: ((options: {
1422
+ toolCallId: string;
1423
+ input: {
1424
+ action: "delete" | "upsert";
1425
+ name: string;
1426
+ description?: string | null | undefined;
1427
+ name_translations?: Record<string, string> | undefined;
1428
+ productSlugs?: string[] | undefined;
1429
+ slug?: string | undefined;
1430
+ };
1431
+ output: NoInfer<{
1432
+ message: string;
1433
+ mutationExecuted: boolean;
1434
+ success: boolean;
1435
+ action?: undefined;
1436
+ slug?: undefined;
1437
+ categoryId?: undefined;
1438
+ created?: undefined;
1439
+ linkedProducts?: undefined;
1440
+ } | {
1441
+ action: string;
1442
+ mutationExecuted: boolean;
1443
+ slug: string;
1444
+ success: boolean;
1445
+ message?: undefined;
1446
+ categoryId?: undefined;
1447
+ created?: undefined;
1448
+ linkedProducts?: undefined;
1449
+ } | {
1450
+ categoryId: string;
1451
+ created: boolean;
1452
+ linkedProducts: number;
1453
+ mutationExecuted: boolean;
1454
+ slug: string;
1455
+ success: boolean;
1456
+ message?: undefined;
1457
+ action?: undefined;
1458
+ }>;
1459
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1460
+ } & {
1461
+ outputSchema?: import('ai').FlexibleSchema<{
1462
+ message: string;
1463
+ mutationExecuted: boolean;
1464
+ success: boolean;
1465
+ action?: undefined;
1466
+ slug?: undefined;
1467
+ categoryId?: undefined;
1468
+ created?: undefined;
1469
+ linkedProducts?: undefined;
1470
+ } | {
1471
+ action: string;
1472
+ mutationExecuted: boolean;
1473
+ slug: string;
1474
+ success: boolean;
1475
+ message?: undefined;
1476
+ categoryId?: undefined;
1477
+ created?: undefined;
1478
+ linkedProducts?: undefined;
1479
+ } | {
1480
+ categoryId: string;
1481
+ created: boolean;
1482
+ linkedProducts: number;
1483
+ mutationExecuted: boolean;
1484
+ slug: string;
1485
+ success: boolean;
1486
+ message?: undefined;
1487
+ action?: undefined;
1488
+ }> | undefined;
1489
+ execute: import('ai').ToolExecuteFunction<{
1490
+ action: "delete" | "upsert";
1491
+ name: string;
1492
+ description?: string | null | undefined;
1493
+ name_translations?: Record<string, string> | undefined;
1494
+ productSlugs?: string[] | undefined;
1495
+ slug?: string | undefined;
1496
+ }, {
1497
+ message: string;
1498
+ mutationExecuted: boolean;
1499
+ success: boolean;
1500
+ action?: undefined;
1501
+ slug?: undefined;
1502
+ categoryId?: undefined;
1503
+ created?: undefined;
1504
+ linkedProducts?: undefined;
1505
+ } | {
1506
+ action: string;
1507
+ mutationExecuted: boolean;
1508
+ slug: string;
1509
+ success: boolean;
1510
+ message?: undefined;
1511
+ categoryId?: undefined;
1512
+ created?: undefined;
1513
+ linkedProducts?: undefined;
1514
+ } | {
1515
+ categoryId: string;
1516
+ created: boolean;
1517
+ linkedProducts: number;
1518
+ mutationExecuted: boolean;
1519
+ slug: string;
1520
+ success: boolean;
1521
+ message?: undefined;
1522
+ action?: undefined;
1523
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1524
+ } & {
1525
+ type: "provider";
1526
+ id: `${string}.${string}`;
1527
+ args: Record<string, unknown>;
1528
+ description?: never;
1529
+ strict?: never;
1530
+ inputExamples?: never;
1531
+ } & {
1532
+ isProviderExecuted: false;
1533
+ supportsDeferredResults?: never;
1534
+ } & {
1535
+ execute: import('ai').ToolExecuteFunction<{
1536
+ action: "delete" | "upsert";
1537
+ name: string;
1538
+ description?: string | null | undefined;
1539
+ name_translations?: Record<string, string> | undefined;
1540
+ productSlugs?: string[] | undefined;
1541
+ slug?: string | undefined;
1542
+ }, {
1543
+ message: string;
1544
+ mutationExecuted: boolean;
1545
+ success: boolean;
1546
+ action?: undefined;
1547
+ slug?: undefined;
1548
+ categoryId?: undefined;
1549
+ created?: undefined;
1550
+ linkedProducts?: undefined;
1551
+ } | {
1552
+ action: string;
1553
+ mutationExecuted: boolean;
1554
+ slug: string;
1555
+ success: boolean;
1556
+ message?: undefined;
1557
+ categoryId?: undefined;
1558
+ created?: undefined;
1559
+ linkedProducts?: undefined;
1560
+ } | {
1561
+ categoryId: string;
1562
+ created: boolean;
1563
+ linkedProducts: number;
1564
+ mutationExecuted: boolean;
1565
+ slug: string;
1566
+ success: boolean;
1567
+ message?: undefined;
1568
+ action?: undefined;
1569
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1570
+ }) | ({
1571
+ deferLoading?: boolean;
1572
+ title?: string;
1573
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1574
+ metadata?: import('@ai-sdk/provider').JSONObject;
1575
+ inputSchema: import('ai').FlexibleSchema<{
1576
+ action: "delete" | "upsert";
1577
+ name: string;
1578
+ description?: string | null | undefined;
1579
+ name_translations?: Record<string, string> | undefined;
1580
+ productSlugs?: string[] | undefined;
1581
+ slug?: string | undefined;
1582
+ }>;
1583
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1584
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1585
+ action: "delete" | "upsert";
1586
+ name: string;
1587
+ description?: string | null | undefined;
1588
+ name_translations?: Record<string, string> | undefined;
1589
+ productSlugs?: string[] | undefined;
1590
+ slug?: string | undefined;
1591
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1592
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1593
+ onInputDelta?: ((options: {
1594
+ inputTextDelta: string;
1595
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1596
+ onInputAvailable?: ((options: {
1597
+ input: {
1598
+ action: "delete" | "upsert";
1599
+ name: string;
1600
+ description?: string | null | undefined;
1601
+ name_translations?: Record<string, string> | undefined;
1602
+ productSlugs?: string[] | undefined;
1603
+ slug?: string | undefined;
1604
+ };
1605
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1606
+ toModelOutput?: ((options: {
1607
+ toolCallId: string;
1608
+ input: {
1609
+ action: "delete" | "upsert";
1610
+ name: string;
1611
+ description?: string | null | undefined;
1612
+ name_translations?: Record<string, string> | undefined;
1613
+ productSlugs?: string[] | undefined;
1614
+ slug?: string | undefined;
1615
+ };
1616
+ output: NoInfer<{
1617
+ message: string;
1618
+ mutationExecuted: boolean;
1619
+ success: boolean;
1620
+ action?: undefined;
1621
+ slug?: undefined;
1622
+ categoryId?: undefined;
1623
+ created?: undefined;
1624
+ linkedProducts?: undefined;
1625
+ } | {
1626
+ action: string;
1627
+ mutationExecuted: boolean;
1628
+ slug: string;
1629
+ success: boolean;
1630
+ message?: undefined;
1631
+ categoryId?: undefined;
1632
+ created?: undefined;
1633
+ linkedProducts?: undefined;
1634
+ } | {
1635
+ categoryId: string;
1636
+ created: boolean;
1637
+ linkedProducts: number;
1638
+ mutationExecuted: boolean;
1639
+ slug: string;
1640
+ success: boolean;
1641
+ message?: undefined;
1642
+ action?: undefined;
1643
+ }>;
1644
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1645
+ } & {
1646
+ outputSchema?: import('ai').FlexibleSchema<{
1647
+ message: string;
1648
+ mutationExecuted: boolean;
1649
+ success: boolean;
1650
+ action?: undefined;
1651
+ slug?: undefined;
1652
+ categoryId?: undefined;
1653
+ created?: undefined;
1654
+ linkedProducts?: undefined;
1655
+ } | {
1656
+ action: string;
1657
+ mutationExecuted: boolean;
1658
+ slug: string;
1659
+ success: boolean;
1660
+ message?: undefined;
1661
+ categoryId?: undefined;
1662
+ created?: undefined;
1663
+ linkedProducts?: undefined;
1664
+ } | {
1665
+ categoryId: string;
1666
+ created: boolean;
1667
+ linkedProducts: number;
1668
+ mutationExecuted: boolean;
1669
+ slug: string;
1670
+ success: boolean;
1671
+ message?: undefined;
1672
+ action?: undefined;
1673
+ }> | undefined;
1674
+ execute: import('ai').ToolExecuteFunction<{
1675
+ action: "delete" | "upsert";
1676
+ name: string;
1677
+ description?: string | null | undefined;
1678
+ name_translations?: Record<string, string> | undefined;
1679
+ productSlugs?: string[] | undefined;
1680
+ slug?: string | undefined;
1681
+ }, {
1682
+ message: string;
1683
+ mutationExecuted: boolean;
1684
+ success: boolean;
1685
+ action?: undefined;
1686
+ slug?: undefined;
1687
+ categoryId?: undefined;
1688
+ created?: undefined;
1689
+ linkedProducts?: undefined;
1690
+ } | {
1691
+ action: string;
1692
+ mutationExecuted: boolean;
1693
+ slug: string;
1694
+ success: boolean;
1695
+ message?: undefined;
1696
+ categoryId?: undefined;
1697
+ created?: undefined;
1698
+ linkedProducts?: undefined;
1699
+ } | {
1700
+ categoryId: string;
1701
+ created: boolean;
1702
+ linkedProducts: number;
1703
+ mutationExecuted: boolean;
1704
+ slug: string;
1705
+ success: boolean;
1706
+ message?: undefined;
1707
+ action?: undefined;
1708
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1709
+ } & {
1710
+ type: "provider";
1711
+ id: `${string}.${string}`;
1712
+ args: Record<string, unknown>;
1713
+ description?: never;
1714
+ strict?: never;
1715
+ inputExamples?: never;
1716
+ } & {
1717
+ isProviderExecuted: true;
1718
+ supportsDeferredResults?: boolean;
1719
+ } & {
1720
+ execute: import('ai').ToolExecuteFunction<{
1721
+ action: "delete" | "upsert";
1722
+ name: string;
1723
+ description?: string | null | undefined;
1724
+ name_translations?: Record<string, string> | undefined;
1725
+ productSlugs?: string[] | undefined;
1726
+ slug?: string | undefined;
1727
+ }, {
1728
+ message: string;
1729
+ mutationExecuted: boolean;
1730
+ success: boolean;
1731
+ action?: undefined;
1732
+ slug?: undefined;
1733
+ categoryId?: undefined;
1734
+ created?: undefined;
1735
+ linkedProducts?: undefined;
1736
+ } | {
1737
+ action: string;
1738
+ mutationExecuted: boolean;
1739
+ slug: string;
1740
+ success: boolean;
1741
+ message?: undefined;
1742
+ categoryId?: undefined;
1743
+ created?: undefined;
1744
+ linkedProducts?: undefined;
1745
+ } | {
1746
+ categoryId: string;
1747
+ created: boolean;
1748
+ linkedProducts: number;
1749
+ mutationExecuted: boolean;
1750
+ slug: string;
1751
+ success: boolean;
1752
+ message?: undefined;
1753
+ action?: undefined;
1754
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1755
+ });
1756
+ upload_media: ({
1757
+ deferLoading?: boolean;
1758
+ title?: string;
1759
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1760
+ metadata?: import('@ai-sdk/provider').JSONObject;
1761
+ inputSchema: import('ai').FlexibleSchema<{
1762
+ url: string;
1763
+ altText?: string | undefined;
1764
+ }>;
1765
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1766
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1767
+ url: string;
1768
+ altText?: string | undefined;
1769
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1770
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1771
+ onInputDelta?: ((options: {
1772
+ inputTextDelta: string;
1773
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1774
+ onInputAvailable?: ((options: {
1775
+ input: {
1776
+ url: string;
1777
+ altText?: string | undefined;
1778
+ };
1779
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1780
+ toModelOutput?: ((options: {
1781
+ toolCallId: string;
1782
+ input: {
1783
+ url: string;
1784
+ altText?: string | undefined;
1785
+ };
1786
+ output: NoInfer<{
1787
+ mediaId: string;
1788
+ mutationExecuted: boolean;
1789
+ success: boolean;
1790
+ }>;
1791
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1792
+ } & {
1793
+ outputSchema?: import('ai').FlexibleSchema<{
1794
+ mediaId: string;
1795
+ mutationExecuted: boolean;
1796
+ success: boolean;
1797
+ }> | undefined;
1798
+ execute: import('ai').ToolExecuteFunction<{
1799
+ url: string;
1800
+ altText?: string | undefined;
1801
+ }, {
1802
+ mediaId: string;
1803
+ mutationExecuted: boolean;
1804
+ success: boolean;
1805
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1806
+ } & {
1807
+ description?: string | ((options: {
1808
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
1809
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
1810
+ }) => string) | undefined;
1811
+ strict?: boolean;
1812
+ inputExamples?: {
1813
+ input: NoInfer<{
1814
+ url: string;
1815
+ altText?: string | undefined;
1816
+ }>;
1817
+ }[] | undefined;
1818
+ id?: never;
1819
+ isProviderExecuted?: never;
1820
+ args?: never;
1821
+ supportsDeferredResults?: never;
1822
+ } & {
1823
+ type?: undefined | "function";
1824
+ } & {
1825
+ execute: import('ai').ToolExecuteFunction<{
1826
+ url: string;
1827
+ altText?: string | undefined;
1828
+ }, {
1829
+ mediaId: string;
1830
+ mutationExecuted: boolean;
1831
+ success: boolean;
1832
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1833
+ }) | ({
1834
+ deferLoading?: boolean;
1835
+ title?: string;
1836
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1837
+ metadata?: import('@ai-sdk/provider').JSONObject;
1838
+ inputSchema: import('ai').FlexibleSchema<{
1839
+ url: string;
1840
+ altText?: string | undefined;
1841
+ }>;
1842
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1843
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1844
+ url: string;
1845
+ altText?: string | undefined;
1846
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1847
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1848
+ onInputDelta?: ((options: {
1849
+ inputTextDelta: string;
1850
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1851
+ onInputAvailable?: ((options: {
1852
+ input: {
1853
+ url: string;
1854
+ altText?: string | undefined;
1855
+ };
1856
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1857
+ toModelOutput?: ((options: {
1858
+ toolCallId: string;
1859
+ input: {
1860
+ url: string;
1861
+ altText?: string | undefined;
1862
+ };
1863
+ output: NoInfer<{
1864
+ mediaId: string;
1865
+ mutationExecuted: boolean;
1866
+ success: boolean;
1867
+ }>;
1868
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1869
+ } & {
1870
+ outputSchema?: import('ai').FlexibleSchema<{
1871
+ mediaId: string;
1872
+ mutationExecuted: boolean;
1873
+ success: boolean;
1874
+ }> | undefined;
1875
+ execute: import('ai').ToolExecuteFunction<{
1876
+ url: string;
1877
+ altText?: string | undefined;
1878
+ }, {
1879
+ mediaId: string;
1880
+ mutationExecuted: boolean;
1881
+ success: boolean;
1882
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1883
+ } & {
1884
+ description?: string | ((options: {
1885
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
1886
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
1887
+ }) => string) | undefined;
1888
+ strict?: boolean;
1889
+ inputExamples?: {
1890
+ input: NoInfer<{
1891
+ url: string;
1892
+ altText?: string | undefined;
1893
+ }>;
1894
+ }[] | undefined;
1895
+ id?: never;
1896
+ isProviderExecuted?: never;
1897
+ args?: never;
1898
+ supportsDeferredResults?: never;
1899
+ } & {
1900
+ type: "dynamic";
1901
+ } & {
1902
+ execute: import('ai').ToolExecuteFunction<{
1903
+ url: string;
1904
+ altText?: string | undefined;
1905
+ }, {
1906
+ mediaId: string;
1907
+ mutationExecuted: boolean;
1908
+ success: boolean;
1909
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1910
+ }) | ({
1911
+ deferLoading?: boolean;
1912
+ title?: string;
1913
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1914
+ metadata?: import('@ai-sdk/provider').JSONObject;
1915
+ inputSchema: import('ai').FlexibleSchema<{
1916
+ url: string;
1917
+ altText?: string | undefined;
1918
+ }>;
1919
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1920
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1921
+ url: string;
1922
+ altText?: string | undefined;
1923
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1924
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1925
+ onInputDelta?: ((options: {
1926
+ inputTextDelta: string;
1927
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1928
+ onInputAvailable?: ((options: {
1929
+ input: {
1930
+ url: string;
1931
+ altText?: string | undefined;
1932
+ };
1933
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1934
+ toModelOutput?: ((options: {
1935
+ toolCallId: string;
1936
+ input: {
1937
+ url: string;
1938
+ altText?: string | undefined;
1939
+ };
1940
+ output: NoInfer<{
1941
+ mediaId: string;
1942
+ mutationExecuted: boolean;
1943
+ success: boolean;
1944
+ }>;
1945
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1946
+ } & {
1947
+ outputSchema?: import('ai').FlexibleSchema<{
1948
+ mediaId: string;
1949
+ mutationExecuted: boolean;
1950
+ success: boolean;
1951
+ }> | undefined;
1952
+ execute: import('ai').ToolExecuteFunction<{
1953
+ url: string;
1954
+ altText?: string | undefined;
1955
+ }, {
1956
+ mediaId: string;
1957
+ mutationExecuted: boolean;
1958
+ success: boolean;
1959
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1960
+ } & {
1961
+ type: "provider";
1962
+ id: `${string}.${string}`;
1963
+ args: Record<string, unknown>;
1964
+ description?: never;
1965
+ strict?: never;
1966
+ inputExamples?: never;
1967
+ } & {
1968
+ isProviderExecuted: false;
1969
+ supportsDeferredResults?: never;
1970
+ } & {
1971
+ execute: import('ai').ToolExecuteFunction<{
1972
+ url: string;
1973
+ altText?: string | undefined;
1974
+ }, {
1975
+ mediaId: string;
1976
+ mutationExecuted: boolean;
1977
+ success: boolean;
1978
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1979
+ }) | ({
1980
+ deferLoading?: boolean;
1981
+ title?: string;
1982
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1983
+ metadata?: import('@ai-sdk/provider').JSONObject;
1984
+ inputSchema: import('ai').FlexibleSchema<{
1985
+ url: string;
1986
+ altText?: string | undefined;
1987
+ }>;
1988
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1989
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1990
+ url: string;
1991
+ altText?: string | undefined;
1992
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1993
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1994
+ onInputDelta?: ((options: {
1995
+ inputTextDelta: string;
1996
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1997
+ onInputAvailable?: ((options: {
1998
+ input: {
1999
+ url: string;
2000
+ altText?: string | undefined;
2001
+ };
2002
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2003
+ toModelOutput?: ((options: {
2004
+ toolCallId: string;
2005
+ input: {
2006
+ url: string;
2007
+ altText?: string | undefined;
2008
+ };
2009
+ output: NoInfer<{
2010
+ mediaId: string;
2011
+ mutationExecuted: boolean;
2012
+ success: boolean;
2013
+ }>;
2014
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2015
+ } & {
2016
+ outputSchema?: import('ai').FlexibleSchema<{
2017
+ mediaId: string;
2018
+ mutationExecuted: boolean;
2019
+ success: boolean;
2020
+ }> | undefined;
2021
+ execute: import('ai').ToolExecuteFunction<{
2022
+ url: string;
2023
+ altText?: string | undefined;
2024
+ }, {
2025
+ mediaId: string;
2026
+ mutationExecuted: boolean;
2027
+ success: boolean;
2028
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2029
+ } & {
2030
+ type: "provider";
2031
+ id: `${string}.${string}`;
2032
+ args: Record<string, unknown>;
2033
+ description?: never;
2034
+ strict?: never;
2035
+ inputExamples?: never;
2036
+ } & {
2037
+ isProviderExecuted: true;
2038
+ supportsDeferredResults?: boolean;
2039
+ } & {
2040
+ execute: import('ai').ToolExecuteFunction<{
2041
+ url: string;
2042
+ altText?: string | undefined;
2043
+ }, {
2044
+ mediaId: string;
2045
+ mutationExecuted: boolean;
2046
+ success: boolean;
2047
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2048
+ });
174
2049
  };
175
2050
  export {};