@fatagnus/convex-feedback 0.2.6 → 0.2.7

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,892 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated `ComponentApi` utility.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+
11
+ import type { FunctionReference } from "convex/server";
12
+
13
+ /**
14
+ * A utility for referencing a Convex component's exposed API.
15
+ *
16
+ * Useful when expecting a parameter like `components.myComponent`.
17
+ * Usage:
18
+ * ```ts
19
+ * async function myFunction(ctx: QueryCtx, component: ComponentApi) {
20
+ * return ctx.runQuery(component.someFile.someQuery, { ...args });
21
+ * }
22
+ * ```
23
+ */
24
+ export type ComponentApi<Name extends string | undefined = string | undefined> =
25
+ {
26
+ agents: {
27
+ bugReportAgent: {
28
+ processBugReportPublic: FunctionReference<
29
+ "action",
30
+ "internal",
31
+ {
32
+ bugReportId: string;
33
+ openRouterApiKey?: string;
34
+ resendApiKey?: string;
35
+ resendFromEmail?: string;
36
+ },
37
+ { error?: string; success: boolean },
38
+ Name
39
+ >;
40
+ };
41
+ feedbackAgent: {
42
+ processFeedbackPublic: FunctionReference<
43
+ "action",
44
+ "internal",
45
+ {
46
+ feedbackId: string;
47
+ openRouterApiKey?: string;
48
+ resendApiKey?: string;
49
+ resendFromEmail?: string;
50
+ },
51
+ { error?: string; success: boolean },
52
+ Name
53
+ >;
54
+ };
55
+ feedbackInterviewAgent: {
56
+ continueInterview: FunctionReference<
57
+ "action",
58
+ "internal",
59
+ {
60
+ context?: {
61
+ additionalInstructions?: string;
62
+ appDescription?: string;
63
+ appName?: string;
64
+ customQuestions?: {
65
+ bug?: Array<string>;
66
+ feedback?: Array<string>;
67
+ };
68
+ featureAreas?: Array<{ description?: string; name: string }>;
69
+ knownIssues?: Array<{ description?: string; title: string }>;
70
+ };
71
+ openRouterApiKey: string;
72
+ reportType: "bug" | "feedback";
73
+ requestId: string;
74
+ response: string;
75
+ sessionId: string;
76
+ threadId: string;
77
+ },
78
+ {
79
+ generatedReport?: {
80
+ description: string;
81
+ featureArea?: string;
82
+ priority?: "nice_to_have" | "important" | "critical";
83
+ reproductionSteps?: Array<string>;
84
+ severity?: "low" | "medium" | "high" | "critical";
85
+ title: string;
86
+ type?: "feature_request" | "change_request" | "general";
87
+ };
88
+ isComplete: boolean;
89
+ pendingRequest?: {
90
+ config?: any;
91
+ inputType: string;
92
+ prompt: string;
93
+ requestId: string;
94
+ };
95
+ response: string;
96
+ waitingForInput: boolean;
97
+ },
98
+ Name
99
+ >;
100
+ getSessionByThread: FunctionReference<
101
+ "query",
102
+ "internal",
103
+ { threadId: string },
104
+ {
105
+ _creationTime: number;
106
+ _id: string;
107
+ context?: string;
108
+ createdAt: number;
109
+ generatedDescription?: string;
110
+ generatedFeatureArea?: string;
111
+ generatedFeedbackType?:
112
+ | "feature_request"
113
+ | "change_request"
114
+ | "general";
115
+ generatedPriority?: "nice_to_have" | "important" | "critical";
116
+ generatedReproSteps?: Array<string>;
117
+ generatedSeverity?: "low" | "medium" | "high" | "critical";
118
+ generatedTitle?: string;
119
+ isComplete: boolean;
120
+ reportType: "bug" | "feedback";
121
+ reporterEmail: string;
122
+ reporterId: string;
123
+ reporterName: string;
124
+ reporterType: "staff" | "customer";
125
+ threadId: string;
126
+ updatedAt: number;
127
+ } | null,
128
+ Name
129
+ >;
130
+ startBugInterview: FunctionReference<
131
+ "action",
132
+ "internal",
133
+ {
134
+ context?: {
135
+ additionalInstructions?: string;
136
+ appDescription?: string;
137
+ appName?: string;
138
+ customQuestions?: {
139
+ bug?: Array<string>;
140
+ feedback?: Array<string>;
141
+ };
142
+ featureAreas?: Array<{ description?: string; name: string }>;
143
+ knownIssues?: Array<{ description?: string; title: string }>;
144
+ };
145
+ openRouterApiKey: string;
146
+ reporterEmail: string;
147
+ reporterId: string;
148
+ reporterName: string;
149
+ reporterType: "staff" | "customer";
150
+ },
151
+ {
152
+ pendingRequest?: {
153
+ config?: any;
154
+ inputType: string;
155
+ prompt: string;
156
+ requestId: string;
157
+ };
158
+ response: string;
159
+ sessionId: string;
160
+ threadId: string;
161
+ waitingForInput: boolean;
162
+ },
163
+ Name
164
+ >;
165
+ startFeedbackInterview: FunctionReference<
166
+ "action",
167
+ "internal",
168
+ {
169
+ context?: {
170
+ additionalInstructions?: string;
171
+ appDescription?: string;
172
+ appName?: string;
173
+ customQuestions?: {
174
+ bug?: Array<string>;
175
+ feedback?: Array<string>;
176
+ };
177
+ featureAreas?: Array<{ description?: string; name: string }>;
178
+ knownIssues?: Array<{ description?: string; title: string }>;
179
+ };
180
+ openRouterApiKey: string;
181
+ reporterEmail: string;
182
+ reporterId: string;
183
+ reporterName: string;
184
+ reporterType: "staff" | "customer";
185
+ },
186
+ {
187
+ pendingRequest?: {
188
+ config?: any;
189
+ inputType: string;
190
+ prompt: string;
191
+ requestId: string;
192
+ };
193
+ response: string;
194
+ sessionId: string;
195
+ threadId: string;
196
+ waitingForInput: boolean;
197
+ },
198
+ Name
199
+ >;
200
+ };
201
+ index: {
202
+ continueInterview: FunctionReference<
203
+ "action",
204
+ "internal",
205
+ {
206
+ context?: {
207
+ additionalInstructions?: string;
208
+ appDescription?: string;
209
+ appName?: string;
210
+ customQuestions?: {
211
+ bug?: Array<string>;
212
+ feedback?: Array<string>;
213
+ };
214
+ featureAreas?: Array<{ description?: string; name: string }>;
215
+ knownIssues?: Array<{ description?: string; title: string }>;
216
+ };
217
+ openRouterApiKey: string;
218
+ reportType: "bug" | "feedback";
219
+ requestId: string;
220
+ response: string;
221
+ sessionId: string;
222
+ threadId: string;
223
+ },
224
+ {
225
+ generatedReport?: {
226
+ description: string;
227
+ featureArea?: string;
228
+ priority?: "nice_to_have" | "important" | "critical";
229
+ reproductionSteps?: Array<string>;
230
+ severity?: "low" | "medium" | "high" | "critical";
231
+ title: string;
232
+ type?: "feature_request" | "change_request" | "general";
233
+ };
234
+ isComplete: boolean;
235
+ pendingRequest?: {
236
+ config?: any;
237
+ inputType: string;
238
+ prompt: string;
239
+ requestId: string;
240
+ };
241
+ response: string;
242
+ waitingForInput: boolean;
243
+ },
244
+ Name
245
+ >;
246
+ getSessionByThread: FunctionReference<
247
+ "query",
248
+ "internal",
249
+ { threadId: string },
250
+ {
251
+ _creationTime: number;
252
+ _id: string;
253
+ context?: string;
254
+ createdAt: number;
255
+ generatedDescription?: string;
256
+ generatedFeatureArea?: string;
257
+ generatedFeedbackType?:
258
+ | "feature_request"
259
+ | "change_request"
260
+ | "general";
261
+ generatedPriority?: "nice_to_have" | "important" | "critical";
262
+ generatedReproSteps?: Array<string>;
263
+ generatedSeverity?: "low" | "medium" | "high" | "critical";
264
+ generatedTitle?: string;
265
+ isComplete: boolean;
266
+ reportType: "bug" | "feedback";
267
+ reporterEmail: string;
268
+ reporterId: string;
269
+ reporterName: string;
270
+ reporterType: "staff" | "customer";
271
+ threadId: string;
272
+ updatedAt: number;
273
+ } | null,
274
+ Name
275
+ >;
276
+ processBugReportPublic: FunctionReference<
277
+ "action",
278
+ "internal",
279
+ {
280
+ bugReportId: string;
281
+ openRouterApiKey?: string;
282
+ resendApiKey?: string;
283
+ resendFromEmail?: string;
284
+ },
285
+ { error?: string; success: boolean },
286
+ Name
287
+ >;
288
+ processFeedbackPublic: FunctionReference<
289
+ "action",
290
+ "internal",
291
+ {
292
+ feedbackId: string;
293
+ openRouterApiKey?: string;
294
+ resendApiKey?: string;
295
+ resendFromEmail?: string;
296
+ },
297
+ { error?: string; success: boolean },
298
+ Name
299
+ >;
300
+ startBugInterview: FunctionReference<
301
+ "action",
302
+ "internal",
303
+ {
304
+ context?: {
305
+ additionalInstructions?: string;
306
+ appDescription?: string;
307
+ appName?: string;
308
+ customQuestions?: {
309
+ bug?: Array<string>;
310
+ feedback?: Array<string>;
311
+ };
312
+ featureAreas?: Array<{ description?: string; name: string }>;
313
+ knownIssues?: Array<{ description?: string; title: string }>;
314
+ };
315
+ openRouterApiKey: string;
316
+ reporterEmail: string;
317
+ reporterId: string;
318
+ reporterName: string;
319
+ reporterType: "staff" | "customer";
320
+ },
321
+ {
322
+ pendingRequest?: {
323
+ config?: any;
324
+ inputType: string;
325
+ prompt: string;
326
+ requestId: string;
327
+ };
328
+ response: string;
329
+ sessionId: string;
330
+ threadId: string;
331
+ waitingForInput: boolean;
332
+ },
333
+ Name
334
+ >;
335
+ startFeedbackInterview: FunctionReference<
336
+ "action",
337
+ "internal",
338
+ {
339
+ context?: {
340
+ additionalInstructions?: string;
341
+ appDescription?: string;
342
+ appName?: string;
343
+ customQuestions?: {
344
+ bug?: Array<string>;
345
+ feedback?: Array<string>;
346
+ };
347
+ featureAreas?: Array<{ description?: string; name: string }>;
348
+ knownIssues?: Array<{ description?: string; title: string }>;
349
+ };
350
+ openRouterApiKey: string;
351
+ reporterEmail: string;
352
+ reporterId: string;
353
+ reporterName: string;
354
+ reporterType: "staff" | "customer";
355
+ },
356
+ {
357
+ pendingRequest?: {
358
+ config?: any;
359
+ inputType: string;
360
+ prompt: string;
361
+ requestId: string;
362
+ };
363
+ response: string;
364
+ sessionId: string;
365
+ threadId: string;
366
+ waitingForInput: boolean;
367
+ },
368
+ Name
369
+ >;
370
+ };
371
+ };
372
+ bugReports: {
373
+ archive: FunctionReference<
374
+ "mutation",
375
+ "internal",
376
+ { reportId: string },
377
+ null,
378
+ Name
379
+ >;
380
+ create: FunctionReference<
381
+ "mutation",
382
+ "internal",
383
+ {
384
+ browserInfo: string;
385
+ consoleErrors?: string;
386
+ description: string;
387
+ networkState: string;
388
+ openRouterApiKey?: string;
389
+ reporterEmail: string;
390
+ reporterId: string;
391
+ reporterName: string;
392
+ reporterType: "staff" | "customer";
393
+ resendApiKey?: string;
394
+ resendFromEmail?: string;
395
+ route?: string;
396
+ screenshotStorageId?: string;
397
+ severity: "low" | "medium" | "high" | "critical";
398
+ skipAutoProcess?: boolean;
399
+ title: string;
400
+ url: string;
401
+ viewportHeight: number;
402
+ viewportWidth: number;
403
+ },
404
+ string,
405
+ Name
406
+ >;
407
+ generateUploadUrl: FunctionReference<
408
+ "mutation",
409
+ "internal",
410
+ {},
411
+ string,
412
+ Name
413
+ >;
414
+ get: FunctionReference<
415
+ "query",
416
+ "internal",
417
+ { reportId: string },
418
+ {
419
+ _creationTime: number;
420
+ _id: string;
421
+ aiAnalyzedAt?: number;
422
+ aiEstimatedEffort?: "low" | "medium" | "high";
423
+ aiReproductionSteps?: Array<string>;
424
+ aiRootCauseAnalysis?: string;
425
+ aiSuggestedFix?: string;
426
+ aiSuggestedSeverity?: "low" | "medium" | "high" | "critical";
427
+ aiSummary?: string;
428
+ aiThreadId?: string;
429
+ browserInfo: string;
430
+ consoleErrors?: string;
431
+ createdAt: number;
432
+ description: string;
433
+ isArchived?: boolean;
434
+ networkState: string;
435
+ notificationsSentAt?: number;
436
+ reporterEmail: string;
437
+ reporterId: string;
438
+ reporterName: string;
439
+ reporterType: "staff" | "customer";
440
+ route?: string;
441
+ screenshotStorageId?: string;
442
+ severity: "low" | "medium" | "high" | "critical";
443
+ status: "open" | "in-progress" | "resolved" | "closed";
444
+ title: string;
445
+ updatedAt: number;
446
+ url: string;
447
+ viewportHeight: number;
448
+ viewportWidth: number;
449
+ } | null,
450
+ Name
451
+ >;
452
+ getAiAnalysis: FunctionReference<
453
+ "query",
454
+ "internal",
455
+ { reportId: string },
456
+ {
457
+ aiAnalyzedAt: number | null;
458
+ aiEstimatedEffort: "low" | "medium" | "high" | null;
459
+ aiReproductionSteps: Array<string> | null;
460
+ aiRootCauseAnalysis: string | null;
461
+ aiSuggestedFix: string | null;
462
+ aiSuggestedSeverity: "low" | "medium" | "high" | "critical" | null;
463
+ aiSummary: string | null;
464
+ notificationsSentAt: number | null;
465
+ } | null,
466
+ Name
467
+ >;
468
+ getScreenshotUrl: FunctionReference<
469
+ "query",
470
+ "internal",
471
+ { storageId: string },
472
+ string | null,
473
+ Name
474
+ >;
475
+ list: FunctionReference<
476
+ "query",
477
+ "internal",
478
+ {
479
+ includeArchived?: boolean;
480
+ limit?: number;
481
+ severity?: "low" | "medium" | "high" | "critical";
482
+ status?: "open" | "in-progress" | "resolved" | "closed";
483
+ },
484
+ Array<{
485
+ _creationTime: number;
486
+ _id: string;
487
+ aiAnalyzedAt?: number;
488
+ aiEstimatedEffort?: "low" | "medium" | "high";
489
+ aiReproductionSteps?: Array<string>;
490
+ aiRootCauseAnalysis?: string;
491
+ aiSuggestedFix?: string;
492
+ aiSuggestedSeverity?: "low" | "medium" | "high" | "critical";
493
+ aiSummary?: string;
494
+ aiThreadId?: string;
495
+ browserInfo: string;
496
+ consoleErrors?: string;
497
+ createdAt: number;
498
+ description: string;
499
+ isArchived?: boolean;
500
+ networkState: string;
501
+ notificationsSentAt?: number;
502
+ reporterEmail: string;
503
+ reporterId: string;
504
+ reporterName: string;
505
+ reporterType: "staff" | "customer";
506
+ route?: string;
507
+ screenshotStorageId?: string;
508
+ severity: "low" | "medium" | "high" | "critical";
509
+ status: "open" | "in-progress" | "resolved" | "closed";
510
+ title: string;
511
+ updatedAt: number;
512
+ url: string;
513
+ viewportHeight: number;
514
+ viewportWidth: number;
515
+ }>,
516
+ Name
517
+ >;
518
+ unarchive: FunctionReference<
519
+ "mutation",
520
+ "internal",
521
+ { reportId: string },
522
+ null,
523
+ Name
524
+ >;
525
+ updateStatus: FunctionReference<
526
+ "mutation",
527
+ "internal",
528
+ {
529
+ reportId: string;
530
+ status: "open" | "in-progress" | "resolved" | "closed";
531
+ },
532
+ null,
533
+ Name
534
+ >;
535
+ };
536
+ feedback: {
537
+ archive: FunctionReference<
538
+ "mutation",
539
+ "internal",
540
+ { feedbackId: string },
541
+ null,
542
+ Name
543
+ >;
544
+ create: FunctionReference<
545
+ "mutation",
546
+ "internal",
547
+ {
548
+ browserInfo: string;
549
+ consoleErrors?: string;
550
+ description: string;
551
+ networkState: string;
552
+ openRouterApiKey?: string;
553
+ priority: "nice_to_have" | "important" | "critical";
554
+ reporterEmail: string;
555
+ reporterId: string;
556
+ reporterName: string;
557
+ reporterType: "staff" | "customer";
558
+ resendApiKey?: string;
559
+ resendFromEmail?: string;
560
+ route?: string;
561
+ screenshotStorageId?: string;
562
+ skipAutoProcess?: boolean;
563
+ title: string;
564
+ type: "feature_request" | "change_request" | "general";
565
+ url: string;
566
+ viewportHeight: number;
567
+ viewportWidth: number;
568
+ },
569
+ string,
570
+ Name
571
+ >;
572
+ generateUploadUrl: FunctionReference<
573
+ "mutation",
574
+ "internal",
575
+ {},
576
+ string,
577
+ Name
578
+ >;
579
+ get: FunctionReference<
580
+ "query",
581
+ "internal",
582
+ { feedbackId: string },
583
+ {
584
+ _creationTime: number;
585
+ _id: string;
586
+ aiActionItems?: Array<string>;
587
+ aiAnalyzedAt?: number;
588
+ aiEstimatedEffort?: "low" | "medium" | "high";
589
+ aiImpactAnalysis?: string;
590
+ aiSuggestedPriority?: "nice_to_have" | "important" | "critical";
591
+ aiSummary?: string;
592
+ aiThreadId?: string;
593
+ browserInfo: string;
594
+ consoleErrors?: string;
595
+ createdAt: number;
596
+ description: string;
597
+ isArchived?: boolean;
598
+ networkState: string;
599
+ notificationsSentAt?: number;
600
+ priority: "nice_to_have" | "important" | "critical";
601
+ reporterEmail: string;
602
+ reporterId: string;
603
+ reporterName: string;
604
+ reporterType: "staff" | "customer";
605
+ route?: string;
606
+ screenshotStorageId?: string;
607
+ status:
608
+ | "open"
609
+ | "under_review"
610
+ | "planned"
611
+ | "in_progress"
612
+ | "completed"
613
+ | "declined";
614
+ title: string;
615
+ type: "feature_request" | "change_request" | "general";
616
+ updatedAt: number;
617
+ url: string;
618
+ viewportHeight: number;
619
+ viewportWidth: number;
620
+ } | null,
621
+ Name
622
+ >;
623
+ getAiAnalysis: FunctionReference<
624
+ "query",
625
+ "internal",
626
+ { feedbackId: string },
627
+ {
628
+ aiActionItems: Array<string> | null;
629
+ aiAnalyzedAt: number | null;
630
+ aiEstimatedEffort: "low" | "medium" | "high" | null;
631
+ aiImpactAnalysis: string | null;
632
+ aiSuggestedPriority: "nice_to_have" | "important" | "critical" | null;
633
+ aiSummary: string | null;
634
+ notificationsSentAt: number | null;
635
+ } | null,
636
+ Name
637
+ >;
638
+ getScreenshotUrl: FunctionReference<
639
+ "query",
640
+ "internal",
641
+ { storageId: string },
642
+ string | null,
643
+ Name
644
+ >;
645
+ list: FunctionReference<
646
+ "query",
647
+ "internal",
648
+ {
649
+ includeArchived?: boolean;
650
+ limit?: number;
651
+ priority?: "nice_to_have" | "important" | "critical";
652
+ status?:
653
+ | "open"
654
+ | "under_review"
655
+ | "planned"
656
+ | "in_progress"
657
+ | "completed"
658
+ | "declined";
659
+ type?: "feature_request" | "change_request" | "general";
660
+ },
661
+ Array<{
662
+ _creationTime: number;
663
+ _id: string;
664
+ aiActionItems?: Array<string>;
665
+ aiAnalyzedAt?: number;
666
+ aiEstimatedEffort?: "low" | "medium" | "high";
667
+ aiImpactAnalysis?: string;
668
+ aiSuggestedPriority?: "nice_to_have" | "important" | "critical";
669
+ aiSummary?: string;
670
+ aiThreadId?: string;
671
+ browserInfo: string;
672
+ consoleErrors?: string;
673
+ createdAt: number;
674
+ description: string;
675
+ isArchived?: boolean;
676
+ networkState: string;
677
+ notificationsSentAt?: number;
678
+ priority: "nice_to_have" | "important" | "critical";
679
+ reporterEmail: string;
680
+ reporterId: string;
681
+ reporterName: string;
682
+ reporterType: "staff" | "customer";
683
+ route?: string;
684
+ screenshotStorageId?: string;
685
+ status:
686
+ | "open"
687
+ | "under_review"
688
+ | "planned"
689
+ | "in_progress"
690
+ | "completed"
691
+ | "declined";
692
+ title: string;
693
+ type: "feature_request" | "change_request" | "general";
694
+ updatedAt: number;
695
+ url: string;
696
+ viewportHeight: number;
697
+ viewportWidth: number;
698
+ }>,
699
+ Name
700
+ >;
701
+ unarchive: FunctionReference<
702
+ "mutation",
703
+ "internal",
704
+ { feedbackId: string },
705
+ null,
706
+ Name
707
+ >;
708
+ updateStatus: FunctionReference<
709
+ "mutation",
710
+ "internal",
711
+ {
712
+ feedbackId: string;
713
+ status:
714
+ | "open"
715
+ | "under_review"
716
+ | "planned"
717
+ | "in_progress"
718
+ | "completed"
719
+ | "declined";
720
+ },
721
+ null,
722
+ Name
723
+ >;
724
+ };
725
+ inputRequests: {
726
+ cancel: FunctionReference<
727
+ "mutation",
728
+ "internal",
729
+ { requestId: string },
730
+ null,
731
+ Name
732
+ >;
733
+ get: FunctionReference<
734
+ "query",
735
+ "internal",
736
+ { requestId: string },
737
+ {
738
+ _creationTime: number;
739
+ _id: string;
740
+ agentName: string;
741
+ config?: {
742
+ fields?: Array<{
743
+ label: string;
744
+ name: string;
745
+ placeholder?: string;
746
+ required: boolean;
747
+ type: string;
748
+ }>;
749
+ multiline?: boolean;
750
+ options?: Array<{
751
+ description?: string;
752
+ label: string;
753
+ value: string;
754
+ }>;
755
+ placeholder?: string;
756
+ };
757
+ createdAt: number;
758
+ expiresAt?: number;
759
+ inputType: "text" | "choice" | "form";
760
+ prompt: string;
761
+ respondedAt?: number;
762
+ response?: string;
763
+ status: "pending" | "answered" | "expired" | "cancelled";
764
+ threadId: string;
765
+ toolCallId: string;
766
+ userId?: string;
767
+ } | null,
768
+ Name
769
+ >;
770
+ getPendingForThread: FunctionReference<
771
+ "query",
772
+ "internal",
773
+ { threadId: string },
774
+ {
775
+ _creationTime: number;
776
+ _id: string;
777
+ agentName: string;
778
+ config?: {
779
+ fields?: Array<{
780
+ label: string;
781
+ name: string;
782
+ placeholder?: string;
783
+ required: boolean;
784
+ type: string;
785
+ }>;
786
+ multiline?: boolean;
787
+ options?: Array<{
788
+ description?: string;
789
+ label: string;
790
+ value: string;
791
+ }>;
792
+ placeholder?: string;
793
+ };
794
+ createdAt: number;
795
+ expiresAt?: number;
796
+ inputType: "text" | "choice" | "form";
797
+ prompt: string;
798
+ respondedAt?: number;
799
+ response?: string;
800
+ status: "pending" | "answered" | "expired" | "cancelled";
801
+ threadId: string;
802
+ toolCallId: string;
803
+ userId?: string;
804
+ } | null,
805
+ Name
806
+ >;
807
+ submitResponse: FunctionReference<
808
+ "mutation",
809
+ "internal",
810
+ { requestId: string; response: string },
811
+ { success: boolean; threadId: string; toolCallId: string },
812
+ Name
813
+ >;
814
+ };
815
+ supportTeams: {
816
+ create: FunctionReference<
817
+ "mutation",
818
+ "internal",
819
+ {
820
+ bugReportSeverities: Array<"low" | "medium" | "high" | "critical">;
821
+ feedbackTypes: Array<
822
+ "feature_request" | "change_request" | "general"
823
+ >;
824
+ memberEmails: Array<string>;
825
+ teamName: string;
826
+ },
827
+ string,
828
+ Name
829
+ >;
830
+ get: FunctionReference<
831
+ "query",
832
+ "internal",
833
+ { teamId: string },
834
+ {
835
+ _creationTime: number;
836
+ _id: string;
837
+ bugReportSeverities: Array<"low" | "medium" | "high" | "critical">;
838
+ createdAt: number;
839
+ feedbackTypes: Array<
840
+ "feature_request" | "change_request" | "general"
841
+ >;
842
+ isActive: boolean;
843
+ memberEmails: Array<string>;
844
+ teamName: string;
845
+ updatedAt: number;
846
+ } | null,
847
+ Name
848
+ >;
849
+ list: FunctionReference<
850
+ "query",
851
+ "internal",
852
+ { activeOnly?: boolean },
853
+ Array<{
854
+ _creationTime: number;
855
+ _id: string;
856
+ bugReportSeverities: Array<"low" | "medium" | "high" | "critical">;
857
+ createdAt: number;
858
+ feedbackTypes: Array<
859
+ "feature_request" | "change_request" | "general"
860
+ >;
861
+ isActive: boolean;
862
+ memberEmails: Array<string>;
863
+ teamName: string;
864
+ updatedAt: number;
865
+ }>,
866
+ Name
867
+ >;
868
+ remove: FunctionReference<
869
+ "mutation",
870
+ "internal",
871
+ { teamId: string },
872
+ null,
873
+ Name
874
+ >;
875
+ update: FunctionReference<
876
+ "mutation",
877
+ "internal",
878
+ {
879
+ bugReportSeverities?: Array<"low" | "medium" | "high" | "critical">;
880
+ feedbackTypes?: Array<
881
+ "feature_request" | "change_request" | "general"
882
+ >;
883
+ isActive?: boolean;
884
+ memberEmails?: Array<string>;
885
+ teamId: string;
886
+ teamName?: string;
887
+ },
888
+ null,
889
+ Name
890
+ >;
891
+ };
892
+ };