@rustrak/client 0.18.0 → 0.19.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.
Files changed (119) hide show
  1. package/README.md +312 -123
  2. package/dist/_virtual/_rolldown/runtime.cjs +23 -0
  3. package/dist/client.cjs +86 -0
  4. package/dist/client.cjs.map +1 -0
  5. package/dist/client.d.cts +18 -0
  6. package/dist/client.d.cts.map +1 -0
  7. package/dist/client.d.mts +18 -0
  8. package/dist/client.d.mts.map +1 -0
  9. package/dist/client.mjs +86 -0
  10. package/dist/client.mjs.map +1 -0
  11. package/dist/config.d.cts +10 -0
  12. package/dist/config.d.cts.map +1 -0
  13. package/dist/config.d.mts +10 -0
  14. package/dist/config.d.mts.map +1 -0
  15. package/dist/errors.cjs +52 -0
  16. package/dist/errors.cjs.map +1 -0
  17. package/dist/errors.d.cts +77 -0
  18. package/dist/errors.d.cts.map +1 -0
  19. package/dist/errors.d.mts +77 -0
  20. package/dist/errors.d.mts.map +1 -0
  21. package/dist/errors.mjs +48 -0
  22. package/dist/errors.mjs.map +1 -0
  23. package/dist/generated/client/client.gen.cjs +174 -0
  24. package/dist/generated/client/client.gen.cjs.map +1 -0
  25. package/dist/generated/client/client.gen.mjs +174 -0
  26. package/dist/generated/client/client.gen.mjs.map +1 -0
  27. package/dist/generated/client/types.gen.d.cts +71 -0
  28. package/dist/generated/client/types.gen.d.cts.map +1 -0
  29. package/dist/generated/client/types.gen.d.mts +71 -0
  30. package/dist/generated/client/types.gen.d.mts.map +1 -0
  31. package/dist/generated/client/utils.gen.cjs +184 -0
  32. package/dist/generated/client/utils.gen.cjs.map +1 -0
  33. package/dist/generated/client/utils.gen.d.cts +21 -0
  34. package/dist/generated/client/utils.gen.d.cts.map +1 -0
  35. package/dist/generated/client/utils.gen.d.mts +21 -0
  36. package/dist/generated/client/utils.gen.d.mts.map +1 -0
  37. package/dist/generated/client/utils.gen.mjs +177 -0
  38. package/dist/generated/client/utils.gen.mjs.map +1 -0
  39. package/dist/generated/client.gen.cjs +7 -0
  40. package/dist/generated/client.gen.cjs.map +1 -0
  41. package/dist/generated/client.gen.mjs +8 -0
  42. package/dist/generated/client.gen.mjs.map +1 -0
  43. package/dist/generated/core/auth.gen.cjs +12 -0
  44. package/dist/generated/core/auth.gen.cjs.map +1 -0
  45. package/dist/generated/core/auth.gen.d.cts +11 -0
  46. package/dist/generated/core/auth.gen.d.cts.map +1 -0
  47. package/dist/generated/core/auth.gen.d.mts +11 -0
  48. package/dist/generated/core/auth.gen.d.mts.map +1 -0
  49. package/dist/generated/core/auth.gen.mjs +12 -0
  50. package/dist/generated/core/auth.gen.mjs.map +1 -0
  51. package/dist/generated/core/bodySerializer.gen.cjs +21 -0
  52. package/dist/generated/core/bodySerializer.gen.cjs.map +1 -0
  53. package/dist/generated/core/bodySerializer.gen.d.cts +15 -0
  54. package/dist/generated/core/bodySerializer.gen.d.cts.map +1 -0
  55. package/dist/generated/core/bodySerializer.gen.d.mts +15 -0
  56. package/dist/generated/core/bodySerializer.gen.d.mts.map +1 -0
  57. package/dist/generated/core/bodySerializer.gen.mjs +20 -0
  58. package/dist/generated/core/bodySerializer.gen.mjs.map +1 -0
  59. package/dist/generated/core/pathSerializer.gen.cjs +87 -0
  60. package/dist/generated/core/pathSerializer.gen.cjs.map +1 -0
  61. package/dist/generated/core/pathSerializer.gen.d.cts +9 -0
  62. package/dist/generated/core/pathSerializer.gen.d.cts.map +1 -0
  63. package/dist/generated/core/pathSerializer.gen.d.mts +9 -0
  64. package/dist/generated/core/pathSerializer.gen.d.mts.map +1 -0
  65. package/dist/generated/core/pathSerializer.gen.mjs +82 -0
  66. package/dist/generated/core/pathSerializer.gen.mjs.map +1 -0
  67. package/dist/generated/core/serverSentEvents.gen.cjs +96 -0
  68. package/dist/generated/core/serverSentEvents.gen.cjs.map +1 -0
  69. package/dist/generated/core/serverSentEvents.gen.d.cts +25 -0
  70. package/dist/generated/core/serverSentEvents.gen.d.cts.map +1 -0
  71. package/dist/generated/core/serverSentEvents.gen.d.mts +25 -0
  72. package/dist/generated/core/serverSentEvents.gen.d.mts.map +1 -0
  73. package/dist/generated/core/serverSentEvents.gen.mjs +96 -0
  74. package/dist/generated/core/serverSentEvents.gen.mjs.map +1 -0
  75. package/dist/generated/core/types.gen.d.cts +27 -0
  76. package/dist/generated/core/types.gen.d.cts.map +1 -0
  77. package/dist/generated/core/types.gen.d.mts +27 -0
  78. package/dist/generated/core/types.gen.d.mts.map +1 -0
  79. package/dist/generated/core/utils.gen.cjs +81 -0
  80. package/dist/generated/core/utils.gen.cjs.map +1 -0
  81. package/dist/generated/core/utils.gen.mjs +78 -0
  82. package/dist/generated/core/utils.gen.mjs.map +1 -0
  83. package/dist/generated/sdk.gen.cjs +3138 -0
  84. package/dist/generated/sdk.gen.cjs.map +1 -0
  85. package/dist/generated/sdk.gen.d.cts +276 -0
  86. package/dist/generated/sdk.gen.d.cts.map +1 -0
  87. package/dist/generated/sdk.gen.d.mts +276 -0
  88. package/dist/generated/sdk.gen.d.mts.map +1 -0
  89. package/dist/generated/sdk.gen.mjs +3110 -0
  90. package/dist/generated/sdk.gen.mjs.map +1 -0
  91. package/dist/generated/types.gen.d.cts +3679 -0
  92. package/dist/generated/types.gen.d.cts.map +1 -0
  93. package/dist/generated/types.gen.d.mts +3679 -0
  94. package/dist/generated/types.gen.d.mts.map +1 -0
  95. package/dist/generated/zod.gen.cjs +3076 -0
  96. package/dist/generated/zod.gen.cjs.map +1 -0
  97. package/dist/generated/zod.gen.mjs +2618 -0
  98. package/dist/generated/zod.gen.mjs.map +1 -0
  99. package/dist/index.cjs +15 -3248
  100. package/dist/index.d.cts +6 -2037
  101. package/dist/index.d.mts +6 -0
  102. package/dist/index.mjs +4 -0
  103. package/dist/result.cjs +59 -0
  104. package/dist/result.cjs.map +1 -0
  105. package/dist/result.d.cts +15 -0
  106. package/dist/result.d.cts.map +1 -0
  107. package/dist/result.d.mts +15 -0
  108. package/dist/result.d.mts.map +1 -0
  109. package/dist/result.mjs +55 -0
  110. package/dist/result.mjs.map +1 -0
  111. package/dist/utils/http.cjs +339 -0
  112. package/dist/utils/http.cjs.map +1 -0
  113. package/dist/utils/http.mjs +336 -0
  114. package/dist/utils/http.mjs.map +1 -0
  115. package/package.json +17 -12
  116. package/dist/index.cjs.map +0 -1
  117. package/dist/index.d.ts +0 -2037
  118. package/dist/index.js +0 -3232
  119. package/dist/index.js.map +0 -1
@@ -0,0 +1,3076 @@
1
+ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
2
+ let zod = require("zod");
3
+ zod = require_runtime.__toESM(zod, 1);
4
+ //#region src/generated/zod.gen.ts
5
+ const zAcceptInvitation = zod.object({
6
+ password: zod.string(),
7
+ token: zod.string()
8
+ });
9
+ /**
10
+ * An entry in an issue's activity log. Comments are stored as activity rows of
11
+ * type `note` with `{"text": ...}` in `data` (Sentry models notes as activity).
12
+ */
13
+ const zActivityEntry = zod.object({
14
+ created_at: zod.iso.datetime({ offset: true }),
15
+ data: zod.string(),
16
+ id: zod.uuid(),
17
+ issue_id: zod.uuid(),
18
+ type: zod.string(),
19
+ user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullable()
20
+ });
21
+ /**
22
+ * avg/p95 duration for one time bucket.
23
+ */
24
+ const zAgentDurationPoint = zod.object({
25
+ avg_ms: zod.number(),
26
+ bucket: zod.iso.datetime({ offset: true }),
27
+ p95_ms: zod.number()
28
+ });
29
+ /**
30
+ * One row of the Models table: per response model, the volume, the failures,
31
+ * the latency and the full token split.
32
+ *
33
+ * Cached input and reasoning output are SUBSETS of input/output, not
34
+ * additions — a reader comparing them must not add all four together.
35
+ */
36
+ const zAgentModelRow = zod.object({
37
+ avg_ms: zod.number(),
38
+ cached_input_tokens: zod.number(),
39
+ errors: zod.int(),
40
+ input_tokens: zod.number(),
41
+ model: zod.string(),
42
+ output_tokens: zod.number(),
43
+ p95_ms: zod.number(),
44
+ reasoning_output_tokens: zod.number(),
45
+ requests: zod.int(),
46
+ total_tokens: zod.number()
47
+ });
48
+ /**
49
+ * Headline numbers for the agents dashboard, over the selected window.
50
+ *
51
+ * Token totals exclude `agent`-type spans throughout, for the same reason
52
+ * the Traces table does: an agent span's usage is a client-side rollup of
53
+ * its `ai_client` children, so counting both double-counts.
54
+ */
55
+ const zAgentSummary = zod.object({
56
+ agent_runs: zod.int(),
57
+ avg_duration_ms: zod.number(),
58
+ error_count: zod.int(),
59
+ llm_calls: zod.int(),
60
+ p95_duration_ms: zod.number(),
61
+ tool_calls: zod.int(),
62
+ total_tokens: zod.number()
63
+ });
64
+ /**
65
+ * One time-bucketed value (count or sum) — mirrors `SessionTimeseriesPoint`.
66
+ */
67
+ const zAgentTimeseriesPoint = zod.object({
68
+ bucket: zod.iso.datetime({ offset: true }),
69
+ value: zod.number()
70
+ });
71
+ /**
72
+ * One row of the Tools table: per tool, how often it ran and how often it
73
+ * failed. A tool with a high failure rate is the most actionable signal the
74
+ * agents page can carry.
75
+ */
76
+ const zAgentToolRow = zod.object({
77
+ avg_ms: zod.number(),
78
+ calls: zod.int(),
79
+ errors: zod.int(),
80
+ p95_ms: zod.number(),
81
+ tool: zod.string()
82
+ });
83
+ zod.object({
84
+ agent_names: zod.array(zod.string()),
85
+ duration_ms: zod.number().nullable(),
86
+ error_count: zod.int(),
87
+ llm_call_count: zod.int(),
88
+ started_at: zod.iso.datetime({ offset: true }),
89
+ tool_call_count: zod.int(),
90
+ total_tokens: zod.number(),
91
+ trace_id: zod.string()
92
+ });
93
+ /**
94
+ * DTO for a channel with routing override in rule create/update
95
+ */
96
+ const zAlertRuleChannelInput = zod.object({
97
+ integration_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
98
+ routing_override: zod.record(zod.string(), zod.unknown()).optional()
99
+ });
100
+ /**
101
+ * Status of an alert delivery attempt
102
+ */
103
+ const zAlertStatus = zod.enum([
104
+ "pending",
105
+ "sent",
106
+ "failed",
107
+ "skipped"
108
+ ]);
109
+ /**
110
+ * Alert delivery history record (audit log and retry queue)
111
+ */
112
+ const zAlertHistory = zod.object({
113
+ alert_rule_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullable(),
114
+ alert_type: zod.string(),
115
+ attempt_count: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
116
+ channel_name: zod.string(),
117
+ channel_type: zod.string(),
118
+ created_at: zod.iso.datetime({ offset: true }),
119
+ error_message: zod.string().nullable(),
120
+ http_status_code: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullable(),
121
+ id: zod.int(),
122
+ idempotency_key: zod.string(),
123
+ integration_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullable(),
124
+ issue_id: zod.uuid().nullable(),
125
+ next_retry_at: zod.iso.datetime({ offset: true }).nullable(),
126
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullable(),
127
+ sent_at: zod.iso.datetime({ offset: true }).nullable(),
128
+ status: zAlertStatus
129
+ });
130
+ /**
131
+ * Type of alert trigger
132
+ */
133
+ const zAlertType = zod.enum([
134
+ "new_issue",
135
+ "regression",
136
+ "unmute"
137
+ ]);
138
+ /**
139
+ * Response for alert rule including linked integration info
140
+ */
141
+ const zAlertRuleResponse = zod.object({
142
+ alert_type: zAlertType,
143
+ channels: zod.array(zAlertRuleChannelInput),
144
+ conditions: zod.record(zod.string(), zod.unknown()),
145
+ cooldown_minutes: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
146
+ created_at: zod.iso.datetime({ offset: true }),
147
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
148
+ integration_ids: zod.array(zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
149
+ is_enabled: zod.boolean(),
150
+ last_triggered_at: zod.iso.datetime({ offset: true }).nullable(),
151
+ name: zod.string(),
152
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
153
+ updated_at: zod.iso.datetime({ offset: true })
154
+ });
155
+ const zAssembleBody = zod.object({
156
+ checksum: zod.string(),
157
+ chunks: zod.array(zod.string()),
158
+ projects: zod.array(zod.string())
159
+ });
160
+ const zAssembleResponse = zod.object({
161
+ detail: zod.string().nullish(),
162
+ missingChunks: zod.array(zod.string()),
163
+ state: zod.string()
164
+ });
165
+ /**
166
+ * Response that includes the full token (only on creation)
167
+ */
168
+ const zAuthTokenCreatedResponse = zod.object({
169
+ created_at: zod.iso.datetime({ offset: true }),
170
+ description: zod.string().nullable(),
171
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
172
+ token: zod.string()
173
+ });
174
+ /**
175
+ * Response for listing (token is masked)
176
+ */
177
+ const zAuthTokenResponse = zod.object({
178
+ created_at: zod.iso.datetime({ offset: true }),
179
+ description: zod.string().nullable(),
180
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
181
+ last_used_at: zod.iso.datetime({ offset: true }).nullable(),
182
+ token_prefix: zod.string()
183
+ });
184
+ /**
185
+ * What the consent page shows about the client asking.
186
+ */
187
+ const zAuthorizationInfo = zod.object({
188
+ client_id: zod.string(),
189
+ client_name: zod.string(),
190
+ redirect_host: zod.string()
191
+ });
192
+ /**
193
+ * Where the consent page sends the browser next.
194
+ */
195
+ const zAuthorizationRedirect = zod.object({ redirect_to: zod.string() });
196
+ /**
197
+ * An authorization request, as the client put it in the authorize URL.
198
+ */
199
+ const zAuthorizationRequest = zod.object({
200
+ client_id: zod.string(),
201
+ code_challenge: zod.string(),
202
+ code_challenge_method: zod.string(),
203
+ redirect_uri: zod.string(),
204
+ resource: zod.string().nullish(),
205
+ response_type: zod.string(),
206
+ state: zod.string().nullish()
207
+ });
208
+ /**
209
+ * The user's answer to a consent screen.
210
+ */
211
+ const zAuthorizationDecision = zAuthorizationRequest.and(zod.object({ approve: zod.boolean() }));
212
+ const zBookmarkResponse = zod.object({ is_bookmarked: zod.boolean() });
213
+ const zBulkDeleteResponse = zod.object({ deleted: zod.int() });
214
+ const zBulkUpdateResponse = zod.object({ updated: zod.int() });
215
+ const zChangePasswordRequest = zod.object({
216
+ current_password: zod.string(),
217
+ new_password: zod.string()
218
+ });
219
+ /**
220
+ * Status of one check-in. `Missed` and `Timeout` are only ever set by the
221
+ * server.
222
+ */
223
+ const zCheckInStatus = zod.enum([
224
+ "ok",
225
+ "error",
226
+ "in_progress",
227
+ "missed",
228
+ "timeout",
229
+ "unknown"
230
+ ]);
231
+ /**
232
+ * One check-in, as the dashboard reads it.
233
+ */
234
+ const zCheckInResponse = zod.object({
235
+ date_added: zod.iso.datetime({ offset: true }),
236
+ date_updated: zod.iso.datetime({ offset: true }),
237
+ duration_ms: zod.int().nullable(),
238
+ environment: zod.string(),
239
+ expected_time: zod.iso.datetime({ offset: true }).nullable(),
240
+ id: zod.uuid(),
241
+ status: zCheckInStatus
242
+ });
243
+ /**
244
+ * Multipart chunk upload.
245
+ * Each part's **field name** may be the SHA-1 hex digest of that part's binary content
246
+ * (sentry-cli v2 protocol, e.g. `da39a3ee5e6b4b0d3255bfef95601890afd80709`) or an arbitrary
247
+ * name like `file` (sentry-cli v3.x). Up to 64 parts per request; each part body is raw binary.
248
+ */
249
+ const zChunkUploadBody = zod.record(zod.string(), zod.unknown());
250
+ /**
251
+ * Chunk upload capabilities, in sentry-cli's camelCase.
252
+ */
253
+ const zChunkUploadOptions = zod.object({
254
+ accept: zod.array(zod.string()),
255
+ chunkSize: zod.int().gte(0),
256
+ chunksPerRequest: zod.int().gte(0),
257
+ compression: zod.array(zod.string()),
258
+ concurrency: zod.int().gte(0),
259
+ hashAlgorithm: zod.string(),
260
+ maxRequestSize: zod.int().gte(0),
261
+ url: zod.string()
262
+ });
263
+ /**
264
+ * Rows affected by a cleanup, used symmetrically for the dry-run preview ("what
265
+ * would be removed") and the executed result ("what was removed"). `spans` are
266
+ * counted directly even though they cascade from `transactions`, so the UI can
267
+ * show the true row impact. `issues_removed` is the number of issues that would
268
+ * be left with zero events and therefore deleted.
269
+ */
270
+ const zCleanupCounts = zod.object({
271
+ events: zod.int(),
272
+ issues_removed: zod.int(),
273
+ logs: zod.int(),
274
+ source_maps: zod.int(),
275
+ spans: zod.int(),
276
+ transactions: zod.int()
277
+ });
278
+ /**
279
+ * How often the cleanup that enforces retention runs.
280
+ */
281
+ const zCleanupFrequency = zod.enum(["daily", "weekly"]);
282
+ /**
283
+ * Request body for a cleanup (preview or execute): remove data older than
284
+ * `older_than_days`, optionally scoped to a single project (omit for all).
285
+ *
286
+ * `older_than_days` must be at least 1 — the service rejects smaller values,
287
+ * since a window of 0 (or negative) would move the cutoff to now/the future and
288
+ * purge the entire dataset.
289
+ */
290
+ const zCleanupRequest = zod.object({
291
+ include_events: zod.boolean().optional(),
292
+ include_logs: zod.boolean().optional(),
293
+ include_transactions: zod.boolean().optional(),
294
+ older_than_days: zod.int().gte(1),
295
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullish()
296
+ });
297
+ /**
298
+ * Where the instance's cleanup job is. There is at most one at a time.
299
+ */
300
+ const zCleanupState = zod.enum([
301
+ "idle",
302
+ "running",
303
+ "completed",
304
+ "failed"
305
+ ]);
306
+ /**
307
+ * The cleanup job as the API reports it. Kept in memory: a restart forgets
308
+ * it, and a run cut short by one is simply run again, since every batch it
309
+ * committed is already gone.
310
+ */
311
+ const zCleanupStatus = zod.object({
312
+ error: zod.string().nullable(),
313
+ finished_at: zod.iso.datetime({ offset: true }).nullable(),
314
+ removed: zCleanupCounts,
315
+ started_at: zod.iso.datetime({ offset: true }).nullable(),
316
+ state: zCleanupState
317
+ });
318
+ /**
319
+ * Maps a path as it appears in a stack trace to the path in the repository.
320
+ */
321
+ const zCodeMapping = zod.object({
322
+ source_root: zod.string(),
323
+ stack_root: zod.string()
324
+ });
325
+ /**
326
+ * Body for creating an issue comment (note).
327
+ */
328
+ const zCommentRequest = zod.object({ text: zod.string() });
329
+ const zConfirmSsoLinkRequest = zod.object({ password: zod.string() });
330
+ /**
331
+ * DTO for creating an alert rule
332
+ */
333
+ const zCreateAlertRule = zod.object({
334
+ alert_type: zAlertType,
335
+ channels: zod.array(zAlertRuleChannelInput).optional(),
336
+ conditions: zod.record(zod.string(), zod.unknown()).optional(),
337
+ cooldown_minutes: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).optional(),
338
+ name: zod.string()
339
+ });
340
+ /**
341
+ * DTO for creating a new token
342
+ */
343
+ const zCreateAuthToken = zod.object({ description: zod.string().nullish() });
344
+ const zCreateGitHubIssue = zod.object({
345
+ body: zod.string().nullish(),
346
+ title: zod.string().nullish()
347
+ });
348
+ /**
349
+ * DTO for creating a new project
350
+ */
351
+ const zCreateProject = zod.object({
352
+ name: zod.string(),
353
+ platform: zod.string().nullish(),
354
+ slug: zod.string().nullish()
355
+ });
356
+ /**
357
+ * DTO for `POST .../releases/`.
358
+ */
359
+ const zCreateRelease = zod.object({
360
+ ref: zod.string().nullish(),
361
+ url: zod.string().nullish(),
362
+ version: zod.string()
363
+ });
364
+ const zCreateUserRequest = zod.object({
365
+ email: zod.string(),
366
+ password: zod.string()
367
+ });
368
+ /**
369
+ * Response for API (full detail)
370
+ */
371
+ const zEventDetailResponse = zod.object({
372
+ data: zod.record(zod.string(), zod.unknown()),
373
+ environment: zod.string(),
374
+ event_id: zod.string(),
375
+ event_type: zod.string(),
376
+ id: zod.uuid(),
377
+ ingested_at: zod.iso.datetime({ offset: true }),
378
+ issue_id: zod.uuid().nullable(),
379
+ level: zod.string(),
380
+ platform: zod.string(),
381
+ release: zod.string(),
382
+ sdk_name: zod.string(),
383
+ sdk_version: zod.string(),
384
+ server_name: zod.string(),
385
+ timestamp: zod.iso.datetime({ offset: true }),
386
+ title: zod.string()
387
+ });
388
+ zod.object({
389
+ environment: zod.string(),
390
+ event_id: zod.string(),
391
+ event_type: zod.string(),
392
+ id: zod.uuid(),
393
+ issue_id: zod.uuid().nullable(),
394
+ level: zod.string(),
395
+ platform: zod.string(),
396
+ release: zod.string(),
397
+ timestamp: zod.iso.datetime({ offset: true }),
398
+ title: zod.string()
399
+ });
400
+ /**
401
+ * One time-bucketed point in a project's error-event volume, split by severity.
402
+ *
403
+ * `total` always equals `fatal + error + warning + info`: `info` absorbs
404
+ * `debug` and any level the SDK sent that we do not model, so the stacked
405
+ * segments of a chart always sum to the bar height and no events silently
406
+ * vanish from the series.
407
+ */
408
+ const zEventTimeseriesPoint = zod.object({
409
+ bucket: zod.iso.datetime({ offset: true }),
410
+ error: zod.int(),
411
+ fatal: zod.int(),
412
+ info: zod.int(),
413
+ total: zod.int(),
414
+ warning: zod.int()
415
+ });
416
+ /**
417
+ * The closed vocabulary a [`FieldError`] may use.
418
+ *
419
+ * Deliberately small and resource-agnostic: a large or per-endpoint
420
+ * vocabulary becomes a public API that cannot be versioned. Adding a variant
421
+ * is a wire change and requires the matching addition to the TypeScript union
422
+ * in `packages/client/src/errors.ts`, which
423
+ * `packages/client/tests/unit/app-error-contract.test.ts` enforces by parsing
424
+ * this enum out of this file.
425
+ */
426
+ const zFieldErrorCode = zod.enum([
427
+ "required",
428
+ "invalid",
429
+ "already_exists",
430
+ "too_short",
431
+ "too_long",
432
+ "custom"
433
+ ]);
434
+ /**
435
+ * One rejected input, named as data rather than buried in the prose of
436
+ * [`ErrorDetail::message`].
437
+ *
438
+ * `field` is a **dot path into the request body** (`slug`,
439
+ * `credentials.webhook_url`), not a JSON Pointer and not a UI label: a
440
+ * consumer feeds it straight to a form library's `setError`.
441
+ *
442
+ * The rejected *value* is deliberately never echoed back. One careless
443
+ * application to a password input would put a credential in the log store.
444
+ *
445
+ * The three fields are private on purpose. [`Self::new`] and [`Self::custom`]
446
+ * are the only ways to build one, which is what makes "`message` is populated
447
+ * only alongside [`FieldErrorCode::Custom`]" an invariant the compiler holds
448
+ * rather than a convention a struct literal could quietly break.
449
+ */
450
+ const zFieldError = zod.object({
451
+ code: zFieldErrorCode,
452
+ field: zod.string(),
453
+ message: zod.string().optional()
454
+ });
455
+ const zErrorDetail = zod.object({
456
+ fields: zod.array(zFieldError).optional(),
457
+ incident_id: zod.string().optional(),
458
+ message: zod.string(),
459
+ type: zod.string()
460
+ });
461
+ zod.object({ error: zErrorDetail });
462
+ /**
463
+ * One row of a "top N by X" breakdown (model or tool name).
464
+ */
465
+ const zGenAiBreakdownRow = zod.object({
466
+ label: zod.string(),
467
+ value: zod.number()
468
+ });
469
+ const zGitHubAppInfo = zod.object({
470
+ app_id: zod.int(),
471
+ created_at: zod.iso.datetime({ offset: true }),
472
+ html_url: zod.string(),
473
+ install_url: zod.string(),
474
+ last_webhook_at: zod.iso.datetime({ offset: true }).nullable(),
475
+ owner_login: zod.string(),
476
+ slug: zod.string()
477
+ });
478
+ const zGitHubInstallation = zod.object({
479
+ account_login: zod.string(),
480
+ account_type: zod.string(),
481
+ created_at: zod.iso.datetime({ offset: true }),
482
+ id: zod.int(),
483
+ suspended: zod.boolean()
484
+ });
485
+ const zGitHubLogin = zod.object({ login: zod.string().nullable() });
486
+ /**
487
+ * A repository an installation can reach.
488
+ */
489
+ const zGitHubRepository = zod.object({
490
+ default_branch: zod.string(),
491
+ full_name: zod.string(),
492
+ html_url: zod.string(),
493
+ installation_id: zod.int(),
494
+ private: zod.boolean()
495
+ });
496
+ /**
497
+ * `GET /api/github`: everything the integrations page needs in one answer.
498
+ */
499
+ const zGitHubStatus = zod.object({
500
+ app: zGitHubAppInfo.nullable(),
501
+ installations: zod.array(zGitHubInstallation),
502
+ webhook_url: zod.string()
503
+ });
504
+ /**
505
+ * Grouping model - maps a grouping key to an issue
506
+ */
507
+ const zGrouping = zod.object({
508
+ created_at: zod.iso.datetime({ offset: true }),
509
+ grouping_key: zod.string(),
510
+ grouping_key_hash: zod.string(),
511
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
512
+ issue_id: zod.uuid(),
513
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
514
+ });
515
+ const zIntervalUnit = zod.enum([
516
+ "minute",
517
+ "hour",
518
+ "day",
519
+ "week",
520
+ "month",
521
+ "year"
522
+ ]);
523
+ /**
524
+ * Filter for issues listing
525
+ */
526
+ const zIssueFilter = zod.enum([
527
+ "open",
528
+ "resolved",
529
+ "muted",
530
+ "all"
531
+ ]);
532
+ /**
533
+ * Bulk delete request: the listed `ids`, or every issue matching `filter`.
534
+ * A body with neither or both matches no variant and is rejected, so an empty
535
+ * body can never mean "all".
536
+ */
537
+ const zBulkDeleteIssues = zod.union([zod.object({ ids: zod.array(zod.uuid()) }), zod.object({ filter: zIssueFilter })]);
538
+ const zIssueLink = zod.object({
539
+ created_at: zod.iso.datetime({ offset: true }),
540
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
541
+ issue_id: zod.uuid(),
542
+ number: zod.int(),
543
+ repo_full_name: zod.string(),
544
+ state: zod.string(),
545
+ title: zod.string(),
546
+ url: zod.string()
547
+ });
548
+ /**
549
+ * Triage priority of an issue.
550
+ */
551
+ const zIssuePriority = zod.enum([
552
+ "low",
553
+ "medium",
554
+ "high"
555
+ ]);
556
+ /**
557
+ * Sort mode for issues listing
558
+ */
559
+ const zIssueSort = zod.enum([
560
+ "digest_order",
561
+ "last_seen",
562
+ "event_count"
563
+ ]);
564
+ const zIssueStatsResponse = zod.object({ data: zod.array(zod.array(zod.int())) });
565
+ /**
566
+ * How far back issue stats reach.
567
+ */
568
+ const zIssueStatsWindow = zod.enum(["24h", "30d"]);
569
+ /**
570
+ * Lifecycle status of an issue (Sentry-compatible).
571
+ */
572
+ const zIssueStatus = zod.enum([
573
+ "unresolved",
574
+ "resolved",
575
+ "ignored"
576
+ ]);
577
+ /**
578
+ * Response for API
579
+ */
580
+ const zIssueResponse = zod.object({
581
+ assigned_to: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullable(),
582
+ assignee_type: zod.string().nullable(),
583
+ culprit: zod.string(),
584
+ event_count: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
585
+ first_release: zod.string(),
586
+ first_seen: zod.iso.datetime({ offset: true }),
587
+ has_seen: zod.boolean().nullish(),
588
+ id: zod.uuid(),
589
+ is_bookmarked: zod.boolean().nullish(),
590
+ is_muted: zod.boolean(),
591
+ is_resolved: zod.boolean(),
592
+ is_subscribed: zod.boolean().nullish(),
593
+ issue_category: zod.string(),
594
+ issue_type: zod.string(),
595
+ last_release: zod.string(),
596
+ last_seen: zod.iso.datetime({ offset: true }),
597
+ level: zod.string().nullable(),
598
+ logger: zod.string(),
599
+ platform: zod.string().nullable(),
600
+ priority: zIssuePriority.nullable(),
601
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
602
+ short_id: zod.string(),
603
+ status: zIssueStatus,
604
+ status_details: zod.record(zod.string(), zod.unknown()),
605
+ substatus: zod.string().nullable(),
606
+ title: zod.string(),
607
+ trend: zod.array(zod.int()).nullish(),
608
+ user_count: zod.int().nullish(),
609
+ user_report_count: zod.int().nullish(),
610
+ value: zod.string()
611
+ });
612
+ /**
613
+ * The status an update may set: an [`IssueStatus`], or `resolvedInNextRelease`
614
+ * to resolve until the next release ships.
615
+ */
616
+ const zIssueStatusUpdate = zod.enum([
617
+ "unresolved",
618
+ "resolved",
619
+ "ignored",
620
+ "resolvedInNextRelease"
621
+ ]);
622
+ /**
623
+ * Bulk mutate request: apply a status (and/or priority) to many issues.
624
+ */
625
+ const zBulkUpdateIssues = zod.object({
626
+ ids: zod.array(zod.uuid()),
627
+ priority: zIssuePriority.nullish(),
628
+ status: zIssueStatusUpdate.nullish()
629
+ });
630
+ /**
631
+ * A single tag value's usage within an issue — the shape `GET
632
+ * /issues/{id}/tags/{key}` returns per entry, matching Sentry's
633
+ * `TagValueSerializerResponse` (src/sentry/tagstore/types.py:166-173):
634
+ * a bare list of these, not `{key, values}`.
635
+ */
636
+ const zIssueTagValue = zod.object({
637
+ count: zod.int(),
638
+ first_seen: zod.iso.datetime({ offset: true }),
639
+ key: zod.string(),
640
+ last_seen: zod.iso.datetime({ offset: true }),
641
+ name: zod.string(),
642
+ value: zod.string()
643
+ });
644
+ /**
645
+ * How long ago a kind of data arrived: rows per age bucket, and the oldest.
646
+ */
647
+ const zKindAge = zod.object({
648
+ counts: zod.array(zod.int()),
649
+ oldest: zod.iso.datetime({ offset: true }).nullable()
650
+ });
651
+ const zLinkGitHubIssue = zod.object({ reference: zod.string() });
652
+ const zLivenessResponse = zod.object({ status: zod.string() });
653
+ zod.object({
654
+ attributes: zod.record(zod.string(), zod.unknown()),
655
+ body: zod.string(),
656
+ id: zod.uuid(),
657
+ ingested_at: zod.iso.datetime({ offset: true }),
658
+ level: zod.string(),
659
+ severity_number: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullable(),
660
+ span_id: zod.string().nullable(),
661
+ timestamp: zod.iso.datetime({ offset: true }),
662
+ trace_id: zod.string().nullable()
663
+ });
664
+ const zLoginRequest = zod.object({
665
+ email: zod.string(),
666
+ password: zod.string()
667
+ });
668
+ const zManifestRequest = zod.object({ organization: zod.string().nullish() });
669
+ /**
670
+ * What the dashboard posts to GitHub to create the app.
671
+ */
672
+ const zManifestResponse = zod.object({
673
+ action_url: zod.string(),
674
+ manifest: zod.string()
675
+ });
676
+ /**
677
+ * Turns `/mcp` on or off: the body of `PUT /api/settings/mcp`.
678
+ */
679
+ const zMcpSettings = zod.object({ enabled: zod.boolean() });
680
+ /**
681
+ * Whether `/mcp` answers, and the URL to give an assistant.
682
+ */
683
+ const zMcpStatus = zod.object({
684
+ enabled: zod.boolean(),
685
+ url: zod.string().nullable()
686
+ });
687
+ /**
688
+ * A counter measured over the requested window alongside the same counter
689
+ * over the window immediately before it.
690
+ *
691
+ * `previous` is `None` when the request asked for all time: there is no
692
+ * earlier window to compare against, and reporting `0` there would render as
693
+ * a misleading "+100%" in the UI.
694
+ */
695
+ const zMetricDelta = zod.object({
696
+ current: zod.int(),
697
+ previous: zod.int().nullable()
698
+ });
699
+ /**
700
+ * Health of one monitor environment.
701
+ */
702
+ const zMonitorEnvironmentStatus = zod.enum([
703
+ "active",
704
+ "ok",
705
+ "error"
706
+ ]);
707
+ /**
708
+ * One environment of a monitor, with its most recent check-ins for the
709
+ * timeline.
710
+ */
711
+ const zMonitorEnvironmentResponse = zod.object({
712
+ environment: zod.string(),
713
+ id: zod.uuid(),
714
+ last_checkin: zod.iso.datetime({ offset: true }).nullable(),
715
+ next_checkin: zod.iso.datetime({ offset: true }).nullable(),
716
+ next_checkin_latest: zod.iso.datetime({ offset: true }).nullable(),
717
+ recent_checkins: zod.array(zCheckInResponse),
718
+ status: zMonitorEnvironmentStatus
719
+ });
720
+ /**
721
+ * A connected client, as its user sees it.
722
+ */
723
+ const zOAuthGrant = zod.object({
724
+ client_id: zod.string(),
725
+ client_name: zod.string(),
726
+ created_at: zod.iso.datetime({ offset: true }),
727
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
728
+ });
729
+ /**
730
+ * Synthetic organization sentry-cli checks before uploading.
731
+ */
732
+ const zOrgDetails = zod.object({
733
+ features: zod.array(zod.string()),
734
+ id: zod.string(),
735
+ name: zod.string(),
736
+ slug: zod.string()
737
+ });
738
+ /**
739
+ * Body of a template preview request.
740
+ */
741
+ const zPreviewTemplateBody = zod.object({ template: zod.string() });
742
+ /**
743
+ * `rendered` when `ok`, `error` otherwise.
744
+ */
745
+ const zPreviewTemplateResponse = zod.object({
746
+ error: zod.string().nullish(),
747
+ ok: zod.boolean(),
748
+ rendered: zod.string().nullish()
749
+ });
750
+ const zProjectAge = zod.object({
751
+ events: zKindAge,
752
+ logs: zKindAge,
753
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
754
+ transactions: zKindAge
755
+ });
756
+ /**
757
+ * The at-a-glance aggregates one row of the project-list table needs.
758
+ *
759
+ * Deliberately narrower than [`ProjectStatsSummary`]: that one answers "how
760
+ * is this project doing" for a page dedicated to a single project, this one
761
+ * answers "which of my projects should I look at first" and must stay cheap
762
+ * enough to compute for every project on the page at once.
763
+ */
764
+ const zProjectListStats = zod.object({
765
+ events: zMetricDelta,
766
+ fatal_issues: zod.int(),
767
+ new_issues: zMetricDelta,
768
+ open_issues: zod.int(),
769
+ trend: zod.array(zod.int())
770
+ });
771
+ const zProjectRepository = zod.object({
772
+ auto_create_conditions: zod.record(zod.string(), zod.unknown()),
773
+ auto_create_issues: zod.boolean(),
774
+ code_mappings: zod.array(zCodeMapping),
775
+ codeowners_rules: zod.int().gte(0).nullable(),
776
+ codeowners_synced_at: zod.iso.datetime({ offset: true }).nullable(),
777
+ default_branch: zod.string(),
778
+ html_url: zod.string(),
779
+ installation_id: zod.int(),
780
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
781
+ repo_full_name: zod.string()
782
+ });
783
+ /**
784
+ * Response with DSN included
785
+ */
786
+ const zProjectResponse = zod.object({
787
+ created_at: zod.iso.datetime({ offset: true }),
788
+ 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" }),
789
+ dsn: zod.string(),
790
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
791
+ name: zod.string(),
792
+ platform: zod.string().nullable(),
793
+ rate_limit_per_hour: zod.int().nullable(),
794
+ rate_limit_per_minute: zod.int().nullable(),
795
+ rate_limited_event_count: zod.int(),
796
+ sentry_key: zod.uuid(),
797
+ slug: zod.string(),
798
+ stats: zProjectListStats.nullish(),
799
+ stored_event_count: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
800
+ updated_at: zod.iso.datetime({ offset: true })
801
+ });
802
+ /**
803
+ * A project that keeps its data for other windows than the defaults. Every
804
+ * kind is set: an override replaces the defaults whole.
805
+ */
806
+ const zProjectRetention = zod.object({
807
+ events_days: zod.int().nullable(),
808
+ logs_days: zod.int().nullable(),
809
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
810
+ transactions_days: zod.int().nullable()
811
+ });
812
+ /**
813
+ * Per-project capability level for a member.
814
+ *
815
+ * Ordered by privilege: `Viewer` < `Editor` < `Admin` (derived `Ord` uses
816
+ * declaration order). An `Action` maps to the minimum role that may perform it.
817
+ */
818
+ const zProjectRole = zod.enum([
819
+ "viewer",
820
+ "editor",
821
+ "admin"
822
+ ]);
823
+ const zProjectMember = zod.object({
824
+ created_at: zod.iso.datetime({ offset: true }),
825
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
826
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
827
+ role: zProjectRole,
828
+ user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
829
+ });
830
+ /**
831
+ * Member row joined with the user's email, for listing a project's team.
832
+ */
833
+ const zProjectMemberResponse = zod.object({
834
+ created_at: zod.iso.datetime({ offset: true }),
835
+ email: zod.string(),
836
+ role: zProjectRole,
837
+ user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
838
+ });
839
+ /**
840
+ * Project-wide counters for the overview page, each with its previous-period
841
+ * comparison.
842
+ */
843
+ const zProjectStatsSummary = zod.object({
844
+ events: zMetricDelta,
845
+ new_issues: zMetricDelta,
846
+ open_issues: zod.int(),
847
+ period_hours: zod.int().nullable()
848
+ });
849
+ zod.object({
850
+ estimated_bytes: zod.int(),
851
+ events_bytes: zod.int(),
852
+ events_count: zod.int(),
853
+ logs_bytes: zod.int(),
854
+ logs_count: zod.int(),
855
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
856
+ project_name: zod.string(),
857
+ source_maps_count: zod.int(),
858
+ spans_count: zod.int(),
859
+ transactions_bytes: zod.int(),
860
+ transactions_count: zod.int()
861
+ });
862
+ /**
863
+ * Type of notification provider (replaces ChannelType)
864
+ */
865
+ const zProviderType = zod.enum([
866
+ "webhook",
867
+ "email",
868
+ "slack",
869
+ "custom_webhook"
870
+ ]);
871
+ /**
872
+ * Global alert integration record — stores credentials only, no routing.
873
+ */
874
+ const zAlertIntegration = zod.object({
875
+ created_at: zod.iso.datetime({ offset: true }),
876
+ credentials: zod.record(zod.string(), zod.unknown()),
877
+ failure_count: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
878
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
879
+ is_enabled: zod.boolean(),
880
+ last_failure_at: zod.iso.datetime({ offset: true }).nullable(),
881
+ last_failure_message: zod.string().nullable(),
882
+ last_success_at: zod.iso.datetime({ offset: true }).nullable(),
883
+ name: zod.string(),
884
+ provider_type: zProviderType,
885
+ updated_at: zod.iso.datetime({ offset: true })
886
+ });
887
+ /**
888
+ * DTO for creating an alert integration
889
+ */
890
+ const zCreateAlertIntegration = zod.object({
891
+ credentials: zod.record(zod.string(), zod.unknown()),
892
+ is_enabled: zod.boolean().optional(),
893
+ name: zod.string(),
894
+ provider_type: zProviderType
895
+ });
896
+ /**
897
+ * Configure project routes
898
+ * The server's per-project event limits (`MAX_EVENTS_PER_PROJECT_*`).
899
+ */
900
+ const zRateLimitsResponse = zod.object({
901
+ project_per_hour: zod.int(),
902
+ project_per_minute: zod.int()
903
+ });
904
+ const zReadinessChecks = zod.object({ database: zod.string() });
905
+ const zReadinessResponse = zod.object({
906
+ checks: zReadinessChecks,
907
+ status: zod.string()
908
+ });
909
+ zod.object({
910
+ abnormal: zod.int(),
911
+ crash_free_sessions_rate: zod.number().nullable(),
912
+ crash_free_users_rate: zod.number().nullable(),
913
+ crashed: zod.int(),
914
+ environment: zod.string(),
915
+ errored: zod.int(),
916
+ healthy: zod.int(),
917
+ release: zod.string(),
918
+ total: zod.int()
919
+ });
920
+ /**
921
+ * API response for a release.
922
+ */
923
+ const zReleaseResponse = zod.object({
924
+ dateCreated: zod.iso.datetime({ offset: true }),
925
+ dateReleased: zod.iso.datetime({ offset: true }).nullable(),
926
+ ref: zod.string().nullable(),
927
+ url: zod.string().nullable(),
928
+ version: zod.string()
929
+ });
930
+ const zRepoCommit = zod.object({
931
+ author_login: zod.string().nullable(),
932
+ author_name: zod.string(),
933
+ committed_at: zod.iso.datetime({ offset: true }),
934
+ message: zod.string(),
935
+ repo_full_name: zod.string(),
936
+ sha: zod.string(),
937
+ url: zod.string()
938
+ });
939
+ /**
940
+ * `GET .../issues/{id}/github`: the issue's "Code" block in one answer.
941
+ */
942
+ const zIssueGitHub = zod.object({
943
+ links: zod.array(zIssueLink),
944
+ owners: zod.array(zod.string()),
945
+ suspect_commits: zod.array(zRepoCommit)
946
+ });
947
+ /**
948
+ * How the last retention cleanup went.
949
+ */
950
+ const zRetentionRun = zod.object({
951
+ error: zod.string().nullable(),
952
+ finished_at: zod.iso.datetime({ offset: true }).nullable(),
953
+ removed: zCleanupCounts.nullable(),
954
+ started_at: zod.iso.datetime({ offset: true }),
955
+ status: zod.string()
956
+ });
957
+ /**
958
+ * How long each kind of data is kept, in days. `None` keeps it forever.
959
+ */
960
+ const zRetentionWindows = zod.object({
961
+ events_days: zod.int().nullable().default(null),
962
+ logs_days: zod.int().nullable().default(null),
963
+ transactions_days: zod.int().nullable().default(null)
964
+ });
965
+ /**
966
+ * Retention: how long each kind of data is kept, by default and per
967
+ * project, and when the cleanup that enforces it runs. Stored as the
968
+ * settings of the `storage_cleanup` scheduled job; a field left out takes
969
+ * its default. Keeping everything forever runs nothing.
970
+ */
971
+ const zRetentionSettings = zod.object({
972
+ defaults: zRetentionWindows.default({
973
+ events_days: null,
974
+ logs_days: null,
975
+ transactions_days: null
976
+ }),
977
+ frequency: zCleanupFrequency.default("daily"),
978
+ hour: zod.int().gte(0).lte(23).default(3),
979
+ overrides: zod.array(zProjectRetention).default([]),
980
+ weekday: zod.int().gte(0).lte(6).default(0)
981
+ });
982
+ const zRetentionResponse = zod.object({
983
+ last_run: zRetentionRun.nullable(),
984
+ next_run_at: zod.iso.datetime({ offset: true }).nullable(),
985
+ settings: zRetentionSettings
986
+ });
987
+ const zSchedule = zod.union([zod.object({
988
+ type: zod.enum(["crontab"]),
989
+ value: zod.string()
990
+ }), zod.object({
991
+ type: zod.enum(["interval"]),
992
+ unit: zIntervalUnit,
993
+ value: zod.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
994
+ })]);
995
+ /**
996
+ * A validated monitor configuration, with every default filled in.
997
+ */
998
+ const zMonitorConfig = zod.object({
999
+ checkin_margin: zod.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1000
+ failure_issue_threshold: zod.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1001
+ max_runtime: zod.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1002
+ recovery_threshold: zod.int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1003
+ schedule: zSchedule,
1004
+ timezone: zod.string()
1005
+ });
1006
+ /**
1007
+ * `monitor_config` as an SDK or the dashboard sends it: every field optional.
1008
+ */
1009
+ const zMonitorConfigInput = zod.object({
1010
+ checkin_margin: zod.int().gte(0).nullish(),
1011
+ failure_issue_threshold: zod.int().gte(0).nullish(),
1012
+ max_runtime: zod.int().gte(0).nullish(),
1013
+ recovery_threshold: zod.int().gte(0).nullish(),
1014
+ schedule: zSchedule.nullish(),
1015
+ timezone: zod.string().nullish()
1016
+ });
1017
+ /**
1018
+ * Body of `POST /api/projects/{project_id}/monitors`.
1019
+ */
1020
+ const zCreateMonitor = zod.object({
1021
+ config: zMonitorConfigInput,
1022
+ name: zod.string(),
1023
+ slug: zod.string().nullish()
1024
+ });
1025
+ const zMonitorResponse = zod.object({
1026
+ config: zMonitorConfig,
1027
+ created_at: zod.iso.datetime({ offset: true }),
1028
+ environments: zod.array(zMonitorEnvironmentResponse),
1029
+ id: zod.uuid(),
1030
+ is_muted: zod.boolean(),
1031
+ name: zod.string(),
1032
+ slug: zod.string()
1033
+ });
1034
+ /**
1035
+ * Body of `POST /api/schedules/preview`.
1036
+ */
1037
+ const zPreviewSchedule = zod.object({
1038
+ schedule: zSchedule,
1039
+ timezone: zod.string().nullish()
1040
+ });
1041
+ /**
1042
+ * When a schedule runs next, computed by the code that runs it: monitors
1043
+ * expect their check-ins and scheduled jobs fire at exactly these instants.
1044
+ */
1045
+ const zSchedulePreview = zod.object({ next_runs: zod.array(zod.iso.datetime({ offset: true })) });
1046
+ const zSeenResponse = zod.object({ has_seen: zod.boolean() });
1047
+ /**
1048
+ * Project-wide session health summary, aggregated across all releases and environments.
1049
+ */
1050
+ const zSessionSummary = zod.object({
1051
+ abnormal: zod.int(),
1052
+ active_releases: zod.int(),
1053
+ crash_free_sessions_rate: zod.number().nullable(),
1054
+ crash_free_users_rate: zod.number().nullable(),
1055
+ crashed: zod.int(),
1056
+ errored: zod.int(),
1057
+ total: zod.int()
1058
+ });
1059
+ /**
1060
+ * One time-bucketed point in a project's session trend, aggregated across all
1061
+ * releases and environments. Powers trend charts (crash-free sessions over time).
1062
+ */
1063
+ const zSessionTimeseriesPoint = zod.object({
1064
+ bucket: zod.iso.datetime({ offset: true }),
1065
+ crash_free_sessions_rate: zod.number().nullable(),
1066
+ crashed: zod.int(),
1067
+ total: zod.int()
1068
+ });
1069
+ /**
1070
+ * Sort order direction
1071
+ */
1072
+ const zSortOrder = zod.enum(["asc", "desc"]);
1073
+ const zSourceMapFile = zod.object({
1074
+ dateUploaded: zod.string(),
1075
+ debugId: zod.string(),
1076
+ fileType: zod.string(),
1077
+ size: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1078
+ timesUsed: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1079
+ });
1080
+ /**
1081
+ * Outcome of a source-map garbage collection: orphaned `source_file` rows
1082
+ * (no `source_file_metadata` referencing them) removed from the DB and unlinked
1083
+ * from disk. `bytes_freed` is the exact summed `size` of the removed files.
1084
+ */
1085
+ const zSourceMapGcResult = zod.object({
1086
+ bytes_freed: zod.int(),
1087
+ files_removed: zod.int()
1088
+ });
1089
+ const zSourceMapList = zod.object({ data: zod.array(zSourceMapFile) });
1090
+ /**
1091
+ * Exact source-map storage weight, summed from the `size` columns.
1092
+ *
1093
+ * Source maps live in two places: `chunk` holds the raw upload bytes as in-DB
1094
+ * BYTEA, `source_file` holds the assembled artifact on the filesystem CAS. Both
1095
+ * carry a `size` column, so the weight is an exact SUM — no filesystem walk.
1096
+ */
1097
+ const zSourceMapStorage = zod.object({
1098
+ chunk_bytes: zod.int(),
1099
+ file_count: zod.int(),
1100
+ source_file_bytes: zod.int(),
1101
+ total_bytes: zod.int()
1102
+ });
1103
+ /**
1104
+ * A single indexed span — extracted from a transaction, OR standalone
1105
+ * (Sentry "span" item type). Both origins write into the same `spans`
1106
+ * table, so `transaction_id` is the only thing that distinguishes them.
1107
+ */
1108
+ const zSpanResponse = zod.object({
1109
+ description: zod.string().nullable(),
1110
+ duration_ms: zod.number().nullable(),
1111
+ environment: zod.string().nullable(),
1112
+ exclusive_time_ms: zod.number().nullable(),
1113
+ gen_ai_agent_name: zod.string().nullable(),
1114
+ gen_ai_conversation_id: zod.string().nullable(),
1115
+ gen_ai_operation_type: zod.string().nullable(),
1116
+ gen_ai_request_model: zod.string().nullable(),
1117
+ gen_ai_response_model: zod.string().nullable(),
1118
+ gen_ai_tool_name: zod.string().nullable(),
1119
+ gen_ai_usage_input_tokens: zod.number().nullable(),
1120
+ gen_ai_usage_output_tokens: zod.number().nullable(),
1121
+ gen_ai_usage_total_tokens: zod.number().nullable(),
1122
+ id: zod.uuid(),
1123
+ is_segment: zod.boolean(),
1124
+ op: zod.string().nullable(),
1125
+ parent_span_id: zod.string().nullable(),
1126
+ platform: zod.string().nullable(),
1127
+ release: zod.string().nullable(),
1128
+ segment_id: zod.string().nullable(),
1129
+ span_id: zod.string().nullable(),
1130
+ start_timestamp: zod.iso.datetime({ offset: true }).nullable(),
1131
+ status: zod.string().nullable(),
1132
+ timestamp: zod.iso.datetime({ offset: true }).nullable(),
1133
+ trace_id: zod.string().nullable(),
1134
+ transaction_id: zod.uuid().nullable()
1135
+ });
1136
+ /**
1137
+ * One span with its full attribute bag — the detail counterpart to
1138
+ * [`SpanResponse`].
1139
+ *
1140
+ * The list response deliberately omits attributes: `spans.data` is never
1141
+ * trimmed (unlike event data, which goes through `services::event_trim`), so
1142
+ * a single AI span can carry a whole prompt and a trace's worth of them would
1143
+ * dwarf the waterfall it is drawn from. Attributes are fetched one span at a
1144
+ * time instead, which is also how Sentry's own agent drawer works — the span
1145
+ * list is light and the details panel loads the selected node's attributes.
1146
+ */
1147
+ const zSpanDetailResponse = zSpanResponse.and(zod.object({
1148
+ attributes: zod.record(zod.string(), zod.unknown()),
1149
+ tags: zod.record(zod.string(), zod.unknown()).nullable()
1150
+ }));
1151
+ const zSsoConfigResponse = zod.object({
1152
+ enabled: zod.boolean(),
1153
+ provider_name: zod.string().nullable()
1154
+ });
1155
+ const zSsoLinkResponse = zod.object({
1156
+ email: zod.string(),
1157
+ provider_name: zod.string()
1158
+ });
1159
+ const zSsoStartResponse = zod.object({ authorization_url: zod.string() });
1160
+ /**
1161
+ * The age of everything the instance holds, by project and kind, keyed on
1162
+ * ingest time like retention.
1163
+ */
1164
+ const zStorageAge = zod.object({
1165
+ bucket_days: zod.array(zod.int()),
1166
+ projects: zod.array(zProjectAge)
1167
+ });
1168
+ /**
1169
+ * Instance-wide storage summary: what Rustrak is holding right now.
1170
+ *
1171
+ * Row counts are exact (indexed `COUNT(*)`). `total_db_size_bytes` is a
1172
+ * best-effort figure from the backend (`pg_database_size` / SQLite page count),
1173
+ * while `source_maps` is exact (summed `size` columns).
1174
+ */
1175
+ const zStorageSummary = zod.object({
1176
+ events_count: zod.int(),
1177
+ logs_count: zod.int(),
1178
+ source_maps: zSourceMapStorage,
1179
+ spans_count: zod.int(),
1180
+ total_db_size_bytes: zod.int(),
1181
+ transactions_count: zod.int()
1182
+ });
1183
+ const zSubscriptionResponse = zod.object({ is_subscribed: zod.boolean() });
1184
+ /**
1185
+ * A tag value with its event count within an issue.
1186
+ */
1187
+ const zTagValueCount = zod.object({
1188
+ count: zod.int(),
1189
+ value: zod.string()
1190
+ });
1191
+ /**
1192
+ * A tag key with its most common values within an issue.
1193
+ */
1194
+ const zTagSummary = zod.object({
1195
+ key: zod.string(),
1196
+ top_values: zod.array(zTagValueCount),
1197
+ total_values: zod.int().gte(0)
1198
+ });
1199
+ /**
1200
+ * Per-issue aggregates computed from recent events (capped scan).
1201
+ */
1202
+ const zIssueAggregates = zod.object({
1203
+ tags: zod.array(zTagSummary),
1204
+ user_count: zod.int()
1205
+ });
1206
+ const zTelemetryPreview = zod.object({
1207
+ enabled: zod.boolean(),
1208
+ reason: zod.string().nullable(),
1209
+ report: zod.record(zod.string(), zod.unknown()),
1210
+ sink: zod.string().nullable()
1211
+ });
1212
+ /**
1213
+ * Outcome of a test notification.
1214
+ */
1215
+ const zTestChannelResponse = zod.object({
1216
+ message: zod.string(),
1217
+ response_body: zod.string().nullable(),
1218
+ success: zod.boolean()
1219
+ });
1220
+ /**
1221
+ * Request body for the test-integration endpoint.
1222
+ */
1223
+ const zTestIntegrationBody = zod.object({ routing_override: zod.record(zod.string(), zod.unknown()).nullish() });
1224
+ /**
1225
+ * Body for toggling a per-user flag (bookmark/subscription).
1226
+ */
1227
+ const zToggleRequest = zod.object({ enabled: zod.boolean().nullish() });
1228
+ /**
1229
+ * Response model for a single transaction detail view.
1230
+ *
1231
+ * Carries the same summary fields as [`TransactionResponse`] plus the full
1232
+ * Sentry payload under `data` (spans, contexts.trace, measurements, tags,
1233
+ * request, user). The frontend builds the span waterfall and metrics view
1234
+ * from `data`.
1235
+ */
1236
+ const zTransactionDetailResponse = zod.object({
1237
+ data: zod.record(zod.string(), zod.unknown()),
1238
+ duration_ms: zod.number().nullable(),
1239
+ environment: zod.string(),
1240
+ event_id: zod.string(),
1241
+ id: zod.uuid(),
1242
+ ingested_at: zod.iso.datetime({ offset: true }),
1243
+ platform: zod.string(),
1244
+ release: zod.string(),
1245
+ start_timestamp: zod.iso.datetime({ offset: true }).nullable(),
1246
+ timestamp: zod.iso.datetime({ offset: true }),
1247
+ transaction_name: zod.string()
1248
+ });
1249
+ zod.object({
1250
+ duration_ms: zod.number().nullable(),
1251
+ environment: zod.string(),
1252
+ event_id: zod.string(),
1253
+ id: zod.uuid(),
1254
+ ingested_at: zod.iso.datetime({ offset: true }),
1255
+ platform: zod.string(),
1256
+ release: zod.string(),
1257
+ start_timestamp: zod.iso.datetime({ offset: true }).nullable(),
1258
+ timestamp: zod.iso.datetime({ offset: true }),
1259
+ transaction_name: zod.string()
1260
+ });
1261
+ /**
1262
+ * Aggregate performance stats for one (transaction_name, op) group.
1263
+ * Powers the performance overview: throughput + latency percentiles +
1264
+ * failure rate per transaction. Percentiles are continuous (linear
1265
+ * interpolation, matching Postgres `percentile_cont`).
1266
+ */
1267
+ const zTransactionStatsResponse = zod.object({
1268
+ count: zod.int(),
1269
+ failure_rate: zod.number(),
1270
+ op: zod.string().nullable(),
1271
+ p50_ms: zod.number(),
1272
+ p95_ms: zod.number(),
1273
+ p99_ms: zod.number(),
1274
+ transaction_name: zod.string()
1275
+ });
1276
+ /**
1277
+ * DTO for updating an alert integration
1278
+ */
1279
+ const zUpdateAlertIntegration = zod.object({
1280
+ credentials: zod.record(zod.string(), zod.unknown()).nullish(),
1281
+ is_enabled: zod.boolean().nullish(),
1282
+ name: zod.string().nullish()
1283
+ });
1284
+ /**
1285
+ * DTO for updating an alert rule
1286
+ */
1287
+ const zUpdateAlertRule = zod.object({
1288
+ channels: zod.array(zAlertRuleChannelInput).nullish(),
1289
+ conditions: zod.record(zod.string(), zod.unknown()).nullish(),
1290
+ 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(),
1291
+ is_enabled: zod.boolean().nullish(),
1292
+ name: zod.string().nullish()
1293
+ });
1294
+ /**
1295
+ * Request to update issue state.
1296
+ *
1297
+ * `status`/`substatus`/`priority`/assignment are the canonical fields.
1298
+ * `is_resolved`/`is_muted` are accepted as a deprecated compatibility shim
1299
+ * and mapped onto `status`.
1300
+ */
1301
+ const zUpdateIssueState = zod.object({
1302
+ assigned_to: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(),
1303
+ assignee_type: zod.string().nullish(),
1304
+ is_muted: zod.boolean().nullish(),
1305
+ is_resolved: zod.boolean().nullish(),
1306
+ priority: zIssuePriority.nullish(),
1307
+ status: zIssueStatusUpdate.nullish(),
1308
+ substatus: zod.string().nullish()
1309
+ });
1310
+ /**
1311
+ * Body of `PUT /api/projects/{project_id}/monitors/{slug}`. Fields left out
1312
+ * keep their value, including each field of `config`.
1313
+ */
1314
+ const zUpdateMonitor = zod.object({
1315
+ config: zMonitorConfigInput.nullish(),
1316
+ is_muted: zod.boolean().nullish(),
1317
+ name: zod.string().nullish()
1318
+ });
1319
+ /**
1320
+ * What a reader may change about how the dashboard is presented to them.
1321
+ *
1322
+ * Every field is doubly optional, and both levels are used: absent means
1323
+ * "leave it", `null` means "clear it". `#[serde(default)]` with
1324
+ * `deserialize_with` is what keeps those distinguishable, because plain
1325
+ * `Option<Option<T>>` collapses a missing key and an explicit null.
1326
+ */
1327
+ const zUpdatePreferencesRequest = zod.object({
1328
+ language: zod.string().nullish(),
1329
+ timezone: zod.string().nullish()
1330
+ });
1331
+ /**
1332
+ * DTO for updating a project
1333
+ */
1334
+ const zUpdateProject = zod.object({
1335
+ name: zod.string().nullish(),
1336
+ platform: zod.string().nullish(),
1337
+ rate_limit_per_hour: zod.int().nullish(),
1338
+ rate_limit_per_minute: zod.int().nullish(),
1339
+ slug: zod.string().nullish()
1340
+ });
1341
+ const zUpdateProjectRepository = zod.object({
1342
+ auto_create_conditions: zod.record(zod.string(), zod.unknown()).nullish(),
1343
+ auto_create_issues: zod.boolean().nullish(),
1344
+ code_mappings: zod.array(zCodeMapping).nullish(),
1345
+ installation_id: zod.int(),
1346
+ repo_full_name: zod.string()
1347
+ });
1348
+ /**
1349
+ * DTO for `PUT .../releases/{version}/` — generic partial update.
1350
+ * Setting `date_released` IS "finalize": there is no separate status flag.
1351
+ * Absent fields (including an explicit `null`) leave the stored value
1352
+ * unchanged, matching Sentry's own partial-update semantics for this endpoint.
1353
+ */
1354
+ const zUpdateRelease = zod.object({
1355
+ dateReleased: zod.iso.datetime({ offset: true }).nullish(),
1356
+ ref: zod.string().nullish(),
1357
+ url: zod.string().nullish()
1358
+ });
1359
+ const zUpsertProjectMember = zod.object({
1360
+ role: zProjectRole,
1361
+ user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1362
+ });
1363
+ /**
1364
+ * A user feedback report attached to a project/issue/event.
1365
+ */
1366
+ const zUserReport = zod.object({
1367
+ comments: zod.string(),
1368
+ created_at: zod.iso.datetime({ offset: true }),
1369
+ email: zod.string(),
1370
+ event_id: zod.uuid().nullable(),
1371
+ id: zod.uuid(),
1372
+ issue_id: zod.uuid().nullable(),
1373
+ name: zod.string(),
1374
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1375
+ });
1376
+ /**
1377
+ * Body for submitting user feedback on an issue.
1378
+ */
1379
+ const zUserReportRequest = zod.object({
1380
+ comments: zod.string().nullish(),
1381
+ email: zod.string().nullish(),
1382
+ event_id: zod.uuid().nullish(),
1383
+ name: zod.string().nullish()
1384
+ });
1385
+ /**
1386
+ * Instance-wide role for a user.
1387
+ *
1388
+ * `Admin` has full access to every project and to team management.
1389
+ * `Member` only sees projects they are a member of (see `ProjectRole`).
1390
+ */
1391
+ const zUserRole = zod.enum(["admin", "member"]);
1392
+ const zCreateInvitation = zod.object({
1393
+ email: zod.string(),
1394
+ role: zUserRole
1395
+ });
1396
+ /**
1397
+ * Public-facing invitation info for the accept page.
1398
+ */
1399
+ const zInvitationInfoResponse = zod.object({
1400
+ email: zod.string(),
1401
+ expires_at: zod.iso.datetime({ offset: true }),
1402
+ role: zUserRole,
1403
+ status: zod.string()
1404
+ });
1405
+ /**
1406
+ * Public-facing invitation (no internal columns beyond what the UI needs).
1407
+ */
1408
+ const zInvitationResponse = zod.object({
1409
+ created_at: zod.iso.datetime({ offset: true }),
1410
+ email: zod.string(),
1411
+ expires_at: zod.iso.datetime({ offset: true }),
1412
+ role: zUserRole,
1413
+ status: zod.string(),
1414
+ token: zod.string()
1415
+ });
1416
+ /**
1417
+ * A user as exposed on the team roster.
1418
+ */
1419
+ const zTeamMemberResponse = zod.object({
1420
+ created_at: zod.iso.datetime({ offset: true }),
1421
+ email: zod.string(),
1422
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1423
+ is_active: zod.boolean(),
1424
+ is_primary: zod.boolean(),
1425
+ last_login: zod.iso.datetime({ offset: true }).nullable(),
1426
+ role: zUserRole
1427
+ });
1428
+ /**
1429
+ * Request body for changing a user's global role.
1430
+ */
1431
+ const zUpdateUserRole = zod.object({ role: zUserRole });
1432
+ const zUserResponse = zod.object({
1433
+ email: zod.string(),
1434
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1435
+ is_admin: zod.boolean(),
1436
+ language: zod.string().nullable(),
1437
+ role: zUserRole,
1438
+ timezone: zod.string().nullable()
1439
+ });
1440
+ const zAuthResponse = zod.object({ user: zUserResponse });
1441
+ const zVersionResponse = zod.object({ version: zod.string() });
1442
+ const zSourceMapsOrgDetailsPath = zod.object({ org_slug: zod.string() });
1443
+ /**
1444
+ * Synthetic org metadata accepted by sentry-cli
1445
+ */
1446
+ const zSourceMapsOrgDetailsResponse = zOrgDetails;
1447
+ const zSourceMapsArtifactBundleAssembleBody = zAssembleBody;
1448
+ const zSourceMapsArtifactBundleAssemblePath = zod.object({ org_slug: zod.string() });
1449
+ /**
1450
+ * Assembly job state (not_found / created / assembling / ok / error). Missing chunks are listed in missingChunks.
1451
+ */
1452
+ const zSourceMapsArtifactBundleAssembleResponse = zAssembleResponse;
1453
+ const zSourceMapsChunkUploadCapabilityPath = zod.object({ org_slug: zod.string() });
1454
+ /**
1455
+ * Chunk upload capabilities and URL
1456
+ */
1457
+ const zSourceMapsChunkUploadCapabilityResponse = zChunkUploadOptions;
1458
+ /**
1459
+ * One or more binary chunk files. Field names may be SHA-1 hashes (v2 protocol) or arbitrary names like 'file' (v3.x protocol).
1460
+ */
1461
+ const zSourceMapsChunkUploadBody = zChunkUploadBody;
1462
+ const zSourceMapsChunkUploadPath = zod.object({ org_slug: zod.string() });
1463
+ const zSourceMapsListPath = zod.object({
1464
+ org_slug: zod.string(),
1465
+ project_slug: zod.string()
1466
+ });
1467
+ /**
1468
+ * List of uploaded source map files
1469
+ */
1470
+ const zSourceMapsListResponse = zSourceMapList;
1471
+ const zReleasesCreateBody = zCreateRelease;
1472
+ const zReleasesCreatePath = zod.object({
1473
+ org_slug: zod.string(),
1474
+ project_slug: zod.string()
1475
+ });
1476
+ /**
1477
+ * Release created
1478
+ */
1479
+ const zReleasesCreateResponse = zReleaseResponse;
1480
+ const zReleasesFinalizeBody = zUpdateRelease;
1481
+ const zReleasesFinalizePath = zod.object({
1482
+ org_slug: zod.string(),
1483
+ project_slug: zod.string(),
1484
+ version: zod.string()
1485
+ });
1486
+ /**
1487
+ * Release updated
1488
+ */
1489
+ const zReleasesFinalizeResponse = zReleaseResponse;
1490
+ /**
1491
+ * GitHub App removed
1492
+ */
1493
+ const zGithubDisconnectResponse = zod.void();
1494
+ /**
1495
+ * GitHub App and installations
1496
+ */
1497
+ const zGithubStatusResponse = zGitHubStatus;
1498
+ const zGithubCallbackQuery = zod.object({
1499
+ code: zod.string(),
1500
+ state: zod.string()
1501
+ });
1502
+ const zGithubInstalledQuery = zod.object({ installation_id: zod.int() });
1503
+ const zGithubManifestBody = zManifestRequest;
1504
+ /**
1505
+ * Form to post to GitHub
1506
+ */
1507
+ const zGithubManifestResponse = zManifestResponse;
1508
+ /**
1509
+ * Your GitHub username
1510
+ */
1511
+ const zGithubGetMyLoginResponse = zGitHubLogin;
1512
+ const zGithubPutMyLoginBody = zGitHubLogin;
1513
+ /**
1514
+ * GitHub username saved
1515
+ */
1516
+ const zGithubPutMyLoginResponse = zGitHubLogin;
1517
+ const zGithubRepositoriesQuery = 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" }) });
1518
+ /**
1519
+ * Repositories the installations reach
1520
+ */
1521
+ const zGithubRepositoriesResponse = zod.array(zGitHubRepository);
1522
+ /**
1523
+ * GitHub event payload, signed in X-Hub-Signature-256
1524
+ */
1525
+ const zGithubWebhookBody = zod.record(zod.string(), zod.unknown());
1526
+ /**
1527
+ * Event processed
1528
+ */
1529
+ const zGithubWebhookResponse = zod.void();
1530
+ /**
1531
+ * List of notification channels
1532
+ */
1533
+ const zAlertChannelsListResponse = zod.array(zAlertIntegration);
1534
+ const zAlertChannelsCreateBody = zCreateAlertIntegration;
1535
+ /**
1536
+ * Channel created
1537
+ */
1538
+ const zAlertChannelsCreateResponse = zAlertIntegration;
1539
+ const zAlertChannelsPreviewTemplateBody = zPreviewTemplateBody;
1540
+ /**
1541
+ * Rendered body, or why it would not render
1542
+ */
1543
+ const zAlertChannelsPreviewTemplateResponse = zPreviewTemplateResponse;
1544
+ const zAlertChannelsDeletePath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
1545
+ /**
1546
+ * Channel deleted
1547
+ */
1548
+ const zAlertChannelsDeleteResponse = zod.void();
1549
+ const zAlertChannelsGetPath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
1550
+ /**
1551
+ * Channel details
1552
+ */
1553
+ const zAlertChannelsGetResponse = zAlertIntegration;
1554
+ const zAlertChannelsUpdateBody = zUpdateAlertIntegration;
1555
+ const zAlertChannelsUpdatePath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
1556
+ /**
1557
+ * Channel updated
1558
+ */
1559
+ const zAlertChannelsUpdateResponse = zAlertIntegration;
1560
+ const zAlertChannelsTestBody = zTestIntegrationBody;
1561
+ const zAlertChannelsTestPath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
1562
+ /**
1563
+ * Test notification sent
1564
+ */
1565
+ const zAlertChannelsTestResponse = zTestChannelResponse;
1566
+ /**
1567
+ * List of invitations
1568
+ */
1569
+ const zInvitationsListResponse = zod.array(zInvitationResponse);
1570
+ const zInvitationsCreateBody = zCreateInvitation;
1571
+ /**
1572
+ * Invitation created
1573
+ */
1574
+ const zInvitationsCreateResponse = zInvitationResponse;
1575
+ const zInvitationsRevokePath = zod.object({ token: zod.string() });
1576
+ /**
1577
+ * Invitation revoked
1578
+ */
1579
+ const zInvitationsRevokeResponse = zod.void();
1580
+ const zOauthGetAuthorizationQuery = zod.object({
1581
+ response_type: zod.string(),
1582
+ client_id: zod.string(),
1583
+ redirect_uri: zod.string(),
1584
+ code_challenge: zod.string(),
1585
+ code_challenge_method: zod.string(),
1586
+ state: zod.string().nullish(),
1587
+ resource: zod.string().nullish()
1588
+ });
1589
+ /**
1590
+ * The verified client asking for access
1591
+ */
1592
+ const zOauthGetAuthorizationResponse = zAuthorizationInfo;
1593
+ const zOauthDecideAuthorizationBody = zAuthorizationDecision;
1594
+ /**
1595
+ * Where to send the browser
1596
+ */
1597
+ const zOauthDecideAuthorizationResponse = zAuthorizationRedirect;
1598
+ /**
1599
+ * Assistants connected to your account
1600
+ */
1601
+ const zOauthListGrantsResponse = zod.array(zOAuthGrant);
1602
+ const zOauthRevokeGrantPath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
1603
+ /**
1604
+ * Disconnected
1605
+ */
1606
+ const zOauthRevokeGrantResponse = zod.void();
1607
+ const zProjectsListQuery = zod.object({
1608
+ page: zod.int().gte(1).optional(),
1609
+ per_page: zod.int().gte(1).lte(100).optional(),
1610
+ order: zSortOrder.optional(),
1611
+ stats_period: zod.string().nullish()
1612
+ });
1613
+ /**
1614
+ * Offset-based paginated response wrapper
1615
+ */
1616
+ const zProjectsListResponse = zod.object({
1617
+ items: zod.array(zod.object({
1618
+ created_at: zod.iso.datetime({ offset: true }),
1619
+ 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" }),
1620
+ dsn: zod.string(),
1621
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1622
+ name: zod.string(),
1623
+ platform: zod.string().nullable(),
1624
+ rate_limit_per_hour: zod.int().nullable(),
1625
+ rate_limit_per_minute: zod.int().nullable(),
1626
+ rate_limited_event_count: zod.int(),
1627
+ sentry_key: zod.uuid(),
1628
+ slug: zod.string(),
1629
+ stats: zProjectListStats.nullish(),
1630
+ stored_event_count: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1631
+ updated_at: zod.iso.datetime({ offset: true })
1632
+ })),
1633
+ page: zod.int(),
1634
+ per_page: zod.int(),
1635
+ total_count: zod.int(),
1636
+ total_pages: zod.int()
1637
+ });
1638
+ const zProjectsCreateBody = zCreateProject;
1639
+ /**
1640
+ * Project created
1641
+ */
1642
+ const zProjectsCreateResponse = zProjectResponse;
1643
+ const zProjectsDeletePath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
1644
+ /**
1645
+ * Project deleted
1646
+ */
1647
+ const zProjectsDeleteResponse = zod.void();
1648
+ const zProjectsGetPath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
1649
+ /**
1650
+ * Project details
1651
+ */
1652
+ const zProjectsGetResponse = zProjectResponse;
1653
+ const zProjectsUpdateBody = zUpdateProject;
1654
+ const zProjectsUpdatePath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
1655
+ /**
1656
+ * Project updated
1657
+ */
1658
+ const zProjectsUpdateResponse = zProjectResponse;
1659
+ 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" }) });
1660
+ const zAgentsDurationQuery = zod.object({
1661
+ period_hours: zod.int().nullish(),
1662
+ environment: zod.string().nullish(),
1663
+ interval_hours: zod.int().gte(1).optional()
1664
+ });
1665
+ /**
1666
+ * Avg/p95 duration over time for agent runs and LLM calls
1667
+ */
1668
+ const zAgentsDurationResponse = zod.array(zAgentDurationPoint);
1669
+ const zAgentsEnvironmentsPath = 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" }) });
1670
+ /**
1671
+ * Environments present in this project's AI spans
1672
+ */
1673
+ const zAgentsEnvironmentsResponse = zod.array(zod.string());
1674
+ const zAgentsModelsTablePath = 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" }) });
1675
+ const zAgentsModelsTableQuery = zod.object({
1676
+ period_hours: zod.int().nullish(),
1677
+ environment: zod.string().nullish()
1678
+ });
1679
+ /**
1680
+ * Per-model volume, failures, latency and token split
1681
+ */
1682
+ const zAgentsModelsTableResponse = zod.array(zAgentModelRow);
1683
+ const zAgentsModelsCallsPath = 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" }) });
1684
+ const zAgentsModelsCallsQuery = zod.object({
1685
+ period_hours: zod.int().nullish(),
1686
+ environment: zod.string().nullish(),
1687
+ limit: zod.int().gte(1).lte(100).optional()
1688
+ });
1689
+ /**
1690
+ * Top LLM call counts by response model
1691
+ */
1692
+ const zAgentsModelsCallsResponse = zod.array(zGenAiBreakdownRow);
1693
+ const zAgentsModelsTokensPath = 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" }) });
1694
+ const zAgentsModelsTokensQuery = zod.object({
1695
+ period_hours: zod.int().nullish(),
1696
+ environment: zod.string().nullish(),
1697
+ limit: zod.int().gte(1).lte(100).optional()
1698
+ });
1699
+ /**
1700
+ * Top total tokens used by response model
1701
+ */
1702
+ const zAgentsModelsTokensResponse = zod.array(zGenAiBreakdownRow);
1703
+ const zAgentsRunsPath = 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" }) });
1704
+ const zAgentsRunsQuery = zod.object({
1705
+ period_hours: zod.int().nullish(),
1706
+ environment: zod.string().nullish(),
1707
+ interval_hours: zod.int().gte(1).optional()
1708
+ });
1709
+ /**
1710
+ * Agent runs over time
1711
+ */
1712
+ const zAgentsRunsResponse = zod.array(zAgentTimeseriesPoint);
1713
+ const zAgentsSummaryPath = 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" }) });
1714
+ const zAgentsSummaryQuery = zod.object({
1715
+ period_hours: zod.int().nullish(),
1716
+ environment: zod.string().nullish()
1717
+ });
1718
+ /**
1719
+ * Headline totals for the selected window
1720
+ */
1721
+ const zAgentsSummaryResponse = zAgentSummary;
1722
+ const zAgentsToolsPath = 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" }) });
1723
+ const zAgentsToolsQuery = zod.object({
1724
+ period_hours: zod.int().nullish(),
1725
+ environment: zod.string().nullish(),
1726
+ limit: zod.int().gte(1).lte(100).optional()
1727
+ });
1728
+ /**
1729
+ * Top tool call counts by tool name
1730
+ */
1731
+ const zAgentsToolsResponse = zod.array(zGenAiBreakdownRow);
1732
+ const zAgentsToolsTablePath = 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" }) });
1733
+ const zAgentsToolsTableQuery = zod.object({
1734
+ period_hours: zod.int().nullish(),
1735
+ environment: zod.string().nullish()
1736
+ });
1737
+ /**
1738
+ * Per-tool call volume, failures and latency
1739
+ */
1740
+ const zAgentsToolsTableResponse = zod.array(zAgentToolRow);
1741
+ const zAgentsTracesPath = 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" }) });
1742
+ const zAgentsTracesQuery = zod.object({
1743
+ period_hours: zod.int().nullish(),
1744
+ environment: zod.string().nullish(),
1745
+ page: zod.int().gte(1).optional(),
1746
+ per_page: zod.int().gte(1).lte(100).optional()
1747
+ });
1748
+ /**
1749
+ * Offset-based paginated response wrapper
1750
+ */
1751
+ const zAgentsTracesResponse = zod.object({
1752
+ items: zod.array(zod.object({
1753
+ agent_names: zod.array(zod.string()),
1754
+ duration_ms: zod.number().nullable(),
1755
+ error_count: zod.int(),
1756
+ llm_call_count: zod.int(),
1757
+ started_at: zod.iso.datetime({ offset: true }),
1758
+ tool_call_count: zod.int(),
1759
+ total_tokens: zod.number(),
1760
+ trace_id: zod.string()
1761
+ })),
1762
+ page: zod.int(),
1763
+ per_page: zod.int(),
1764
+ total_count: zod.int(),
1765
+ total_pages: zod.int()
1766
+ });
1767
+ 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" }) });
1768
+ const zAlertRulesListHistoryQuery = zod.object({ limit: zod.int().optional() });
1769
+ /**
1770
+ * Alert history
1771
+ */
1772
+ const zAlertRulesListHistoryResponse = zod.array(zAlertHistory);
1773
+ 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" }) });
1774
+ /**
1775
+ * List of alert rules
1776
+ */
1777
+ const zAlertRulesListResponse = zod.array(zAlertRuleResponse);
1778
+ const zAlertRulesCreateBody = zCreateAlertRule;
1779
+ const zAlertRulesCreatePath = 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" }) });
1780
+ /**
1781
+ * Alert rule created
1782
+ */
1783
+ const zAlertRulesCreateResponse = zAlertRuleResponse;
1784
+ const zAlertRulesDeletePath = zod.object({
1785
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1786
+ rule_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1787
+ });
1788
+ /**
1789
+ * Alert rule deleted
1790
+ */
1791
+ const zAlertRulesDeleteResponse = zod.void();
1792
+ const zAlertRulesGetPath = zod.object({
1793
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1794
+ rule_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1795
+ });
1796
+ /**
1797
+ * Alert rule details
1798
+ */
1799
+ const zAlertRulesGetResponse = zAlertRuleResponse;
1800
+ const zAlertRulesUpdateBody = zUpdateAlertRule;
1801
+ const zAlertRulesUpdatePath = zod.object({
1802
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1803
+ rule_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1804
+ });
1805
+ /**
1806
+ * Alert rule updated
1807
+ */
1808
+ const zAlertRulesUpdateResponse = zAlertRuleResponse;
1809
+ const zEventsGetBySentryIdPath = zod.object({
1810
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1811
+ event_id: zod.string()
1812
+ });
1813
+ /**
1814
+ * Full event detail, including its issue ID
1815
+ */
1816
+ const zEventsGetBySentryIdResponse = zEventDetailResponse;
1817
+ 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" }) });
1818
+ const zStatsGetEventTimeseriesQuery = zod.object({
1819
+ period: zod.string().optional(),
1820
+ interval: zod.int().optional()
1821
+ });
1822
+ /**
1823
+ * Time-bucketed error-event volume by severity
1824
+ */
1825
+ const zStatsGetEventTimeseriesResponse = zod.array(zEventTimeseriesPoint);
1826
+ const zGithubDeleteProjectRepositoryPath = 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" }) });
1827
+ /**
1828
+ * Repository removed
1829
+ */
1830
+ const zGithubDeleteProjectRepositoryResponse = zod.void();
1831
+ const zGithubGetProjectRepositoryPath = 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" }) });
1832
+ /**
1833
+ * The project's repository, if any
1834
+ */
1835
+ const zGithubGetProjectRepositoryResponse = zProjectRepository.nullable();
1836
+ const zGithubPutProjectRepositoryBody = zUpdateProjectRepository;
1837
+ const zGithubPutProjectRepositoryPath = 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" }) });
1838
+ /**
1839
+ * Repository saved
1840
+ */
1841
+ const zGithubPutProjectRepositoryResponse = zProjectRepository;
1842
+ const zGithubSyncCodeownersPath = 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" }) });
1843
+ /**
1844
+ * CODEOWNERS synced
1845
+ */
1846
+ const zGithubSyncCodeownersResponse = zProjectRepository;
1847
+ const zIssuesBulkDeleteBody = zBulkDeleteIssues;
1848
+ const zIssuesBulkDeletePath = 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" }) });
1849
+ /**
1850
+ * Number of issues deleted
1851
+ */
1852
+ const zIssuesBulkDeleteResponse = zBulkDeleteResponse;
1853
+ const zIssuesListPath = 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" }) });
1854
+ const zIssuesListQuery = zod.object({
1855
+ page: zod.int().gte(1).optional(),
1856
+ per_page: zod.int().gte(1).lte(100).optional(),
1857
+ sort: zIssueSort.optional(),
1858
+ order: zSortOrder.optional(),
1859
+ filter: zIssueFilter.optional(),
1860
+ q: zod.string().nullish()
1861
+ });
1862
+ /**
1863
+ * Offset-based paginated response wrapper
1864
+ */
1865
+ const zIssuesListResponse = zod.object({
1866
+ items: zod.array(zod.object({
1867
+ assigned_to: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullable(),
1868
+ assignee_type: zod.string().nullable(),
1869
+ culprit: zod.string(),
1870
+ event_count: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1871
+ first_release: zod.string(),
1872
+ first_seen: zod.iso.datetime({ offset: true }),
1873
+ has_seen: zod.boolean().nullish(),
1874
+ id: zod.uuid(),
1875
+ is_bookmarked: zod.boolean().nullish(),
1876
+ is_muted: zod.boolean(),
1877
+ is_resolved: zod.boolean(),
1878
+ is_subscribed: zod.boolean().nullish(),
1879
+ issue_category: zod.string(),
1880
+ issue_type: zod.string(),
1881
+ last_release: zod.string(),
1882
+ last_seen: zod.iso.datetime({ offset: true }),
1883
+ level: zod.string().nullable(),
1884
+ logger: zod.string(),
1885
+ platform: zod.string().nullable(),
1886
+ priority: zIssuePriority.nullable(),
1887
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1888
+ short_id: zod.string(),
1889
+ status: zIssueStatus,
1890
+ status_details: zod.record(zod.string(), zod.unknown()),
1891
+ substatus: zod.string().nullable(),
1892
+ title: zod.string(),
1893
+ trend: zod.array(zod.int()).nullish(),
1894
+ user_count: zod.int().nullish(),
1895
+ user_report_count: zod.int().nullish(),
1896
+ value: zod.string()
1897
+ })),
1898
+ page: zod.int(),
1899
+ per_page: zod.int(),
1900
+ total_count: zod.int(),
1901
+ total_pages: zod.int()
1902
+ });
1903
+ const zIssuesBulkUpdateBody = zBulkUpdateIssues;
1904
+ const zIssuesBulkUpdatePath = 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" }) });
1905
+ /**
1906
+ * Number of issues updated
1907
+ */
1908
+ const zIssuesBulkUpdateResponse = zBulkUpdateResponse;
1909
+ const zIssuesDeletePath = zod.object({
1910
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1911
+ issue_id: zod.uuid()
1912
+ });
1913
+ /**
1914
+ * Issue deleted
1915
+ */
1916
+ const zIssuesDeleteResponse = zod.void();
1917
+ const zIssuesGetPath = zod.object({
1918
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1919
+ issue_id: zod.uuid()
1920
+ });
1921
+ /**
1922
+ * Issue details
1923
+ */
1924
+ const zIssuesGetResponse = zIssueResponse;
1925
+ const zIssuesUpdateBody = zUpdateIssueState;
1926
+ const zIssuesUpdatePath = zod.object({
1927
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1928
+ issue_id: zod.uuid()
1929
+ });
1930
+ /**
1931
+ * Issue updated
1932
+ */
1933
+ const zIssuesUpdateResponse = zIssueResponse;
1934
+ const zIssuesGetActivityPath = zod.object({
1935
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1936
+ issue_id: zod.uuid()
1937
+ });
1938
+ /**
1939
+ * Activity log (status changes, comments, …)
1940
+ */
1941
+ const zIssuesGetActivityResponse = zod.array(zActivityEntry);
1942
+ const zIssuesGetAggregatesPath = zod.object({
1943
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1944
+ issue_id: zod.uuid()
1945
+ });
1946
+ /**
1947
+ * Unique user count and top tags
1948
+ */
1949
+ const zIssuesGetAggregatesResponse = zIssueAggregates;
1950
+ const zIssuesSetBookmarkBody = zToggleRequest;
1951
+ const zIssuesSetBookmarkPath = zod.object({
1952
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1953
+ issue_id: zod.uuid()
1954
+ });
1955
+ /**
1956
+ * Updated bookmark state
1957
+ */
1958
+ const zIssuesSetBookmarkResponse = zBookmarkResponse;
1959
+ const zIssuesCreateCommentBody = zCommentRequest;
1960
+ const zIssuesCreateCommentPath = zod.object({
1961
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1962
+ issue_id: zod.uuid()
1963
+ });
1964
+ /**
1965
+ * Comment added
1966
+ */
1967
+ const zIssuesCreateCommentResponse = zActivityEntry;
1968
+ const zEventsListPath = zod.object({
1969
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1970
+ issue_id: zod.uuid()
1971
+ });
1972
+ const zEventsListQuery = zod.object({
1973
+ order: zSortOrder.optional(),
1974
+ cursor: zod.string().nullish()
1975
+ });
1976
+ /**
1977
+ * Paginated response wrapper (cursor-based)
1978
+ */
1979
+ const zEventsListResponse = zod.object({
1980
+ has_more: zod.boolean(),
1981
+ items: zod.array(zod.object({
1982
+ environment: zod.string(),
1983
+ event_id: zod.string(),
1984
+ event_type: zod.string(),
1985
+ id: zod.uuid(),
1986
+ issue_id: zod.uuid().nullable(),
1987
+ level: zod.string(),
1988
+ platform: zod.string(),
1989
+ release: zod.string(),
1990
+ timestamp: zod.iso.datetime({ offset: true }),
1991
+ title: zod.string()
1992
+ })),
1993
+ next_cursor: zod.string().nullish()
1994
+ });
1995
+ const zEventsGetPath = zod.object({
1996
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1997
+ issue_id: zod.uuid(),
1998
+ event_id: zod.uuid()
1999
+ });
2000
+ /**
2001
+ * Full event detail
2002
+ */
2003
+ const zEventsGetResponse = zEventDetailResponse;
2004
+ const zGithubIssuePath = zod.object({
2005
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2006
+ issue_id: zod.uuid()
2007
+ });
2008
+ /**
2009
+ * Links, suspect commits and owners
2010
+ */
2011
+ const zGithubIssueResponse = zIssueGitHub;
2012
+ const zGithubCreateIssueBody = zCreateGitHubIssue;
2013
+ const zGithubCreateIssuePath = zod.object({
2014
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2015
+ issue_id: zod.uuid()
2016
+ });
2017
+ /**
2018
+ * GitHub issue created and linked
2019
+ */
2020
+ const zGithubCreateIssueResponse = zIssueLink;
2021
+ const zGithubLinkIssueBody = zLinkGitHubIssue;
2022
+ const zGithubLinkIssuePath = zod.object({
2023
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2024
+ issue_id: zod.uuid()
2025
+ });
2026
+ /**
2027
+ * GitHub issue linked
2028
+ */
2029
+ const zGithubLinkIssueResponse = zIssueLink;
2030
+ const zGithubUnlinkIssuePath = zod.object({
2031
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2032
+ issue_id: zod.uuid(),
2033
+ link_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
2034
+ });
2035
+ /**
2036
+ * Link removed
2037
+ */
2038
+ const zGithubUnlinkIssueResponse = zod.void();
2039
+ const zIssuesGetHashesPath = zod.object({
2040
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2041
+ issue_id: zod.uuid()
2042
+ });
2043
+ /**
2044
+ * Grouping hashes mapped to the issue
2045
+ */
2046
+ const zIssuesGetHashesResponse = zod.array(zGrouping);
2047
+ const zIssuesMarkSeenPath = zod.object({
2048
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2049
+ issue_id: zod.uuid()
2050
+ });
2051
+ /**
2052
+ * Issue marked as seen
2053
+ */
2054
+ const zIssuesMarkSeenResponse = zSeenResponse;
2055
+ const zIssuesGetStatsPath = zod.object({
2056
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2057
+ issue_id: zod.uuid()
2058
+ });
2059
+ const zIssuesGetStatsQuery = zod.object({ window: zIssueStatsWindow.optional() });
2060
+ /**
2061
+ * Zero-filled event-count timeseries
2062
+ */
2063
+ const zIssuesGetStatsResponse = zIssueStatsResponse;
2064
+ const zIssuesSetSubscriptionBody = zToggleRequest;
2065
+ const zIssuesSetSubscriptionPath = zod.object({
2066
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2067
+ issue_id: zod.uuid()
2068
+ });
2069
+ /**
2070
+ * Updated subscription state
2071
+ */
2072
+ const zIssuesSetSubscriptionResponse = zSubscriptionResponse;
2073
+ const zIssuesGetTagValuesPath = zod.object({
2074
+ 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
+ issue_id: zod.uuid(),
2076
+ key: zod.string()
2077
+ });
2078
+ /**
2079
+ * Distinct values for the tag key, one entry per value (Sentry-compatible: a bare list, not wrapped)
2080
+ */
2081
+ const zIssuesGetTagValuesResponse = zod.array(zIssueTagValue);
2082
+ const zIssuesListUserReportsPath = zod.object({
2083
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2084
+ issue_id: zod.uuid()
2085
+ });
2086
+ /**
2087
+ * User feedback reports for the issue
2088
+ */
2089
+ const zIssuesListUserReportsResponse = zod.array(zUserReport);
2090
+ const zIssuesCreateUserReportBody = zUserReportRequest;
2091
+ const zIssuesCreateUserReportPath = zod.object({
2092
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2093
+ issue_id: zod.uuid()
2094
+ });
2095
+ /**
2096
+ * User feedback attached
2097
+ */
2098
+ const zIssuesCreateUserReportResponse = zUserReport;
2099
+ const zLogsListPath = 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" }) });
2100
+ const zLogsListQuery = zod.object({
2101
+ page: zod.int().gte(1).optional(),
2102
+ per_page: zod.int().gte(1).lte(100).optional(),
2103
+ level: zod.string().nullish(),
2104
+ trace_id: zod.string().nullish()
2105
+ });
2106
+ /**
2107
+ * Offset-based paginated response wrapper
2108
+ */
2109
+ const zLogsListResponse = zod.object({
2110
+ items: zod.array(zod.object({
2111
+ attributes: zod.record(zod.string(), zod.unknown()),
2112
+ body: zod.string(),
2113
+ id: zod.uuid(),
2114
+ ingested_at: zod.iso.datetime({ offset: true }),
2115
+ level: zod.string(),
2116
+ severity_number: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullable(),
2117
+ span_id: zod.string().nullable(),
2118
+ timestamp: zod.iso.datetime({ offset: true }),
2119
+ trace_id: zod.string().nullable()
2120
+ })),
2121
+ page: zod.int(),
2122
+ per_page: zod.int(),
2123
+ total_count: zod.int(),
2124
+ total_pages: zod.int()
2125
+ });
2126
+ 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" }) });
2127
+ /**
2128
+ * List of project members
2129
+ */
2130
+ const zMembersListResponse = zod.array(zProjectMemberResponse);
2131
+ const zMembersUpsertBody = zUpsertProjectMember;
2132
+ const zMembersUpsertPath = 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" }) });
2133
+ /**
2134
+ * Member added or updated
2135
+ */
2136
+ const zMembersUpsertResponse = zProjectMember;
2137
+ const zMembersRemovePath = zod.object({
2138
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2139
+ user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
2140
+ });
2141
+ /**
2142
+ * Member removed
2143
+ */
2144
+ const zMembersRemoveResponse = zod.void();
2145
+ 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" }) });
2146
+ /**
2147
+ * Every cron monitor of the project, with its environments and recent check-ins
2148
+ */
2149
+ const zMonitorsListResponse = zod.array(zMonitorResponse);
2150
+ const zMonitorsCreateBody = zCreateMonitor;
2151
+ const zMonitorsCreatePath = 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" }) });
2152
+ /**
2153
+ * Created
2154
+ */
2155
+ const zMonitorsCreateResponse = zMonitorResponse;
2156
+ const zMonitorsDeletePath = zod.object({
2157
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2158
+ slug: zod.string()
2159
+ });
2160
+ /**
2161
+ * Deleted with its check-ins; its issues stay
2162
+ */
2163
+ const zMonitorsDeleteResponse = zod.void();
2164
+ const zMonitorsGetPath = zod.object({
2165
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2166
+ slug: zod.string()
2167
+ });
2168
+ /**
2169
+ * The monitor
2170
+ */
2171
+ const zMonitorsGetResponse = zMonitorResponse;
2172
+ const zMonitorsUpdateBody = zUpdateMonitor;
2173
+ const zMonitorsUpdatePath = zod.object({
2174
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2175
+ slug: zod.string()
2176
+ });
2177
+ /**
2178
+ * Updated
2179
+ */
2180
+ const zMonitorsUpdateResponse = zMonitorResponse;
2181
+ const zMonitorsListCheckinsPath = zod.object({
2182
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2183
+ slug: zod.string()
2184
+ });
2185
+ const zMonitorsListCheckinsQuery = zod.object({
2186
+ page: zod.int().optional(),
2187
+ per_page: zod.int().optional(),
2188
+ environment: zod.string().nullish()
2189
+ });
2190
+ /**
2191
+ * Offset-based paginated response wrapper
2192
+ */
2193
+ const zMonitorsListCheckinsResponse = zod.object({
2194
+ items: zod.array(zod.object({
2195
+ date_added: zod.iso.datetime({ offset: true }),
2196
+ date_updated: zod.iso.datetime({ offset: true }),
2197
+ duration_ms: zod.int().nullable(),
2198
+ environment: zod.string(),
2199
+ expected_time: zod.iso.datetime({ offset: true }).nullable(),
2200
+ id: zod.uuid(),
2201
+ status: zCheckInStatus
2202
+ })),
2203
+ page: zod.int(),
2204
+ per_page: zod.int(),
2205
+ total_count: zod.int(),
2206
+ total_pages: zod.int()
2207
+ });
2208
+ const zReleasesNewIssuesPath = zod.object({
2209
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2210
+ release: zod.string()
2211
+ });
2212
+ const zReleasesNewIssuesQuery = zod.object({ limit: zod.int().optional() });
2213
+ /**
2214
+ * Issues first seen in this release, most recent first
2215
+ */
2216
+ const zReleasesNewIssuesResponse = zod.array(zIssueResponse);
2217
+ const zSessionsGetStatsPath = 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" }) });
2218
+ const zSessionsGetStatsQuery = zod.object({
2219
+ period: zod.string().nullish(),
2220
+ release: zod.string().nullish(),
2221
+ page: zod.int().gte(1).optional(),
2222
+ per_page: zod.int().gte(1).lte(100).optional()
2223
+ });
2224
+ /**
2225
+ * Offset-based paginated response wrapper
2226
+ */
2227
+ const zSessionsGetStatsResponse = zod.object({
2228
+ items: zod.array(zod.object({
2229
+ abnormal: zod.int(),
2230
+ crash_free_sessions_rate: zod.number().nullable(),
2231
+ crash_free_users_rate: zod.number().nullable(),
2232
+ crashed: zod.int(),
2233
+ environment: zod.string(),
2234
+ errored: zod.int(),
2235
+ healthy: zod.int(),
2236
+ release: zod.string(),
2237
+ total: zod.int()
2238
+ })),
2239
+ page: zod.int(),
2240
+ per_page: zod.int(),
2241
+ total_count: zod.int(),
2242
+ total_pages: zod.int()
2243
+ });
2244
+ 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" }) });
2245
+ const zSessionsGetSummaryQuery = zod.object({ period: zod.string().optional() });
2246
+ /**
2247
+ * Project-wide session health summary
2248
+ */
2249
+ const zSessionsGetSummaryResponse = zSessionSummary;
2250
+ 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" }) });
2251
+ const zSessionsGetTimeseriesQuery = zod.object({
2252
+ period: zod.string().optional(),
2253
+ interval: zod.int().optional()
2254
+ });
2255
+ /**
2256
+ * Time-bucketed session trend, project-wide
2257
+ */
2258
+ const zSessionsGetTimeseriesResponse = zod.array(zSessionTimeseriesPoint);
2259
+ const zSpansListPath = 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" }) });
2260
+ const zSpansListQuery = zod.object({
2261
+ page: zod.int().gte(1).optional(),
2262
+ per_page: zod.int().gte(1).lte(100).optional(),
2263
+ op: zod.string().nullish(),
2264
+ status: zod.string().nullish(),
2265
+ trace_id: zod.string().nullish(),
2266
+ operation_type: zod.string().nullish()
2267
+ });
2268
+ /**
2269
+ * Offset-based paginated response wrapper
2270
+ */
2271
+ const zSpansListResponse = zod.object({
2272
+ items: zod.array(zod.object({
2273
+ description: zod.string().nullable(),
2274
+ duration_ms: zod.number().nullable(),
2275
+ environment: zod.string().nullable(),
2276
+ exclusive_time_ms: zod.number().nullable(),
2277
+ gen_ai_agent_name: zod.string().nullable(),
2278
+ gen_ai_conversation_id: zod.string().nullable(),
2279
+ gen_ai_operation_type: zod.string().nullable(),
2280
+ gen_ai_request_model: zod.string().nullable(),
2281
+ gen_ai_response_model: zod.string().nullable(),
2282
+ gen_ai_tool_name: zod.string().nullable(),
2283
+ gen_ai_usage_input_tokens: zod.number().nullable(),
2284
+ gen_ai_usage_output_tokens: zod.number().nullable(),
2285
+ gen_ai_usage_total_tokens: zod.number().nullable(),
2286
+ id: zod.uuid(),
2287
+ is_segment: zod.boolean(),
2288
+ op: zod.string().nullable(),
2289
+ parent_span_id: zod.string().nullable(),
2290
+ platform: zod.string().nullable(),
2291
+ release: zod.string().nullable(),
2292
+ segment_id: zod.string().nullable(),
2293
+ span_id: zod.string().nullable(),
2294
+ start_timestamp: zod.iso.datetime({ offset: true }).nullable(),
2295
+ status: zod.string().nullable(),
2296
+ timestamp: zod.iso.datetime({ offset: true }).nullable(),
2297
+ trace_id: zod.string().nullable(),
2298
+ transaction_id: zod.uuid().nullable()
2299
+ })),
2300
+ page: zod.int(),
2301
+ per_page: zod.int(),
2302
+ total_count: zod.int(),
2303
+ total_pages: zod.int()
2304
+ });
2305
+ const zSpansGetPath = zod.object({
2306
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2307
+ span_id: zod.uuid()
2308
+ });
2309
+ /**
2310
+ * Span with its full attribute bag
2311
+ */
2312
+ const zSpansGetResponse = zSpanDetailResponse;
2313
+ 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" }) });
2314
+ const zStatsGetSummaryQuery = zod.object({ period: zod.string().optional() });
2315
+ /**
2316
+ * Project counters with previous-period comparison
2317
+ */
2318
+ const zStatsGetSummaryResponse = zProjectStatsSummary;
2319
+ const zTransactionsListPath = 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" }) });
2320
+ const zTransactionsListQuery = zod.object({
2321
+ page: zod.int().gte(1).optional(),
2322
+ per_page: zod.int().gte(1).lte(100).optional(),
2323
+ name: zod.string().nullish(),
2324
+ op: zod.string().nullish(),
2325
+ status: zod.string().nullish(),
2326
+ environment: zod.string().nullish(),
2327
+ release: zod.string().nullish()
2328
+ });
2329
+ /**
2330
+ * Offset-based paginated response wrapper
2331
+ */
2332
+ const zTransactionsListResponse = zod.object({
2333
+ items: zod.array(zod.object({
2334
+ duration_ms: zod.number().nullable(),
2335
+ environment: zod.string(),
2336
+ event_id: zod.string(),
2337
+ id: zod.uuid(),
2338
+ ingested_at: zod.iso.datetime({ offset: true }),
2339
+ platform: zod.string(),
2340
+ release: zod.string(),
2341
+ start_timestamp: zod.iso.datetime({ offset: true }).nullable(),
2342
+ timestamp: zod.iso.datetime({ offset: true }),
2343
+ transaction_name: zod.string()
2344
+ })),
2345
+ page: zod.int(),
2346
+ per_page: zod.int(),
2347
+ total_count: zod.int(),
2348
+ total_pages: zod.int()
2349
+ });
2350
+ 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" }) });
2351
+ const zTransactionsGetStatsQuery = zod.object({
2352
+ page: zod.int().gte(1).optional(),
2353
+ per_page: zod.int().gte(1).lte(100).optional()
2354
+ });
2355
+ /**
2356
+ * Offset-based paginated response wrapper
2357
+ */
2358
+ const zTransactionsGetStatsResponse = zod.object({
2359
+ items: zod.array(zod.object({
2360
+ count: zod.int(),
2361
+ failure_rate: zod.number(),
2362
+ op: zod.string().nullable(),
2363
+ p50_ms: zod.number(),
2364
+ p95_ms: zod.number(),
2365
+ p99_ms: zod.number(),
2366
+ transaction_name: zod.string()
2367
+ })),
2368
+ page: zod.int(),
2369
+ per_page: zod.int(),
2370
+ total_count: zod.int(),
2371
+ total_pages: zod.int()
2372
+ });
2373
+ 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" }) });
2374
+ const zTransactionsGetStatGroupQuery = zod.object({
2375
+ name: zod.string(),
2376
+ op: zod.string().nullish()
2377
+ });
2378
+ /**
2379
+ * Aggregate stats for one (transaction, op) group
2380
+ */
2381
+ const zTransactionsGetStatGroupResponse = zTransactionStatsResponse;
2382
+ const zTransactionsGetPath = zod.object({
2383
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2384
+ transaction_id: zod.uuid()
2385
+ });
2386
+ /**
2387
+ * Full transaction detail
2388
+ */
2389
+ const zTransactionsGetResponse = zTransactionDetailResponse;
2390
+ const zTransactionsGetSpansPath = zod.object({
2391
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2392
+ transaction_id: zod.uuid()
2393
+ });
2394
+ /**
2395
+ * Indexed spans for the transaction (waterfall order)
2396
+ */
2397
+ const zTransactionsGetSpansResponse = zod.array(zod.object({
2398
+ description: zod.string().nullable(),
2399
+ duration_ms: zod.number().nullable(),
2400
+ environment: zod.string().nullable(),
2401
+ exclusive_time_ms: zod.number().nullable(),
2402
+ gen_ai_agent_name: zod.string().nullable(),
2403
+ gen_ai_conversation_id: zod.string().nullable(),
2404
+ gen_ai_operation_type: zod.string().nullable(),
2405
+ gen_ai_request_model: zod.string().nullable(),
2406
+ gen_ai_response_model: zod.string().nullable(),
2407
+ gen_ai_tool_name: zod.string().nullable(),
2408
+ gen_ai_usage_input_tokens: zod.number().nullable(),
2409
+ gen_ai_usage_output_tokens: zod.number().nullable(),
2410
+ gen_ai_usage_total_tokens: zod.number().nullable(),
2411
+ id: zod.uuid(),
2412
+ is_segment: zod.boolean(),
2413
+ op: zod.string().nullable(),
2414
+ parent_span_id: zod.string().nullable(),
2415
+ platform: zod.string().nullable(),
2416
+ release: zod.string().nullable(),
2417
+ segment_id: zod.string().nullable(),
2418
+ span_id: zod.string().nullable(),
2419
+ start_timestamp: zod.iso.datetime({ offset: true }).nullable(),
2420
+ status: zod.string().nullable(),
2421
+ timestamp: zod.iso.datetime({ offset: true }).nullable(),
2422
+ trace_id: zod.string().nullable(),
2423
+ transaction_id: zod.uuid().nullable()
2424
+ }));
2425
+ /**
2426
+ * The server's per-project limits
2427
+ */
2428
+ const zProjectsGetRateLimitsResponse = zRateLimitsResponse;
2429
+ const zSchedulesPreviewBody = zPreviewSchedule;
2430
+ /**
2431
+ * The next five runs
2432
+ */
2433
+ const zSchedulesPreviewResponse = zSchedulePreview;
2434
+ /**
2435
+ * Whether the MCP endpoint is on, and its URL
2436
+ */
2437
+ const zSettingsGetMcpResponse = zMcpStatus;
2438
+ const zSettingsUpdateMcpBody = zMcpSettings;
2439
+ /**
2440
+ * The MCP endpoint's new state, and its URL
2441
+ */
2442
+ const zSettingsUpdateMcpResponse = zMcpStatus;
2443
+ /**
2444
+ * How long ago each project's data arrived, per kind
2445
+ */
2446
+ const zStorageGetAgeResponse = zStorageAge;
2447
+ const zStorageExecuteCleanupBody = zCleanupRequest;
2448
+ /**
2449
+ * Cleanup started in the background; poll its status
2450
+ */
2451
+ const zStorageExecuteCleanupResponse = zCleanupStatus;
2452
+ const zStoragePreviewCleanupBody = zCleanupRequest;
2453
+ /**
2454
+ * Dry-run: rows a cleanup would remove
2455
+ */
2456
+ const zStoragePreviewCleanupResponse = zCleanupCounts;
2457
+ /**
2458
+ * The current or last cleanup and the rows it removed
2459
+ */
2460
+ const zStorageGetCleanupStatusResponse = zCleanupStatus;
2461
+ /**
2462
+ * Per-project storage breakdown
2463
+ */
2464
+ const zStorageGetProjectsResponse = zod.array(zod.object({
2465
+ estimated_bytes: zod.int(),
2466
+ events_bytes: zod.int(),
2467
+ events_count: zod.int(),
2468
+ logs_bytes: zod.int(),
2469
+ logs_count: zod.int(),
2470
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2471
+ project_name: zod.string(),
2472
+ source_maps_count: zod.int(),
2473
+ spans_count: zod.int(),
2474
+ transactions_bytes: zod.int(),
2475
+ transactions_count: zod.int()
2476
+ }));
2477
+ /**
2478
+ * Retention settings, next cleanup and last cleanup
2479
+ */
2480
+ const zStorageGetRetentionResponse = zRetentionResponse;
2481
+ const zStorageUpdateRetentionBody = zRetentionSettings;
2482
+ /**
2483
+ * Saved; the new schedule applies within a minute
2484
+ */
2485
+ const zStorageUpdateRetentionResponse = zRetentionResponse;
2486
+ const zStoragePreviewRetentionBody = zRetentionSettings;
2487
+ /**
2488
+ * Dry-run: rows enforcing these settings now would remove
2489
+ */
2490
+ const zStoragePreviewRetentionResponse = zCleanupCounts;
2491
+ /**
2492
+ * Cleanup started in the background; poll its status
2493
+ */
2494
+ const zStorageRunRetentionResponse = zCleanupStatus;
2495
+ /**
2496
+ * Orphaned source maps removed
2497
+ */
2498
+ const zStorageGcSourceMapsResponse = zSourceMapGcResult;
2499
+ /**
2500
+ * Dry-run: orphaned source maps a GC would remove
2501
+ */
2502
+ const zStoragePreviewSourceMapGcResponse = zSourceMapGcResult;
2503
+ /**
2504
+ * Instance-wide storage summary
2505
+ */
2506
+ const zStorageGetSummaryResponse = zStorageSummary;
2507
+ /**
2508
+ * List of team members
2509
+ */
2510
+ const zTeamListResponse = zod.array(zTeamMemberResponse);
2511
+ const zTeamDeleteUserPath = zod.object({ user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2512
+ /**
2513
+ * User deleted
2514
+ */
2515
+ const zTeamDeleteUserResponse = zod.void();
2516
+ const zTeamUpdateRoleBody = zUpdateUserRole;
2517
+ const zTeamUpdateRolePath = zod.object({ user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2518
+ /**
2519
+ * Role updated
2520
+ */
2521
+ const zTeamUpdateRoleResponse = zod.void();
2522
+ /**
2523
+ * What the next heartbeat would carry
2524
+ */
2525
+ const zTelemetryPreviewResponse = zTelemetryPreview;
2526
+ /**
2527
+ * List of tokens (masked)
2528
+ */
2529
+ const zTokensListResponse = zod.array(zAuthTokenResponse);
2530
+ const zTokensCreateBody = zCreateAuthToken;
2531
+ /**
2532
+ * Token created (full token shown once)
2533
+ */
2534
+ const zTokensCreateResponse = zAuthTokenCreatedResponse;
2535
+ const zTokensDeletePath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2536
+ /**
2537
+ * Token revoked
2538
+ */
2539
+ const zTokensDeleteResponse = zod.void();
2540
+ const zTokensGetPath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2541
+ /**
2542
+ * Token details (full token value)
2543
+ */
2544
+ const zTokensGetResponse = zAuthTokenCreatedResponse;
2545
+ const zAuthAcceptInvitationBody = zAcceptInvitation;
2546
+ /**
2547
+ * Invitation accepted, user created and logged in
2548
+ */
2549
+ const zAuthAcceptInvitationResponse = zAuthResponse;
2550
+ const zAuthGetInvitationPath = zod.object({ token: zod.string() });
2551
+ /**
2552
+ * Invitation info
2553
+ */
2554
+ const zAuthGetInvitationResponse = zInvitationInfoResponse;
2555
+ const zAuthLoginBody = zLoginRequest;
2556
+ /**
2557
+ * Logged in
2558
+ */
2559
+ const zAuthLoginResponse = zAuthResponse;
2560
+ /**
2561
+ * Logged out
2562
+ */
2563
+ const zAuthLogoutResponse = zod.void();
2564
+ /**
2565
+ * Current user
2566
+ */
2567
+ const zAuthGetCurrentUserResponse = zUserResponse;
2568
+ const zAuthUpdateCurrentUserBody = zUpdatePreferencesRequest;
2569
+ /**
2570
+ * Updated user
2571
+ */
2572
+ const zAuthUpdateCurrentUserResponse = zUserResponse;
2573
+ const zAuthChangePasswordBody = zChangePasswordRequest;
2574
+ /**
2575
+ * Password changed
2576
+ */
2577
+ const zAuthChangePasswordResponse = zod.void();
2578
+ const zAuthRegisterBody = zCreateUserRequest;
2579
+ const zAuthSsoCallbackQuery = zod.object({
2580
+ code: zod.string().nullish(),
2581
+ state: zod.string().nullish(),
2582
+ error: zod.string().nullish()
2583
+ });
2584
+ /**
2585
+ * SSO login completed
2586
+ */
2587
+ const zAuthSsoCallbackResponse = zAuthResponse;
2588
+ /**
2589
+ * Public SSO configuration
2590
+ */
2591
+ const zAuthSsoConfigResponse = zSsoConfigResponse;
2592
+ /**
2593
+ * The account waiting for its password
2594
+ */
2595
+ const zAuthSsoLinkResponse = zSsoLinkResponse;
2596
+ const zAuthConfirmSsoLinkBody = zConfirmSsoLinkRequest;
2597
+ /**
2598
+ * Identity linked and signed in
2599
+ */
2600
+ const zAuthConfirmSsoLinkResponse = zAuthResponse;
2601
+ /**
2602
+ * OIDC authorization URL
2603
+ */
2604
+ const zAuthSsoStartResponse = zSsoStartResponse;
2605
+ /**
2606
+ * Server is alive
2607
+ */
2608
+ const zHealthLivenessResponse = zLivenessResponse;
2609
+ /**
2610
+ * Service is ready
2611
+ */
2612
+ const zHealthReadinessResponse = zReadinessResponse;
2613
+ /**
2614
+ * Server version info
2615
+ */
2616
+ const zHealthVersionResponse = zVersionResponse;
2617
+ //#endregion
2618
+ exports.zAcceptInvitation = zAcceptInvitation;
2619
+ exports.zActivityEntry = zActivityEntry;
2620
+ exports.zAgentDurationPoint = zAgentDurationPoint;
2621
+ exports.zAgentModelRow = zAgentModelRow;
2622
+ exports.zAgentSummary = zAgentSummary;
2623
+ exports.zAgentTimeseriesPoint = zAgentTimeseriesPoint;
2624
+ exports.zAgentToolRow = zAgentToolRow;
2625
+ exports.zAgentsDurationPath = zAgentsDurationPath;
2626
+ exports.zAgentsDurationQuery = zAgentsDurationQuery;
2627
+ exports.zAgentsDurationResponse = zAgentsDurationResponse;
2628
+ exports.zAgentsEnvironmentsPath = zAgentsEnvironmentsPath;
2629
+ exports.zAgentsEnvironmentsResponse = zAgentsEnvironmentsResponse;
2630
+ exports.zAgentsModelsCallsPath = zAgentsModelsCallsPath;
2631
+ exports.zAgentsModelsCallsQuery = zAgentsModelsCallsQuery;
2632
+ exports.zAgentsModelsCallsResponse = zAgentsModelsCallsResponse;
2633
+ exports.zAgentsModelsTablePath = zAgentsModelsTablePath;
2634
+ exports.zAgentsModelsTableQuery = zAgentsModelsTableQuery;
2635
+ exports.zAgentsModelsTableResponse = zAgentsModelsTableResponse;
2636
+ exports.zAgentsModelsTokensPath = zAgentsModelsTokensPath;
2637
+ exports.zAgentsModelsTokensQuery = zAgentsModelsTokensQuery;
2638
+ exports.zAgentsModelsTokensResponse = zAgentsModelsTokensResponse;
2639
+ exports.zAgentsRunsPath = zAgentsRunsPath;
2640
+ exports.zAgentsRunsQuery = zAgentsRunsQuery;
2641
+ exports.zAgentsRunsResponse = zAgentsRunsResponse;
2642
+ exports.zAgentsSummaryPath = zAgentsSummaryPath;
2643
+ exports.zAgentsSummaryQuery = zAgentsSummaryQuery;
2644
+ exports.zAgentsSummaryResponse = zAgentsSummaryResponse;
2645
+ exports.zAgentsToolsPath = zAgentsToolsPath;
2646
+ exports.zAgentsToolsQuery = zAgentsToolsQuery;
2647
+ exports.zAgentsToolsResponse = zAgentsToolsResponse;
2648
+ exports.zAgentsToolsTablePath = zAgentsToolsTablePath;
2649
+ exports.zAgentsToolsTableQuery = zAgentsToolsTableQuery;
2650
+ exports.zAgentsToolsTableResponse = zAgentsToolsTableResponse;
2651
+ exports.zAgentsTracesPath = zAgentsTracesPath;
2652
+ exports.zAgentsTracesQuery = zAgentsTracesQuery;
2653
+ exports.zAgentsTracesResponse = zAgentsTracesResponse;
2654
+ exports.zAlertChannelsCreateBody = zAlertChannelsCreateBody;
2655
+ exports.zAlertChannelsCreateResponse = zAlertChannelsCreateResponse;
2656
+ exports.zAlertChannelsDeletePath = zAlertChannelsDeletePath;
2657
+ exports.zAlertChannelsDeleteResponse = zAlertChannelsDeleteResponse;
2658
+ exports.zAlertChannelsGetPath = zAlertChannelsGetPath;
2659
+ exports.zAlertChannelsGetResponse = zAlertChannelsGetResponse;
2660
+ exports.zAlertChannelsListResponse = zAlertChannelsListResponse;
2661
+ exports.zAlertChannelsPreviewTemplateBody = zAlertChannelsPreviewTemplateBody;
2662
+ exports.zAlertChannelsPreviewTemplateResponse = zAlertChannelsPreviewTemplateResponse;
2663
+ exports.zAlertChannelsTestBody = zAlertChannelsTestBody;
2664
+ exports.zAlertChannelsTestPath = zAlertChannelsTestPath;
2665
+ exports.zAlertChannelsTestResponse = zAlertChannelsTestResponse;
2666
+ exports.zAlertChannelsUpdateBody = zAlertChannelsUpdateBody;
2667
+ exports.zAlertChannelsUpdatePath = zAlertChannelsUpdatePath;
2668
+ exports.zAlertChannelsUpdateResponse = zAlertChannelsUpdateResponse;
2669
+ exports.zAlertHistory = zAlertHistory;
2670
+ exports.zAlertIntegration = zAlertIntegration;
2671
+ exports.zAlertRuleChannelInput = zAlertRuleChannelInput;
2672
+ exports.zAlertRuleResponse = zAlertRuleResponse;
2673
+ exports.zAlertRulesCreateBody = zAlertRulesCreateBody;
2674
+ exports.zAlertRulesCreatePath = zAlertRulesCreatePath;
2675
+ exports.zAlertRulesCreateResponse = zAlertRulesCreateResponse;
2676
+ exports.zAlertRulesDeletePath = zAlertRulesDeletePath;
2677
+ exports.zAlertRulesDeleteResponse = zAlertRulesDeleteResponse;
2678
+ exports.zAlertRulesGetPath = zAlertRulesGetPath;
2679
+ exports.zAlertRulesGetResponse = zAlertRulesGetResponse;
2680
+ exports.zAlertRulesListHistoryPath = zAlertRulesListHistoryPath;
2681
+ exports.zAlertRulesListHistoryQuery = zAlertRulesListHistoryQuery;
2682
+ exports.zAlertRulesListHistoryResponse = zAlertRulesListHistoryResponse;
2683
+ exports.zAlertRulesListPath = zAlertRulesListPath;
2684
+ exports.zAlertRulesListResponse = zAlertRulesListResponse;
2685
+ exports.zAlertRulesUpdateBody = zAlertRulesUpdateBody;
2686
+ exports.zAlertRulesUpdatePath = zAlertRulesUpdatePath;
2687
+ exports.zAlertRulesUpdateResponse = zAlertRulesUpdateResponse;
2688
+ exports.zAlertStatus = zAlertStatus;
2689
+ exports.zAlertType = zAlertType;
2690
+ exports.zAssembleBody = zAssembleBody;
2691
+ exports.zAssembleResponse = zAssembleResponse;
2692
+ exports.zAuthAcceptInvitationBody = zAuthAcceptInvitationBody;
2693
+ exports.zAuthAcceptInvitationResponse = zAuthAcceptInvitationResponse;
2694
+ exports.zAuthChangePasswordBody = zAuthChangePasswordBody;
2695
+ exports.zAuthChangePasswordResponse = zAuthChangePasswordResponse;
2696
+ exports.zAuthConfirmSsoLinkBody = zAuthConfirmSsoLinkBody;
2697
+ exports.zAuthConfirmSsoLinkResponse = zAuthConfirmSsoLinkResponse;
2698
+ exports.zAuthGetCurrentUserResponse = zAuthGetCurrentUserResponse;
2699
+ exports.zAuthGetInvitationPath = zAuthGetInvitationPath;
2700
+ exports.zAuthGetInvitationResponse = zAuthGetInvitationResponse;
2701
+ exports.zAuthLoginBody = zAuthLoginBody;
2702
+ exports.zAuthLoginResponse = zAuthLoginResponse;
2703
+ exports.zAuthLogoutResponse = zAuthLogoutResponse;
2704
+ exports.zAuthRegisterBody = zAuthRegisterBody;
2705
+ exports.zAuthResponse = zAuthResponse;
2706
+ exports.zAuthSsoCallbackQuery = zAuthSsoCallbackQuery;
2707
+ exports.zAuthSsoCallbackResponse = zAuthSsoCallbackResponse;
2708
+ exports.zAuthSsoConfigResponse = zAuthSsoConfigResponse;
2709
+ exports.zAuthSsoLinkResponse = zAuthSsoLinkResponse;
2710
+ exports.zAuthSsoStartResponse = zAuthSsoStartResponse;
2711
+ exports.zAuthTokenCreatedResponse = zAuthTokenCreatedResponse;
2712
+ exports.zAuthTokenResponse = zAuthTokenResponse;
2713
+ exports.zAuthUpdateCurrentUserBody = zAuthUpdateCurrentUserBody;
2714
+ exports.zAuthUpdateCurrentUserResponse = zAuthUpdateCurrentUserResponse;
2715
+ exports.zAuthorizationDecision = zAuthorizationDecision;
2716
+ exports.zAuthorizationInfo = zAuthorizationInfo;
2717
+ exports.zAuthorizationRedirect = zAuthorizationRedirect;
2718
+ exports.zAuthorizationRequest = zAuthorizationRequest;
2719
+ exports.zBookmarkResponse = zBookmarkResponse;
2720
+ exports.zBulkDeleteIssues = zBulkDeleteIssues;
2721
+ exports.zBulkDeleteResponse = zBulkDeleteResponse;
2722
+ exports.zBulkUpdateIssues = zBulkUpdateIssues;
2723
+ exports.zBulkUpdateResponse = zBulkUpdateResponse;
2724
+ exports.zChangePasswordRequest = zChangePasswordRequest;
2725
+ exports.zCheckInResponse = zCheckInResponse;
2726
+ exports.zCheckInStatus = zCheckInStatus;
2727
+ exports.zChunkUploadBody = zChunkUploadBody;
2728
+ exports.zChunkUploadOptions = zChunkUploadOptions;
2729
+ exports.zCleanupCounts = zCleanupCounts;
2730
+ exports.zCleanupFrequency = zCleanupFrequency;
2731
+ exports.zCleanupRequest = zCleanupRequest;
2732
+ exports.zCleanupState = zCleanupState;
2733
+ exports.zCleanupStatus = zCleanupStatus;
2734
+ exports.zCodeMapping = zCodeMapping;
2735
+ exports.zCommentRequest = zCommentRequest;
2736
+ exports.zConfirmSsoLinkRequest = zConfirmSsoLinkRequest;
2737
+ exports.zCreateAlertIntegration = zCreateAlertIntegration;
2738
+ exports.zCreateAlertRule = zCreateAlertRule;
2739
+ exports.zCreateAuthToken = zCreateAuthToken;
2740
+ exports.zCreateGitHubIssue = zCreateGitHubIssue;
2741
+ exports.zCreateInvitation = zCreateInvitation;
2742
+ exports.zCreateMonitor = zCreateMonitor;
2743
+ exports.zCreateProject = zCreateProject;
2744
+ exports.zCreateRelease = zCreateRelease;
2745
+ exports.zCreateUserRequest = zCreateUserRequest;
2746
+ exports.zErrorDetail = zErrorDetail;
2747
+ exports.zEventDetailResponse = zEventDetailResponse;
2748
+ exports.zEventTimeseriesPoint = zEventTimeseriesPoint;
2749
+ exports.zEventsGetBySentryIdPath = zEventsGetBySentryIdPath;
2750
+ exports.zEventsGetBySentryIdResponse = zEventsGetBySentryIdResponse;
2751
+ exports.zEventsGetPath = zEventsGetPath;
2752
+ exports.zEventsGetResponse = zEventsGetResponse;
2753
+ exports.zEventsListPath = zEventsListPath;
2754
+ exports.zEventsListQuery = zEventsListQuery;
2755
+ exports.zEventsListResponse = zEventsListResponse;
2756
+ exports.zFieldError = zFieldError;
2757
+ exports.zFieldErrorCode = zFieldErrorCode;
2758
+ exports.zGenAiBreakdownRow = zGenAiBreakdownRow;
2759
+ exports.zGitHubAppInfo = zGitHubAppInfo;
2760
+ exports.zGitHubInstallation = zGitHubInstallation;
2761
+ exports.zGitHubLogin = zGitHubLogin;
2762
+ exports.zGitHubRepository = zGitHubRepository;
2763
+ exports.zGitHubStatus = zGitHubStatus;
2764
+ exports.zGithubCallbackQuery = zGithubCallbackQuery;
2765
+ exports.zGithubCreateIssueBody = zGithubCreateIssueBody;
2766
+ exports.zGithubCreateIssuePath = zGithubCreateIssuePath;
2767
+ exports.zGithubCreateIssueResponse = zGithubCreateIssueResponse;
2768
+ exports.zGithubDeleteProjectRepositoryPath = zGithubDeleteProjectRepositoryPath;
2769
+ exports.zGithubDeleteProjectRepositoryResponse = zGithubDeleteProjectRepositoryResponse;
2770
+ exports.zGithubDisconnectResponse = zGithubDisconnectResponse;
2771
+ exports.zGithubGetMyLoginResponse = zGithubGetMyLoginResponse;
2772
+ exports.zGithubGetProjectRepositoryPath = zGithubGetProjectRepositoryPath;
2773
+ exports.zGithubGetProjectRepositoryResponse = zGithubGetProjectRepositoryResponse;
2774
+ exports.zGithubInstalledQuery = zGithubInstalledQuery;
2775
+ exports.zGithubIssuePath = zGithubIssuePath;
2776
+ exports.zGithubIssueResponse = zGithubIssueResponse;
2777
+ exports.zGithubLinkIssueBody = zGithubLinkIssueBody;
2778
+ exports.zGithubLinkIssuePath = zGithubLinkIssuePath;
2779
+ exports.zGithubLinkIssueResponse = zGithubLinkIssueResponse;
2780
+ exports.zGithubManifestBody = zGithubManifestBody;
2781
+ exports.zGithubManifestResponse = zGithubManifestResponse;
2782
+ exports.zGithubPutMyLoginBody = zGithubPutMyLoginBody;
2783
+ exports.zGithubPutMyLoginResponse = zGithubPutMyLoginResponse;
2784
+ exports.zGithubPutProjectRepositoryBody = zGithubPutProjectRepositoryBody;
2785
+ exports.zGithubPutProjectRepositoryPath = zGithubPutProjectRepositoryPath;
2786
+ exports.zGithubPutProjectRepositoryResponse = zGithubPutProjectRepositoryResponse;
2787
+ exports.zGithubRepositoriesQuery = zGithubRepositoriesQuery;
2788
+ exports.zGithubRepositoriesResponse = zGithubRepositoriesResponse;
2789
+ exports.zGithubStatusResponse = zGithubStatusResponse;
2790
+ exports.zGithubSyncCodeownersPath = zGithubSyncCodeownersPath;
2791
+ exports.zGithubSyncCodeownersResponse = zGithubSyncCodeownersResponse;
2792
+ exports.zGithubUnlinkIssuePath = zGithubUnlinkIssuePath;
2793
+ exports.zGithubUnlinkIssueResponse = zGithubUnlinkIssueResponse;
2794
+ exports.zGithubWebhookBody = zGithubWebhookBody;
2795
+ exports.zGithubWebhookResponse = zGithubWebhookResponse;
2796
+ exports.zGrouping = zGrouping;
2797
+ exports.zHealthLivenessResponse = zHealthLivenessResponse;
2798
+ exports.zHealthReadinessResponse = zHealthReadinessResponse;
2799
+ exports.zHealthVersionResponse = zHealthVersionResponse;
2800
+ exports.zIntervalUnit = zIntervalUnit;
2801
+ exports.zInvitationInfoResponse = zInvitationInfoResponse;
2802
+ exports.zInvitationResponse = zInvitationResponse;
2803
+ exports.zInvitationsCreateBody = zInvitationsCreateBody;
2804
+ exports.zInvitationsCreateResponse = zInvitationsCreateResponse;
2805
+ exports.zInvitationsListResponse = zInvitationsListResponse;
2806
+ exports.zInvitationsRevokePath = zInvitationsRevokePath;
2807
+ exports.zInvitationsRevokeResponse = zInvitationsRevokeResponse;
2808
+ exports.zIssueAggregates = zIssueAggregates;
2809
+ exports.zIssueFilter = zIssueFilter;
2810
+ exports.zIssueGitHub = zIssueGitHub;
2811
+ exports.zIssueLink = zIssueLink;
2812
+ exports.zIssuePriority = zIssuePriority;
2813
+ exports.zIssueResponse = zIssueResponse;
2814
+ exports.zIssueSort = zIssueSort;
2815
+ exports.zIssueStatsResponse = zIssueStatsResponse;
2816
+ exports.zIssueStatsWindow = zIssueStatsWindow;
2817
+ exports.zIssueStatus = zIssueStatus;
2818
+ exports.zIssueStatusUpdate = zIssueStatusUpdate;
2819
+ exports.zIssueTagValue = zIssueTagValue;
2820
+ exports.zIssuesBulkDeleteBody = zIssuesBulkDeleteBody;
2821
+ exports.zIssuesBulkDeletePath = zIssuesBulkDeletePath;
2822
+ exports.zIssuesBulkDeleteResponse = zIssuesBulkDeleteResponse;
2823
+ exports.zIssuesBulkUpdateBody = zIssuesBulkUpdateBody;
2824
+ exports.zIssuesBulkUpdatePath = zIssuesBulkUpdatePath;
2825
+ exports.zIssuesBulkUpdateResponse = zIssuesBulkUpdateResponse;
2826
+ exports.zIssuesCreateCommentBody = zIssuesCreateCommentBody;
2827
+ exports.zIssuesCreateCommentPath = zIssuesCreateCommentPath;
2828
+ exports.zIssuesCreateCommentResponse = zIssuesCreateCommentResponse;
2829
+ exports.zIssuesCreateUserReportBody = zIssuesCreateUserReportBody;
2830
+ exports.zIssuesCreateUserReportPath = zIssuesCreateUserReportPath;
2831
+ exports.zIssuesCreateUserReportResponse = zIssuesCreateUserReportResponse;
2832
+ exports.zIssuesDeletePath = zIssuesDeletePath;
2833
+ exports.zIssuesDeleteResponse = zIssuesDeleteResponse;
2834
+ exports.zIssuesGetActivityPath = zIssuesGetActivityPath;
2835
+ exports.zIssuesGetActivityResponse = zIssuesGetActivityResponse;
2836
+ exports.zIssuesGetAggregatesPath = zIssuesGetAggregatesPath;
2837
+ exports.zIssuesGetAggregatesResponse = zIssuesGetAggregatesResponse;
2838
+ exports.zIssuesGetHashesPath = zIssuesGetHashesPath;
2839
+ exports.zIssuesGetHashesResponse = zIssuesGetHashesResponse;
2840
+ exports.zIssuesGetPath = zIssuesGetPath;
2841
+ exports.zIssuesGetResponse = zIssuesGetResponse;
2842
+ exports.zIssuesGetStatsPath = zIssuesGetStatsPath;
2843
+ exports.zIssuesGetStatsQuery = zIssuesGetStatsQuery;
2844
+ exports.zIssuesGetStatsResponse = zIssuesGetStatsResponse;
2845
+ exports.zIssuesGetTagValuesPath = zIssuesGetTagValuesPath;
2846
+ exports.zIssuesGetTagValuesResponse = zIssuesGetTagValuesResponse;
2847
+ exports.zIssuesListPath = zIssuesListPath;
2848
+ exports.zIssuesListQuery = zIssuesListQuery;
2849
+ exports.zIssuesListResponse = zIssuesListResponse;
2850
+ exports.zIssuesListUserReportsPath = zIssuesListUserReportsPath;
2851
+ exports.zIssuesListUserReportsResponse = zIssuesListUserReportsResponse;
2852
+ exports.zIssuesMarkSeenPath = zIssuesMarkSeenPath;
2853
+ exports.zIssuesMarkSeenResponse = zIssuesMarkSeenResponse;
2854
+ exports.zIssuesSetBookmarkBody = zIssuesSetBookmarkBody;
2855
+ exports.zIssuesSetBookmarkPath = zIssuesSetBookmarkPath;
2856
+ exports.zIssuesSetBookmarkResponse = zIssuesSetBookmarkResponse;
2857
+ exports.zIssuesSetSubscriptionBody = zIssuesSetSubscriptionBody;
2858
+ exports.zIssuesSetSubscriptionPath = zIssuesSetSubscriptionPath;
2859
+ exports.zIssuesSetSubscriptionResponse = zIssuesSetSubscriptionResponse;
2860
+ exports.zIssuesUpdateBody = zIssuesUpdateBody;
2861
+ exports.zIssuesUpdatePath = zIssuesUpdatePath;
2862
+ exports.zIssuesUpdateResponse = zIssuesUpdateResponse;
2863
+ exports.zKindAge = zKindAge;
2864
+ exports.zLinkGitHubIssue = zLinkGitHubIssue;
2865
+ exports.zLivenessResponse = zLivenessResponse;
2866
+ exports.zLoginRequest = zLoginRequest;
2867
+ exports.zLogsListPath = zLogsListPath;
2868
+ exports.zLogsListQuery = zLogsListQuery;
2869
+ exports.zLogsListResponse = zLogsListResponse;
2870
+ exports.zManifestRequest = zManifestRequest;
2871
+ exports.zManifestResponse = zManifestResponse;
2872
+ exports.zMcpSettings = zMcpSettings;
2873
+ exports.zMcpStatus = zMcpStatus;
2874
+ exports.zMembersListPath = zMembersListPath;
2875
+ exports.zMembersListResponse = zMembersListResponse;
2876
+ exports.zMembersRemovePath = zMembersRemovePath;
2877
+ exports.zMembersRemoveResponse = zMembersRemoveResponse;
2878
+ exports.zMembersUpsertBody = zMembersUpsertBody;
2879
+ exports.zMembersUpsertPath = zMembersUpsertPath;
2880
+ exports.zMembersUpsertResponse = zMembersUpsertResponse;
2881
+ exports.zMetricDelta = zMetricDelta;
2882
+ exports.zMonitorConfig = zMonitorConfig;
2883
+ exports.zMonitorConfigInput = zMonitorConfigInput;
2884
+ exports.zMonitorEnvironmentResponse = zMonitorEnvironmentResponse;
2885
+ exports.zMonitorEnvironmentStatus = zMonitorEnvironmentStatus;
2886
+ exports.zMonitorResponse = zMonitorResponse;
2887
+ exports.zMonitorsCreateBody = zMonitorsCreateBody;
2888
+ exports.zMonitorsCreatePath = zMonitorsCreatePath;
2889
+ exports.zMonitorsCreateResponse = zMonitorsCreateResponse;
2890
+ exports.zMonitorsDeletePath = zMonitorsDeletePath;
2891
+ exports.zMonitorsDeleteResponse = zMonitorsDeleteResponse;
2892
+ exports.zMonitorsGetPath = zMonitorsGetPath;
2893
+ exports.zMonitorsGetResponse = zMonitorsGetResponse;
2894
+ exports.zMonitorsListCheckinsPath = zMonitorsListCheckinsPath;
2895
+ exports.zMonitorsListCheckinsQuery = zMonitorsListCheckinsQuery;
2896
+ exports.zMonitorsListCheckinsResponse = zMonitorsListCheckinsResponse;
2897
+ exports.zMonitorsListPath = zMonitorsListPath;
2898
+ exports.zMonitorsListResponse = zMonitorsListResponse;
2899
+ exports.zMonitorsUpdateBody = zMonitorsUpdateBody;
2900
+ exports.zMonitorsUpdatePath = zMonitorsUpdatePath;
2901
+ exports.zMonitorsUpdateResponse = zMonitorsUpdateResponse;
2902
+ exports.zOAuthGrant = zOAuthGrant;
2903
+ exports.zOauthDecideAuthorizationBody = zOauthDecideAuthorizationBody;
2904
+ exports.zOauthDecideAuthorizationResponse = zOauthDecideAuthorizationResponse;
2905
+ exports.zOauthGetAuthorizationQuery = zOauthGetAuthorizationQuery;
2906
+ exports.zOauthGetAuthorizationResponse = zOauthGetAuthorizationResponse;
2907
+ exports.zOauthListGrantsResponse = zOauthListGrantsResponse;
2908
+ exports.zOauthRevokeGrantPath = zOauthRevokeGrantPath;
2909
+ exports.zOauthRevokeGrantResponse = zOauthRevokeGrantResponse;
2910
+ exports.zOrgDetails = zOrgDetails;
2911
+ exports.zPreviewSchedule = zPreviewSchedule;
2912
+ exports.zPreviewTemplateBody = zPreviewTemplateBody;
2913
+ exports.zPreviewTemplateResponse = zPreviewTemplateResponse;
2914
+ exports.zProjectAge = zProjectAge;
2915
+ exports.zProjectListStats = zProjectListStats;
2916
+ exports.zProjectMember = zProjectMember;
2917
+ exports.zProjectMemberResponse = zProjectMemberResponse;
2918
+ exports.zProjectRepository = zProjectRepository;
2919
+ exports.zProjectResponse = zProjectResponse;
2920
+ exports.zProjectRetention = zProjectRetention;
2921
+ exports.zProjectRole = zProjectRole;
2922
+ exports.zProjectStatsSummary = zProjectStatsSummary;
2923
+ exports.zProjectsCreateBody = zProjectsCreateBody;
2924
+ exports.zProjectsCreateResponse = zProjectsCreateResponse;
2925
+ exports.zProjectsDeletePath = zProjectsDeletePath;
2926
+ exports.zProjectsDeleteResponse = zProjectsDeleteResponse;
2927
+ exports.zProjectsGetPath = zProjectsGetPath;
2928
+ exports.zProjectsGetRateLimitsResponse = zProjectsGetRateLimitsResponse;
2929
+ exports.zProjectsGetResponse = zProjectsGetResponse;
2930
+ exports.zProjectsListQuery = zProjectsListQuery;
2931
+ exports.zProjectsListResponse = zProjectsListResponse;
2932
+ exports.zProjectsUpdateBody = zProjectsUpdateBody;
2933
+ exports.zProjectsUpdatePath = zProjectsUpdatePath;
2934
+ exports.zProjectsUpdateResponse = zProjectsUpdateResponse;
2935
+ exports.zProviderType = zProviderType;
2936
+ exports.zRateLimitsResponse = zRateLimitsResponse;
2937
+ exports.zReadinessChecks = zReadinessChecks;
2938
+ exports.zReadinessResponse = zReadinessResponse;
2939
+ exports.zReleaseResponse = zReleaseResponse;
2940
+ exports.zReleasesCreateBody = zReleasesCreateBody;
2941
+ exports.zReleasesCreatePath = zReleasesCreatePath;
2942
+ exports.zReleasesCreateResponse = zReleasesCreateResponse;
2943
+ exports.zReleasesFinalizeBody = zReleasesFinalizeBody;
2944
+ exports.zReleasesFinalizePath = zReleasesFinalizePath;
2945
+ exports.zReleasesFinalizeResponse = zReleasesFinalizeResponse;
2946
+ exports.zReleasesNewIssuesPath = zReleasesNewIssuesPath;
2947
+ exports.zReleasesNewIssuesQuery = zReleasesNewIssuesQuery;
2948
+ exports.zReleasesNewIssuesResponse = zReleasesNewIssuesResponse;
2949
+ exports.zRepoCommit = zRepoCommit;
2950
+ exports.zRetentionResponse = zRetentionResponse;
2951
+ exports.zRetentionRun = zRetentionRun;
2952
+ exports.zRetentionSettings = zRetentionSettings;
2953
+ exports.zRetentionWindows = zRetentionWindows;
2954
+ exports.zSchedule = zSchedule;
2955
+ exports.zSchedulePreview = zSchedulePreview;
2956
+ exports.zSchedulesPreviewBody = zSchedulesPreviewBody;
2957
+ exports.zSchedulesPreviewResponse = zSchedulesPreviewResponse;
2958
+ exports.zSeenResponse = zSeenResponse;
2959
+ exports.zSessionSummary = zSessionSummary;
2960
+ exports.zSessionTimeseriesPoint = zSessionTimeseriesPoint;
2961
+ exports.zSessionsGetStatsPath = zSessionsGetStatsPath;
2962
+ exports.zSessionsGetStatsQuery = zSessionsGetStatsQuery;
2963
+ exports.zSessionsGetStatsResponse = zSessionsGetStatsResponse;
2964
+ exports.zSessionsGetSummaryPath = zSessionsGetSummaryPath;
2965
+ exports.zSessionsGetSummaryQuery = zSessionsGetSummaryQuery;
2966
+ exports.zSessionsGetSummaryResponse = zSessionsGetSummaryResponse;
2967
+ exports.zSessionsGetTimeseriesPath = zSessionsGetTimeseriesPath;
2968
+ exports.zSessionsGetTimeseriesQuery = zSessionsGetTimeseriesQuery;
2969
+ exports.zSessionsGetTimeseriesResponse = zSessionsGetTimeseriesResponse;
2970
+ exports.zSettingsGetMcpResponse = zSettingsGetMcpResponse;
2971
+ exports.zSettingsUpdateMcpBody = zSettingsUpdateMcpBody;
2972
+ exports.zSettingsUpdateMcpResponse = zSettingsUpdateMcpResponse;
2973
+ exports.zSortOrder = zSortOrder;
2974
+ exports.zSourceMapFile = zSourceMapFile;
2975
+ exports.zSourceMapGcResult = zSourceMapGcResult;
2976
+ exports.zSourceMapList = zSourceMapList;
2977
+ exports.zSourceMapStorage = zSourceMapStorage;
2978
+ exports.zSourceMapsArtifactBundleAssembleBody = zSourceMapsArtifactBundleAssembleBody;
2979
+ exports.zSourceMapsArtifactBundleAssemblePath = zSourceMapsArtifactBundleAssemblePath;
2980
+ exports.zSourceMapsArtifactBundleAssembleResponse = zSourceMapsArtifactBundleAssembleResponse;
2981
+ exports.zSourceMapsChunkUploadBody = zSourceMapsChunkUploadBody;
2982
+ exports.zSourceMapsChunkUploadCapabilityPath = zSourceMapsChunkUploadCapabilityPath;
2983
+ exports.zSourceMapsChunkUploadCapabilityResponse = zSourceMapsChunkUploadCapabilityResponse;
2984
+ exports.zSourceMapsChunkUploadPath = zSourceMapsChunkUploadPath;
2985
+ exports.zSourceMapsListPath = zSourceMapsListPath;
2986
+ exports.zSourceMapsListResponse = zSourceMapsListResponse;
2987
+ exports.zSourceMapsOrgDetailsPath = zSourceMapsOrgDetailsPath;
2988
+ exports.zSourceMapsOrgDetailsResponse = zSourceMapsOrgDetailsResponse;
2989
+ exports.zSpanDetailResponse = zSpanDetailResponse;
2990
+ exports.zSpanResponse = zSpanResponse;
2991
+ exports.zSpansGetPath = zSpansGetPath;
2992
+ exports.zSpansGetResponse = zSpansGetResponse;
2993
+ exports.zSpansListPath = zSpansListPath;
2994
+ exports.zSpansListQuery = zSpansListQuery;
2995
+ exports.zSpansListResponse = zSpansListResponse;
2996
+ exports.zSsoConfigResponse = zSsoConfigResponse;
2997
+ exports.zSsoLinkResponse = zSsoLinkResponse;
2998
+ exports.zSsoStartResponse = zSsoStartResponse;
2999
+ exports.zStatsGetEventTimeseriesPath = zStatsGetEventTimeseriesPath;
3000
+ exports.zStatsGetEventTimeseriesQuery = zStatsGetEventTimeseriesQuery;
3001
+ exports.zStatsGetEventTimeseriesResponse = zStatsGetEventTimeseriesResponse;
3002
+ exports.zStatsGetSummaryPath = zStatsGetSummaryPath;
3003
+ exports.zStatsGetSummaryQuery = zStatsGetSummaryQuery;
3004
+ exports.zStatsGetSummaryResponse = zStatsGetSummaryResponse;
3005
+ exports.zStorageAge = zStorageAge;
3006
+ exports.zStorageExecuteCleanupBody = zStorageExecuteCleanupBody;
3007
+ exports.zStorageExecuteCleanupResponse = zStorageExecuteCleanupResponse;
3008
+ exports.zStorageGcSourceMapsResponse = zStorageGcSourceMapsResponse;
3009
+ exports.zStorageGetAgeResponse = zStorageGetAgeResponse;
3010
+ exports.zStorageGetCleanupStatusResponse = zStorageGetCleanupStatusResponse;
3011
+ exports.zStorageGetProjectsResponse = zStorageGetProjectsResponse;
3012
+ exports.zStorageGetRetentionResponse = zStorageGetRetentionResponse;
3013
+ exports.zStorageGetSummaryResponse = zStorageGetSummaryResponse;
3014
+ exports.zStoragePreviewCleanupBody = zStoragePreviewCleanupBody;
3015
+ exports.zStoragePreviewCleanupResponse = zStoragePreviewCleanupResponse;
3016
+ exports.zStoragePreviewRetentionBody = zStoragePreviewRetentionBody;
3017
+ exports.zStoragePreviewRetentionResponse = zStoragePreviewRetentionResponse;
3018
+ exports.zStoragePreviewSourceMapGcResponse = zStoragePreviewSourceMapGcResponse;
3019
+ exports.zStorageRunRetentionResponse = zStorageRunRetentionResponse;
3020
+ exports.zStorageSummary = zStorageSummary;
3021
+ exports.zStorageUpdateRetentionBody = zStorageUpdateRetentionBody;
3022
+ exports.zStorageUpdateRetentionResponse = zStorageUpdateRetentionResponse;
3023
+ exports.zSubscriptionResponse = zSubscriptionResponse;
3024
+ exports.zTagSummary = zTagSummary;
3025
+ exports.zTagValueCount = zTagValueCount;
3026
+ exports.zTeamDeleteUserPath = zTeamDeleteUserPath;
3027
+ exports.zTeamDeleteUserResponse = zTeamDeleteUserResponse;
3028
+ exports.zTeamListResponse = zTeamListResponse;
3029
+ exports.zTeamMemberResponse = zTeamMemberResponse;
3030
+ exports.zTeamUpdateRoleBody = zTeamUpdateRoleBody;
3031
+ exports.zTeamUpdateRolePath = zTeamUpdateRolePath;
3032
+ exports.zTeamUpdateRoleResponse = zTeamUpdateRoleResponse;
3033
+ exports.zTelemetryPreview = zTelemetryPreview;
3034
+ exports.zTelemetryPreviewResponse = zTelemetryPreviewResponse;
3035
+ exports.zTestChannelResponse = zTestChannelResponse;
3036
+ exports.zTestIntegrationBody = zTestIntegrationBody;
3037
+ exports.zToggleRequest = zToggleRequest;
3038
+ exports.zTokensCreateBody = zTokensCreateBody;
3039
+ exports.zTokensCreateResponse = zTokensCreateResponse;
3040
+ exports.zTokensDeletePath = zTokensDeletePath;
3041
+ exports.zTokensDeleteResponse = zTokensDeleteResponse;
3042
+ exports.zTokensGetPath = zTokensGetPath;
3043
+ exports.zTokensGetResponse = zTokensGetResponse;
3044
+ exports.zTokensListResponse = zTokensListResponse;
3045
+ exports.zTransactionDetailResponse = zTransactionDetailResponse;
3046
+ exports.zTransactionStatsResponse = zTransactionStatsResponse;
3047
+ exports.zTransactionsGetPath = zTransactionsGetPath;
3048
+ exports.zTransactionsGetResponse = zTransactionsGetResponse;
3049
+ exports.zTransactionsGetSpansPath = zTransactionsGetSpansPath;
3050
+ exports.zTransactionsGetSpansResponse = zTransactionsGetSpansResponse;
3051
+ exports.zTransactionsGetStatGroupPath = zTransactionsGetStatGroupPath;
3052
+ exports.zTransactionsGetStatGroupQuery = zTransactionsGetStatGroupQuery;
3053
+ exports.zTransactionsGetStatGroupResponse = zTransactionsGetStatGroupResponse;
3054
+ exports.zTransactionsGetStatsPath = zTransactionsGetStatsPath;
3055
+ exports.zTransactionsGetStatsQuery = zTransactionsGetStatsQuery;
3056
+ exports.zTransactionsGetStatsResponse = zTransactionsGetStatsResponse;
3057
+ exports.zTransactionsListPath = zTransactionsListPath;
3058
+ exports.zTransactionsListQuery = zTransactionsListQuery;
3059
+ exports.zTransactionsListResponse = zTransactionsListResponse;
3060
+ exports.zUpdateAlertIntegration = zUpdateAlertIntegration;
3061
+ exports.zUpdateAlertRule = zUpdateAlertRule;
3062
+ exports.zUpdateIssueState = zUpdateIssueState;
3063
+ exports.zUpdateMonitor = zUpdateMonitor;
3064
+ exports.zUpdatePreferencesRequest = zUpdatePreferencesRequest;
3065
+ exports.zUpdateProject = zUpdateProject;
3066
+ exports.zUpdateProjectRepository = zUpdateProjectRepository;
3067
+ exports.zUpdateRelease = zUpdateRelease;
3068
+ exports.zUpdateUserRole = zUpdateUserRole;
3069
+ exports.zUpsertProjectMember = zUpsertProjectMember;
3070
+ exports.zUserReport = zUserReport;
3071
+ exports.zUserReportRequest = zUserReportRequest;
3072
+ exports.zUserResponse = zUserResponse;
3073
+ exports.zUserRole = zUserRole;
3074
+ exports.zVersionResponse = zVersionResponse;
3075
+
3076
+ //# sourceMappingURL=zod.gen.cjs.map