@nextblock-cms/cortex 0.20.3 → 0.21.1

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