@databutton/firebase-types 1.95.4 → 1.95.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.
@@ -90,11 +90,15 @@ export interface PostHogConfig extends AccountConfigBase {
90
90
  * PostHog project ID for the account
91
91
  * This is the project ID from PostHog cloud/self-hosted instance
92
92
  */
93
- projectId: string;
93
+ posthogProjectId: string;
94
94
  /**
95
95
  * PostHog host URL (e.g., "https://eu.i.posthog.com")
96
96
  */
97
97
  host: string;
98
+ /**
99
+ * PostHog API token for the account
100
+ */
101
+ posthogKey: string;
98
102
  }
99
103
  export type ProjectPermissionName = "deploy";
100
104
  export interface Permission {
@@ -842,7 +846,8 @@ export interface FirebaseAuthExtensionConfig {
842
846
  privacyPolicyLink: string;
843
847
  }
844
848
  export interface PostHogExtensionConfig {
845
- projectId: string;
849
+ posthogKey: string;
850
+ apiPath: string;
846
851
  }
847
852
  export type ProjectExtensions = ProjectExtensionConfig[];
848
853
  export interface BaseTheme {
@@ -1117,6 +1122,115 @@ export interface InstalledIntegration {
1117
1122
  installedBy: PerformedBy;
1118
1123
  lastUpdatedBy: PerformedBy;
1119
1124
  }
1125
+ /**
1126
+ * Summary information for an integration template
1127
+ * Stored at: /integration-templates/{label}
1128
+ */
1129
+ export interface IntegrationTemplateSummary {
1130
+ displayName: string;
1131
+ description: string;
1132
+ logoUrl?: string;
1133
+ latestVersion: string;
1134
+ state: "active" | "early-access" | "dev" | "request" | "inactive";
1135
+ managedBy: "riff" | "riff-custom" | "community";
1136
+ apiVersion?: IntegrationApiVersion;
1137
+ enabledForAccountIds?: string[];
1138
+ aliases?: {
1139
+ name: string;
1140
+ displayName?: string;
1141
+ logoUrl?: string;
1142
+ description?: string;
1143
+ scopeGroups: string[];
1144
+ }[];
1145
+ createdBy: PerformedBy;
1146
+ lastUpdatedBy: PerformedBy;
1147
+ }
1148
+ /**
1149
+ * Full integration template version data
1150
+ * Stored at: /integration-templates/{label}/versions/{version_id}
1151
+ */
1152
+ export interface IntegrationTemplateVersion {
1153
+ version: string;
1154
+ createdBy: PerformedBy;
1155
+ createdAt: Timestamp;
1156
+ provider: {
1157
+ name: string;
1158
+ };
1159
+ optionalScopes?: IntegrationScope[];
1160
+ authStrategy: "riff-oauth" | "oauth" | "api-key" | "custom";
1161
+ requiredCredentials: {
1162
+ key: string;
1163
+ }[];
1164
+ guide: string | null;
1165
+ documentationUrls: {
1166
+ type: "quickstart" | "openapi" | "docs";
1167
+ url: string;
1168
+ }[];
1169
+ packages: IntegrationPackages;
1170
+ }
1171
+ /**
1172
+ * Installed integration (account or project level)
1173
+ * Stored at:
1174
+ * - /accounts/{account_id}/integrations/{integration_label}
1175
+ * - /projects/{project_id}/integrations/{integration_label}
1176
+ *
1177
+ * This document is lightweight and references the template for most data.
1178
+ * Only instance-specific data is stored here.
1179
+ */
1180
+ export interface InstalledIntegrationV2 {
1181
+ installedBy: PerformedBy;
1182
+ lastUpdatedBy: PerformedBy;
1183
+ templateId: string;
1184
+ templateVersion: string;
1185
+ displayName: string;
1186
+ enabled: boolean;
1187
+ status?: "connecting" | "connected" | "needs_reconnect";
1188
+ metadata?: Record<string, string>;
1189
+ credentials: {
1190
+ key: string;
1191
+ ref: string;
1192
+ }[];
1193
+ installedScopes?: IntegrationScope[];
1194
+ }
1195
+ /**
1196
+ * Integration learnings (account or project level)
1197
+ * Stored at:
1198
+ * - /accounts/{account_id}/integrations/{integration_label}/learnings/{learning_id}
1199
+ * - /projects/{project_id}/integrations/{integration_label}/learnings/{learning_id}
1200
+ */
1201
+ export interface IntegrationLearning {
1202
+ content: string;
1203
+ createdBy: PerformedBy;
1204
+ createdAt: Timestamp;
1205
+ }
1206
+ /**
1207
+ * Account integration usage tracking
1208
+ * Stored at: /accounts/{account_id}/integrations/{integration_label}/usage/{project_id}
1209
+ */
1210
+ export interface AccountIntegrationUsage {
1211
+ projectId: string;
1212
+ projectName: string;
1213
+ installedAt: Timestamp;
1214
+ installedBy: PerformedBy;
1215
+ lastUsedAt?: Timestamp;
1216
+ }
1217
+ /**
1218
+ * Integration mount point that links to either account or project integration
1219
+ * Stored at: /projects/{project_id}/installed-integrations/{integration_label}
1220
+ *
1221
+ * This is the mount point that determines how the integration is accessed
1222
+ * and where it's actually stored (account vs project level)
1223
+ */
1224
+ export interface InstalledIntegrationMount {
1225
+ parent: string;
1226
+ templateId: string;
1227
+ templateVersion: string;
1228
+ label: string;
1229
+ envMapping?: Record<string, string>;
1230
+ installedBy: PerformedBy;
1231
+ installedAt: Timestamp;
1232
+ lastUpdatedBy: PerformedBy;
1233
+ }
1120
1234
  export interface CompanyKnowledgeBase {
1121
1235
  createdBy: PerformedBy;
1122
1236
  lastUpdatedBy: PerformedBy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.95.4",
3
+ "version": "1.95.6",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {