@rawdash/connector-firebase-crashlytics 0.21.1

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.
package/README.md ADDED
@@ -0,0 +1,121 @@
1
+ <!-- This file is generated from connector metadata by scripts/generate-connector-docs.ts. Do not edit by hand. -->
2
+
3
+ # @rawdash/connector-firebase-crashlytics
4
+
5
+ [![npm version](https://img.shields.io/npm/v/@rawdash/connector-firebase-crashlytics)](https://www.npmjs.com/package/@rawdash/connector-firebase-crashlytics)
6
+ [![license](https://img.shields.io/npm/l/@rawdash/connector-firebase-crashlytics)](https://github.com/rawdash/rawdash/blob/main/LICENSE)
7
+
8
+ Track mobile app reliability over time from the Firebase Crashlytics -> BigQuery export: daily crashes, crash-free user rate, and top issues by impact.
9
+
10
+ ## Install
11
+
12
+ ```sh
13
+ npm install @rawdash/connector-firebase-crashlytics
14
+ ```
15
+
16
+ ## Authentication
17
+
18
+ Authenticate against the BigQuery API with a Google service account JSON key. The service account needs the BigQuery Data Viewer role on the Crashlytics export dataset and the BigQuery Job User role on the project that runs the queries.
19
+
20
+ 1. Enable the Firebase Crashlytics -> BigQuery export in the Firebase console (Project Settings -> Integrations -> BigQuery). This is a manual one-time setup per project; data starts flowing into the firebase_crashlytics dataset within a day.
21
+ 2. Create a service account at Google Cloud -> IAM & Admin -> Service Accounts in the same project (or grant an existing one access).
22
+ 3. Grant the service account roles/bigquery.dataViewer on the Crashlytics dataset (so it can read the export tables) and roles/bigquery.jobUser on the project (so it can run query jobs).
23
+ 4. Generate a JSON key for the service account and store its contents as a secret (e.g. FIREBASE_SA_JSON).
24
+ 5. Reference the key from config as serviceAccountJson: secret("FIREBASE_SA_JSON") and set projectId to the Firebase project that owns the export.
25
+
26
+ ## Configuration
27
+
28
+ | Field | Type | Required | Description |
29
+ | -------------------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
30
+ | `serviceAccountJson` | secret | Yes | Contents of the JSON key file for a Google service account with the role required by this connector. Create one at Google Cloud -> IAM & Admin -> Service Accounts and store the JSON as a secret. |
31
+ | `projectId` | string | Yes | Project that hosts the Firebase Crashlytics -> BigQuery export (also the project used to bill the BigQuery queries this connector runs). |
32
+ | `bqDataset` | string | No | BigQuery dataset containing the Crashlytics export tables. Defaults to firebase_crashlytics (the default name Firebase uses when you enable the export). |
33
+ | `bqLocation` | string | No | Region or multi-region of the Crashlytics dataset (e.g. US, EU, us-central1). Defaults to US. |
34
+ | `lookbackDays` | number | No | How many days of history to query on a full sync. Defaults to 90. |
35
+ | `topIssuesLimit` | number | No | How many top issues to retain per sync, ranked by event count over the backfill window. Defaults to 50. |
36
+
37
+ ## Resources
38
+
39
+ - **`crashes_per_day`** _(metric)_ - Daily crash counts and approximate crash-free user rate per (date, application version, platform). One sample per day per app/version/platform combination present in the Crashlytics BigQuery export.
40
+ - Endpoint: `POST /bigquery/v2/projects/{projectId}/queries`
41
+ - Unit: crashes
42
+ - Granularity: daily
43
+ - Dimensions: `app_id`, `platform`, `version`, `crash_free_user_rate`, `crashing_users`
44
+ - Reads from firebase*crashlytics.<bundle>*<platform>\_\* via a wildcard. The trailing 2 days are always refetched on incremental syncs to pick up streamed rows.
45
+ - **`top_issues`** _(entity)_ - Top crash issues by event count over the backfill window, ranked across all apps and versions present in the export. One entity per Crashlytics issue id.
46
+ - Endpoint: `POST /bigquery/v2/projects/{projectId}/queries`
47
+ - topIssuesLimit caps how many issues are retained per sync (default 50). Rows are sorted by descending event count over the backfill window.
48
+ - `issue_id`: Stable Crashlytics issue identifier.
49
+ - `title`: Issue title (most recent value seen for this issue id within the window).
50
+ - `subtitle`: Issue subtitle (most recent value seen for this issue id within the window).
51
+ - `app_id`: Bundle identifier (iOS) or package name (Android) most recently seen for this issue.
52
+ - `platform`: Application platform (ios, android, or unknown).
53
+ - `event_count`: Total crash events attributed to this issue within the backfill window.
54
+ - `user_count`: Distinct users that experienced this issue within the backfill window.
55
+ - `last_seen`: ISO timestamp of the most recent event for this issue within the window.
56
+
57
+ ## Example
58
+
59
+ ```ts
60
+ import {
61
+ defineConfig,
62
+ defineDashboard,
63
+ defineMetric,
64
+ secret,
65
+ } from '@rawdash/core';
66
+
67
+ const crashlytics = {
68
+ name: 'crashlytics',
69
+ connectorId: 'firebase-crashlytics',
70
+ config: {
71
+ serviceAccountJson: secret('FIREBASE_SA_JSON'),
72
+ projectId: 'my-firebase-project',
73
+ bqDataset: 'firebase_crashlytics',
74
+ bqLocation: 'US',
75
+ lookbackDays: 90,
76
+ topIssuesLimit: 50,
77
+ },
78
+ };
79
+
80
+ export default defineConfig({
81
+ connectors: [crashlytics],
82
+ dashboards: {
83
+ mobile: defineDashboard({
84
+ widgets: {
85
+ crashes: {
86
+ kind: 'stat',
87
+ title: 'Crashes (last 7d)',
88
+ metric: defineMetric({
89
+ connector: crashlytics,
90
+ shape: 'metric',
91
+ name: 'crashes_per_day',
92
+ fn: 'sum',
93
+ }),
94
+ },
95
+ },
96
+ }),
97
+ },
98
+ });
99
+ ```
100
+
101
+ ## Rate limits
102
+
103
+ BigQuery jobs.query is rate-limited per project; standard 429 / RESOURCE_EXHAUSTED responses are retried with backoff. Each connector sync runs one query per resource.
104
+
105
+ ## Limitations
106
+
107
+ - Requires the Firebase Crashlytics -> BigQuery export to be configured in the Firebase console; that step is manual and one-time per project, and only days after the configuration date are present in the export.
108
+ - Reads the firebase*crashlytics.<bundle>*<platform> tables via a wildcard; one row in storage covers one app/version/platform tuple per day.
109
+ - Crash-free user rate is approximated from the daily ratio of unique crashing users to total event users observed in the export; matching the Firebase console number exactly requires the full Crashlytics signal, not just the BigQuery export.
110
+ - Each BigQuery query is billed against the configured projectId; over long lookback windows the cost adds up. Prefer once-a-day syncs and reasonable lookbackDays.
111
+ - The Crashlytics BigQuery export is streamed; the trailing 2 days are always refetched on incremental syncs to pick up late-arriving rows.
112
+
113
+ ## Links
114
+
115
+ - [Rawdash docs](https://rawdash.dev/docs/connectors/)
116
+ - [Firebase API docs](https://firebase.google.com/docs/crashlytics/bigquery-export)
117
+ - [GitHub](https://github.com/rawdash/rawdash)
118
+
119
+ ## License
120
+
121
+ Apache-2.0
@@ -0,0 +1,346 @@
1
+ import { BaseConnector, ConnectorContext, SyncOptions, StorageHandle, SyncResult, MetricSample, Entity, ConnectorDoc } from '@rawdash/core';
2
+ import { z } from 'zod';
3
+
4
+ declare const configFields: z.ZodObject<{
5
+ projectId: z.ZodString;
6
+ bqDataset: z.ZodOptional<z.ZodString>;
7
+ bqLocation: z.ZodOptional<z.ZodString>;
8
+ lookbackDays: z.ZodOptional<z.ZodNumber>;
9
+ topIssuesLimit: z.ZodOptional<z.ZodNumber>;
10
+ serviceAccountJson: z.ZodObject<{
11
+ $secret: z.ZodString;
12
+ }, z.core.$strip>;
13
+ }, z.core.$strip>;
14
+ declare const doc: ConnectorDoc;
15
+ interface FirebaseCrashlyticsSettings {
16
+ projectId: string;
17
+ bqDataset?: string;
18
+ bqLocation?: string;
19
+ lookbackDays?: number;
20
+ topIssuesLimit?: number;
21
+ }
22
+ declare const firebaseCrashlyticsCredentials: {
23
+ serviceAccountJson: {
24
+ description: string;
25
+ auth: "required";
26
+ };
27
+ };
28
+ type FirebaseCrashlyticsCredentials = typeof firebaseCrashlyticsCredentials;
29
+ declare const bqQueryResponseSchema: z.ZodObject<{
30
+ jobComplete: z.ZodOptional<z.ZodBoolean>;
31
+ schema: z.ZodOptional<z.ZodObject<{
32
+ fields: z.ZodArray<z.ZodObject<{
33
+ name: z.ZodString;
34
+ type: z.ZodString;
35
+ }, z.core.$strip>>;
36
+ }, z.core.$strip>>;
37
+ rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
38
+ f: z.ZodArray<z.ZodObject<{
39
+ v: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, z.core.$strip>>;
41
+ }, z.core.$strip>>>;
42
+ pageToken: z.ZodOptional<z.ZodString>;
43
+ jobReference: z.ZodOptional<z.ZodObject<{
44
+ projectId: z.ZodString;
45
+ jobId: z.ZodString;
46
+ location: z.ZodOptional<z.ZodString>;
47
+ }, z.core.$strip>>;
48
+ }, z.core.$strip>;
49
+ declare const firebaseCrashlyticsResources: {
50
+ readonly crashes_per_day: {
51
+ readonly shape: "metric";
52
+ readonly description: "Daily crash counts and approximate crash-free user rate per (date, application version, platform). One sample per day per app/version/platform combination present in the Crashlytics BigQuery export.";
53
+ readonly endpoint: "POST /bigquery/v2/projects/{projectId}/queries";
54
+ readonly unit: "crashes";
55
+ readonly granularity: "daily";
56
+ readonly notes: "Reads from firebase_crashlytics.<bundle>_<platform>_* via a wildcard. The trailing 2 days are always refetched on incremental syncs to pick up streamed rows.";
57
+ readonly dimensions: [{
58
+ readonly name: "app_id";
59
+ readonly description: "Bundle identifier (iOS) or package name (Android) of the app the crash was recorded against.";
60
+ }, {
61
+ readonly name: "platform";
62
+ readonly description: "Application platform (ios, android, or unknown).";
63
+ }, {
64
+ readonly name: "version";
65
+ readonly description: "Application display version (e.g. 2.4.1).";
66
+ }, {
67
+ readonly name: "crash_free_user_rate";
68
+ readonly description: "Approximate share of users on this app/version/day that did not see a crash (0..1). null if no user signal was captured.";
69
+ }, {
70
+ readonly name: "crashing_users";
71
+ readonly description: "Count of distinct users that experienced at least one crash on this app/version/day.";
72
+ }];
73
+ readonly responses: {
74
+ readonly oauth_token: z.ZodObject<{
75
+ access_token: z.ZodString;
76
+ expires_in: z.ZodOptional<z.ZodNumber>;
77
+ }, z.core.$strip>;
78
+ readonly crashes_per_day: z.ZodObject<{
79
+ jobComplete: z.ZodOptional<z.ZodBoolean>;
80
+ schema: z.ZodOptional<z.ZodObject<{
81
+ fields: z.ZodArray<z.ZodObject<{
82
+ name: z.ZodString;
83
+ type: z.ZodString;
84
+ }, z.core.$strip>>;
85
+ }, z.core.$strip>>;
86
+ rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
87
+ f: z.ZodArray<z.ZodObject<{
88
+ v: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ }, z.core.$strip>>;
90
+ }, z.core.$strip>>>;
91
+ pageToken: z.ZodOptional<z.ZodString>;
92
+ jobReference: z.ZodOptional<z.ZodObject<{
93
+ projectId: z.ZodString;
94
+ jobId: z.ZodString;
95
+ location: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strip>>;
97
+ }, z.core.$strip>;
98
+ };
99
+ };
100
+ readonly top_issues: {
101
+ readonly shape: "entity";
102
+ readonly description: "Top crash issues by event count over the backfill window, ranked across all apps and versions present in the export. One entity per Crashlytics issue id.";
103
+ readonly endpoint: "POST /bigquery/v2/projects/{projectId}/queries";
104
+ readonly notes: "topIssuesLimit caps how many issues are retained per sync (default 50). Rows are sorted by descending event count over the backfill window.";
105
+ readonly fields: [{
106
+ readonly name: "issue_id";
107
+ readonly description: "Stable Crashlytics issue identifier.";
108
+ }, {
109
+ readonly name: "title";
110
+ readonly description: "Issue title (most recent value seen for this issue id within the window).";
111
+ }, {
112
+ readonly name: "subtitle";
113
+ readonly description: "Issue subtitle (most recent value seen for this issue id within the window).";
114
+ }, {
115
+ readonly name: "app_id";
116
+ readonly description: "Bundle identifier (iOS) or package name (Android) most recently seen for this issue.";
117
+ }, {
118
+ readonly name: "platform";
119
+ readonly description: "Application platform (ios, android, or unknown).";
120
+ }, {
121
+ readonly name: "event_count";
122
+ readonly description: "Total crash events attributed to this issue within the backfill window.";
123
+ }, {
124
+ readonly name: "user_count";
125
+ readonly description: "Distinct users that experienced this issue within the backfill window.";
126
+ }, {
127
+ readonly name: "last_seen";
128
+ readonly description: "ISO timestamp of the most recent event for this issue within the window.";
129
+ }];
130
+ readonly responses: {
131
+ readonly top_issues: z.ZodObject<{
132
+ jobComplete: z.ZodOptional<z.ZodBoolean>;
133
+ schema: z.ZodOptional<z.ZodObject<{
134
+ fields: z.ZodArray<z.ZodObject<{
135
+ name: z.ZodString;
136
+ type: z.ZodString;
137
+ }, z.core.$strip>>;
138
+ }, z.core.$strip>>;
139
+ rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
140
+ f: z.ZodArray<z.ZodObject<{
141
+ v: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ }, z.core.$strip>>;
143
+ }, z.core.$strip>>>;
144
+ pageToken: z.ZodOptional<z.ZodString>;
145
+ jobReference: z.ZodOptional<z.ZodObject<{
146
+ projectId: z.ZodString;
147
+ jobId: z.ZodString;
148
+ location: z.ZodOptional<z.ZodString>;
149
+ }, z.core.$strip>>;
150
+ }, z.core.$strip>;
151
+ };
152
+ };
153
+ };
154
+ declare const id = "firebase-crashlytics";
155
+ declare class FirebaseCrashlyticsConnector extends BaseConnector<FirebaseCrashlyticsSettings, FirebaseCrashlyticsCredentials> {
156
+ static readonly id = "firebase-crashlytics";
157
+ static readonly resources: {
158
+ readonly crashes_per_day: {
159
+ readonly shape: "metric";
160
+ readonly description: "Daily crash counts and approximate crash-free user rate per (date, application version, platform). One sample per day per app/version/platform combination present in the Crashlytics BigQuery export.";
161
+ readonly endpoint: "POST /bigquery/v2/projects/{projectId}/queries";
162
+ readonly unit: "crashes";
163
+ readonly granularity: "daily";
164
+ readonly notes: "Reads from firebase_crashlytics.<bundle>_<platform>_* via a wildcard. The trailing 2 days are always refetched on incremental syncs to pick up streamed rows.";
165
+ readonly dimensions: [{
166
+ readonly name: "app_id";
167
+ readonly description: "Bundle identifier (iOS) or package name (Android) of the app the crash was recorded against.";
168
+ }, {
169
+ readonly name: "platform";
170
+ readonly description: "Application platform (ios, android, or unknown).";
171
+ }, {
172
+ readonly name: "version";
173
+ readonly description: "Application display version (e.g. 2.4.1).";
174
+ }, {
175
+ readonly name: "crash_free_user_rate";
176
+ readonly description: "Approximate share of users on this app/version/day that did not see a crash (0..1). null if no user signal was captured.";
177
+ }, {
178
+ readonly name: "crashing_users";
179
+ readonly description: "Count of distinct users that experienced at least one crash on this app/version/day.";
180
+ }];
181
+ readonly responses: {
182
+ readonly oauth_token: z.ZodObject<{
183
+ access_token: z.ZodString;
184
+ expires_in: z.ZodOptional<z.ZodNumber>;
185
+ }, z.core.$strip>;
186
+ readonly crashes_per_day: z.ZodObject<{
187
+ jobComplete: z.ZodOptional<z.ZodBoolean>;
188
+ schema: z.ZodOptional<z.ZodObject<{
189
+ fields: z.ZodArray<z.ZodObject<{
190
+ name: z.ZodString;
191
+ type: z.ZodString;
192
+ }, z.core.$strip>>;
193
+ }, z.core.$strip>>;
194
+ rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
195
+ f: z.ZodArray<z.ZodObject<{
196
+ v: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
+ }, z.core.$strip>>;
198
+ }, z.core.$strip>>>;
199
+ pageToken: z.ZodOptional<z.ZodString>;
200
+ jobReference: z.ZodOptional<z.ZodObject<{
201
+ projectId: z.ZodString;
202
+ jobId: z.ZodString;
203
+ location: z.ZodOptional<z.ZodString>;
204
+ }, z.core.$strip>>;
205
+ }, z.core.$strip>;
206
+ };
207
+ };
208
+ readonly top_issues: {
209
+ readonly shape: "entity";
210
+ readonly description: "Top crash issues by event count over the backfill window, ranked across all apps and versions present in the export. One entity per Crashlytics issue id.";
211
+ readonly endpoint: "POST /bigquery/v2/projects/{projectId}/queries";
212
+ readonly notes: "topIssuesLimit caps how many issues are retained per sync (default 50). Rows are sorted by descending event count over the backfill window.";
213
+ readonly fields: [{
214
+ readonly name: "issue_id";
215
+ readonly description: "Stable Crashlytics issue identifier.";
216
+ }, {
217
+ readonly name: "title";
218
+ readonly description: "Issue title (most recent value seen for this issue id within the window).";
219
+ }, {
220
+ readonly name: "subtitle";
221
+ readonly description: "Issue subtitle (most recent value seen for this issue id within the window).";
222
+ }, {
223
+ readonly name: "app_id";
224
+ readonly description: "Bundle identifier (iOS) or package name (Android) most recently seen for this issue.";
225
+ }, {
226
+ readonly name: "platform";
227
+ readonly description: "Application platform (ios, android, or unknown).";
228
+ }, {
229
+ readonly name: "event_count";
230
+ readonly description: "Total crash events attributed to this issue within the backfill window.";
231
+ }, {
232
+ readonly name: "user_count";
233
+ readonly description: "Distinct users that experienced this issue within the backfill window.";
234
+ }, {
235
+ readonly name: "last_seen";
236
+ readonly description: "ISO timestamp of the most recent event for this issue within the window.";
237
+ }];
238
+ readonly responses: {
239
+ readonly top_issues: z.ZodObject<{
240
+ jobComplete: z.ZodOptional<z.ZodBoolean>;
241
+ schema: z.ZodOptional<z.ZodObject<{
242
+ fields: z.ZodArray<z.ZodObject<{
243
+ name: z.ZodString;
244
+ type: z.ZodString;
245
+ }, z.core.$strip>>;
246
+ }, z.core.$strip>>;
247
+ rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
248
+ f: z.ZodArray<z.ZodObject<{
249
+ v: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
+ }, z.core.$strip>>;
251
+ }, z.core.$strip>>>;
252
+ pageToken: z.ZodOptional<z.ZodString>;
253
+ jobReference: z.ZodOptional<z.ZodObject<{
254
+ projectId: z.ZodString;
255
+ jobId: z.ZodString;
256
+ location: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strip>>;
258
+ }, z.core.$strip>;
259
+ };
260
+ };
261
+ };
262
+ static readonly schemas: {
263
+ readonly oauth_token: z.ZodObject<{
264
+ access_token: z.ZodString;
265
+ expires_in: z.ZodOptional<z.ZodNumber>;
266
+ }, z.core.$strip>;
267
+ readonly crashes_per_day: z.ZodObject<{
268
+ jobComplete: z.ZodOptional<z.ZodBoolean>;
269
+ schema: z.ZodOptional<z.ZodObject<{
270
+ fields: z.ZodArray<z.ZodObject<{
271
+ name: z.ZodString;
272
+ type: z.ZodString;
273
+ }, z.core.$strip>>;
274
+ }, z.core.$strip>>;
275
+ rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
276
+ f: z.ZodArray<z.ZodObject<{
277
+ v: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
+ }, z.core.$strip>>;
279
+ }, z.core.$strip>>>;
280
+ pageToken: z.ZodOptional<z.ZodString>;
281
+ jobReference: z.ZodOptional<z.ZodObject<{
282
+ projectId: z.ZodString;
283
+ jobId: z.ZodString;
284
+ location: z.ZodOptional<z.ZodString>;
285
+ }, z.core.$strip>>;
286
+ }, z.core.$strip>;
287
+ } & {
288
+ readonly top_issues: z.ZodObject<{
289
+ jobComplete: z.ZodOptional<z.ZodBoolean>;
290
+ schema: z.ZodOptional<z.ZodObject<{
291
+ fields: z.ZodArray<z.ZodObject<{
292
+ name: z.ZodString;
293
+ type: z.ZodString;
294
+ }, z.core.$strip>>;
295
+ }, z.core.$strip>>;
296
+ rows: z.ZodOptional<z.ZodArray<z.ZodObject<{
297
+ f: z.ZodArray<z.ZodObject<{
298
+ v: z.ZodOptional<z.ZodNullable<z.ZodString>>;
299
+ }, z.core.$strip>>;
300
+ }, z.core.$strip>>>;
301
+ pageToken: z.ZodOptional<z.ZodString>;
302
+ jobReference: z.ZodOptional<z.ZodObject<{
303
+ projectId: z.ZodString;
304
+ jobId: z.ZodString;
305
+ location: z.ZodOptional<z.ZodString>;
306
+ }, z.core.$strip>>;
307
+ }, z.core.$strip>;
308
+ } & Readonly<Record<string, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
309
+ static create(input: unknown, ctx?: ConnectorContext): FirebaseCrashlyticsConnector;
310
+ readonly id = "firebase-crashlytics";
311
+ readonly credentials: {
312
+ serviceAccountJson: {
313
+ description: string;
314
+ auth: "required";
315
+ };
316
+ };
317
+ private cachedToken;
318
+ private getAccessToken;
319
+ private runQuery;
320
+ private isResourceActive;
321
+ sync(options: SyncOptions, storage: StorageHandle, signal?: AbortSignal): Promise<SyncResult>;
322
+ private collectSamples;
323
+ private collectIssues;
324
+ }
325
+ interface CrashlyticsWindow {
326
+ startDate: string;
327
+ endDate: string;
328
+ }
329
+ declare function buildCrashesPerDaySql(args: {
330
+ projectId: string;
331
+ bqDataset: string;
332
+ startDate: string;
333
+ endDate: string;
334
+ }): string;
335
+ declare function buildTopIssuesSql(args: {
336
+ projectId: string;
337
+ bqDataset: string;
338
+ startDate: string;
339
+ endDate: string;
340
+ limit: number;
341
+ }): string;
342
+ declare function getCrashlyticsWindow(options: SyncOptions, lookbackDays: number, now?: number): CrashlyticsWindow;
343
+ declare function buildCrashesSamplesFromBqResponse(response: z.infer<typeof bqQueryResponseSchema>): MetricSample[];
344
+ declare function buildTopIssuesEntitiesFromBqResponse(response: z.infer<typeof bqQueryResponseSchema>): Entity[];
345
+
346
+ export { FirebaseCrashlyticsConnector, type FirebaseCrashlyticsSettings, buildCrashesPerDaySql, buildCrashesSamplesFromBqResponse, buildTopIssuesEntitiesFromBqResponse, buildTopIssuesSql, configFields, FirebaseCrashlyticsConnector as default, doc, getCrashlyticsWindow, id, firebaseCrashlyticsResources as resources };