@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.
@@ -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
  */
@@ -405,6 +441,35 @@ const zCreateUserRequest = zod.object({
405
441
  password: zod.string()
406
442
  });
407
443
  /**
444
+ * A debug information file as Sentry's `DebugFileSerializer` describes it.
445
+ */
446
+ const zDebugFileResponse = zod.object({
447
+ codeId: zod.string().nullable(),
448
+ cpuName: zod.string(),
449
+ data: zod.unknown(),
450
+ dateCreated: zod.string(),
451
+ debugId: zod.string(),
452
+ headers: zod.record(zod.string(), zod.string()),
453
+ id: zod.string(),
454
+ objectName: zod.string(),
455
+ sha1: zod.string(),
456
+ size: zod.int().gte(0),
457
+ symbolType: zod.string(),
458
+ uuid: zod.string()
459
+ });
460
+ /**
461
+ * One file of a debug information file assemble request.
462
+ */
463
+ const zDifAssembleFile = zod.object({
464
+ chunks: zod.array(zod.string()),
465
+ debug_id: zod.string().nullish(),
466
+ name: zod.string()
467
+ });
468
+ /**
469
+ * Multipart legacy debug file upload: one `file` part holding a zip.
470
+ */
471
+ const zDifUploadBody = zod.record(zod.string(), zod.unknown());
472
+ /**
408
473
  * Response for API (full detail)
409
474
  */
410
475
  const zEventDetailResponse = zod.object({
@@ -603,7 +668,9 @@ const zIssuePriority = zod.enum([
603
668
  const zIssueSort = zod.enum([
604
669
  "digest_order",
605
670
  "last_seen",
606
- "event_count"
671
+ "event_count",
672
+ "first_seen",
673
+ "priority"
607
674
  ]);
608
675
  const zIssueStatsResponse = zod.object({ data: zod.array(zod.array(zod.int())) });
609
676
  /**
@@ -713,7 +780,10 @@ const zKindAge = zod.object({
713
780
  });
714
781
  const zLinkGitHubIssue = zod.object({ reference: zod.string() });
715
782
  const zLivenessResponse = zod.object({ status: zod.string() });
716
- zod.object({
783
+ /**
784
+ * Response model for a single stored log in the list view.
785
+ */
786
+ const zLogResponse = zod.object({
717
787
  attributes: zod.record(zod.string(), zod.unknown()),
718
788
  body: zod.string(),
719
789
  id: zod.uuid(),
@@ -724,6 +794,18 @@ zod.object({
724
794
  timestamp: zod.iso.datetime({ offset: true }),
725
795
  trace_id: zod.string().nullable()
726
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
+ });
727
809
  const zLoginRequest = zod.object({
728
810
  email: zod.string(),
729
811
  password: zod.string()
@@ -781,6 +863,29 @@ const zMonitorEnvironmentResponse = zod.object({
781
863
  status: zMonitorEnvironmentStatus
782
864
  });
783
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
+ /**
784
889
  * A connected client, as its user sees it.
785
890
  */
786
891
  const zOAuthGrant = zod.object({
@@ -810,6 +915,22 @@ const zPreviewTemplateResponse = zod.object({
810
915
  ok: zod.boolean(),
811
916
  rendered: zod.string().nullish()
812
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
+ ]);
813
934
  const zProjectAge = zod.object({
814
935
  events: zKindAge,
815
936
  logs: zKindAge,
@@ -849,10 +970,12 @@ const zProjectRepository = zod.object({
849
970
  const zProjectResponse = zod.object({
850
971
  created_at: zod.iso.datetime({ offset: true }),
851
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),
852
974
  dsn: zod.string(),
853
975
  id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
854
976
  name: zod.string(),
855
977
  platform: zod.string().nullable(),
978
+ product_order: zod.array(zProduct),
856
979
  rate_limit_per_hour: zod.int().nullable(),
857
980
  rate_limit_per_minute: zod.int().nullable(),
858
981
  rate_limited_event_count: zod.int(),
@@ -990,6 +1113,31 @@ const zReleaseResponse = zod.object({
990
1113
  url: zod.string().nullable(),
991
1114
  version: zod.string()
992
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
+ });
993
1141
  const zRepoCommit = zod.object({
994
1142
  author_login: zod.string().nullable(),
995
1143
  author_name: zod.string(),
@@ -1450,6 +1598,7 @@ zod.object({
1450
1598
  platform: zod.string(),
1451
1599
  release: zod.string(),
1452
1600
  start_timestamp: zod.iso.datetime({ offset: true }).nullable(),
1601
+ status: zod.string().nullable(),
1453
1602
  timestamp: zod.iso.datetime({ offset: true }),
1454
1603
  transaction_name: zod.string()
1455
1604
  });
@@ -1460,15 +1609,30 @@ zod.object({
1460
1609
  * interpolation, matching Postgres `percentile_cont`).
1461
1610
  */
1462
1611
  const zTransactionStatsResponse = zod.object({
1612
+ avg_ms: zod.number(),
1463
1613
  count: zod.int(),
1464
1614
  failure_rate: zod.number(),
1615
+ last_seen: zod.iso.datetime({ offset: true }),
1465
1616
  op: zod.string().nullable(),
1466
1617
  p50_ms: zod.number(),
1467
1618
  p95_ms: zod.number(),
1468
1619
  p99_ms: zod.number(),
1620
+ time_share: zod.number(),
1621
+ total_ms: zod.number(),
1469
1622
  transaction_name: zod.string()
1470
1623
  });
1471
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
+ /**
1472
1636
  * DTO for updating an alert integration
1473
1637
  */
1474
1638
  const zUpdateAlertIntegration = zod.object({
@@ -1480,6 +1644,7 @@ const zUpdateAlertIntegration = zod.object({
1480
1644
  * DTO for updating an alert rule
1481
1645
  */
1482
1646
  const zUpdateAlertRule = zod.object({
1647
+ alert_type: zAlertType.nullish(),
1483
1648
  channels: zod.array(zAlertRuleChannelInput).nullish(),
1484
1649
  conditions: zod.record(zod.string(), zod.unknown()).nullish(),
1485
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(),
@@ -1527,8 +1692,10 @@ const zUpdatePreferencesRequest = zod.object({
1527
1692
  * DTO for updating a project
1528
1693
  */
1529
1694
  const zUpdateProject = zod.object({
1695
+ disabled_products: zod.array(zProduct).nullish(),
1530
1696
  name: zod.string().nullish(),
1531
1697
  platform: zod.string().nullish(),
1698
+ product_order: zod.array(zProduct).nullish(),
1532
1699
  rate_limit_per_hour: zod.int().nullish(),
1533
1700
  rate_limit_per_minute: zod.int().nullish(),
1534
1701
  slug: zod.string().nullish()
@@ -1692,6 +1859,27 @@ const zSentryListProjectsQuery = zod.object({
1692
1859
  * Projects, newest first; paginated by the `Link` header
1693
1860
  */
1694
1861
  const zSentryListProjectsResponse = zod.array(zSentryProject);
1862
+ const zDebugFilesAssembleBody = zod.record(zod.string(), zDifAssembleFile);
1863
+ const zDebugFilesAssemblePath = zod.object({
1864
+ org_slug: zod.string(),
1865
+ project_slug: zod.string()
1866
+ });
1867
+ /**
1868
+ * Assembly state per file checksum (not_found / created / assembling / ok / error)
1869
+ */
1870
+ const zDebugFilesAssembleResponse = zod.record(zod.string(), zAssembleResponse);
1871
+ /**
1872
+ * A `file` part: a zip of debug files, such as `proguard/<uuid>.txt`
1873
+ */
1874
+ const zDebugFilesUploadBody = zDifUploadBody;
1875
+ const zDebugFilesUploadPath = zod.object({
1876
+ org_slug: zod.string(),
1877
+ project_slug: zod.string()
1878
+ });
1879
+ /**
1880
+ * The debug files queued for processing
1881
+ */
1882
+ const zDebugFilesUploadResponse = zod.array(zDebugFileResponse);
1695
1883
  const zSourceMapsListPath = zod.object({
1696
1884
  org_slug: zod.string(),
1697
1885
  project_slug: zod.string()
@@ -1874,10 +2062,12 @@ const zProjectsListResponse = zod.object({
1874
2062
  items: zod.array(zod.object({
1875
2063
  created_at: zod.iso.datetime({ offset: true }),
1876
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),
1877
2066
  dsn: zod.string(),
1878
2067
  id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1879
2068
  name: zod.string(),
1880
2069
  platform: zod.string().nullable(),
2070
+ product_order: zod.array(zProduct),
1881
2071
  rate_limit_per_hour: zod.int().nullable(),
1882
2072
  rate_limit_per_minute: zod.int().nullable(),
1883
2073
  rate_limited_event_count: zod.int(),
@@ -1913,6 +2103,41 @@ const zProjectsUpdatePath = zod.object({ id: zod.int().min(-2147483648, { error:
1913
2103
  * Project updated
1914
2104
  */
1915
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;
1916
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" }) });
1917
2142
  const zAgentsDurationQuery = zod.object({
1918
2143
  period_hours: zod.int().nullish(),
@@ -2000,7 +2225,19 @@ const zAgentsTracesQuery = zod.object({
2000
2225
  period_hours: zod.int().nullish(),
2001
2226
  environment: zod.string().nullish(),
2002
2227
  page: zod.int().gte(1).optional(),
2003
- 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()
2004
2241
  });
2005
2242
  /**
2006
2243
  * Offset-based paginated response wrapper
@@ -2022,11 +2259,23 @@ const zAgentsTracesResponse = zod.object({
2022
2259
  total_pages: zod.int()
2023
2260
  });
2024
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" }) });
2025
- 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
+ });
2026
2266
  /**
2027
2267
  * Alert history
2028
2268
  */
2029
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);
2030
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" }) });
2031
2280
  /**
2032
2281
  * List of alert rules
@@ -2087,7 +2336,9 @@ const zEventsGetBySentryIdResponse = zEventDetailResponse;
2087
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" }) });
2088
2337
  const zStatsGetEventTimeseriesQuery = zod.object({
2089
2338
  period: zod.string().optional(),
2090
- interval: zod.int().optional()
2339
+ interval: zod.int().optional(),
2340
+ environment: zod.string().optional(),
2341
+ release: zod.string().optional()
2091
2342
  });
2092
2343
  /**
2093
2344
  * Time-bucketed error-event volume by severity
@@ -2155,7 +2406,15 @@ const zIssuesListQuery = zod.object({
2155
2406
  filter: zIssueFilter.optional(),
2156
2407
  category: zIssueCategory.optional(),
2157
2408
  q: zod.string().nullish(),
2158
- 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()
2159
2418
  });
2160
2419
  /**
2161
2420
  * Offset-based paginated response wrapper
@@ -2428,7 +2687,9 @@ const zLogsListQuery = zod.object({
2428
2687
  page: zod.int().gte(1).optional(),
2429
2688
  per_page: zod.int().gte(1).lte(100).optional(),
2430
2689
  level: zod.string().nullish(),
2431
- trace_id: zod.string().nullish()
2690
+ trace_id: zod.string().nullish(),
2691
+ query: zod.string().nullish(),
2692
+ period: zod.string().nullish()
2432
2693
  });
2433
2694
  /**
2434
2695
  * Offset-based paginated response wrapper
@@ -2450,6 +2711,25 @@ const zLogsListResponse = zod.object({
2450
2711
  total_count: zod.int(),
2451
2712
  total_pages: zod.int()
2452
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;
2453
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" }) });
2454
2734
  /**
2455
2735
  * List of project members
@@ -2469,6 +2749,15 @@ const zMembersRemovePath = zod.object({
2469
2749
  * Member removed
2470
2750
  */
2471
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);
2472
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" }) });
2473
2762
  /**
2474
2763
  * Every cron monitor of the project, with its environments and recent check-ins
@@ -2532,6 +2821,52 @@ const zMonitorsListCheckinsResponse = zod.object({
2532
2821
  total_count: zod.int(),
2533
2822
  total_pages: zod.int()
2534
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;
2535
2870
  const zReleasesNewIssuesPath = zod.object({
2536
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" }),
2537
2872
  release: zod.string()
@@ -2569,7 +2904,11 @@ const zSessionsGetStatsResponse = zod.object({
2569
2904
  total_pages: zod.int()
2570
2905
  });
2571
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" }) });
2572
- 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
+ });
2573
2912
  /**
2574
2913
  * Project-wide session health summary
2575
2914
  */
@@ -2577,7 +2916,9 @@ const zSessionsGetSummaryResponse = zSessionSummary;
2577
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" }) });
2578
2917
  const zSessionsGetTimeseriesQuery = zod.object({
2579
2918
  period: zod.string().optional(),
2580
- interval: zod.int().optional()
2919
+ interval: zod.int().optional(),
2920
+ environment: zod.string().optional(),
2921
+ release: zod.string().optional()
2581
2922
  });
2582
2923
  /**
2583
2924
  * Time-bucketed session trend, project-wide
@@ -2638,7 +2979,11 @@ const zSpansGetPath = zod.object({
2638
2979
  */
2639
2980
  const zSpansGetResponse = zSpanDetailResponse;
2640
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" }) });
2641
- 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
+ });
2642
2987
  /**
2643
2988
  * Project counters with previous-period comparison
2644
2989
  */
@@ -2651,7 +2996,9 @@ const zTransactionsListQuery = zod.object({
2651
2996
  op: zod.string().nullish(),
2652
2997
  status: zod.string().nullish(),
2653
2998
  environment: zod.string().nullish(),
2654
- 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()
2655
3002
  });
2656
3003
  /**
2657
3004
  * Offset-based paginated response wrapper
@@ -2666,6 +3013,7 @@ const zTransactionsListResponse = zod.object({
2666
3013
  platform: zod.string(),
2667
3014
  release: zod.string(),
2668
3015
  start_timestamp: zod.iso.datetime({ offset: true }).nullable(),
3016
+ status: zod.string().nullable(),
2669
3017
  timestamp: zod.iso.datetime({ offset: true }),
2670
3018
  transaction_name: zod.string()
2671
3019
  })),
@@ -2677,19 +3025,32 @@ const zTransactionsListResponse = zod.object({
2677
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" }) });
2678
3026
  const zTransactionsGetStatsQuery = zod.object({
2679
3027
  page: zod.int().gte(1).optional(),
2680
- 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()
2681
3038
  });
2682
3039
  /**
2683
3040
  * Offset-based paginated response wrapper
2684
3041
  */
2685
3042
  const zTransactionsGetStatsResponse = zod.object({
2686
3043
  items: zod.array(zod.object({
3044
+ avg_ms: zod.number(),
2687
3045
  count: zod.int(),
2688
3046
  failure_rate: zod.number(),
3047
+ last_seen: zod.iso.datetime({ offset: true }),
2689
3048
  op: zod.string().nullable(),
2690
3049
  p50_ms: zod.number(),
2691
3050
  p95_ms: zod.number(),
2692
3051
  p99_ms: zod.number(),
3052
+ time_share: zod.number(),
3053
+ total_ms: zod.number(),
2693
3054
  transaction_name: zod.string()
2694
3055
  })),
2695
3056
  page: zod.int(),
@@ -2700,12 +3061,25 @@ const zTransactionsGetStatsResponse = zod.object({
2700
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" }) });
2701
3062
  const zTransactionsGetStatGroupQuery = zod.object({
2702
3063
  name: zod.string(),
2703
- op: zod.string().nullish()
3064
+ op: zod.string().nullish(),
3065
+ environment: zod.string().nullish(),
3066
+ period: zod.string().nullish()
2704
3067
  });
2705
3068
  /**
2706
3069
  * Aggregate stats for one (transaction, op) group
2707
3070
  */
2708
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);
2709
3083
  const zTransactionsGetPath = zod.object({
2710
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" }),
2711
3085
  transaction_id: zod.uuid()
@@ -2958,11 +3332,17 @@ const zSentryOpenIssuePath = zod.object({
2958
3332
  exports.zAcceptInvitation = zAcceptInvitation;
2959
3333
  exports.zAcceptInvitationResponse = zAcceptInvitationResponse;
2960
3334
  exports.zActivityEntry = zActivityEntry;
3335
+ exports.zAgentConversation = zAgentConversation;
2961
3336
  exports.zAgentDurationPoint = zAgentDurationPoint;
2962
3337
  exports.zAgentModelRow = zAgentModelRow;
2963
3338
  exports.zAgentSummary = zAgentSummary;
2964
3339
  exports.zAgentTimeseriesPoint = zAgentTimeseriesPoint;
2965
3340
  exports.zAgentToolRow = zAgentToolRow;
3341
+ exports.zAgentsConversationPath = zAgentsConversationPath;
3342
+ exports.zAgentsConversationResponse = zAgentsConversationResponse;
3343
+ exports.zAgentsConversationsPath = zAgentsConversationsPath;
3344
+ exports.zAgentsConversationsQuery = zAgentsConversationsQuery;
3345
+ exports.zAgentsConversationsResponse = zAgentsConversationsResponse;
2966
3346
  exports.zAgentsDurationPath = zAgentsDurationPath;
2967
3347
  exports.zAgentsDurationQuery = zAgentsDurationQuery;
2968
3348
  exports.zAgentsDurationResponse = zAgentsDurationResponse;
@@ -3008,6 +3388,7 @@ exports.zAlertChannelsUpdateBody = zAlertChannelsUpdateBody;
3008
3388
  exports.zAlertChannelsUpdatePath = zAlertChannelsUpdatePath;
3009
3389
  exports.zAlertChannelsUpdateResponse = zAlertChannelsUpdateResponse;
3010
3390
  exports.zAlertHistory = zAlertHistory;
3391
+ exports.zAlertHistoryDay = zAlertHistoryDay;
3011
3392
  exports.zAlertIntegration = zAlertIntegration;
3012
3393
  exports.zAlertRuleChannelInput = zAlertRuleChannelInput;
3013
3394
  exports.zAlertRuleResponse = zAlertRuleResponse;
@@ -3018,6 +3399,9 @@ exports.zAlertRulesDeletePath = zAlertRulesDeletePath;
3018
3399
  exports.zAlertRulesDeleteResponse = zAlertRulesDeleteResponse;
3019
3400
  exports.zAlertRulesGetPath = zAlertRulesGetPath;
3020
3401
  exports.zAlertRulesGetResponse = zAlertRulesGetResponse;
3402
+ exports.zAlertRulesHistoryByDayPath = zAlertRulesHistoryByDayPath;
3403
+ exports.zAlertRulesHistoryByDayQuery = zAlertRulesHistoryByDayQuery;
3404
+ exports.zAlertRulesHistoryByDayResponse = zAlertRulesHistoryByDayResponse;
3021
3405
  exports.zAlertRulesListHistoryPath = zAlertRulesListHistoryPath;
3022
3406
  exports.zAlertRulesListHistoryQuery = zAlertRulesListHistoryQuery;
3023
3407
  exports.zAlertRulesListHistoryResponse = zAlertRulesListHistoryResponse;
@@ -3079,6 +3463,7 @@ exports.zCodeMapping = zCodeMapping;
3079
3463
  exports.zCommentRequest = zCommentRequest;
3080
3464
  exports.zCompaction = zCompaction;
3081
3465
  exports.zConfirmSsoLinkRequest = zConfirmSsoLinkRequest;
3466
+ exports.zConversationSpan = zConversationSpan;
3082
3467
  exports.zCreateAlertIntegration = zCreateAlertIntegration;
3083
3468
  exports.zCreateAlertRule = zCreateAlertRule;
3084
3469
  exports.zCreateAuthToken = zCreateAuthToken;
@@ -3088,6 +3473,15 @@ exports.zCreateMonitor = zCreateMonitor;
3088
3473
  exports.zCreateProject = zCreateProject;
3089
3474
  exports.zCreateRelease = zCreateRelease;
3090
3475
  exports.zCreateUserRequest = zCreateUserRequest;
3476
+ exports.zDebugFileResponse = zDebugFileResponse;
3477
+ exports.zDebugFilesAssembleBody = zDebugFilesAssembleBody;
3478
+ exports.zDebugFilesAssemblePath = zDebugFilesAssemblePath;
3479
+ exports.zDebugFilesAssembleResponse = zDebugFilesAssembleResponse;
3480
+ exports.zDebugFilesUploadBody = zDebugFilesUploadBody;
3481
+ exports.zDebugFilesUploadPath = zDebugFilesUploadPath;
3482
+ exports.zDebugFilesUploadResponse = zDebugFilesUploadResponse;
3483
+ exports.zDifAssembleFile = zDifAssembleFile;
3484
+ exports.zDifUploadBody = zDifUploadBody;
3091
3485
  exports.zEnvironmentsListPath = zEnvironmentsListPath;
3092
3486
  exports.zEnvironmentsListResponse = zEnvironmentsListResponse;
3093
3487
  exports.zErrorDetail = zErrorDetail;
@@ -3220,10 +3614,17 @@ exports.zIssuesUpdateResponse = zIssuesUpdateResponse;
3220
3614
  exports.zKindAge = zKindAge;
3221
3615
  exports.zLinkGitHubIssue = zLinkGitHubIssue;
3222
3616
  exports.zLivenessResponse = zLivenessResponse;
3617
+ exports.zLogResponse = zLogResponse;
3618
+ exports.zLogVolumePoint = zLogVolumePoint;
3223
3619
  exports.zLoginRequest = zLoginRequest;
3620
+ exports.zLogsGetPath = zLogsGetPath;
3621
+ exports.zLogsGetResponse = zLogsGetResponse;
3224
3622
  exports.zLogsListPath = zLogsListPath;
3225
3623
  exports.zLogsListQuery = zLogsListQuery;
3226
3624
  exports.zLogsListResponse = zLogsListResponse;
3625
+ exports.zLogsVolumePath = zLogsVolumePath;
3626
+ exports.zLogsVolumeQuery = zLogsVolumeQuery;
3627
+ exports.zLogsVolumeResponse = zLogsVolumeResponse;
3227
3628
  exports.zManifestRequest = zManifestRequest;
3228
3629
  exports.zManifestResponse = zManifestResponse;
3229
3630
  exports.zMcpSettings = zMcpSettings;
@@ -3239,8 +3640,10 @@ exports.zMetricDelta = zMetricDelta;
3239
3640
  exports.zMonitorConfig = zMonitorConfig;
3240
3641
  exports.zMonitorConfigInput = zMonitorConfigInput;
3241
3642
  exports.zMonitorEnvironmentResponse = zMonitorEnvironmentResponse;
3643
+ exports.zMonitorEnvironmentStats = zMonitorEnvironmentStats;
3242
3644
  exports.zMonitorEnvironmentStatus = zMonitorEnvironmentStatus;
3243
3645
  exports.zMonitorResponse = zMonitorResponse;
3646
+ exports.zMonitorStatsBucket = zMonitorStatsBucket;
3244
3647
  exports.zMonitorsCreateBody = zMonitorsCreateBody;
3245
3648
  exports.zMonitorsCreatePath = zMonitorsCreatePath;
3246
3649
  exports.zMonitorsCreateResponse = zMonitorsCreateResponse;
@@ -3253,6 +3656,9 @@ exports.zMonitorsListCheckinsQuery = zMonitorsListCheckinsQuery;
3253
3656
  exports.zMonitorsListCheckinsResponse = zMonitorsListCheckinsResponse;
3254
3657
  exports.zMonitorsListPath = zMonitorsListPath;
3255
3658
  exports.zMonitorsListResponse = zMonitorsListResponse;
3659
+ exports.zMonitorsStatsPath = zMonitorsStatsPath;
3660
+ exports.zMonitorsStatsQuery = zMonitorsStatsQuery;
3661
+ exports.zMonitorsStatsResponse = zMonitorsStatsResponse;
3256
3662
  exports.zMonitorsUpdateBody = zMonitorsUpdateBody;
3257
3663
  exports.zMonitorsUpdatePath = zMonitorsUpdatePath;
3258
3664
  exports.zMonitorsUpdateResponse = zMonitorsUpdateResponse;
@@ -3268,6 +3674,7 @@ exports.zOrgDetails = zOrgDetails;
3268
3674
  exports.zPreviewSchedule = zPreviewSchedule;
3269
3675
  exports.zPreviewTemplateBody = zPreviewTemplateBody;
3270
3676
  exports.zPreviewTemplateResponse = zPreviewTemplateResponse;
3677
+ exports.zProduct = zProduct;
3271
3678
  exports.zProjectAge = zProjectAge;
3272
3679
  exports.zProjectListStats = zProjectListStats;
3273
3680
  exports.zProjectMember = zProjectMember;
@@ -3294,12 +3701,19 @@ exports.zRateLimitsResponse = zRateLimitsResponse;
3294
3701
  exports.zReadinessChecks = zReadinessChecks;
3295
3702
  exports.zReadinessResponse = zReadinessResponse;
3296
3703
  exports.zReleaseResponse = zReleaseResponse;
3704
+ exports.zReleaseSummary = zReleaseSummary;
3297
3705
  exports.zReleasesCreateBody = zReleasesCreateBody;
3298
3706
  exports.zReleasesCreatePath = zReleasesCreatePath;
3299
3707
  exports.zReleasesCreateResponse = zReleasesCreateResponse;
3300
3708
  exports.zReleasesFinalizeBody = zReleasesFinalizeBody;
3301
3709
  exports.zReleasesFinalizePath = zReleasesFinalizePath;
3302
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;
3303
3717
  exports.zReleasesNewIssuesPath = zReleasesNewIssuesPath;
3304
3718
  exports.zReleasesNewIssuesQuery = zReleasesNewIssuesQuery;
3305
3719
  exports.zReleasesNewIssuesResponse = zReleasesNewIssuesResponse;
@@ -3433,6 +3847,7 @@ exports.zTokensGetResponse = zTokensGetResponse;
3433
3847
  exports.zTokensListResponse = zTokensListResponse;
3434
3848
  exports.zTransactionDetailResponse = zTransactionDetailResponse;
3435
3849
  exports.zTransactionStatsResponse = zTransactionStatsResponse;
3850
+ exports.zTransactionTimeseriesPoint = zTransactionTimeseriesPoint;
3436
3851
  exports.zTransactionsGetPath = zTransactionsGetPath;
3437
3852
  exports.zTransactionsGetResponse = zTransactionsGetResponse;
3438
3853
  exports.zTransactionsGetSpansPath = zTransactionsGetSpansPath;
@@ -3440,6 +3855,9 @@ exports.zTransactionsGetSpansResponse = zTransactionsGetSpansResponse;
3440
3855
  exports.zTransactionsGetStatGroupPath = zTransactionsGetStatGroupPath;
3441
3856
  exports.zTransactionsGetStatGroupQuery = zTransactionsGetStatGroupQuery;
3442
3857
  exports.zTransactionsGetStatGroupResponse = zTransactionsGetStatGroupResponse;
3858
+ exports.zTransactionsGetStatGroupTimeseriesPath = zTransactionsGetStatGroupTimeseriesPath;
3859
+ exports.zTransactionsGetStatGroupTimeseriesQuery = zTransactionsGetStatGroupTimeseriesQuery;
3860
+ exports.zTransactionsGetStatGroupTimeseriesResponse = zTransactionsGetStatGroupTimeseriesResponse;
3443
3861
  exports.zTransactionsGetStatsPath = zTransactionsGetStatsPath;
3444
3862
  exports.zTransactionsGetStatsQuery = zTransactionsGetStatsQuery;
3445
3863
  exports.zTransactionsGetStatsResponse = zTransactionsGetStatsResponse;