@devpad/api 2.2.17 → 2.3.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +643 -7
  2. package/dist/index.js +322 -239
  3. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { G as PostListParams, T as PostsResponse, x as Post, D as PostCreate, Q as PostUpdate, Z as VersionInfo, y as PostContent, C as Category, k as CategoryCreate, A as AccessKey } from './types.d-BhWQru2j.js';
2
2
  import { ai as Profile, u as CreateProfileInput, aw as UpdateProfileInput, aj as ProfileFilter, c as AddFilterInput, aq as Timeline, A as Account, ae as PlatformSettings } from './types.d-ELBwaLBA.js';
3
+ import { z } from 'zod';
3
4
  import { a as ApiKey, l as Project, Z as UpsertProject, G as GetConfigResult, S as SaveConfigRequest, B as TodoUpdate, H as HistoryAction, M as Milestone, d as Goal, z as TaskWithDetails, $ as UpsertTodo, _ as UpsertTag, v as TagWithTypedColor, D as DashboardResponse, j as PipelineRun, k as PipelineStageEvent, g as PipelineGrant, i as PipelinePackage, P as PipelineAnalysisTemplate, h as PipelineOidcTrust } from './types.d-DUtDEHYM.js';
4
5
  export { m as ProjectConfig, w as Task } from './types.d-DUtDEHYM.js';
5
6
  import { Result } from '@f0rbit/corpus';
6
7
  export { Result, err, ok } from '@f0rbit/corpus';
7
8
  import { S as StageEventKind } from './schema.d-BeVFWenc.js';
8
- import { z } from 'zod';
9
9
  import 'drizzle-orm';
10
10
  import './media.d-R87HGuRp.js';
11
11
  import 'drizzle-orm/sqlite-core';
@@ -34,6 +34,642 @@ type RequestHistoryEntry = {
34
34
  error?: string;
35
35
  };
36
36
 
37
+ /**
38
+ * Response shapes for pulse's read API (`GET /summary`, `/errors`, `/logs`,
39
+ * `/latency`, `/events` under `/v1/pulse/*`). Source of truth is pulse's own
40
+ * `packages/core/src/query.ts` — these schemas mirror it so devpad validates
41
+ * at the network boundary instead of trusting `unknown`. Keep in sync by hand;
42
+ * pulse has no published schema package to import from.
43
+ */
44
+ declare const PulseEventRowSchema: z.ZodObject<{
45
+ id: z.ZodNumber;
46
+ project_id: z.ZodString;
47
+ name: z.ZodString;
48
+ ts: z.ZodNumber;
49
+ session_id: z.ZodString;
50
+ url: z.ZodNullable<z.ZodString>;
51
+ referrer: z.ZodNullable<z.ZodString>;
52
+ user_agent: z.ZodNullable<z.ZodString>;
53
+ country: z.ZodNullable<z.ZodString>;
54
+ level: z.ZodNullable<z.ZodString>;
55
+ release: z.ZodNullable<z.ZodString>;
56
+ error_fingerprint: z.ZodNullable<z.ZodString>;
57
+ properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ id: number;
60
+ name: string;
61
+ project_id: string;
62
+ url: string | null;
63
+ ts: number;
64
+ session_id: string;
65
+ referrer: string | null;
66
+ user_agent: string | null;
67
+ country: string | null;
68
+ level: string | null;
69
+ release: string | null;
70
+ error_fingerprint: string | null;
71
+ properties: Record<string, unknown> | null;
72
+ }, {
73
+ id: number;
74
+ name: string;
75
+ project_id: string;
76
+ url: string | null;
77
+ ts: number;
78
+ session_id: string;
79
+ referrer: string | null;
80
+ user_agent: string | null;
81
+ country: string | null;
82
+ level: string | null;
83
+ release: string | null;
84
+ error_fingerprint: string | null;
85
+ properties: Record<string, unknown> | null;
86
+ }>;
87
+ declare const PulseSummaryByDaySchema: z.ZodObject<{
88
+ date: z.ZodString;
89
+ pageviews: z.ZodNumber;
90
+ sessions: z.ZodNumber;
91
+ errors: z.ZodNumber;
92
+ }, "strip", z.ZodTypeAny, {
93
+ date: string;
94
+ sessions: number;
95
+ pageviews: number;
96
+ errors: number;
97
+ }, {
98
+ date: string;
99
+ sessions: number;
100
+ pageviews: number;
101
+ errors: number;
102
+ }>;
103
+ declare const PulseSummarySchema: z.ZodObject<{
104
+ pageviews: z.ZodNumber;
105
+ sessions: z.ZodNumber;
106
+ events_total: z.ZodNumber;
107
+ errors: z.ZodNumber;
108
+ request_count: z.ZodNumber;
109
+ p95_latency_ms: z.ZodNullable<z.ZodNumber>;
110
+ by_day: z.ZodArray<z.ZodObject<{
111
+ date: z.ZodString;
112
+ pageviews: z.ZodNumber;
113
+ sessions: z.ZodNumber;
114
+ errors: z.ZodNumber;
115
+ }, "strip", z.ZodTypeAny, {
116
+ date: string;
117
+ sessions: number;
118
+ pageviews: number;
119
+ errors: number;
120
+ }, {
121
+ date: string;
122
+ sessions: number;
123
+ pageviews: number;
124
+ errors: number;
125
+ }>, "many">;
126
+ }, "strip", z.ZodTypeAny, {
127
+ sessions: number;
128
+ pageviews: number;
129
+ errors: number;
130
+ events_total: number;
131
+ request_count: number;
132
+ p95_latency_ms: number | null;
133
+ by_day: {
134
+ date: string;
135
+ sessions: number;
136
+ pageviews: number;
137
+ errors: number;
138
+ }[];
139
+ }, {
140
+ sessions: number;
141
+ pageviews: number;
142
+ errors: number;
143
+ events_total: number;
144
+ request_count: number;
145
+ p95_latency_ms: number | null;
146
+ by_day: {
147
+ date: string;
148
+ sessions: number;
149
+ pageviews: number;
150
+ errors: number;
151
+ }[];
152
+ }>;
153
+ declare const PulseEventsPageSchema: z.ZodObject<{
154
+ events: z.ZodArray<z.ZodObject<{
155
+ id: z.ZodNumber;
156
+ project_id: z.ZodString;
157
+ name: z.ZodString;
158
+ ts: z.ZodNumber;
159
+ session_id: z.ZodString;
160
+ url: z.ZodNullable<z.ZodString>;
161
+ referrer: z.ZodNullable<z.ZodString>;
162
+ user_agent: z.ZodNullable<z.ZodString>;
163
+ country: z.ZodNullable<z.ZodString>;
164
+ level: z.ZodNullable<z.ZodString>;
165
+ release: z.ZodNullable<z.ZodString>;
166
+ error_fingerprint: z.ZodNullable<z.ZodString>;
167
+ properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ id: number;
170
+ name: string;
171
+ project_id: string;
172
+ url: string | null;
173
+ ts: number;
174
+ session_id: string;
175
+ referrer: string | null;
176
+ user_agent: string | null;
177
+ country: string | null;
178
+ level: string | null;
179
+ release: string | null;
180
+ error_fingerprint: string | null;
181
+ properties: Record<string, unknown> | null;
182
+ }, {
183
+ id: number;
184
+ name: string;
185
+ project_id: string;
186
+ url: string | null;
187
+ ts: number;
188
+ session_id: string;
189
+ referrer: string | null;
190
+ user_agent: string | null;
191
+ country: string | null;
192
+ level: string | null;
193
+ release: string | null;
194
+ error_fingerprint: string | null;
195
+ properties: Record<string, unknown> | null;
196
+ }>, "many">;
197
+ next_cursor: z.ZodOptional<z.ZodString>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ events: {
200
+ id: number;
201
+ name: string;
202
+ project_id: string;
203
+ url: string | null;
204
+ ts: number;
205
+ session_id: string;
206
+ referrer: string | null;
207
+ user_agent: string | null;
208
+ country: string | null;
209
+ level: string | null;
210
+ release: string | null;
211
+ error_fingerprint: string | null;
212
+ properties: Record<string, unknown> | null;
213
+ }[];
214
+ next_cursor?: string | undefined;
215
+ }, {
216
+ events: {
217
+ id: number;
218
+ name: string;
219
+ project_id: string;
220
+ url: string | null;
221
+ ts: number;
222
+ session_id: string;
223
+ referrer: string | null;
224
+ user_agent: string | null;
225
+ country: string | null;
226
+ level: string | null;
227
+ release: string | null;
228
+ error_fingerprint: string | null;
229
+ properties: Record<string, unknown> | null;
230
+ }[];
231
+ next_cursor?: string | undefined;
232
+ }>;
233
+ declare const PulseErrorIssueSchema: z.ZodObject<{
234
+ fingerprint: z.ZodString;
235
+ count: z.ZodNumber;
236
+ first_seen: z.ZodNumber;
237
+ last_seen: z.ZodNumber;
238
+ sample: z.ZodObject<{
239
+ id: z.ZodNumber;
240
+ project_id: z.ZodString;
241
+ name: z.ZodString;
242
+ ts: z.ZodNumber;
243
+ session_id: z.ZodString;
244
+ url: z.ZodNullable<z.ZodString>;
245
+ referrer: z.ZodNullable<z.ZodString>;
246
+ user_agent: z.ZodNullable<z.ZodString>;
247
+ country: z.ZodNullable<z.ZodString>;
248
+ level: z.ZodNullable<z.ZodString>;
249
+ release: z.ZodNullable<z.ZodString>;
250
+ error_fingerprint: z.ZodNullable<z.ZodString>;
251
+ properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ id: number;
254
+ name: string;
255
+ project_id: string;
256
+ url: string | null;
257
+ ts: number;
258
+ session_id: string;
259
+ referrer: string | null;
260
+ user_agent: string | null;
261
+ country: string | null;
262
+ level: string | null;
263
+ release: string | null;
264
+ error_fingerprint: string | null;
265
+ properties: Record<string, unknown> | null;
266
+ }, {
267
+ id: number;
268
+ name: string;
269
+ project_id: string;
270
+ url: string | null;
271
+ ts: number;
272
+ session_id: string;
273
+ referrer: string | null;
274
+ user_agent: string | null;
275
+ country: string | null;
276
+ level: string | null;
277
+ release: string | null;
278
+ error_fingerprint: string | null;
279
+ properties: Record<string, unknown> | null;
280
+ }>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ fingerprint: string;
283
+ count: number;
284
+ first_seen: number;
285
+ last_seen: number;
286
+ sample: {
287
+ id: number;
288
+ name: string;
289
+ project_id: string;
290
+ url: string | null;
291
+ ts: number;
292
+ session_id: string;
293
+ referrer: string | null;
294
+ user_agent: string | null;
295
+ country: string | null;
296
+ level: string | null;
297
+ release: string | null;
298
+ error_fingerprint: string | null;
299
+ properties: Record<string, unknown> | null;
300
+ };
301
+ }, {
302
+ fingerprint: string;
303
+ count: number;
304
+ first_seen: number;
305
+ last_seen: number;
306
+ sample: {
307
+ id: number;
308
+ name: string;
309
+ project_id: string;
310
+ url: string | null;
311
+ ts: number;
312
+ session_id: string;
313
+ referrer: string | null;
314
+ user_agent: string | null;
315
+ country: string | null;
316
+ level: string | null;
317
+ release: string | null;
318
+ error_fingerprint: string | null;
319
+ properties: Record<string, unknown> | null;
320
+ };
321
+ }>;
322
+ declare const PulseErrorsResultSchema: z.ZodUnion<[z.ZodObject<{
323
+ issues: z.ZodArray<z.ZodObject<{
324
+ fingerprint: z.ZodString;
325
+ count: z.ZodNumber;
326
+ first_seen: z.ZodNumber;
327
+ last_seen: z.ZodNumber;
328
+ sample: z.ZodObject<{
329
+ id: z.ZodNumber;
330
+ project_id: z.ZodString;
331
+ name: z.ZodString;
332
+ ts: z.ZodNumber;
333
+ session_id: z.ZodString;
334
+ url: z.ZodNullable<z.ZodString>;
335
+ referrer: z.ZodNullable<z.ZodString>;
336
+ user_agent: z.ZodNullable<z.ZodString>;
337
+ country: z.ZodNullable<z.ZodString>;
338
+ level: z.ZodNullable<z.ZodString>;
339
+ release: z.ZodNullable<z.ZodString>;
340
+ error_fingerprint: z.ZodNullable<z.ZodString>;
341
+ properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
342
+ }, "strip", z.ZodTypeAny, {
343
+ id: number;
344
+ name: string;
345
+ project_id: string;
346
+ url: string | null;
347
+ ts: number;
348
+ session_id: string;
349
+ referrer: string | null;
350
+ user_agent: string | null;
351
+ country: string | null;
352
+ level: string | null;
353
+ release: string | null;
354
+ error_fingerprint: string | null;
355
+ properties: Record<string, unknown> | null;
356
+ }, {
357
+ id: number;
358
+ name: string;
359
+ project_id: string;
360
+ url: string | null;
361
+ ts: number;
362
+ session_id: string;
363
+ referrer: string | null;
364
+ user_agent: string | null;
365
+ country: string | null;
366
+ level: string | null;
367
+ release: string | null;
368
+ error_fingerprint: string | null;
369
+ properties: Record<string, unknown> | null;
370
+ }>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ fingerprint: string;
373
+ count: number;
374
+ first_seen: number;
375
+ last_seen: number;
376
+ sample: {
377
+ id: number;
378
+ name: string;
379
+ project_id: string;
380
+ url: string | null;
381
+ ts: number;
382
+ session_id: string;
383
+ referrer: string | null;
384
+ user_agent: string | null;
385
+ country: string | null;
386
+ level: string | null;
387
+ release: string | null;
388
+ error_fingerprint: string | null;
389
+ properties: Record<string, unknown> | null;
390
+ };
391
+ }, {
392
+ fingerprint: string;
393
+ count: number;
394
+ first_seen: number;
395
+ last_seen: number;
396
+ sample: {
397
+ id: number;
398
+ name: string;
399
+ project_id: string;
400
+ url: string | null;
401
+ ts: number;
402
+ session_id: string;
403
+ referrer: string | null;
404
+ user_agent: string | null;
405
+ country: string | null;
406
+ level: string | null;
407
+ release: string | null;
408
+ error_fingerprint: string | null;
409
+ properties: Record<string, unknown> | null;
410
+ };
411
+ }>, "many">;
412
+ }, "strip", z.ZodTypeAny, {
413
+ issues: {
414
+ fingerprint: string;
415
+ count: number;
416
+ first_seen: number;
417
+ last_seen: number;
418
+ sample: {
419
+ id: number;
420
+ name: string;
421
+ project_id: string;
422
+ url: string | null;
423
+ ts: number;
424
+ session_id: string;
425
+ referrer: string | null;
426
+ user_agent: string | null;
427
+ country: string | null;
428
+ level: string | null;
429
+ release: string | null;
430
+ error_fingerprint: string | null;
431
+ properties: Record<string, unknown> | null;
432
+ };
433
+ }[];
434
+ }, {
435
+ issues: {
436
+ fingerprint: string;
437
+ count: number;
438
+ first_seen: number;
439
+ last_seen: number;
440
+ sample: {
441
+ id: number;
442
+ name: string;
443
+ project_id: string;
444
+ url: string | null;
445
+ ts: number;
446
+ session_id: string;
447
+ referrer: string | null;
448
+ user_agent: string | null;
449
+ country: string | null;
450
+ level: string | null;
451
+ release: string | null;
452
+ error_fingerprint: string | null;
453
+ properties: Record<string, unknown> | null;
454
+ };
455
+ }[];
456
+ }>, z.ZodObject<{
457
+ errors: z.ZodArray<z.ZodObject<{
458
+ id: z.ZodNumber;
459
+ project_id: z.ZodString;
460
+ name: z.ZodString;
461
+ ts: z.ZodNumber;
462
+ session_id: z.ZodString;
463
+ url: z.ZodNullable<z.ZodString>;
464
+ referrer: z.ZodNullable<z.ZodString>;
465
+ user_agent: z.ZodNullable<z.ZodString>;
466
+ country: z.ZodNullable<z.ZodString>;
467
+ level: z.ZodNullable<z.ZodString>;
468
+ release: z.ZodNullable<z.ZodString>;
469
+ error_fingerprint: z.ZodNullable<z.ZodString>;
470
+ properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ id: number;
473
+ name: string;
474
+ project_id: string;
475
+ url: string | null;
476
+ ts: number;
477
+ session_id: string;
478
+ referrer: string | null;
479
+ user_agent: string | null;
480
+ country: string | null;
481
+ level: string | null;
482
+ release: string | null;
483
+ error_fingerprint: string | null;
484
+ properties: Record<string, unknown> | null;
485
+ }, {
486
+ id: number;
487
+ name: string;
488
+ project_id: string;
489
+ url: string | null;
490
+ ts: number;
491
+ session_id: string;
492
+ referrer: string | null;
493
+ user_agent: string | null;
494
+ country: string | null;
495
+ level: string | null;
496
+ release: string | null;
497
+ error_fingerprint: string | null;
498
+ properties: Record<string, unknown> | null;
499
+ }>, "many">;
500
+ }, "strip", z.ZodTypeAny, {
501
+ errors: {
502
+ id: number;
503
+ name: string;
504
+ project_id: string;
505
+ url: string | null;
506
+ ts: number;
507
+ session_id: string;
508
+ referrer: string | null;
509
+ user_agent: string | null;
510
+ country: string | null;
511
+ level: string | null;
512
+ release: string | null;
513
+ error_fingerprint: string | null;
514
+ properties: Record<string, unknown> | null;
515
+ }[];
516
+ }, {
517
+ errors: {
518
+ id: number;
519
+ name: string;
520
+ project_id: string;
521
+ url: string | null;
522
+ ts: number;
523
+ session_id: string;
524
+ referrer: string | null;
525
+ user_agent: string | null;
526
+ country: string | null;
527
+ level: string | null;
528
+ release: string | null;
529
+ error_fingerprint: string | null;
530
+ properties: Record<string, unknown> | null;
531
+ }[];
532
+ }>]>;
533
+ declare const PulseLogsResultSchema: z.ZodObject<{
534
+ logs: z.ZodArray<z.ZodObject<{
535
+ id: z.ZodNumber;
536
+ project_id: z.ZodString;
537
+ name: z.ZodString;
538
+ ts: z.ZodNumber;
539
+ session_id: z.ZodString;
540
+ url: z.ZodNullable<z.ZodString>;
541
+ referrer: z.ZodNullable<z.ZodString>;
542
+ user_agent: z.ZodNullable<z.ZodString>;
543
+ country: z.ZodNullable<z.ZodString>;
544
+ level: z.ZodNullable<z.ZodString>;
545
+ release: z.ZodNullable<z.ZodString>;
546
+ error_fingerprint: z.ZodNullable<z.ZodString>;
547
+ properties: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ id: number;
550
+ name: string;
551
+ project_id: string;
552
+ url: string | null;
553
+ ts: number;
554
+ session_id: string;
555
+ referrer: string | null;
556
+ user_agent: string | null;
557
+ country: string | null;
558
+ level: string | null;
559
+ release: string | null;
560
+ error_fingerprint: string | null;
561
+ properties: Record<string, unknown> | null;
562
+ }, {
563
+ id: number;
564
+ name: string;
565
+ project_id: string;
566
+ url: string | null;
567
+ ts: number;
568
+ session_id: string;
569
+ referrer: string | null;
570
+ user_agent: string | null;
571
+ country: string | null;
572
+ level: string | null;
573
+ release: string | null;
574
+ error_fingerprint: string | null;
575
+ properties: Record<string, unknown> | null;
576
+ }>, "many">;
577
+ }, "strip", z.ZodTypeAny, {
578
+ logs: {
579
+ id: number;
580
+ name: string;
581
+ project_id: string;
582
+ url: string | null;
583
+ ts: number;
584
+ session_id: string;
585
+ referrer: string | null;
586
+ user_agent: string | null;
587
+ country: string | null;
588
+ level: string | null;
589
+ release: string | null;
590
+ error_fingerprint: string | null;
591
+ properties: Record<string, unknown> | null;
592
+ }[];
593
+ }, {
594
+ logs: {
595
+ id: number;
596
+ name: string;
597
+ project_id: string;
598
+ url: string | null;
599
+ ts: number;
600
+ session_id: string;
601
+ referrer: string | null;
602
+ user_agent: string | null;
603
+ country: string | null;
604
+ level: string | null;
605
+ release: string | null;
606
+ error_fingerprint: string | null;
607
+ properties: Record<string, unknown> | null;
608
+ }[];
609
+ }>;
610
+ declare const PulseLatencyByMinuteSchema: z.ZodObject<{
611
+ ts: z.ZodNumber;
612
+ p50: z.ZodNullable<z.ZodNumber>;
613
+ p95: z.ZodNullable<z.ZodNumber>;
614
+ p99: z.ZodNullable<z.ZodNumber>;
615
+ }, "strip", z.ZodTypeAny, {
616
+ ts: number;
617
+ p50: number | null;
618
+ p95: number | null;
619
+ p99: number | null;
620
+ }, {
621
+ ts: number;
622
+ p50: number | null;
623
+ p95: number | null;
624
+ p99: number | null;
625
+ }>;
626
+ declare const PulseLatencyResultSchema: z.ZodObject<{
627
+ percentiles: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>;
628
+ by_minute: z.ZodArray<z.ZodObject<{
629
+ ts: z.ZodNumber;
630
+ p50: z.ZodNullable<z.ZodNumber>;
631
+ p95: z.ZodNullable<z.ZodNumber>;
632
+ p99: z.ZodNullable<z.ZodNumber>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ ts: number;
635
+ p50: number | null;
636
+ p95: number | null;
637
+ p99: number | null;
638
+ }, {
639
+ ts: number;
640
+ p50: number | null;
641
+ p95: number | null;
642
+ p99: number | null;
643
+ }>, "many">;
644
+ }, "strip", z.ZodTypeAny, {
645
+ percentiles: Record<string, number | null>;
646
+ by_minute: {
647
+ ts: number;
648
+ p50: number | null;
649
+ p95: number | null;
650
+ p99: number | null;
651
+ }[];
652
+ }, {
653
+ percentiles: Record<string, number | null>;
654
+ by_minute: {
655
+ ts: number;
656
+ p50: number | null;
657
+ p95: number | null;
658
+ p99: number | null;
659
+ }[];
660
+ }>;
661
+ type PulseEventRow = z.infer<typeof PulseEventRowSchema>;
662
+ type PulseSummaryByDay = z.infer<typeof PulseSummaryByDaySchema>;
663
+ type PulseSummary = z.infer<typeof PulseSummarySchema>;
664
+ type PulseEventsPage = z.infer<typeof PulseEventsPageSchema>;
665
+ type PulseErrorIssue = z.infer<typeof PulseErrorIssueSchema>;
666
+ type PulseErrorsResult = z.infer<typeof PulseErrorsResultSchema>;
667
+ type PulseLogsResult = z.infer<typeof PulseLogsResultSchema>;
668
+ type PulseLatencyByMinute = z.infer<typeof PulseLatencyByMinuteSchema>;
669
+ type PulseLatencyResult = z.infer<typeof PulseLatencyResultSchema>;
670
+ /** True when the summary carries no meaningful data — drives the "no analytics data yet" empty state. */
671
+ declare const pulseSummaryHasData: (summary: PulseSummary | null | undefined) => boolean;
672
+
37
673
  type ApiResultError = {
38
674
  message: string;
39
675
  code?: string;
@@ -583,7 +1219,7 @@ declare class ApiClient {
583
1219
  from: number;
584
1220
  to: number;
585
1221
  };
586
- }) => Promise<ApiResult<unknown>>;
1222
+ }) => Promise<ApiResult<PulseSummary>>;
587
1223
  /**
588
1224
  * List events for a project
589
1225
  */
@@ -596,7 +1232,7 @@ declare class ApiClient {
596
1232
  search?: string;
597
1233
  limit?: number;
598
1234
  cursor?: string;
599
- }) => Promise<ApiResult<unknown>>;
1235
+ }) => Promise<ApiResult<PulseEventsPage>>;
600
1236
  /**
601
1237
  * List error issues for a project
602
1238
  */
@@ -607,7 +1243,7 @@ declare class ApiClient {
607
1243
  to: number;
608
1244
  };
609
1245
  group_by_fingerprint?: boolean;
610
- }) => Promise<ApiResult<unknown>>;
1246
+ }) => Promise<ApiResult<PulseErrorsResult>>;
611
1247
  /**
612
1248
  * List logs for a project
613
1249
  */
@@ -619,7 +1255,7 @@ declare class ApiClient {
619
1255
  };
620
1256
  level?: string;
621
1257
  search?: string;
622
- }) => Promise<ApiResult<unknown>>;
1258
+ }) => Promise<ApiResult<PulseLogsResult>>;
623
1259
  /**
624
1260
  * Get latency metrics for a project
625
1261
  */
@@ -631,7 +1267,7 @@ declare class ApiClient {
631
1267
  };
632
1268
  route?: string;
633
1269
  percentiles?: number[];
634
- }) => Promise<ApiResult<unknown>>;
1270
+ }) => Promise<ApiResult<PulseLatencyResult>>;
635
1271
  /**
636
1272
  * Subscription management
637
1273
  */
@@ -1033,4 +1669,4 @@ declare const tools: Record<string, ToolDefinition>;
1033
1669
  declare const toolNames: string[];
1034
1670
  declare function getTool(name: string): ToolDefinition | undefined;
1035
1671
 
1036
- export { AccessKey, Account, AddFilterInput, ApiClient, ApiError, type ApiResult, type ApiResultError, type AuthMode, AuthenticationError, Category, CategoryCreate, CreateProfileInput, NetworkError, PlatformSettings, Post, PostContent, PostCreate, PostListParams, PostUpdate, PostsResponse, Profile, ProfileFilter, Project, type RequestHistoryEntry, type RequestOptions, SaveConfigRequest, TaskWithDetails, Timeline, type ToolDefinition, UpdateProfileInput, UpsertProject, UpsertTag, UpsertTodo, ValidationError, VersionInfo, ApiClient as default, getTool, getUserFriendlyErrorMessage, parseZodErrors, toolNames, tools, wrap };
1672
+ export { AccessKey, Account, AddFilterInput, ApiClient, ApiError, type ApiResult, type ApiResultError, type AuthMode, AuthenticationError, Category, CategoryCreate, CreateProfileInput, NetworkError, PlatformSettings, Post, PostContent, PostCreate, PostListParams, PostUpdate, PostsResponse, Profile, ProfileFilter, Project, type PulseErrorIssue, type PulseErrorsResult, type PulseEventRow, type PulseEventsPage, type PulseLatencyByMinute, type PulseLatencyResult, type PulseLogsResult, type PulseSummary, type PulseSummaryByDay, type RequestHistoryEntry, type RequestOptions, SaveConfigRequest, TaskWithDetails, Timeline, type ToolDefinition, UpdateProfileInput, UpsertProject, UpsertTag, UpsertTodo, ValidationError, VersionInfo, ApiClient as default, getTool, getUserFriendlyErrorMessage, parseZodErrors, pulseSummaryHasData, toolNames, tools, wrap };