@rustrak/client 0.21.1 → 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.
@@ -66,6 +66,7 @@ const zAgentSummary = zod.object({
66
66
  */
67
67
  const zAgentTimeseriesPoint = zod.object({
68
68
  bucket: zod.iso.datetime({ offset: true }),
69
+ errors: zod.int(),
69
70
  value: zod.number()
70
71
  });
71
72
  /**
@@ -91,6 +92,16 @@ zod.object({
91
92
  trace_id: zod.string()
92
93
  });
93
94
  /**
95
+ * One UTC day of deliveries, by outcome: one rule's when the request named
96
+ * a rule, the whole project's otherwise.
97
+ */
98
+ const zAlertHistoryDay = zod.object({
99
+ day: zod.iso.datetime({ offset: true }),
100
+ failed: zod.int(),
101
+ sent: zod.int(),
102
+ skipped: zod.int()
103
+ });
104
+ /**
94
105
  * DTO for a channel with routing override in rule create/update
95
106
  */
96
107
  const zAlertRuleChannelInput = zod.object({
@@ -366,6 +377,31 @@ const zCompaction = zod.object({
366
377
  required_disk_bytes: zod.int()
367
378
  });
368
379
  const zConfirmSsoLinkRequest = zod.object({ password: zod.string() });
380
+ const zConversationSpan = zod.object({
381
+ agent_name: zod.string().nullable(),
382
+ duration_ms: zod.number().nullable(),
383
+ id: zod.uuid(),
384
+ input: zod.string().nullable(),
385
+ model: zod.string().nullable(),
386
+ operation_type: zod.string(),
387
+ output: zod.string().nullable(),
388
+ parent_span_id: zod.string().nullable(),
389
+ span_id: zod.string().nullable(),
390
+ start_timestamp: zod.iso.datetime({ offset: true }).nullable(),
391
+ status: zod.string().nullable(),
392
+ tool_calls: zod.string().nullable(),
393
+ tool_name: zod.string().nullable(),
394
+ total_tokens: zod.number().nullable(),
395
+ trace_id: zod.string()
396
+ });
397
+ /**
398
+ * A conversation in full: its AI spans across every turn, oldest first,
399
+ * each with what went in and came out, for a transcript.
400
+ */
401
+ const zAgentConversation = zod.object({
402
+ conversation_id: zod.string(),
403
+ spans: zod.array(zConversationSpan)
404
+ });
369
405
  /**
370
406
  * DTO for creating an alert rule
371
407
  */
@@ -632,7 +668,9 @@ const zIssuePriority = zod.enum([
632
668
  const zIssueSort = zod.enum([
633
669
  "digest_order",
634
670
  "last_seen",
635
- "event_count"
671
+ "event_count",
672
+ "first_seen",
673
+ "priority"
636
674
  ]);
637
675
  const zIssueStatsResponse = zod.object({ data: zod.array(zod.array(zod.int())) });
638
676
  /**
@@ -742,7 +780,10 @@ const zKindAge = zod.object({
742
780
  });
743
781
  const zLinkGitHubIssue = zod.object({ reference: zod.string() });
744
782
  const zLivenessResponse = zod.object({ status: zod.string() });
745
- zod.object({
783
+ /**
784
+ * Response model for a single stored log in the list view.
785
+ */
786
+ const zLogResponse = zod.object({
746
787
  attributes: zod.record(zod.string(), zod.unknown()),
747
788
  body: zod.string(),
748
789
  id: zod.uuid(),
@@ -753,6 +794,18 @@ zod.object({
753
794
  timestamp: zod.iso.datetime({ offset: true }),
754
795
  trace_id: zod.string().nullable()
755
796
  });
797
+ /**
798
+ * One bucket of the log volume: how many logs of each level it holds.
799
+ */
800
+ const zLogVolumePoint = zod.object({
801
+ bucket: zod.iso.datetime({ offset: true }),
802
+ debug: zod.int(),
803
+ error: zod.int(),
804
+ fatal: zod.int(),
805
+ info: zod.int(),
806
+ trace: zod.int(),
807
+ warn: zod.int()
808
+ });
756
809
  const zLoginRequest = zod.object({
757
810
  email: zod.string(),
758
811
  password: zod.string()
@@ -810,6 +863,29 @@ const zMonitorEnvironmentResponse = zod.object({
810
863
  status: zMonitorEnvironmentStatus
811
864
  });
812
865
  /**
866
+ * The check-ins of one bucket, counted by status.
867
+ */
868
+ const zMonitorStatsBucket = zod.object({
869
+ avg_duration_ms: zod.number().nullable(),
870
+ bucket: zod.iso.datetime({ offset: true }),
871
+ duration_count: zod.int(),
872
+ error: zod.int(),
873
+ in_progress: zod.int(),
874
+ missed: zod.int(),
875
+ ok: zod.int(),
876
+ timeout: zod.int()
877
+ });
878
+ /**
879
+ * One environment of a monitor over a window, bucket by bucket: what
880
+ * `GET /monitor-stats` returns, Sentry's `monitors-stats`.
881
+ */
882
+ const zMonitorEnvironmentStats = zod.object({
883
+ buckets: zod.array(zMonitorStatsBucket),
884
+ environment: zod.string(),
885
+ monitor_environment_id: zod.uuid(),
886
+ monitor_slug: zod.string()
887
+ });
888
+ /**
813
889
  * A connected client, as its user sees it.
814
890
  */
815
891
  const zOAuthGrant = zod.object({
@@ -839,6 +915,22 @@ const zPreviewTemplateResponse = zod.object({
839
915
  ok: zod.boolean(),
840
916
  rendered: zod.string().nullish()
841
917
  });
918
+ /**
919
+ * A kind of data a project can keep, and a route in its sidebar.
920
+ *
921
+ * Turning one off is not a view setting: its items are dropped at ingest,
922
+ * with a 200 as Relay drops filtered data, so nothing new is stored and the
923
+ * SDK does not retry. What was already stored stays.
924
+ */
925
+ const zProduct = zod.enum([
926
+ "issues",
927
+ "feedback",
928
+ "releases",
929
+ "performance",
930
+ "agents",
931
+ "logs",
932
+ "crons"
933
+ ]);
842
934
  const zProjectAge = zod.object({
843
935
  events: zKindAge,
844
936
  logs: zKindAge,
@@ -878,10 +970,12 @@ const zProjectRepository = zod.object({
878
970
  const zProjectResponse = zod.object({
879
971
  created_at: zod.iso.datetime({ offset: true }),
880
972
  digested_event_count: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
973
+ disabled_products: zod.array(zProduct),
881
974
  dsn: zod.string(),
882
975
  id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
883
976
  name: zod.string(),
884
977
  platform: zod.string().nullable(),
978
+ product_order: zod.array(zProduct),
885
979
  rate_limit_per_hour: zod.int().nullable(),
886
980
  rate_limit_per_minute: zod.int().nullable(),
887
981
  rate_limited_event_count: zod.int(),
@@ -1019,6 +1113,31 @@ const zReleaseResponse = zod.object({
1019
1113
  url: zod.string().nullable(),
1020
1114
  version: zod.string()
1021
1115
  });
1116
+ /**
1117
+ * One release as the releases page reads it: its record, if CI created
1118
+ * one, and what it brought -- events, new issues, environments and session
1119
+ * health -- the shape of Sentry's release list with `health=1`.
1120
+ *
1121
+ * Counts and rates cover the asked window and environment; the dates do not,
1122
+ * so a release keeps its age however narrow the window.
1123
+ */
1124
+ const zReleaseSummary = zod.object({
1125
+ adoption: zod.number().nullable(),
1126
+ crash_free_sessions: zod.number().nullable(),
1127
+ crash_free_users: zod.number().nullable(),
1128
+ crashed: zod.int(),
1129
+ date_created: zod.iso.datetime({ offset: true }),
1130
+ date_released: zod.iso.datetime({ offset: true }).nullable(),
1131
+ environments: zod.array(zod.string()),
1132
+ event_count: zod.int(),
1133
+ first_event: zod.iso.datetime({ offset: true }).nullable(),
1134
+ last_event: zod.iso.datetime({ offset: true }).nullable(),
1135
+ new_issues: zod.int(),
1136
+ ref: zod.string().nullable(),
1137
+ sessions: zod.int(),
1138
+ url: zod.string().nullable(),
1139
+ version: zod.string()
1140
+ });
1022
1141
  const zRepoCommit = zod.object({
1023
1142
  author_login: zod.string().nullable(),
1024
1143
  author_name: zod.string(),
@@ -1479,6 +1598,7 @@ zod.object({
1479
1598
  platform: zod.string(),
1480
1599
  release: zod.string(),
1481
1600
  start_timestamp: zod.iso.datetime({ offset: true }).nullable(),
1601
+ status: zod.string().nullable(),
1482
1602
  timestamp: zod.iso.datetime({ offset: true }),
1483
1603
  transaction_name: zod.string()
1484
1604
  });
@@ -1489,15 +1609,30 @@ zod.object({
1489
1609
  * interpolation, matching Postgres `percentile_cont`).
1490
1610
  */
1491
1611
  const zTransactionStatsResponse = zod.object({
1612
+ avg_ms: zod.number(),
1492
1613
  count: zod.int(),
1493
1614
  failure_rate: zod.number(),
1615
+ last_seen: zod.iso.datetime({ offset: true }),
1494
1616
  op: zod.string().nullable(),
1495
1617
  p50_ms: zod.number(),
1496
1618
  p95_ms: zod.number(),
1497
1619
  p99_ms: zod.number(),
1620
+ time_share: zod.number(),
1621
+ total_ms: zod.number(),
1498
1622
  transaction_name: zod.string()
1499
1623
  });
1500
1624
  /**
1625
+ * One bucket of an endpoint's trend: how often it ran, how often it failed
1626
+ * and how long it took.
1627
+ */
1628
+ const zTransactionTimeseriesPoint = zod.object({
1629
+ bucket: zod.iso.datetime({ offset: true }),
1630
+ count: zod.int(),
1631
+ failures: zod.int(),
1632
+ p50_ms: zod.number(),
1633
+ p95_ms: zod.number()
1634
+ });
1635
+ /**
1501
1636
  * DTO for updating an alert integration
1502
1637
  */
1503
1638
  const zUpdateAlertIntegration = zod.object({
@@ -1509,6 +1644,7 @@ const zUpdateAlertIntegration = zod.object({
1509
1644
  * DTO for updating an alert rule
1510
1645
  */
1511
1646
  const zUpdateAlertRule = zod.object({
1647
+ alert_type: zAlertType.nullish(),
1512
1648
  channels: zod.array(zAlertRuleChannelInput).nullish(),
1513
1649
  conditions: zod.record(zod.string(), zod.unknown()).nullish(),
1514
1650
  cooldown_minutes: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(),
@@ -1556,8 +1692,10 @@ const zUpdatePreferencesRequest = zod.object({
1556
1692
  * DTO for updating a project
1557
1693
  */
1558
1694
  const zUpdateProject = zod.object({
1695
+ disabled_products: zod.array(zProduct).nullish(),
1559
1696
  name: zod.string().nullish(),
1560
1697
  platform: zod.string().nullish(),
1698
+ product_order: zod.array(zProduct).nullish(),
1561
1699
  rate_limit_per_hour: zod.int().nullish(),
1562
1700
  rate_limit_per_minute: zod.int().nullish(),
1563
1701
  slug: zod.string().nullish()
@@ -1924,10 +2062,12 @@ const zProjectsListResponse = zod.object({
1924
2062
  items: zod.array(zod.object({
1925
2063
  created_at: zod.iso.datetime({ offset: true }),
1926
2064
  digested_event_count: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2065
+ disabled_products: zod.array(zProduct),
1927
2066
  dsn: zod.string(),
1928
2067
  id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1929
2068
  name: zod.string(),
1930
2069
  platform: zod.string().nullable(),
2070
+ product_order: zod.array(zProduct),
1931
2071
  rate_limit_per_hour: zod.int().nullable(),
1932
2072
  rate_limit_per_minute: zod.int().nullable(),
1933
2073
  rate_limited_event_count: zod.int(),
@@ -1963,6 +2103,41 @@ const zProjectsUpdatePath = zod.object({ id: zod.int().min(-2147483648, { error:
1963
2103
  * Project updated
1964
2104
  */
1965
2105
  const zProjectsUpdateResponse = zProjectResponse;
2106
+ const zAgentsConversationsPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2107
+ const zAgentsConversationsQuery = zod.object({
2108
+ period_hours: zod.int().nullish(),
2109
+ environment: zod.string().nullish(),
2110
+ page: zod.int().gte(1).optional(),
2111
+ per_page: zod.int().gte(1).lte(100).optional()
2112
+ });
2113
+ /**
2114
+ * Offset-based paginated response wrapper
2115
+ */
2116
+ const zAgentsConversationsResponse = zod.object({
2117
+ items: zod.array(zod.object({
2118
+ agent_names: zod.array(zod.string()),
2119
+ conversation_id: zod.string(),
2120
+ error_count: zod.int(),
2121
+ first_seen: zod.iso.datetime({ offset: true }).nullable(),
2122
+ last_seen: zod.iso.datetime({ offset: true }).nullable(),
2123
+ llm_call_count: zod.int(),
2124
+ tool_call_count: zod.int(),
2125
+ total_tokens: zod.number(),
2126
+ turn_count: zod.int()
2127
+ })),
2128
+ page: zod.int(),
2129
+ per_page: zod.int(),
2130
+ total_count: zod.int(),
2131
+ total_pages: zod.int()
2132
+ });
2133
+ const zAgentsConversationPath = zod.object({
2134
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2135
+ conversation_id: zod.string()
2136
+ });
2137
+ /**
2138
+ * The conversation's AI spans across its turns
2139
+ */
2140
+ const zAgentsConversationResponse = zAgentConversation;
1966
2141
  const zAgentsDurationPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
1967
2142
  const zAgentsDurationQuery = zod.object({
1968
2143
  period_hours: zod.int().nullish(),
@@ -2050,7 +2225,19 @@ const zAgentsTracesQuery = zod.object({
2050
2225
  period_hours: zod.int().nullish(),
2051
2226
  environment: zod.string().nullish(),
2052
2227
  page: zod.int().gte(1).optional(),
2053
- per_page: zod.int().gte(1).lte(100).optional()
2228
+ per_page: zod.int().gte(1).lte(100).optional(),
2229
+ agent: zod.string().nullish(),
2230
+ model: zod.string().nullish(),
2231
+ tool: zod.string().nullish(),
2232
+ errors: zod.boolean().optional(),
2233
+ sort: zod.enum([
2234
+ "newest",
2235
+ "duration",
2236
+ "tokens",
2237
+ "llm_calls",
2238
+ "tool_calls",
2239
+ "errors"
2240
+ ]).optional()
2054
2241
  });
2055
2242
  /**
2056
2243
  * Offset-based paginated response wrapper
@@ -2072,11 +2259,23 @@ const zAgentsTracesResponse = zod.object({
2072
2259
  total_pages: zod.int()
2073
2260
  });
2074
2261
  const zAlertRulesListHistoryPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2075
- const zAlertRulesListHistoryQuery = zod.object({ limit: zod.int().optional() });
2262
+ const zAlertRulesListHistoryQuery = zod.object({
2263
+ limit: zod.int().optional(),
2264
+ rule_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).optional()
2265
+ });
2076
2266
  /**
2077
2267
  * Alert history
2078
2268
  */
2079
2269
  const zAlertRulesListHistoryResponse = zod.array(zAlertHistory);
2270
+ const zAlertRulesHistoryByDayPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2271
+ const zAlertRulesHistoryByDayQuery = zod.object({
2272
+ days: zod.int().optional(),
2273
+ rule_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).optional()
2274
+ });
2275
+ /**
2276
+ * Deliveries per UTC day, oldest first
2277
+ */
2278
+ const zAlertRulesHistoryByDayResponse = zod.array(zAlertHistoryDay);
2080
2279
  const zAlertRulesListPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2081
2280
  /**
2082
2281
  * List of alert rules
@@ -2137,7 +2336,9 @@ const zEventsGetBySentryIdResponse = zEventDetailResponse;
2137
2336
  const zStatsGetEventTimeseriesPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2138
2337
  const zStatsGetEventTimeseriesQuery = zod.object({
2139
2338
  period: zod.string().optional(),
2140
- interval: zod.int().optional()
2339
+ interval: zod.int().optional(),
2340
+ environment: zod.string().optional(),
2341
+ release: zod.string().optional()
2141
2342
  });
2142
2343
  /**
2143
2344
  * Time-bucketed error-event volume by severity
@@ -2205,7 +2406,15 @@ const zIssuesListQuery = zod.object({
2205
2406
  filter: zIssueFilter.optional(),
2206
2407
  category: zIssueCategory.optional(),
2207
2408
  q: zod.string().nullish(),
2208
- environment: zod.string().nullish()
2409
+ environment: zod.string().nullish(),
2410
+ release: zod.string().nullish(),
2411
+ level: zod.string().nullish(),
2412
+ priority: zod.string().nullish(),
2413
+ assigned: zod.string().nullish(),
2414
+ first_seen: zod.string().nullish(),
2415
+ last_seen: zod.string().nullish(),
2416
+ events_min: zod.int().nullish(),
2417
+ events_max: zod.int().nullish()
2209
2418
  });
2210
2419
  /**
2211
2420
  * Offset-based paginated response wrapper
@@ -2478,7 +2687,9 @@ const zLogsListQuery = zod.object({
2478
2687
  page: zod.int().gte(1).optional(),
2479
2688
  per_page: zod.int().gte(1).lte(100).optional(),
2480
2689
  level: zod.string().nullish(),
2481
- trace_id: zod.string().nullish()
2690
+ trace_id: zod.string().nullish(),
2691
+ query: zod.string().nullish(),
2692
+ period: zod.string().nullish()
2482
2693
  });
2483
2694
  /**
2484
2695
  * Offset-based paginated response wrapper
@@ -2500,6 +2711,25 @@ const zLogsListResponse = zod.object({
2500
2711
  total_count: zod.int(),
2501
2712
  total_pages: zod.int()
2502
2713
  });
2714
+ const zLogsVolumePath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2715
+ const zLogsVolumeQuery = zod.object({
2716
+ level: zod.string().nullish(),
2717
+ trace_id: zod.string().nullish(),
2718
+ query: zod.string().nullish(),
2719
+ period: zod.string().nullish()
2720
+ });
2721
+ /**
2722
+ * Log counts per level, bucket by bucket
2723
+ */
2724
+ const zLogsVolumeResponse = zod.array(zLogVolumePoint);
2725
+ const zLogsGetPath = zod.object({
2726
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2727
+ log_id: zod.uuid()
2728
+ });
2729
+ /**
2730
+ * The log
2731
+ */
2732
+ const zLogsGetResponse = zLogResponse;
2503
2733
  const zMembersListPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2504
2734
  /**
2505
2735
  * List of project members
@@ -2519,6 +2749,15 @@ const zMembersRemovePath = zod.object({
2519
2749
  * Member removed
2520
2750
  */
2521
2751
  const zMembersRemoveResponse = zod.void();
2752
+ const zMonitorsStatsPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2753
+ const zMonitorsStatsQuery = zod.object({
2754
+ period: zod.string().nullish(),
2755
+ slug: zod.string().nullish()
2756
+ });
2757
+ /**
2758
+ * Each monitor environment's check-ins by status, in sixty buckets on one axis
2759
+ */
2760
+ const zMonitorsStatsResponse = zod.array(zMonitorEnvironmentStats);
2522
2761
  const zMonitorsListPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2523
2762
  /**
2524
2763
  * Every cron monitor of the project, with its environments and recent check-ins
@@ -2582,6 +2821,52 @@ const zMonitorsListCheckinsResponse = zod.object({
2582
2821
  total_count: zod.int(),
2583
2822
  total_pages: zod.int()
2584
2823
  });
2824
+ const zReleasesListPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2825
+ const zReleasesListQuery = zod.object({
2826
+ environment: zod.string().optional(),
2827
+ period: zod.string().optional(),
2828
+ query: zod.string().optional(),
2829
+ page: zod.int().optional(),
2830
+ per_page: zod.int().optional()
2831
+ });
2832
+ /**
2833
+ * Offset-based paginated response wrapper
2834
+ */
2835
+ const zReleasesListResponse = zod.object({
2836
+ items: zod.array(zod.object({
2837
+ adoption: zod.number().nullable(),
2838
+ crash_free_sessions: zod.number().nullable(),
2839
+ crash_free_users: zod.number().nullable(),
2840
+ crashed: zod.int(),
2841
+ date_created: zod.iso.datetime({ offset: true }),
2842
+ date_released: zod.iso.datetime({ offset: true }).nullable(),
2843
+ environments: zod.array(zod.string()),
2844
+ event_count: zod.int(),
2845
+ first_event: zod.iso.datetime({ offset: true }).nullable(),
2846
+ last_event: zod.iso.datetime({ offset: true }).nullable(),
2847
+ new_issues: zod.int(),
2848
+ ref: zod.string().nullable(),
2849
+ sessions: zod.int(),
2850
+ url: zod.string().nullable(),
2851
+ version: zod.string()
2852
+ })),
2853
+ page: zod.int(),
2854
+ per_page: zod.int(),
2855
+ total_count: zod.int(),
2856
+ total_pages: zod.int()
2857
+ });
2858
+ const zReleasesGetPath = zod.object({
2859
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2860
+ release: zod.string()
2861
+ });
2862
+ const zReleasesGetQuery = zod.object({
2863
+ environment: zod.string().optional(),
2864
+ period: zod.string().optional()
2865
+ });
2866
+ /**
2867
+ * The release
2868
+ */
2869
+ const zReleasesGetResponse = zReleaseSummary;
2585
2870
  const zReleasesNewIssuesPath = zod.object({
2586
2871
  project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2587
2872
  release: zod.string()
@@ -2619,7 +2904,11 @@ const zSessionsGetStatsResponse = zod.object({
2619
2904
  total_pages: zod.int()
2620
2905
  });
2621
2906
  const zSessionsGetSummaryPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2622
- const zSessionsGetSummaryQuery = zod.object({ period: zod.string().optional() });
2907
+ const zSessionsGetSummaryQuery = zod.object({
2908
+ period: zod.string().optional(),
2909
+ environment: zod.string().optional(),
2910
+ release: zod.string().optional()
2911
+ });
2623
2912
  /**
2624
2913
  * Project-wide session health summary
2625
2914
  */
@@ -2627,7 +2916,9 @@ const zSessionsGetSummaryResponse = zSessionSummary;
2627
2916
  const zSessionsGetTimeseriesPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2628
2917
  const zSessionsGetTimeseriesQuery = zod.object({
2629
2918
  period: zod.string().optional(),
2630
- interval: zod.int().optional()
2919
+ interval: zod.int().optional(),
2920
+ environment: zod.string().optional(),
2921
+ release: zod.string().optional()
2631
2922
  });
2632
2923
  /**
2633
2924
  * Time-bucketed session trend, project-wide
@@ -2688,7 +2979,11 @@ const zSpansGetPath = zod.object({
2688
2979
  */
2689
2980
  const zSpansGetResponse = zSpanDetailResponse;
2690
2981
  const zStatsGetSummaryPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2691
- const zStatsGetSummaryQuery = zod.object({ period: zod.string().optional() });
2982
+ const zStatsGetSummaryQuery = zod.object({
2983
+ period: zod.string().optional(),
2984
+ environment: zod.string().optional(),
2985
+ release: zod.string().optional()
2986
+ });
2692
2987
  /**
2693
2988
  * Project counters with previous-period comparison
2694
2989
  */
@@ -2701,7 +2996,9 @@ const zTransactionsListQuery = zod.object({
2701
2996
  op: zod.string().nullish(),
2702
2997
  status: zod.string().nullish(),
2703
2998
  environment: zod.string().nullish(),
2704
- release: zod.string().nullish()
2999
+ release: zod.string().nullish(),
3000
+ period: zod.string().nullish(),
3001
+ sort: zod.union([zod.literal("recent"), zod.literal("slowest")]).nullish()
2705
3002
  });
2706
3003
  /**
2707
3004
  * Offset-based paginated response wrapper
@@ -2716,6 +3013,7 @@ const zTransactionsListResponse = zod.object({
2716
3013
  platform: zod.string(),
2717
3014
  release: zod.string(),
2718
3015
  start_timestamp: zod.iso.datetime({ offset: true }).nullable(),
3016
+ status: zod.string().nullable(),
2719
3017
  timestamp: zod.iso.datetime({ offset: true }),
2720
3018
  transaction_name: zod.string()
2721
3019
  })),
@@ -2727,19 +3025,32 @@ const zTransactionsListResponse = zod.object({
2727
3025
  const zTransactionsGetStatsPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2728
3026
  const zTransactionsGetStatsQuery = zod.object({
2729
3027
  page: zod.int().gte(1).optional(),
2730
- per_page: zod.int().gte(1).lte(100).optional()
3028
+ per_page: zod.int().gte(1).lte(100).optional(),
3029
+ environment: zod.string().nullish(),
3030
+ period: zod.string().nullish(),
3031
+ query: zod.string().nullish(),
3032
+ sort: zod.enum([
3033
+ "time_spent",
3034
+ "count",
3035
+ "avg",
3036
+ "failure_rate"
3037
+ ]).optional()
2731
3038
  });
2732
3039
  /**
2733
3040
  * Offset-based paginated response wrapper
2734
3041
  */
2735
3042
  const zTransactionsGetStatsResponse = zod.object({
2736
3043
  items: zod.array(zod.object({
3044
+ avg_ms: zod.number(),
2737
3045
  count: zod.int(),
2738
3046
  failure_rate: zod.number(),
3047
+ last_seen: zod.iso.datetime({ offset: true }),
2739
3048
  op: zod.string().nullable(),
2740
3049
  p50_ms: zod.number(),
2741
3050
  p95_ms: zod.number(),
2742
3051
  p99_ms: zod.number(),
3052
+ time_share: zod.number(),
3053
+ total_ms: zod.number(),
2743
3054
  transaction_name: zod.string()
2744
3055
  })),
2745
3056
  page: zod.int(),
@@ -2750,12 +3061,25 @@ const zTransactionsGetStatsResponse = zod.object({
2750
3061
  const zTransactionsGetStatGroupPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2751
3062
  const zTransactionsGetStatGroupQuery = zod.object({
2752
3063
  name: zod.string(),
2753
- op: zod.string().nullish()
3064
+ op: zod.string().nullish(),
3065
+ environment: zod.string().nullish(),
3066
+ period: zod.string().nullish()
2754
3067
  });
2755
3068
  /**
2756
3069
  * Aggregate stats for one (transaction, op) group
2757
3070
  */
2758
3071
  const zTransactionsGetStatGroupResponse = zTransactionStatsResponse;
3072
+ const zTransactionsGetStatGroupTimeseriesPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
3073
+ const zTransactionsGetStatGroupTimeseriesQuery = zod.object({
3074
+ name: zod.string(),
3075
+ op: zod.string().nullish(),
3076
+ environment: zod.string().nullish(),
3077
+ period: zod.string().nullish()
3078
+ });
3079
+ /**
3080
+ * The endpoint's runs, failures, p50 and p95 per bucket, oldest first
3081
+ */
3082
+ const zTransactionsGetStatGroupTimeseriesResponse = zod.array(zTransactionTimeseriesPoint);
2759
3083
  const zTransactionsGetPath = zod.object({
2760
3084
  project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2761
3085
  transaction_id: zod.uuid()
@@ -3008,11 +3332,17 @@ const zSentryOpenIssuePath = zod.object({
3008
3332
  exports.zAcceptInvitation = zAcceptInvitation;
3009
3333
  exports.zAcceptInvitationResponse = zAcceptInvitationResponse;
3010
3334
  exports.zActivityEntry = zActivityEntry;
3335
+ exports.zAgentConversation = zAgentConversation;
3011
3336
  exports.zAgentDurationPoint = zAgentDurationPoint;
3012
3337
  exports.zAgentModelRow = zAgentModelRow;
3013
3338
  exports.zAgentSummary = zAgentSummary;
3014
3339
  exports.zAgentTimeseriesPoint = zAgentTimeseriesPoint;
3015
3340
  exports.zAgentToolRow = zAgentToolRow;
3341
+ exports.zAgentsConversationPath = zAgentsConversationPath;
3342
+ exports.zAgentsConversationResponse = zAgentsConversationResponse;
3343
+ exports.zAgentsConversationsPath = zAgentsConversationsPath;
3344
+ exports.zAgentsConversationsQuery = zAgentsConversationsQuery;
3345
+ exports.zAgentsConversationsResponse = zAgentsConversationsResponse;
3016
3346
  exports.zAgentsDurationPath = zAgentsDurationPath;
3017
3347
  exports.zAgentsDurationQuery = zAgentsDurationQuery;
3018
3348
  exports.zAgentsDurationResponse = zAgentsDurationResponse;
@@ -3058,6 +3388,7 @@ exports.zAlertChannelsUpdateBody = zAlertChannelsUpdateBody;
3058
3388
  exports.zAlertChannelsUpdatePath = zAlertChannelsUpdatePath;
3059
3389
  exports.zAlertChannelsUpdateResponse = zAlertChannelsUpdateResponse;
3060
3390
  exports.zAlertHistory = zAlertHistory;
3391
+ exports.zAlertHistoryDay = zAlertHistoryDay;
3061
3392
  exports.zAlertIntegration = zAlertIntegration;
3062
3393
  exports.zAlertRuleChannelInput = zAlertRuleChannelInput;
3063
3394
  exports.zAlertRuleResponse = zAlertRuleResponse;
@@ -3068,6 +3399,9 @@ exports.zAlertRulesDeletePath = zAlertRulesDeletePath;
3068
3399
  exports.zAlertRulesDeleteResponse = zAlertRulesDeleteResponse;
3069
3400
  exports.zAlertRulesGetPath = zAlertRulesGetPath;
3070
3401
  exports.zAlertRulesGetResponse = zAlertRulesGetResponse;
3402
+ exports.zAlertRulesHistoryByDayPath = zAlertRulesHistoryByDayPath;
3403
+ exports.zAlertRulesHistoryByDayQuery = zAlertRulesHistoryByDayQuery;
3404
+ exports.zAlertRulesHistoryByDayResponse = zAlertRulesHistoryByDayResponse;
3071
3405
  exports.zAlertRulesListHistoryPath = zAlertRulesListHistoryPath;
3072
3406
  exports.zAlertRulesListHistoryQuery = zAlertRulesListHistoryQuery;
3073
3407
  exports.zAlertRulesListHistoryResponse = zAlertRulesListHistoryResponse;
@@ -3129,6 +3463,7 @@ exports.zCodeMapping = zCodeMapping;
3129
3463
  exports.zCommentRequest = zCommentRequest;
3130
3464
  exports.zCompaction = zCompaction;
3131
3465
  exports.zConfirmSsoLinkRequest = zConfirmSsoLinkRequest;
3466
+ exports.zConversationSpan = zConversationSpan;
3132
3467
  exports.zCreateAlertIntegration = zCreateAlertIntegration;
3133
3468
  exports.zCreateAlertRule = zCreateAlertRule;
3134
3469
  exports.zCreateAuthToken = zCreateAuthToken;
@@ -3279,10 +3614,17 @@ exports.zIssuesUpdateResponse = zIssuesUpdateResponse;
3279
3614
  exports.zKindAge = zKindAge;
3280
3615
  exports.zLinkGitHubIssue = zLinkGitHubIssue;
3281
3616
  exports.zLivenessResponse = zLivenessResponse;
3617
+ exports.zLogResponse = zLogResponse;
3618
+ exports.zLogVolumePoint = zLogVolumePoint;
3282
3619
  exports.zLoginRequest = zLoginRequest;
3620
+ exports.zLogsGetPath = zLogsGetPath;
3621
+ exports.zLogsGetResponse = zLogsGetResponse;
3283
3622
  exports.zLogsListPath = zLogsListPath;
3284
3623
  exports.zLogsListQuery = zLogsListQuery;
3285
3624
  exports.zLogsListResponse = zLogsListResponse;
3625
+ exports.zLogsVolumePath = zLogsVolumePath;
3626
+ exports.zLogsVolumeQuery = zLogsVolumeQuery;
3627
+ exports.zLogsVolumeResponse = zLogsVolumeResponse;
3286
3628
  exports.zManifestRequest = zManifestRequest;
3287
3629
  exports.zManifestResponse = zManifestResponse;
3288
3630
  exports.zMcpSettings = zMcpSettings;
@@ -3298,8 +3640,10 @@ exports.zMetricDelta = zMetricDelta;
3298
3640
  exports.zMonitorConfig = zMonitorConfig;
3299
3641
  exports.zMonitorConfigInput = zMonitorConfigInput;
3300
3642
  exports.zMonitorEnvironmentResponse = zMonitorEnvironmentResponse;
3643
+ exports.zMonitorEnvironmentStats = zMonitorEnvironmentStats;
3301
3644
  exports.zMonitorEnvironmentStatus = zMonitorEnvironmentStatus;
3302
3645
  exports.zMonitorResponse = zMonitorResponse;
3646
+ exports.zMonitorStatsBucket = zMonitorStatsBucket;
3303
3647
  exports.zMonitorsCreateBody = zMonitorsCreateBody;
3304
3648
  exports.zMonitorsCreatePath = zMonitorsCreatePath;
3305
3649
  exports.zMonitorsCreateResponse = zMonitorsCreateResponse;
@@ -3312,6 +3656,9 @@ exports.zMonitorsListCheckinsQuery = zMonitorsListCheckinsQuery;
3312
3656
  exports.zMonitorsListCheckinsResponse = zMonitorsListCheckinsResponse;
3313
3657
  exports.zMonitorsListPath = zMonitorsListPath;
3314
3658
  exports.zMonitorsListResponse = zMonitorsListResponse;
3659
+ exports.zMonitorsStatsPath = zMonitorsStatsPath;
3660
+ exports.zMonitorsStatsQuery = zMonitorsStatsQuery;
3661
+ exports.zMonitorsStatsResponse = zMonitorsStatsResponse;
3315
3662
  exports.zMonitorsUpdateBody = zMonitorsUpdateBody;
3316
3663
  exports.zMonitorsUpdatePath = zMonitorsUpdatePath;
3317
3664
  exports.zMonitorsUpdateResponse = zMonitorsUpdateResponse;
@@ -3327,6 +3674,7 @@ exports.zOrgDetails = zOrgDetails;
3327
3674
  exports.zPreviewSchedule = zPreviewSchedule;
3328
3675
  exports.zPreviewTemplateBody = zPreviewTemplateBody;
3329
3676
  exports.zPreviewTemplateResponse = zPreviewTemplateResponse;
3677
+ exports.zProduct = zProduct;
3330
3678
  exports.zProjectAge = zProjectAge;
3331
3679
  exports.zProjectListStats = zProjectListStats;
3332
3680
  exports.zProjectMember = zProjectMember;
@@ -3353,12 +3701,19 @@ exports.zRateLimitsResponse = zRateLimitsResponse;
3353
3701
  exports.zReadinessChecks = zReadinessChecks;
3354
3702
  exports.zReadinessResponse = zReadinessResponse;
3355
3703
  exports.zReleaseResponse = zReleaseResponse;
3704
+ exports.zReleaseSummary = zReleaseSummary;
3356
3705
  exports.zReleasesCreateBody = zReleasesCreateBody;
3357
3706
  exports.zReleasesCreatePath = zReleasesCreatePath;
3358
3707
  exports.zReleasesCreateResponse = zReleasesCreateResponse;
3359
3708
  exports.zReleasesFinalizeBody = zReleasesFinalizeBody;
3360
3709
  exports.zReleasesFinalizePath = zReleasesFinalizePath;
3361
3710
  exports.zReleasesFinalizeResponse = zReleasesFinalizeResponse;
3711
+ exports.zReleasesGetPath = zReleasesGetPath;
3712
+ exports.zReleasesGetQuery = zReleasesGetQuery;
3713
+ exports.zReleasesGetResponse = zReleasesGetResponse;
3714
+ exports.zReleasesListPath = zReleasesListPath;
3715
+ exports.zReleasesListQuery = zReleasesListQuery;
3716
+ exports.zReleasesListResponse = zReleasesListResponse;
3362
3717
  exports.zReleasesNewIssuesPath = zReleasesNewIssuesPath;
3363
3718
  exports.zReleasesNewIssuesQuery = zReleasesNewIssuesQuery;
3364
3719
  exports.zReleasesNewIssuesResponse = zReleasesNewIssuesResponse;
@@ -3492,6 +3847,7 @@ exports.zTokensGetResponse = zTokensGetResponse;
3492
3847
  exports.zTokensListResponse = zTokensListResponse;
3493
3848
  exports.zTransactionDetailResponse = zTransactionDetailResponse;
3494
3849
  exports.zTransactionStatsResponse = zTransactionStatsResponse;
3850
+ exports.zTransactionTimeseriesPoint = zTransactionTimeseriesPoint;
3495
3851
  exports.zTransactionsGetPath = zTransactionsGetPath;
3496
3852
  exports.zTransactionsGetResponse = zTransactionsGetResponse;
3497
3853
  exports.zTransactionsGetSpansPath = zTransactionsGetSpansPath;
@@ -3499,6 +3855,9 @@ exports.zTransactionsGetSpansResponse = zTransactionsGetSpansResponse;
3499
3855
  exports.zTransactionsGetStatGroupPath = zTransactionsGetStatGroupPath;
3500
3856
  exports.zTransactionsGetStatGroupQuery = zTransactionsGetStatGroupQuery;
3501
3857
  exports.zTransactionsGetStatGroupResponse = zTransactionsGetStatGroupResponse;
3858
+ exports.zTransactionsGetStatGroupTimeseriesPath = zTransactionsGetStatGroupTimeseriesPath;
3859
+ exports.zTransactionsGetStatGroupTimeseriesQuery = zTransactionsGetStatGroupTimeseriesQuery;
3860
+ exports.zTransactionsGetStatGroupTimeseriesResponse = zTransactionsGetStatGroupTimeseriesResponse;
3502
3861
  exports.zTransactionsGetStatsPath = zTransactionsGetStatsPath;
3503
3862
  exports.zTransactionsGetStatsQuery = zTransactionsGetStatsQuery;
3504
3863
  exports.zTransactionsGetStatsResponse = zTransactionsGetStatsResponse;