@databutton/firebase-types 1.95.5 → 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.
@@ -1122,6 +1122,115 @@ export interface InstalledIntegration {
1122
1122
  installedBy: PerformedBy;
1123
1123
  lastUpdatedBy: PerformedBy;
1124
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
+ }
1125
1234
  export interface CompanyKnowledgeBase {
1126
1235
  createdBy: PerformedBy;
1127
1236
  lastUpdatedBy: PerformedBy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.95.5",
3
+ "version": "1.95.6",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {