@databutton/firebase-types 1.95.5 → 1.95.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.
@@ -86,6 +86,7 @@ export declare enum CollectionName {
86
86
  TASKS = "tasks",
87
87
  TOKEN_USAGE_ENTRIES = "entries",
88
88
  COMPUTE_HOUR_USAGE = "compute-hour-usage",
89
+ NEON_USAGE = "neon-usage",
89
90
  CREDIT_TRANSACTIONS = "credit-transactions",
90
91
  WRITE_ATTEMPTS = "write-attempts",
91
92
  LEGACY_UNUSED_JOBS = "jobs",
@@ -87,6 +87,7 @@ export var CollectionName;
87
87
  CollectionName["TASKS"] = "tasks";
88
88
  CollectionName["TOKEN_USAGE_ENTRIES"] = "entries";
89
89
  CollectionName["COMPUTE_HOUR_USAGE"] = "compute-hour-usage";
90
+ CollectionName["NEON_USAGE"] = "neon-usage";
90
91
  CollectionName["CREDIT_TRANSACTIONS"] = "credit-transactions";
91
92
  CollectionName["WRITE_ATTEMPTS"] = "write-attempts";
92
93
  //
@@ -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;
@@ -1894,6 +2003,16 @@ export interface ComputeHourUsageRecord {
1894
2003
  secondsUsedForHour: number;
1895
2004
  appbutlerId: string;
1896
2005
  }
2006
+ export interface NeonUsageRecord {
2007
+ projectId: string;
2008
+ neonProjectId: string;
2009
+ branchId: string;
2010
+ branchType: "dev" | "prod";
2011
+ recordedAt: Timestamp;
2012
+ computeTimeSeconds: number;
2013
+ dataStorageBytesHour: number;
2014
+ activeTimeSeconds: number;
2015
+ }
1897
2016
  export interface PatchAttemptStrategy {
1898
2017
  tag: string;
1899
2018
  maxAttempts: number;
@@ -2037,8 +2156,8 @@ export interface Commit {
2037
2156
  parentIds: string[];
2038
2157
  versionRefs: string[];
2039
2158
  commitRequestId?: string;
2040
- taskId?: string | null;
2041
- userId?: string | null;
2159
+ taskId?: string;
2160
+ userId?: string;
2042
2161
  }
2043
2162
  export interface Branch {
2044
2163
  createdBy: PerformedBy;
@@ -2086,7 +2205,7 @@ export interface NeonConfig {
2086
2205
  export interface Database<P, C> {
2087
2206
  createdBy: PerformedBy;
2088
2207
  updatedBy: PerformedBy;
2089
- markedForDeletionBy: Date | null;
2208
+ markedForDeletionAt: Timestamp | null;
2090
2209
  provider: P;
2091
2210
  config: C;
2092
2211
  }
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.7",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {