@rustrak/client 0.17.0 → 0.18.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/dist/index.d.ts CHANGED
@@ -886,6 +886,232 @@ type ProjectRole = z.infer<typeof projectRoleSchema>;
886
886
  type ProjectMember = z.infer<typeof projectMemberSchema>;
887
887
  type UpsertProjectMember = z.infer<typeof upsertProjectMemberSchema>;
888
888
 
889
+ declare const monitorConfigSchema: z.ZodObject<{
890
+ schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
891
+ type: z.ZodLiteral<"crontab">;
892
+ value: z.ZodString;
893
+ }, z.core.$strip>, z.ZodObject<{
894
+ type: z.ZodLiteral<"interval">;
895
+ value: z.ZodNumber;
896
+ unit: z.ZodEnum<{
897
+ minute: "minute";
898
+ hour: "hour";
899
+ day: "day";
900
+ week: "week";
901
+ month: "month";
902
+ year: "year";
903
+ }>;
904
+ }, z.core.$strip>], "type">;
905
+ checkin_margin: z.ZodNumber;
906
+ max_runtime: z.ZodNumber;
907
+ timezone: z.ZodString;
908
+ failure_issue_threshold: z.ZodNumber;
909
+ recovery_threshold: z.ZodNumber;
910
+ }, z.core.$strip>;
911
+ declare const monitorConfigInputSchema: z.ZodObject<{
912
+ schedule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
913
+ type: z.ZodLiteral<"crontab">;
914
+ value: z.ZodString;
915
+ }, z.core.$strip>, z.ZodObject<{
916
+ type: z.ZodLiteral<"interval">;
917
+ value: z.ZodNumber;
918
+ unit: z.ZodEnum<{
919
+ minute: "minute";
920
+ hour: "hour";
921
+ day: "day";
922
+ week: "week";
923
+ month: "month";
924
+ year: "year";
925
+ }>;
926
+ }, z.core.$strip>], "type">>;
927
+ checkin_margin: z.ZodOptional<z.ZodNumber>;
928
+ max_runtime: z.ZodOptional<z.ZodNumber>;
929
+ timezone: z.ZodOptional<z.ZodString>;
930
+ failure_issue_threshold: z.ZodOptional<z.ZodNumber>;
931
+ recovery_threshold: z.ZodOptional<z.ZodNumber>;
932
+ }, z.core.$strip>;
933
+ declare const checkInStatusSchema: z.ZodEnum<{
934
+ timeout: "timeout";
935
+ error: "error";
936
+ unknown: "unknown";
937
+ ok: "ok";
938
+ in_progress: "in_progress";
939
+ missed: "missed";
940
+ }>;
941
+ declare const monitorEnvironmentStatusSchema: z.ZodEnum<{
942
+ error: "error";
943
+ ok: "ok";
944
+ active: "active";
945
+ }>;
946
+ declare const checkInSchema: z.ZodObject<{
947
+ id: z.ZodString;
948
+ environment: z.ZodString;
949
+ status: z.ZodEnum<{
950
+ timeout: "timeout";
951
+ error: "error";
952
+ unknown: "unknown";
953
+ ok: "ok";
954
+ in_progress: "in_progress";
955
+ missed: "missed";
956
+ }>;
957
+ duration_ms: z.ZodNullable<z.ZodNumber>;
958
+ date_added: z.ZodString;
959
+ date_updated: z.ZodString;
960
+ expected_time: z.ZodNullable<z.ZodString>;
961
+ }, z.core.$strip>;
962
+ declare const monitorEnvironmentSchema: z.ZodObject<{
963
+ id: z.ZodString;
964
+ environment: z.ZodString;
965
+ status: z.ZodEnum<{
966
+ error: "error";
967
+ ok: "ok";
968
+ active: "active";
969
+ }>;
970
+ next_checkin: z.ZodNullable<z.ZodString>;
971
+ next_checkin_latest: z.ZodNullable<z.ZodString>;
972
+ last_checkin: z.ZodNullable<z.ZodString>;
973
+ recent_checkins: z.ZodArray<z.ZodObject<{
974
+ id: z.ZodString;
975
+ environment: z.ZodString;
976
+ status: z.ZodEnum<{
977
+ timeout: "timeout";
978
+ error: "error";
979
+ unknown: "unknown";
980
+ ok: "ok";
981
+ in_progress: "in_progress";
982
+ missed: "missed";
983
+ }>;
984
+ duration_ms: z.ZodNullable<z.ZodNumber>;
985
+ date_added: z.ZodString;
986
+ date_updated: z.ZodString;
987
+ expected_time: z.ZodNullable<z.ZodString>;
988
+ }, z.core.$strip>>;
989
+ }, z.core.$strip>;
990
+ declare const monitorSchema: z.ZodObject<{
991
+ id: z.ZodString;
992
+ slug: z.ZodString;
993
+ name: z.ZodString;
994
+ config: z.ZodObject<{
995
+ schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
996
+ type: z.ZodLiteral<"crontab">;
997
+ value: z.ZodString;
998
+ }, z.core.$strip>, z.ZodObject<{
999
+ type: z.ZodLiteral<"interval">;
1000
+ value: z.ZodNumber;
1001
+ unit: z.ZodEnum<{
1002
+ minute: "minute";
1003
+ hour: "hour";
1004
+ day: "day";
1005
+ week: "week";
1006
+ month: "month";
1007
+ year: "year";
1008
+ }>;
1009
+ }, z.core.$strip>], "type">;
1010
+ checkin_margin: z.ZodNumber;
1011
+ max_runtime: z.ZodNumber;
1012
+ timezone: z.ZodString;
1013
+ failure_issue_threshold: z.ZodNumber;
1014
+ recovery_threshold: z.ZodNumber;
1015
+ }, z.core.$strip>;
1016
+ is_muted: z.ZodBoolean;
1017
+ created_at: z.ZodString;
1018
+ environments: z.ZodArray<z.ZodObject<{
1019
+ id: z.ZodString;
1020
+ environment: z.ZodString;
1021
+ status: z.ZodEnum<{
1022
+ error: "error";
1023
+ ok: "ok";
1024
+ active: "active";
1025
+ }>;
1026
+ next_checkin: z.ZodNullable<z.ZodString>;
1027
+ next_checkin_latest: z.ZodNullable<z.ZodString>;
1028
+ last_checkin: z.ZodNullable<z.ZodString>;
1029
+ recent_checkins: z.ZodArray<z.ZodObject<{
1030
+ id: z.ZodString;
1031
+ environment: z.ZodString;
1032
+ status: z.ZodEnum<{
1033
+ timeout: "timeout";
1034
+ error: "error";
1035
+ unknown: "unknown";
1036
+ ok: "ok";
1037
+ in_progress: "in_progress";
1038
+ missed: "missed";
1039
+ }>;
1040
+ duration_ms: z.ZodNullable<z.ZodNumber>;
1041
+ date_added: z.ZodString;
1042
+ date_updated: z.ZodString;
1043
+ expected_time: z.ZodNullable<z.ZodString>;
1044
+ }, z.core.$strip>>;
1045
+ }, z.core.$strip>>;
1046
+ }, z.core.$strip>;
1047
+ declare const createMonitorSchema: z.ZodObject<{
1048
+ name: z.ZodString;
1049
+ slug: z.ZodOptional<z.ZodString>;
1050
+ config: z.ZodObject<{
1051
+ schedule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1052
+ type: z.ZodLiteral<"crontab">;
1053
+ value: z.ZodString;
1054
+ }, z.core.$strip>, z.ZodObject<{
1055
+ type: z.ZodLiteral<"interval">;
1056
+ value: z.ZodNumber;
1057
+ unit: z.ZodEnum<{
1058
+ minute: "minute";
1059
+ hour: "hour";
1060
+ day: "day";
1061
+ week: "week";
1062
+ month: "month";
1063
+ year: "year";
1064
+ }>;
1065
+ }, z.core.$strip>], "type">>;
1066
+ checkin_margin: z.ZodOptional<z.ZodNumber>;
1067
+ max_runtime: z.ZodOptional<z.ZodNumber>;
1068
+ timezone: z.ZodOptional<z.ZodString>;
1069
+ failure_issue_threshold: z.ZodOptional<z.ZodNumber>;
1070
+ recovery_threshold: z.ZodOptional<z.ZodNumber>;
1071
+ }, z.core.$strip>;
1072
+ }, z.core.$strip>;
1073
+ declare const updateMonitorSchema: z.ZodObject<{
1074
+ name: z.ZodOptional<z.ZodString>;
1075
+ config: z.ZodOptional<z.ZodObject<{
1076
+ schedule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1077
+ type: z.ZodLiteral<"crontab">;
1078
+ value: z.ZodString;
1079
+ }, z.core.$strip>, z.ZodObject<{
1080
+ type: z.ZodLiteral<"interval">;
1081
+ value: z.ZodNumber;
1082
+ unit: z.ZodEnum<{
1083
+ minute: "minute";
1084
+ hour: "hour";
1085
+ day: "day";
1086
+ week: "week";
1087
+ month: "month";
1088
+ year: "year";
1089
+ }>;
1090
+ }, z.core.$strip>], "type">>;
1091
+ checkin_margin: z.ZodOptional<z.ZodNumber>;
1092
+ max_runtime: z.ZodOptional<z.ZodNumber>;
1093
+ timezone: z.ZodOptional<z.ZodString>;
1094
+ failure_issue_threshold: z.ZodOptional<z.ZodNumber>;
1095
+ recovery_threshold: z.ZodOptional<z.ZodNumber>;
1096
+ }, z.core.$strip>>;
1097
+ is_muted: z.ZodOptional<z.ZodBoolean>;
1098
+ }, z.core.$strip>;
1099
+
1100
+ type MonitorConfig = z.infer<typeof monitorConfigSchema>;
1101
+ type MonitorConfigInput = z.infer<typeof monitorConfigInputSchema>;
1102
+ type CheckInStatus = z.infer<typeof checkInStatusSchema>;
1103
+ type MonitorEnvironmentStatus = z.infer<typeof monitorEnvironmentStatusSchema>;
1104
+ type CheckIn = z.infer<typeof checkInSchema>;
1105
+ type MonitorEnvironment = z.infer<typeof monitorEnvironmentSchema>;
1106
+ type Monitor = z.infer<typeof monitorSchema>;
1107
+ type CreateMonitor = z.input<typeof createMonitorSchema>;
1108
+ type UpdateMonitor = z.input<typeof updateMonitorSchema>;
1109
+ interface ListCheckInsOptions {
1110
+ page?: number;
1111
+ per_page?: number;
1112
+ environment?: string;
1113
+ }
1114
+
889
1115
  declare const projectListStatsSchema: z.ZodObject<{
890
1116
  trend: z.ZodArray<z.ZodNumber>;
891
1117
  events: z.ZodObject<{
@@ -950,6 +1176,56 @@ type CreateProject = z.infer<typeof createProjectSchema>;
950
1176
  type UpdateProject = z.infer<typeof updateProjectSchema>;
951
1177
  type RateLimits = z.infer<typeof rateLimitsSchema>;
952
1178
 
1179
+ declare const intervalUnitSchema: z.ZodEnum<{
1180
+ minute: "minute";
1181
+ hour: "hour";
1182
+ day: "day";
1183
+ week: "week";
1184
+ month: "month";
1185
+ year: "year";
1186
+ }>;
1187
+ declare const scheduleSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1188
+ type: z.ZodLiteral<"crontab">;
1189
+ value: z.ZodString;
1190
+ }, z.core.$strip>, z.ZodObject<{
1191
+ type: z.ZodLiteral<"interval">;
1192
+ value: z.ZodNumber;
1193
+ unit: z.ZodEnum<{
1194
+ minute: "minute";
1195
+ hour: "hour";
1196
+ day: "day";
1197
+ week: "week";
1198
+ month: "month";
1199
+ year: "year";
1200
+ }>;
1201
+ }, z.core.$strip>], "type">;
1202
+ declare const previewScheduleSchema: z.ZodObject<{
1203
+ schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
1204
+ type: z.ZodLiteral<"crontab">;
1205
+ value: z.ZodString;
1206
+ }, z.core.$strip>, z.ZodObject<{
1207
+ type: z.ZodLiteral<"interval">;
1208
+ value: z.ZodNumber;
1209
+ unit: z.ZodEnum<{
1210
+ minute: "minute";
1211
+ hour: "hour";
1212
+ day: "day";
1213
+ week: "week";
1214
+ month: "month";
1215
+ year: "year";
1216
+ }>;
1217
+ }, z.core.$strip>], "type">;
1218
+ timezone: z.ZodOptional<z.ZodString>;
1219
+ }, z.core.$strip>;
1220
+ declare const schedulePreviewSchema: z.ZodObject<{
1221
+ next_runs: z.ZodArray<z.ZodString>;
1222
+ }, z.core.$strip>;
1223
+
1224
+ type IntervalUnit = z.infer<typeof intervalUnitSchema>;
1225
+ type Schedule = z.infer<typeof scheduleSchema>;
1226
+ type PreviewSchedule = z.input<typeof previewScheduleSchema>;
1227
+ type SchedulePreview = z.infer<typeof schedulePreviewSchema>;
1228
+
953
1229
  declare const releaseHealthRowSchema: z.ZodObject<{
954
1230
  release: z.ZodString;
955
1231
  environment: z.ZodString;
@@ -1096,6 +1372,9 @@ declare const projectStorageSchema: z.ZodObject<{
1096
1372
  logs_count: z.ZodNumber;
1097
1373
  source_maps_count: z.ZodNumber;
1098
1374
  estimated_bytes: z.ZodNumber;
1375
+ events_bytes: z.ZodNumber;
1376
+ transactions_bytes: z.ZodNumber;
1377
+ logs_bytes: z.ZodNumber;
1099
1378
  }, z.core.$strip>;
1100
1379
  declare const cleanupCountsSchema: z.ZodObject<{
1101
1380
  events: z.ZodNumber;
@@ -1103,6 +1382,7 @@ declare const cleanupCountsSchema: z.ZodObject<{
1103
1382
  spans: z.ZodNumber;
1104
1383
  logs: z.ZodNumber;
1105
1384
  issues_removed: z.ZodNumber;
1385
+ source_maps: z.ZodDefault<z.ZodNumber>;
1106
1386
  }, z.core.$strip>;
1107
1387
  declare const cleanupStatusSchema: z.ZodObject<{
1108
1388
  state: z.ZodEnum<{
@@ -1117,6 +1397,7 @@ declare const cleanupStatusSchema: z.ZodObject<{
1117
1397
  spans: z.ZodNumber;
1118
1398
  logs: z.ZodNumber;
1119
1399
  issues_removed: z.ZodNumber;
1400
+ source_maps: z.ZodDefault<z.ZodNumber>;
1120
1401
  }, z.core.$strip>;
1121
1402
  started_at: z.ZodNullable<z.ZodString>;
1122
1403
  finished_at: z.ZodNullable<z.ZodString>;
@@ -1126,6 +1407,112 @@ declare const sourceMapGcResultSchema: z.ZodObject<{
1126
1407
  files_removed: z.ZodNumber;
1127
1408
  bytes_freed: z.ZodNumber;
1128
1409
  }, z.core.$strip>;
1410
+ declare const storageAgeSchema: z.ZodObject<{
1411
+ bucket_days: z.ZodArray<z.ZodNumber>;
1412
+ projects: z.ZodArray<z.ZodObject<{
1413
+ project_id: z.ZodNumber;
1414
+ events: z.ZodObject<{
1415
+ counts: z.ZodArray<z.ZodNumber>;
1416
+ oldest: z.ZodNullable<z.ZodString>;
1417
+ }, z.core.$strip>;
1418
+ transactions: z.ZodObject<{
1419
+ counts: z.ZodArray<z.ZodNumber>;
1420
+ oldest: z.ZodNullable<z.ZodString>;
1421
+ }, z.core.$strip>;
1422
+ logs: z.ZodObject<{
1423
+ counts: z.ZodArray<z.ZodNumber>;
1424
+ oldest: z.ZodNullable<z.ZodString>;
1425
+ }, z.core.$strip>;
1426
+ }, z.core.$strip>>;
1427
+ }, z.core.$strip>;
1428
+ declare const retentionWindowsSchema: z.ZodObject<{
1429
+ events_days: z.ZodNullable<z.ZodNumber>;
1430
+ transactions_days: z.ZodNullable<z.ZodNumber>;
1431
+ logs_days: z.ZodNullable<z.ZodNumber>;
1432
+ }, z.core.$strip>;
1433
+ declare const projectRetentionSchema: z.ZodObject<{
1434
+ events_days: z.ZodNullable<z.ZodNumber>;
1435
+ transactions_days: z.ZodNullable<z.ZodNumber>;
1436
+ logs_days: z.ZodNullable<z.ZodNumber>;
1437
+ project_id: z.ZodNumber;
1438
+ }, z.core.$strip>;
1439
+ declare const retentionSettingsSchema: z.ZodObject<{
1440
+ defaults: z.ZodObject<{
1441
+ events_days: z.ZodNullable<z.ZodNumber>;
1442
+ transactions_days: z.ZodNullable<z.ZodNumber>;
1443
+ logs_days: z.ZodNullable<z.ZodNumber>;
1444
+ }, z.core.$strip>;
1445
+ overrides: z.ZodArray<z.ZodObject<{
1446
+ events_days: z.ZodNullable<z.ZodNumber>;
1447
+ transactions_days: z.ZodNullable<z.ZodNumber>;
1448
+ logs_days: z.ZodNullable<z.ZodNumber>;
1449
+ project_id: z.ZodNumber;
1450
+ }, z.core.$strip>>;
1451
+ frequency: z.ZodEnum<{
1452
+ daily: "daily";
1453
+ weekly: "weekly";
1454
+ }>;
1455
+ hour: z.ZodNumber;
1456
+ weekday: z.ZodNumber;
1457
+ }, z.core.$strip>;
1458
+ declare const retentionRunSchema: z.ZodObject<{
1459
+ started_at: z.ZodString;
1460
+ finished_at: z.ZodNullable<z.ZodString>;
1461
+ status: z.ZodEnum<{
1462
+ error: "error";
1463
+ ok: "ok";
1464
+ running: "running";
1465
+ }>;
1466
+ removed: z.ZodNullable<z.ZodObject<{
1467
+ events: z.ZodNumber;
1468
+ transactions: z.ZodNumber;
1469
+ spans: z.ZodNumber;
1470
+ logs: z.ZodNumber;
1471
+ issues_removed: z.ZodNumber;
1472
+ source_maps: z.ZodDefault<z.ZodNumber>;
1473
+ }, z.core.$strip>>;
1474
+ error: z.ZodNullable<z.ZodString>;
1475
+ }, z.core.$strip>;
1476
+ declare const retentionSchema: z.ZodObject<{
1477
+ settings: z.ZodObject<{
1478
+ defaults: z.ZodObject<{
1479
+ events_days: z.ZodNullable<z.ZodNumber>;
1480
+ transactions_days: z.ZodNullable<z.ZodNumber>;
1481
+ logs_days: z.ZodNullable<z.ZodNumber>;
1482
+ }, z.core.$strip>;
1483
+ overrides: z.ZodArray<z.ZodObject<{
1484
+ events_days: z.ZodNullable<z.ZodNumber>;
1485
+ transactions_days: z.ZodNullable<z.ZodNumber>;
1486
+ logs_days: z.ZodNullable<z.ZodNumber>;
1487
+ project_id: z.ZodNumber;
1488
+ }, z.core.$strip>>;
1489
+ frequency: z.ZodEnum<{
1490
+ daily: "daily";
1491
+ weekly: "weekly";
1492
+ }>;
1493
+ hour: z.ZodNumber;
1494
+ weekday: z.ZodNumber;
1495
+ }, z.core.$strip>;
1496
+ next_run_at: z.ZodNullable<z.ZodString>;
1497
+ last_run: z.ZodNullable<z.ZodObject<{
1498
+ started_at: z.ZodString;
1499
+ finished_at: z.ZodNullable<z.ZodString>;
1500
+ status: z.ZodEnum<{
1501
+ error: "error";
1502
+ ok: "ok";
1503
+ running: "running";
1504
+ }>;
1505
+ removed: z.ZodNullable<z.ZodObject<{
1506
+ events: z.ZodNumber;
1507
+ transactions: z.ZodNumber;
1508
+ spans: z.ZodNumber;
1509
+ logs: z.ZodNumber;
1510
+ issues_removed: z.ZodNumber;
1511
+ source_maps: z.ZodDefault<z.ZodNumber>;
1512
+ }, z.core.$strip>>;
1513
+ error: z.ZodNullable<z.ZodString>;
1514
+ }, z.core.$strip>>;
1515
+ }, z.core.$strip>;
1129
1516
  declare const cleanupOptionsSchema: z.ZodObject<{
1130
1517
  older_than_days: z.ZodNumber;
1131
1518
  project_id: z.ZodOptional<z.ZodNumber>;
@@ -1141,6 +1528,12 @@ type CleanupCounts = z.infer<typeof cleanupCountsSchema>;
1141
1528
  type CleanupStatus = z.infer<typeof cleanupStatusSchema>;
1142
1529
  type SourceMapGcResult = z.infer<typeof sourceMapGcResultSchema>;
1143
1530
  type CleanupOptions = z.infer<typeof cleanupOptionsSchema>;
1531
+ type RetentionWindows = z.infer<typeof retentionWindowsSchema>;
1532
+ type ProjectRetention = z.infer<typeof projectRetentionSchema>;
1533
+ type RetentionSettings = z.infer<typeof retentionSettingsSchema>;
1534
+ type RetentionRun = z.infer<typeof retentionRunSchema>;
1535
+ type StorageAge = z.infer<typeof storageAgeSchema>;
1536
+ type Retention = z.infer<typeof retentionSchema>;
1144
1537
 
1145
1538
  declare const globalRoleSchema: z.ZodEnum<{
1146
1539
  admin: "admin";
@@ -1522,6 +1915,15 @@ declare class MembersResource extends BaseResource {
1522
1915
  remove(projectId: number, userId: number): Promise<Result<void, RustrakError>>;
1523
1916
  }
1524
1917
 
1918
+ declare class MonitorsResource extends BaseResource {
1919
+ list(projectId: number): Promise<Result<Monitor[], RustrakError>>;
1920
+ get(projectId: number, slug: string): Promise<Result<Monitor, RustrakError>>;
1921
+ create(projectId: number, input: CreateMonitor): Promise<Result<Monitor, RustrakError>>;
1922
+ update(projectId: number, slug: string, input: UpdateMonitor): Promise<Result<Monitor, RustrakError>>;
1923
+ delete(projectId: number, slug: string): Promise<Result<void, RustrakError>>;
1924
+ listCheckIns(projectId: number, slug: string, options?: ListCheckInsOptions): Promise<Result<OffsetPaginatedResponse<CheckIn>, RustrakError>>;
1925
+ }
1926
+
1525
1927
  declare class ProjectsResource extends BaseResource {
1526
1928
  list(options?: ListProjectsOptions): Promise<Result<OffsetPaginatedResponse<Project>, RustrakError>>;
1527
1929
  rateLimits(): Promise<Result<RateLimits, RustrakError>>;
@@ -1535,6 +1937,10 @@ declare class ReleasesResource extends BaseResource {
1535
1937
  newIssues(projectId: number, release: string, limit?: number): Promise<Result<Issue[], RustrakError>>;
1536
1938
  }
1537
1939
 
1940
+ declare class SchedulesResource extends BaseResource {
1941
+ preview(input: PreviewSchedule): Promise<Result<SchedulePreview, RustrakError>>;
1942
+ }
1943
+
1538
1944
  declare class SessionsResource extends BaseResource {
1539
1945
  stats(projectId: number, options?: ReleaseHealthStatsOptions): Promise<Result<OffsetPaginatedResponse<ReleaseHealthRow>, RustrakError>>;
1540
1946
  summary(projectId: number, period?: string): Promise<Result<SessionSummary, RustrakError>>;
@@ -1569,6 +1975,11 @@ declare class StorageResource extends BaseResource {
1569
1975
  getCleanupStatus(): Promise<Result<CleanupStatus, RustrakError>>;
1570
1976
  previewGcSourceMaps(): Promise<Result<SourceMapGcResult, RustrakError>>;
1571
1977
  gcSourceMaps(): Promise<Result<SourceMapGcResult, RustrakError>>;
1978
+ getRetention(): Promise<Result<Retention, RustrakError>>;
1979
+ updateRetention(settings: RetentionSettings): Promise<Result<Retention, RustrakError>>;
1980
+ runRetention(): Promise<Result<CleanupStatus, RustrakError>>;
1981
+ getAge(): Promise<Result<StorageAge, RustrakError>>;
1982
+ previewRetention(settings: RetentionSettings): Promise<Result<CleanupCounts, RustrakError>>;
1572
1983
  }
1573
1984
 
1574
1985
  declare class TeamResource extends BaseResource {
@@ -1612,6 +2023,8 @@ declare class RustrakClient {
1612
2023
  readonly releases: ReleasesResource;
1613
2024
  readonly transactions: TransactionsResource;
1614
2025
  readonly logs: LogsResource;
2026
+ readonly monitors: MonitorsResource;
2027
+ readonly schedules: SchedulesResource;
1615
2028
  readonly spans: SpansResource;
1616
2029
  readonly agents: AgentsResource;
1617
2030
  readonly stats: StatsResource;
@@ -1621,4 +2034,4 @@ declare class RustrakClient {
1621
2034
  constructor(config: ClientConfig);
1622
2035
  }
1623
2036
 
1624
- export { type AcceptInvitation, type ActivityEntry, type AgentBreakdownOptions, type AgentDurationPoint, type AgentModelRow, type AgentSummary, type AgentTimeseriesOptions, type AgentTimeseriesPoint, type AgentToolRow, type AgentTraceSummary, type AgentTracesOptions, type AlertHistory, type AlertIntegration, type AlertRule, type AlertRuleChannelInput, type AlertRuleConditions, type AlertStatus, type AlertType, type ApiError, type AssembleInput, type AssembleResponse, type AuthResponse, type AuthToken, type AuthTokenCreated, type BulkDeleteIssues, type BulkUpdateIssues, type ChangePasswordRequest, type ChunkUploadCapability, type CleanupCounts, type CleanupOptions, type CleanupStatus, type ClientConfig, type CodeMapping, type CreateAlertIntegration, type CreateAlertRule, type CreateAuthToken, type CreateComment, type CreateInvitation, type CreateProject, type CreateUserReport, Err, type Event, type EventDetail, type EventTimeseries, type EventTimeseriesPoint, FIELD_ERROR_CODES, type FieldError, type FieldErrorCode, type GenAiBreakdownRow, type GitHubInstallation, type GitHubManifest, type GitHubRepository, type GitHubStatus, type GlobalRole, type Invitation, type InvitationInfo, type Issue, type IssueAggregates, type IssueFilter, type IssueGitHub, type IssueHash, type IssueLink, type IssuePriority, type IssueSort, type IssueStats, type IssueStatsWindow, type IssueStatus, type IssueTagValue, type ListAlertHistoryOptions, type ListEventsOptions, type ListIssuesOptions, type ListLogsOptions, type ListProjectsOptions, type ListSourceMapsResponse, type ListSpansOptions, type ListTransactionsOptions, type Log, type LoginRequest, type LoginResult, type MetricDelta, NETWORK_ERROR_MESSAGE, type OffsetPaginatedResponse, Ok, type PaginatedResponse, type PreviewTemplateResponse, type Project, type ProjectListStats, type ProjectMember, type ProjectRepository, type ProjectRole, type ProjectStatsSummary, type ProjectStorage, type ProviderType, type RateLimits, type RegisterRequest, type ReleaseHealthRow, type ReleaseHealthStatsOptions, type RepoCommit, type Result, type RoutingOverride, RustrakClient, type RustrakError, type RustrakErrorKind, SERVER_ERROR_MESSAGE, type ServerVersion, type SessionSummary, type SessionTimeseries, type SessionTimeseriesPoint, type SortOrder, type SourceMapFile, type SourceMapGcResult, type SourceMapStorage, type Span, type SpanDetail, type SsoConfig, type SsoLink, type SsoStart, type StorageSummary, TIMEOUT_ERROR_MESSAGE, type TagSummary, type TagValueCount, type TeamMember, type TestChannelResponse, type TestIntegrationBody, type Transaction, type TransactionDetail, type TransactionStats, type UpdateAlertIntegration, type UpdateAlertRule, type UpdateIssueState, type UpdateProject, type UpdateProjectRepository, type UpdateUserRole, type UpsertProjectMember, type User, type UserReport, isRetryable, mapResult, unwrap, unwrapOr };
2037
+ export { type AcceptInvitation, type ActivityEntry, type AgentBreakdownOptions, type AgentDurationPoint, type AgentModelRow, type AgentSummary, type AgentTimeseriesOptions, type AgentTimeseriesPoint, type AgentToolRow, type AgentTraceSummary, type AgentTracesOptions, type AlertHistory, type AlertIntegration, type AlertRule, type AlertRuleChannelInput, type AlertRuleConditions, type AlertStatus, type AlertType, type ApiError, type AssembleInput, type AssembleResponse, type AuthResponse, type AuthToken, type AuthTokenCreated, type BulkDeleteIssues, type BulkUpdateIssues, type ChangePasswordRequest, type CheckIn, type CheckInStatus, type ChunkUploadCapability, type CleanupCounts, type CleanupOptions, type CleanupStatus, type ClientConfig, type CodeMapping, type CreateAlertIntegration, type CreateAlertRule, type CreateAuthToken, type CreateComment, type CreateInvitation, type CreateMonitor, type CreateProject, type CreateUserReport, Err, type Event, type EventDetail, type EventTimeseries, type EventTimeseriesPoint, FIELD_ERROR_CODES, type FieldError, type FieldErrorCode, type GenAiBreakdownRow, type GitHubInstallation, type GitHubManifest, type GitHubRepository, type GitHubStatus, type GlobalRole, type IntervalUnit, type Invitation, type InvitationInfo, type Issue, type IssueAggregates, type IssueFilter, type IssueGitHub, type IssueHash, type IssueLink, type IssuePriority, type IssueSort, type IssueStats, type IssueStatsWindow, type IssueStatus, type IssueTagValue, type ListAlertHistoryOptions, type ListCheckInsOptions, type ListEventsOptions, type ListIssuesOptions, type ListLogsOptions, type ListProjectsOptions, type ListSourceMapsResponse, type ListSpansOptions, type ListTransactionsOptions, type Log, type LoginRequest, type LoginResult, type MetricDelta, type Monitor, type MonitorConfig, type MonitorConfigInput, type MonitorEnvironment, type MonitorEnvironmentStatus, NETWORK_ERROR_MESSAGE, type OffsetPaginatedResponse, Ok, type PaginatedResponse, type PreviewSchedule, type PreviewTemplateResponse, type Project, type ProjectListStats, type ProjectMember, type ProjectRepository, type ProjectRetention, type ProjectRole, type ProjectStatsSummary, type ProjectStorage, type ProviderType, type RateLimits, type RegisterRequest, type ReleaseHealthRow, type ReleaseHealthStatsOptions, type RepoCommit, type Result, type Retention, type RetentionRun, type RetentionSettings, type RetentionWindows, type RoutingOverride, RustrakClient, type RustrakError, type RustrakErrorKind, SERVER_ERROR_MESSAGE, type Schedule, type SchedulePreview, type ServerVersion, type SessionSummary, type SessionTimeseries, type SessionTimeseriesPoint, type SortOrder, type SourceMapFile, type SourceMapGcResult, type SourceMapStorage, type Span, type SpanDetail, type SsoConfig, type SsoLink, type SsoStart, type StorageAge, type StorageSummary, TIMEOUT_ERROR_MESSAGE, type TagSummary, type TagValueCount, type TeamMember, type TestChannelResponse, type TestIntegrationBody, type Transaction, type TransactionDetail, type TransactionStats, type UpdateAlertIntegration, type UpdateAlertRule, type UpdateIssueState, type UpdateMonitor, type UpdateProject, type UpdateProjectRepository, type UpdateUserRole, type UpsertProjectMember, type User, type UserReport, isRetryable, mapResult, unwrap, unwrapOr };