@databutton/firebase-types 1.32.4 → 1.32.6

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.
@@ -639,4 +639,38 @@ export type AdminRequirementsConfig = {
639
639
  currentRef: string;
640
640
  currentRequirements: Requirements;
641
641
  };
642
+ export interface Thread {
643
+ startedBy: PerformedBy;
644
+ context: ThreadContext;
645
+ description: string | null;
646
+ }
647
+ export interface ContextBase {
648
+ contextKey: string;
649
+ }
650
+ export interface ComponentContext extends ContextBase {
651
+ type: "component";
652
+ componentId: string;
653
+ componentType: "job" | "view" | "page" | "module";
654
+ }
655
+ export interface ProjectContext extends ContextBase {
656
+ type: "project";
657
+ }
658
+ export type ThreadContext = ComponentContext | ProjectContext;
659
+ export interface Message {
660
+ sentBy: PerformedBy;
661
+ displayName: string;
662
+ content: string;
663
+ visibleToUser: boolean;
664
+ suggestedActions: SuggestedAction[];
665
+ }
666
+ export type SuggestedAction = {
667
+ type: "install-package";
668
+ packages: string[];
669
+ } | {
670
+ type: "insert-code";
671
+ code: string;
672
+ } | {
673
+ type: "compare-code";
674
+ code: string;
675
+ };
642
676
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.32.4",
3
+ "version": "1.32.6",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "engines": {