@rustrak/client 0.21.0 → 0.22.0

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.
@@ -18,6 +18,10 @@ export type ActivityEntry = {
18
18
  type: string;
19
19
  user_id: number | null;
20
20
  };
21
+ export type AgentConversation = {
22
+ conversation_id: string;
23
+ spans: Array<ConversationSpan>;
24
+ };
21
25
  export type AgentDurationPoint = {
22
26
  avg_ms: number;
23
27
  bucket: string;
@@ -46,6 +50,7 @@ export type AgentSummary = {
46
50
  };
47
51
  export type AgentTimeseriesPoint = {
48
52
  bucket: string;
53
+ errors: number;
49
54
  value: number;
50
55
  };
51
56
  export type AgentToolRow = {
@@ -83,6 +88,12 @@ export type AlertHistory = {
83
88
  sent_at: string | null;
84
89
  status: AlertStatus;
85
90
  };
91
+ export type AlertHistoryDay = {
92
+ day: string;
93
+ failed: number;
94
+ sent: number;
95
+ skipped: number;
96
+ };
86
97
  export type AlertIntegration = {
87
98
  created_at: string;
88
99
  credentials: {
@@ -267,6 +278,23 @@ export type Compaction = {
267
278
  export type ConfirmSsoLinkRequest = {
268
279
  password: string;
269
280
  };
281
+ export type ConversationSpan = {
282
+ agent_name: string | null;
283
+ duration_ms: number | null;
284
+ id: string;
285
+ input: string | null;
286
+ model: string | null;
287
+ operation_type: string;
288
+ output: string | null;
289
+ parent_span_id: string | null;
290
+ span_id: string | null;
291
+ start_timestamp: string | null;
292
+ status: string | null;
293
+ tool_calls: string | null;
294
+ tool_name: string | null;
295
+ total_tokens: number | null;
296
+ trace_id: string;
297
+ };
270
298
  export type CreateAlertIntegration = {
271
299
  credentials: {
272
300
  [key: string]: unknown;
@@ -314,6 +342,30 @@ export type CreateUserRequest = {
314
342
  email: string;
315
343
  password: string;
316
344
  };
345
+ export type DebugFileResponse = {
346
+ codeId: string | null;
347
+ cpuName: string;
348
+ data: unknown;
349
+ dateCreated: string;
350
+ debugId: string;
351
+ headers: {
352
+ [key: string]: string;
353
+ };
354
+ id: string;
355
+ objectName: string;
356
+ sha1: string;
357
+ size: number;
358
+ symbolType: string;
359
+ uuid: string;
360
+ };
361
+ export type DifAssembleFile = {
362
+ chunks: Array<string>;
363
+ debug_id?: string | null;
364
+ name: string;
365
+ };
366
+ export type DifUploadBody = {
367
+ [key: string]: unknown;
368
+ };
317
369
  export type ErrorDetail = {
318
370
  fields?: Array<FieldError>;
319
371
  incident_id?: string;
@@ -493,7 +545,7 @@ export type IssueResponse = {
493
545
  user_report_count?: number | null;
494
546
  value: string;
495
547
  };
496
- export type IssueSort = 'digest_order' | 'last_seen' | 'event_count';
548
+ export type IssueSort = 'digest_order' | 'last_seen' | 'event_count' | 'first_seen' | 'priority';
497
549
  export type IssueStatsResponse = {
498
550
  data: Array<Array<number>>;
499
551
  };
@@ -535,6 +587,15 @@ export type LogResponse = {
535
587
  timestamp: string;
536
588
  trace_id: string | null;
537
589
  };
590
+ export type LogVolumePoint = {
591
+ bucket: string;
592
+ debug: number;
593
+ error: number;
594
+ fatal: number;
595
+ info: number;
596
+ trace: number;
597
+ warn: number;
598
+ };
538
599
  export type LoginRequest = {
539
600
  email: string;
540
601
  password: string;
@@ -582,6 +643,12 @@ export type MonitorEnvironmentResponse = {
582
643
  recent_checkins: Array<CheckInResponse>;
583
644
  status: MonitorEnvironmentStatus;
584
645
  };
646
+ export type MonitorEnvironmentStats = {
647
+ buckets: Array<MonitorStatsBucket>;
648
+ environment: string;
649
+ monitor_environment_id: string;
650
+ monitor_slug: string;
651
+ };
585
652
  export type MonitorEnvironmentStatus = 'active' | 'ok' | 'error';
586
653
  export type MonitorResponse = {
587
654
  config: MonitorConfig;
@@ -592,6 +659,16 @@ export type MonitorResponse = {
592
659
  name: string;
593
660
  slug: string;
594
661
  };
662
+ export type MonitorStatsBucket = {
663
+ avg_duration_ms: number | null;
664
+ bucket: string;
665
+ duration_count: number;
666
+ error: number;
667
+ in_progress: number;
668
+ missed: number;
669
+ ok: number;
670
+ timeout: number;
671
+ };
595
672
  export type OAuthGrant = {
596
673
  client_id: string;
597
674
  client_name: string;
@@ -616,6 +693,7 @@ export type PreviewTemplateResponse = {
616
693
  ok: boolean;
617
694
  rendered?: string | null;
618
695
  };
696
+ export type Product = 'issues' | 'feedback' | 'releases' | 'performance' | 'agents' | 'logs' | 'crons';
619
697
  export type ProjectAge = {
620
698
  events: KindAge;
621
699
  logs: KindAge;
@@ -659,10 +737,12 @@ export type ProjectRepository = {
659
737
  export type ProjectResponse = {
660
738
  created_at: string;
661
739
  digested_event_count: number;
740
+ disabled_products: Array<Product>;
662
741
  dsn: string;
663
742
  id: number;
664
743
  name: string;
665
744
  platform: string | null;
745
+ product_order: Array<Product>;
666
746
  rate_limit_per_hour: number | null;
667
747
  rate_limit_per_minute: number | null;
668
748
  rate_limited_event_count: number;
@@ -728,6 +808,23 @@ export type ReleaseResponse = {
728
808
  url: string | null;
729
809
  version: string;
730
810
  };
811
+ export type ReleaseSummary = {
812
+ adoption: number | null;
813
+ crash_free_sessions: number | null;
814
+ crash_free_users: number | null;
815
+ crashed: number;
816
+ date_created: string;
817
+ date_released: string | null;
818
+ environments: Array<string>;
819
+ event_count: number;
820
+ first_event: string | null;
821
+ last_event: string | null;
822
+ new_issues: number;
823
+ ref: string | null;
824
+ sessions: number;
825
+ url: string | null;
826
+ version: string;
827
+ };
731
828
  export type RepoCommit = {
732
829
  author_login: string | null;
733
830
  author_name: string;
@@ -1041,18 +1138,30 @@ export type TransactionResponse = {
1041
1138
  platform: string;
1042
1139
  release: string;
1043
1140
  start_timestamp: string | null;
1141
+ status: string | null;
1044
1142
  timestamp: string;
1045
1143
  transaction_name: string;
1046
1144
  };
1047
1145
  export type TransactionStatsResponse = {
1146
+ avg_ms: number;
1048
1147
  count: number;
1049
1148
  failure_rate: number;
1149
+ last_seen: string;
1050
1150
  op: string | null;
1051
1151
  p50_ms: number;
1052
1152
  p95_ms: number;
1053
1153
  p99_ms: number;
1154
+ time_share: number;
1155
+ total_ms: number;
1054
1156
  transaction_name: string;
1055
1157
  };
1158
+ export type TransactionTimeseriesPoint = {
1159
+ bucket: string;
1160
+ count: number;
1161
+ failures: number;
1162
+ p50_ms: number;
1163
+ p95_ms: number;
1164
+ };
1056
1165
  export type UpdateAlertIntegration = {
1057
1166
  credentials?: {
1058
1167
  [key: string]: unknown;
@@ -1061,6 +1170,7 @@ export type UpdateAlertIntegration = {
1061
1170
  name?: string | null;
1062
1171
  };
1063
1172
  export type UpdateAlertRule = {
1173
+ alert_type?: AlertType | null;
1064
1174
  channels?: Array<AlertRuleChannelInput> | null;
1065
1175
  conditions?: {
1066
1176
  [key: string]: unknown;
@@ -1088,8 +1198,10 @@ export type UpdatePreferencesRequest = {
1088
1198
  timezone?: string | null;
1089
1199
  };
1090
1200
  export type UpdateProject = {
1201
+ disabled_products?: Array<Product> | null;
1091
1202
  name?: string | null;
1092
1203
  platform?: string | null;
1204
+ product_order?: Array<Product> | null;
1093
1205
  rate_limit_per_hour?: number | null;
1094
1206
  rate_limit_per_minute?: number | null;
1095
1207
  slug?: string | null;
@@ -1308,6 +1420,48 @@ export type SentryListProjectsResponses = {
1308
1420
  200: Array<SentryProject>;
1309
1421
  };
1310
1422
  export type SentryListProjectsResponse = SentryListProjectsResponses[keyof SentryListProjectsResponses];
1423
+ export type DebugFilesAssembleData = {
1424
+ body: {
1425
+ [key: string]: DifAssembleFile;
1426
+ };
1427
+ path: {
1428
+ org_slug: string;
1429
+ project_slug: string;
1430
+ };
1431
+ query?: never;
1432
+ url: '/api/0/projects/{org_slug}/{project_slug}/files/difs/assemble/';
1433
+ };
1434
+ export type DebugFilesAssembleErrors = {
1435
+ 400: ErrorResponse;
1436
+ 401: ErrorResponse;
1437
+ 404: ErrorResponse;
1438
+ };
1439
+ export type DebugFilesAssembleError = DebugFilesAssembleErrors[keyof DebugFilesAssembleErrors];
1440
+ export type DebugFilesAssembleResponses = {
1441
+ 200: {
1442
+ [key: string]: AssembleResponse;
1443
+ };
1444
+ };
1445
+ export type DebugFilesAssembleResponse = DebugFilesAssembleResponses[keyof DebugFilesAssembleResponses];
1446
+ export type DebugFilesUploadData = {
1447
+ body: DifUploadBody;
1448
+ path: {
1449
+ org_slug: string;
1450
+ project_slug: string;
1451
+ };
1452
+ query?: never;
1453
+ url: '/api/0/projects/{org_slug}/{project_slug}/files/dsyms/';
1454
+ };
1455
+ export type DebugFilesUploadErrors = {
1456
+ 400: ErrorResponse;
1457
+ 401: ErrorResponse;
1458
+ 404: ErrorResponse;
1459
+ };
1460
+ export type DebugFilesUploadError = DebugFilesUploadErrors[keyof DebugFilesUploadErrors];
1461
+ export type DebugFilesUploadResponses = {
1462
+ 201: Array<DebugFileResponse>;
1463
+ };
1464
+ export type DebugFilesUploadResponse = DebugFilesUploadResponses[keyof DebugFilesUploadResponses];
1311
1465
  export type SourceMapsListData = {
1312
1466
  body?: never;
1313
1467
  path: {
@@ -1801,10 +1955,12 @@ export type ProjectsListResponses = {
1801
1955
  items: Array<{
1802
1956
  created_at: string;
1803
1957
  digested_event_count: number;
1958
+ disabled_products: Array<Product>;
1804
1959
  dsn: string;
1805
1960
  id: number;
1806
1961
  name: string;
1807
1962
  platform: string | null;
1963
+ product_order: Array<Product>;
1808
1964
  rate_limit_per_hour: number | null;
1809
1965
  rate_limit_per_minute: number | null;
1810
1966
  rate_limited_event_count: number;
@@ -1888,6 +2044,62 @@ export type ProjectsUpdateResponses = {
1888
2044
  200: ProjectResponse;
1889
2045
  };
1890
2046
  export type ProjectsUpdateResponse = ProjectsUpdateResponses[keyof ProjectsUpdateResponses];
2047
+ export type AgentsConversationsData = {
2048
+ body?: never;
2049
+ path: {
2050
+ project_id: number;
2051
+ };
2052
+ query?: {
2053
+ period_hours?: number | null;
2054
+ environment?: string | null;
2055
+ page?: number;
2056
+ per_page?: number;
2057
+ };
2058
+ url: '/api/projects/{project_id}/agents/conversations';
2059
+ };
2060
+ export type AgentsConversationsErrors = {
2061
+ 401: ErrorResponse;
2062
+ 404: ErrorResponse;
2063
+ };
2064
+ export type AgentsConversationsError = AgentsConversationsErrors[keyof AgentsConversationsErrors];
2065
+ export type AgentsConversationsResponses = {
2066
+ 200: {
2067
+ items: Array<{
2068
+ agent_names: Array<string>;
2069
+ conversation_id: string;
2070
+ error_count: number;
2071
+ first_seen: string | null;
2072
+ last_seen: string | null;
2073
+ llm_call_count: number;
2074
+ tool_call_count: number;
2075
+ total_tokens: number;
2076
+ turn_count: number;
2077
+ }>;
2078
+ page: number;
2079
+ per_page: number;
2080
+ total_count: number;
2081
+ total_pages: number;
2082
+ };
2083
+ };
2084
+ export type AgentsConversationsResponse = AgentsConversationsResponses[keyof AgentsConversationsResponses];
2085
+ export type AgentsConversationData = {
2086
+ body?: never;
2087
+ path: {
2088
+ project_id: number;
2089
+ conversation_id: string;
2090
+ };
2091
+ query?: never;
2092
+ url: '/api/projects/{project_id}/agents/conversations/{conversation_id}';
2093
+ };
2094
+ export type AgentsConversationErrors = {
2095
+ 401: ErrorResponse;
2096
+ 404: ErrorResponse;
2097
+ };
2098
+ export type AgentsConversationError = AgentsConversationErrors[keyof AgentsConversationErrors];
2099
+ export type AgentsConversationResponses = {
2100
+ 200: AgentConversation;
2101
+ };
2102
+ export type AgentsConversationResponse = AgentsConversationResponses[keyof AgentsConversationResponses];
1891
2103
  export type AgentsDurationData = {
1892
2104
  body?: never;
1893
2105
  path: {
@@ -2080,6 +2292,11 @@ export type AgentsTracesData = {
2080
2292
  environment?: string | null;
2081
2293
  page?: number;
2082
2294
  per_page?: number;
2295
+ agent?: string | null;
2296
+ model?: string | null;
2297
+ tool?: string | null;
2298
+ errors?: boolean;
2299
+ sort?: 'newest' | 'duration' | 'tokens' | 'llm_calls' | 'tool_calls' | 'errors';
2083
2300
  };
2084
2301
  url: '/api/projects/{project_id}/agents/traces';
2085
2302
  };
@@ -2114,10 +2331,12 @@ export type AlertRulesListHistoryData = {
2114
2331
  };
2115
2332
  query?: {
2116
2333
  limit?: number;
2334
+ rule_id?: number;
2117
2335
  };
2118
2336
  url: '/api/projects/{project_id}/alert-history';
2119
2337
  };
2120
2338
  export type AlertRulesListHistoryErrors = {
2339
+ 400: string;
2121
2340
  401: ErrorResponse;
2122
2341
  404: ErrorResponse;
2123
2342
  };
@@ -2126,6 +2345,27 @@ export type AlertRulesListHistoryResponses = {
2126
2345
  200: Array<AlertHistory>;
2127
2346
  };
2128
2347
  export type AlertRulesListHistoryResponse = AlertRulesListHistoryResponses[keyof AlertRulesListHistoryResponses];
2348
+ export type AlertRulesHistoryByDayData = {
2349
+ body?: never;
2350
+ path: {
2351
+ project_id: number;
2352
+ };
2353
+ query?: {
2354
+ days?: number;
2355
+ rule_id?: number;
2356
+ };
2357
+ url: '/api/projects/{project_id}/alert-history/daily';
2358
+ };
2359
+ export type AlertRulesHistoryByDayErrors = {
2360
+ 400: string;
2361
+ 401: ErrorResponse;
2362
+ 404: ErrorResponse;
2363
+ };
2364
+ export type AlertRulesHistoryByDayError = AlertRulesHistoryByDayErrors[keyof AlertRulesHistoryByDayErrors];
2365
+ export type AlertRulesHistoryByDayResponses = {
2366
+ 200: Array<AlertHistoryDay>;
2367
+ };
2368
+ export type AlertRulesHistoryByDayResponse = AlertRulesHistoryByDayResponses[keyof AlertRulesHistoryByDayResponses];
2129
2369
  export type AlertRulesListData = {
2130
2370
  body?: never;
2131
2371
  path: {
@@ -2275,6 +2515,8 @@ export type StatsGetEventTimeseriesData = {
2275
2515
  query?: {
2276
2516
  period?: string;
2277
2517
  interval?: number;
2518
+ environment?: string;
2519
+ release?: string;
2278
2520
  };
2279
2521
  url: '/api/projects/{project_id}/events/stats';
2280
2522
  };
@@ -2427,6 +2669,14 @@ export type IssuesListData = {
2427
2669
  category?: IssueCategory;
2428
2670
  q?: string | null;
2429
2671
  environment?: string | null;
2672
+ release?: string | null;
2673
+ level?: string | null;
2674
+ priority?: string | null;
2675
+ assigned?: string | null;
2676
+ first_seen?: string | null;
2677
+ last_seen?: string | null;
2678
+ events_min?: number | null;
2679
+ events_max?: number | null;
2430
2680
  };
2431
2681
  url: '/api/projects/{project_id}/issues';
2432
2682
  };
@@ -2920,6 +3170,8 @@ export type LogsListData = {
2920
3170
  per_page?: number;
2921
3171
  level?: string | null;
2922
3172
  trace_id?: string | null;
3173
+ query?: string | null;
3174
+ period?: string | null;
2923
3175
  };
2924
3176
  url: '/api/projects/{project_id}/logs';
2925
3177
  };
@@ -2950,6 +3202,46 @@ export type LogsListResponses = {
2950
3202
  };
2951
3203
  };
2952
3204
  export type LogsListResponse = LogsListResponses[keyof LogsListResponses];
3205
+ export type LogsVolumeData = {
3206
+ body?: never;
3207
+ path: {
3208
+ project_id: number;
3209
+ };
3210
+ query?: {
3211
+ level?: string | null;
3212
+ trace_id?: string | null;
3213
+ query?: string | null;
3214
+ period?: string | null;
3215
+ };
3216
+ url: '/api/projects/{project_id}/logs/volume';
3217
+ };
3218
+ export type LogsVolumeErrors = {
3219
+ 401: ErrorResponse;
3220
+ 404: ErrorResponse;
3221
+ };
3222
+ export type LogsVolumeError = LogsVolumeErrors[keyof LogsVolumeErrors];
3223
+ export type LogsVolumeResponses = {
3224
+ 200: Array<LogVolumePoint>;
3225
+ };
3226
+ export type LogsVolumeResponse = LogsVolumeResponses[keyof LogsVolumeResponses];
3227
+ export type LogsGetData = {
3228
+ body?: never;
3229
+ path: {
3230
+ project_id: number;
3231
+ log_id: string;
3232
+ };
3233
+ query?: never;
3234
+ url: '/api/projects/{project_id}/logs/{log_id}';
3235
+ };
3236
+ export type LogsGetErrors = {
3237
+ 401: ErrorResponse;
3238
+ 404: ErrorResponse;
3239
+ };
3240
+ export type LogsGetError = LogsGetErrors[keyof LogsGetErrors];
3241
+ export type LogsGetResponses = {
3242
+ 200: LogResponse;
3243
+ };
3244
+ export type LogsGetResponse = LogsGetResponses[keyof LogsGetResponses];
2953
3245
  export type MembersListData = {
2954
3246
  body?: never;
2955
3247
  path: {
@@ -3008,6 +3300,26 @@ export type MembersRemoveResponses = {
3008
3300
  204: void;
3009
3301
  };
3010
3302
  export type MembersRemoveResponse = MembersRemoveResponses[keyof MembersRemoveResponses];
3303
+ export type MonitorsStatsData = {
3304
+ body?: never;
3305
+ path: {
3306
+ project_id: number;
3307
+ };
3308
+ query?: {
3309
+ period?: string | null;
3310
+ slug?: string | null;
3311
+ };
3312
+ url: '/api/projects/{project_id}/monitor-stats';
3313
+ };
3314
+ export type MonitorsStatsErrors = {
3315
+ 401: ErrorResponse;
3316
+ 404: ErrorResponse;
3317
+ };
3318
+ export type MonitorsStatsError = MonitorsStatsErrors[keyof MonitorsStatsErrors];
3319
+ export type MonitorsStatsResponses = {
3320
+ 200: Array<MonitorEnvironmentStats>;
3321
+ };
3322
+ export type MonitorsStatsResponse = MonitorsStatsResponses[keyof MonitorsStatsResponses];
3011
3323
  export type MonitorsListData = {
3012
3324
  body?: never;
3013
3325
  path: {
@@ -3134,6 +3446,72 @@ export type MonitorsListCheckinsResponses = {
3134
3446
  };
3135
3447
  };
3136
3448
  export type MonitorsListCheckinsResponse = MonitorsListCheckinsResponses[keyof MonitorsListCheckinsResponses];
3449
+ export type ReleasesListData = {
3450
+ body?: never;
3451
+ path: {
3452
+ project_id: number;
3453
+ };
3454
+ query?: {
3455
+ environment?: string;
3456
+ period?: string;
3457
+ query?: string;
3458
+ page?: number;
3459
+ per_page?: number;
3460
+ };
3461
+ url: '/api/projects/{project_id}/releases';
3462
+ };
3463
+ export type ReleasesListErrors = {
3464
+ 401: unknown;
3465
+ 403: unknown;
3466
+ 404: unknown;
3467
+ };
3468
+ export type ReleasesListResponses = {
3469
+ 200: {
3470
+ items: Array<{
3471
+ adoption: number | null;
3472
+ crash_free_sessions: number | null;
3473
+ crash_free_users: number | null;
3474
+ crashed: number;
3475
+ date_created: string;
3476
+ date_released: string | null;
3477
+ environments: Array<string>;
3478
+ event_count: number;
3479
+ first_event: string | null;
3480
+ last_event: string | null;
3481
+ new_issues: number;
3482
+ ref: string | null;
3483
+ sessions: number;
3484
+ url: string | null;
3485
+ version: string;
3486
+ }>;
3487
+ page: number;
3488
+ per_page: number;
3489
+ total_count: number;
3490
+ total_pages: number;
3491
+ };
3492
+ };
3493
+ export type ReleasesListResponse = ReleasesListResponses[keyof ReleasesListResponses];
3494
+ export type ReleasesGetData = {
3495
+ body?: never;
3496
+ path: {
3497
+ project_id: number;
3498
+ release: string;
3499
+ };
3500
+ query?: {
3501
+ environment?: string;
3502
+ period?: string;
3503
+ };
3504
+ url: '/api/projects/{project_id}/releases/{release}';
3505
+ };
3506
+ export type ReleasesGetErrors = {
3507
+ 401: unknown;
3508
+ 403: unknown;
3509
+ 404: unknown;
3510
+ };
3511
+ export type ReleasesGetResponses = {
3512
+ 200: ReleaseSummary;
3513
+ };
3514
+ export type ReleasesGetResponse = ReleasesGetResponses[keyof ReleasesGetResponses];
3137
3515
  export type ReleasesNewIssuesData = {
3138
3516
  body?: never;
3139
3517
  path: {
@@ -3197,6 +3575,8 @@ export type SessionsGetSummaryData = {
3197
3575
  };
3198
3576
  query?: {
3199
3577
  period?: string;
3578
+ environment?: string;
3579
+ release?: string;
3200
3580
  };
3201
3581
  url: '/api/projects/{project_id}/sessions/summary';
3202
3582
  };
@@ -3216,6 +3596,8 @@ export type SessionsGetTimeseriesData = {
3216
3596
  query?: {
3217
3597
  period?: string;
3218
3598
  interval?: number;
3599
+ environment?: string;
3600
+ release?: string;
3219
3601
  };
3220
3602
  url: '/api/projects/{project_id}/sessions/timeseries';
3221
3603
  };
@@ -3309,6 +3691,8 @@ export type StatsGetSummaryData = {
3309
3691
  };
3310
3692
  query?: {
3311
3693
  period?: string;
3694
+ environment?: string;
3695
+ release?: string;
3312
3696
  };
3313
3697
  url: '/api/projects/{project_id}/stats/summary';
3314
3698
  };
@@ -3333,6 +3717,8 @@ export type TransactionsListData = {
3333
3717
  status?: string | null;
3334
3718
  environment?: string | null;
3335
3719
  release?: string | null;
3720
+ period?: string | null;
3721
+ sort?: 'recent' | 'slowest' | null;
3336
3722
  };
3337
3723
  url: '/api/projects/{project_id}/transactions';
3338
3724
  };
@@ -3352,6 +3738,7 @@ export type TransactionsListResponses = {
3352
3738
  platform: string;
3353
3739
  release: string;
3354
3740
  start_timestamp: string | null;
3741
+ status: string | null;
3355
3742
  timestamp: string;
3356
3743
  transaction_name: string;
3357
3744
  }>;
@@ -3370,6 +3757,10 @@ export type TransactionsGetStatsData = {
3370
3757
  query?: {
3371
3758
  page?: number;
3372
3759
  per_page?: number;
3760
+ environment?: string | null;
3761
+ period?: string | null;
3762
+ query?: string | null;
3763
+ sort?: 'time_spent' | 'count' | 'avg' | 'failure_rate';
3373
3764
  };
3374
3765
  url: '/api/projects/{project_id}/transactions/stats';
3375
3766
  };
@@ -3381,12 +3772,16 @@ export type TransactionsGetStatsError = TransactionsGetStatsErrors[keyof Transac
3381
3772
  export type TransactionsGetStatsResponses = {
3382
3773
  200: {
3383
3774
  items: Array<{
3775
+ avg_ms: number;
3384
3776
  count: number;
3385
3777
  failure_rate: number;
3778
+ last_seen: string;
3386
3779
  op: string | null;
3387
3780
  p50_ms: number;
3388
3781
  p95_ms: number;
3389
3782
  p99_ms: number;
3783
+ time_share: number;
3784
+ total_ms: number;
3390
3785
  transaction_name: string;
3391
3786
  }>;
3392
3787
  page: number;
@@ -3404,6 +3799,8 @@ export type TransactionsGetStatGroupData = {
3404
3799
  query: {
3405
3800
  name: string;
3406
3801
  op?: string | null;
3802
+ environment?: string | null;
3803
+ period?: string | null;
3407
3804
  };
3408
3805
  url: '/api/projects/{project_id}/transactions/stats/group';
3409
3806
  };
@@ -3416,6 +3813,28 @@ export type TransactionsGetStatGroupResponses = {
3416
3813
  200: TransactionStatsResponse;
3417
3814
  };
3418
3815
  export type TransactionsGetStatGroupResponse = TransactionsGetStatGroupResponses[keyof TransactionsGetStatGroupResponses];
3816
+ export type TransactionsGetStatGroupTimeseriesData = {
3817
+ body?: never;
3818
+ path: {
3819
+ project_id: number;
3820
+ };
3821
+ query: {
3822
+ name: string;
3823
+ op?: string | null;
3824
+ environment?: string | null;
3825
+ period?: string | null;
3826
+ };
3827
+ url: '/api/projects/{project_id}/transactions/stats/group/timeseries';
3828
+ };
3829
+ export type TransactionsGetStatGroupTimeseriesErrors = {
3830
+ 401: ErrorResponse;
3831
+ 404: ErrorResponse;
3832
+ };
3833
+ export type TransactionsGetStatGroupTimeseriesError = TransactionsGetStatGroupTimeseriesErrors[keyof TransactionsGetStatGroupTimeseriesErrors];
3834
+ export type TransactionsGetStatGroupTimeseriesResponses = {
3835
+ 200: Array<TransactionTimeseriesPoint>;
3836
+ };
3837
+ export type TransactionsGetStatGroupTimeseriesResponse = TransactionsGetStatGroupTimeseriesResponses[keyof TransactionsGetStatGroupTimeseriesResponses];
3419
3838
  export type TransactionsGetData = {
3420
3839
  body?: never;
3421
3840
  path: {