@databutton/firebase-types 1.94.18 → 1.95.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.
|
@@ -208,7 +208,8 @@ export declare enum CreateProjectErrorCode {
|
|
|
208
208
|
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
209
209
|
}
|
|
210
210
|
export declare enum ConfigTypes {
|
|
211
|
-
SSO = "sso"
|
|
211
|
+
SSO = "sso",
|
|
212
|
+
POSTHOG = "posthog"
|
|
212
213
|
}
|
|
213
214
|
export declare enum MigrateToRiffErrorCode {
|
|
214
215
|
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
@@ -227,6 +227,7 @@ export var CreateProjectErrorCode;
|
|
|
227
227
|
export var ConfigTypes;
|
|
228
228
|
(function (ConfigTypes) {
|
|
229
229
|
ConfigTypes["SSO"] = "sso";
|
|
230
|
+
ConfigTypes["POSTHOG"] = "posthog";
|
|
230
231
|
})(ConfigTypes || (ConfigTypes = {}));
|
|
231
232
|
export var MigrateToRiffErrorCode;
|
|
232
233
|
(function (MigrateToRiffErrorCode) {
|
|
@@ -84,7 +84,19 @@ export interface SSOConfig extends AccountConfigBase {
|
|
|
84
84
|
*/
|
|
85
85
|
autoAddNewUsers: boolean;
|
|
86
86
|
}
|
|
87
|
-
export
|
|
87
|
+
export interface PostHogConfig extends AccountConfigBase {
|
|
88
|
+
type: ConfigTypes.POSTHOG;
|
|
89
|
+
/**
|
|
90
|
+
* PostHog project ID for the account
|
|
91
|
+
* This is the project ID from PostHog cloud/self-hosted instance
|
|
92
|
+
*/
|
|
93
|
+
projectId: string;
|
|
94
|
+
/**
|
|
95
|
+
* PostHog host URL (e.g., "https://eu.i.posthog.com")
|
|
96
|
+
*/
|
|
97
|
+
host: string;
|
|
98
|
+
}
|
|
99
|
+
export type AccountConfig = SSOConfig | PostHogConfig;
|
|
88
100
|
export interface SSOConfigLookupEntry {
|
|
89
101
|
lastUpdatedAt: Timestamp;
|
|
90
102
|
organizationId: string;
|
|
@@ -718,7 +730,8 @@ export declare enum ProjectExtension {
|
|
|
718
730
|
FIREBASE_AUTH = "firebase-auth",
|
|
719
731
|
NEON_DATABASE = "neon-database",
|
|
720
732
|
STACK_AUTH = "stack-auth",
|
|
721
|
-
MCP = "mcp"
|
|
733
|
+
MCP = "mcp",
|
|
734
|
+
POSTHOG = "posthog"
|
|
722
735
|
}
|
|
723
736
|
export type ProjectExtensionConfig<T = object> = {
|
|
724
737
|
name: ProjectExtension;
|
|
@@ -784,6 +797,9 @@ export interface FirebaseAuthExtensionConfig {
|
|
|
784
797
|
tosLink: string;
|
|
785
798
|
privacyPolicyLink: string;
|
|
786
799
|
}
|
|
800
|
+
export interface PostHogExtensionConfig {
|
|
801
|
+
projectId: string;
|
|
802
|
+
}
|
|
787
803
|
export type ProjectExtensions = ProjectExtensionConfig[];
|
|
788
804
|
export interface BaseTheme {
|
|
789
805
|
defaultFontFamily: string;
|
|
@@ -1156,7 +1172,7 @@ export interface Project {
|
|
|
1156
1172
|
serviceCreationSucceededAt?: Timestamp;
|
|
1157
1173
|
serviceCreationFailedAt?: Timestamp;
|
|
1158
1174
|
/**
|
|
1159
|
-
* @deprecated
|
|
1175
|
+
* @deprecated No longer in use
|
|
1160
1176
|
*/
|
|
1161
1177
|
supportAccessEnabled?: boolean;
|
|
1162
1178
|
supportAccessEnabledUntil?: Timestamp | null;
|
|
@@ -60,6 +60,7 @@ export var ProjectExtension;
|
|
|
60
60
|
ProjectExtension["NEON_DATABASE"] = "neon-database";
|
|
61
61
|
ProjectExtension["STACK_AUTH"] = "stack-auth";
|
|
62
62
|
ProjectExtension["MCP"] = "mcp";
|
|
63
|
+
ProjectExtension["POSTHOG"] = "posthog";
|
|
63
64
|
})(ProjectExtension || (ProjectExtension = {}));
|
|
64
65
|
/**
|
|
65
66
|
* Taken from AWS types
|