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