@rustrak/client 0.26.0 → 0.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +18 -0
  2. package/dist/client.cjs +4 -4
  3. package/dist/client.cjs.map +1 -1
  4. package/dist/client.d.cts.map +1 -1
  5. package/dist/client.d.mts.map +1 -1
  6. package/dist/client.mjs +4 -4
  7. package/dist/client.mjs.map +1 -1
  8. package/dist/generated/client/client.gen.d.cts +1 -0
  9. package/dist/generated/client/index.d.cts +10 -0
  10. package/dist/generated/client/types.gen.d.cts +1 -1
  11. package/dist/generated/client/types.gen.d.mts +1 -1
  12. package/dist/generated/client/utils.gen.cjs +1 -1
  13. package/dist/generated/client/utils.gen.d.cts +2 -0
  14. package/dist/generated/client/utils.gen.d.cts.map +1 -1
  15. package/dist/generated/client/utils.gen.mjs +1 -1
  16. package/dist/generated/client.gen.cjs +2 -1
  17. package/dist/generated/client.gen.cjs.map +1 -1
  18. package/dist/generated/client.gen.mjs +1 -1
  19. package/dist/generated/core/params.gen.d.cts +1 -0
  20. package/dist/generated/core/queryKeySerializer.gen.d.cts +1 -0
  21. package/dist/generated/sdk.gen.cjs +1231 -942
  22. package/dist/generated/sdk.gen.cjs.map +1 -1
  23. package/dist/generated/sdk.gen.d.cts +49 -27
  24. package/dist/generated/sdk.gen.d.cts.map +1 -1
  25. package/dist/generated/sdk.gen.d.mts +49 -28
  26. package/dist/generated/sdk.gen.d.mts.map +1 -1
  27. package/dist/generated/sdk.gen.mjs +1053 -766
  28. package/dist/generated/sdk.gen.mjs.map +1 -1
  29. package/dist/generated/types.gen.d.cts +349 -0
  30. package/dist/generated/types.gen.d.cts.map +1 -1
  31. package/dist/generated/types.gen.d.mts +349 -0
  32. package/dist/generated/types.gen.d.mts.map +1 -1
  33. package/dist/generated/zod.gen.cjs +2076 -1824
  34. package/dist/generated/zod.gen.cjs.map +1 -1
  35. package/dist/generated/zod.gen.mjs +895 -681
  36. package/dist/generated/zod.gen.mjs.map +1 -1
  37. package/dist/index.cjs +2 -2
  38. package/dist/index.d.cts +3 -3
  39. package/dist/index.d.mts +3 -3
  40. package/dist/index.mjs +2 -2
  41. package/dist/utils/http.cjs.map +1 -1
  42. package/dist/utils/http.mjs.map +1 -1
  43. package/package.json +5 -5
@@ -1,9 +1,9 @@
1
1
  const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
2
- const require_bodySerializer_gen = require("./core/bodySerializer.gen.cjs");
3
2
  const require_client_gen = require("./client.gen.cjs");
3
+ const require_bodySerializer_gen = require("./core/bodySerializer.gen.cjs");
4
4
  const require_zod_gen = require("./zod.gen.cjs");
5
- let zod = require("zod");
6
- zod = require_runtime.__toESM(zod, 1);
5
+ let zod_mini = require("zod/mini");
6
+ zod_mini = require_runtime.__toESM(zod_mini, 1);
7
7
  // src/generated/sdk.gen.ts
8
8
  var HeyApiClient = class {
9
9
  client;
@@ -31,10 +31,10 @@ var Sentry = class extends HeyApiClient {
31
31
  */
32
32
  getIssue(options) {
33
33
  return (options.client ?? this.client).get({
34
- requestValidator: async (data) => await zod.object({
35
- body: zod.never().optional(),
34
+ requestValidator: async (data) => await zod_mini.object({
35
+ body: zod_mini.optional(zod_mini.never()),
36
36
  path: require_zod_gen.zSentryGetIssuePath,
37
- query: zod.never().optional()
37
+ query: zod_mini.optional(zod_mini.never())
38
38
  }).parseAsync(data),
39
39
  responseValidator: async (data) => await require_zod_gen.zSentryGetIssueResponse.parseAsync(data),
40
40
  security: [{
@@ -52,10 +52,10 @@ var Sentry = class extends HeyApiClient {
52
52
  */
53
53
  updateIssue(options) {
54
54
  return (options.client ?? this.client).put({
55
- requestValidator: async (data) => await zod.object({
55
+ requestValidator: async (data) => await zod_mini.object({
56
56
  body: require_zod_gen.zSentryUpdateIssueBody,
57
57
  path: require_zod_gen.zSentryUpdateIssuePath,
58
- query: zod.never().optional()
58
+ query: zod_mini.optional(zod_mini.never())
59
59
  }).parseAsync(data),
60
60
  responseValidator: async (data) => await require_zod_gen.zSentryUpdateIssueResponse.parseAsync(data),
61
61
  security: [{
@@ -76,10 +76,10 @@ var Sentry = class extends HeyApiClient {
76
76
  */
77
77
  getLatestEvent(options) {
78
78
  return (options.client ?? this.client).get({
79
- requestValidator: async (data) => await zod.object({
80
- body: zod.never().optional(),
79
+ requestValidator: async (data) => await zod_mini.object({
80
+ body: zod_mini.optional(zod_mini.never()),
81
81
  path: require_zod_gen.zSentryGetLatestEventPath,
82
- query: zod.never().optional()
82
+ query: zod_mini.optional(zod_mini.never())
83
83
  }).parseAsync(data),
84
84
  responseValidator: async (data) => await require_zod_gen.zSentryGetLatestEventResponse.parseAsync(data),
85
85
  security: [{
@@ -96,10 +96,10 @@ var Sentry = class extends HeyApiClient {
96
96
  */
97
97
  listOrganizations(options) {
98
98
  return (options?.client ?? this.client).get({
99
- requestValidator: async (data) => await zod.object({
100
- body: zod.never().optional(),
101
- path: zod.never().optional(),
102
- query: zod.never().optional()
99
+ requestValidator: async (data) => await zod_mini.object({
100
+ body: zod_mini.optional(zod_mini.never()),
101
+ path: zod_mini.optional(zod_mini.never()),
102
+ query: zod_mini.optional(zod_mini.never())
103
103
  }).parseAsync(data),
104
104
  responseValidator: async (data) => await require_zod_gen.zSentryListOrganizationsResponse.parseAsync(data),
105
105
  security: [{
@@ -111,16 +111,38 @@ var Sentry = class extends HeyApiClient {
111
111
  });
112
112
  }
113
113
  /**
114
+ * Issues across projects, narrowed by `project`, filtered by `query`,
115
+ * sorted by `sort` and paginated by `cursor` (Sentry's
116
+ * `OrganizationGroupIndexEndpoint`,
117
+ * `issues/endpoints/organization_group_index.py`).
118
+ */
119
+ listOrganizationIssues(options) {
120
+ return (options.client ?? this.client).get({
121
+ requestValidator: async (data) => await zod_mini.object({
122
+ body: zod_mini.optional(zod_mini.never()),
123
+ path: require_zod_gen.zSentryListOrganizationIssuesPath,
124
+ query: zod_mini.optional(require_zod_gen.zSentryListOrganizationIssuesQuery)
125
+ }).parseAsync(data),
126
+ responseValidator: async (data) => await require_zod_gen.zSentryListOrganizationIssuesResponse.parseAsync(data),
127
+ security: [{
128
+ scheme: "bearer",
129
+ type: "http"
130
+ }],
131
+ url: "/api/0/organizations/{org_slug}/issues/",
132
+ ...options
133
+ });
134
+ }
135
+ /**
114
136
  * The code repositories connected to the organization (Sentry's
115
137
  * `OrganizationRepositoriesEndpoint`). Rustrak connects none through
116
138
  * Sentry's integrations, so the list is always empty.
117
139
  */
118
140
  listRepos(options) {
119
141
  return (options.client ?? this.client).get({
120
- requestValidator: async (data) => await zod.object({
121
- body: zod.never().optional(),
142
+ requestValidator: async (data) => await zod_mini.object({
143
+ body: zod_mini.optional(zod_mini.never()),
122
144
  path: require_zod_gen.zSentryListReposPath,
123
- query: zod.never().optional()
145
+ query: zod_mini.optional(zod_mini.never())
124
146
  }).parseAsync(data),
125
147
  responseValidator: async (data) => await require_zod_gen.zSentryListReposResponse.parseAsync(data),
126
148
  security: [{
@@ -137,10 +159,10 @@ var Sentry = class extends HeyApiClient {
137
159
  */
138
160
  listProjects(options) {
139
161
  return (options?.client ?? this.client).get({
140
- requestValidator: async (data) => await zod.object({
141
- body: zod.never().optional(),
142
- path: zod.never().optional(),
143
- query: require_zod_gen.zSentryListProjectsQuery.optional()
162
+ requestValidator: async (data) => await zod_mini.object({
163
+ body: zod_mini.optional(zod_mini.never()),
164
+ path: zod_mini.optional(zod_mini.never()),
165
+ query: zod_mini.optional(require_zod_gen.zSentryListProjectsQuery)
144
166
  }).parseAsync(data),
145
167
  responseValidator: async (data) => await require_zod_gen.zSentryListProjectsResponse.parseAsync(data),
146
168
  security: [{
@@ -158,10 +180,10 @@ var Sentry = class extends HeyApiClient {
158
180
  */
159
181
  listIssues(options) {
160
182
  return (options.client ?? this.client).get({
161
- requestValidator: async (data) => await zod.object({
162
- body: zod.never().optional(),
183
+ requestValidator: async (data) => await zod_mini.object({
184
+ body: zod_mini.optional(zod_mini.never()),
163
185
  path: require_zod_gen.zSentryListIssuesPath,
164
- query: require_zod_gen.zSentryListIssuesQuery.optional()
186
+ query: zod_mini.optional(require_zod_gen.zSentryListIssuesQuery)
165
187
  }).parseAsync(data),
166
188
  responseValidator: async (data) => await require_zod_gen.zSentryListIssuesResponse.parseAsync(data),
167
189
  security: [{
@@ -180,10 +202,10 @@ var Sentry = class extends HeyApiClient {
180
202
  */
181
203
  submitUserFeedback(options) {
182
204
  return (options.client ?? this.client).post({
183
- requestValidator: async (data) => await zod.object({
205
+ requestValidator: async (data) => await zod_mini.object({
184
206
  body: require_zod_gen.zSentrySubmitUserFeedbackBody,
185
207
  path: require_zod_gen.zSentrySubmitUserFeedbackPath,
186
- query: zod.never().optional()
208
+ query: zod_mini.optional(zod_mini.never())
187
209
  }).parseAsync(data),
188
210
  responseValidator: async (data) => await require_zod_gen.zSentrySubmitUserFeedbackResponse.parseAsync(data),
189
211
  security: [{
@@ -206,10 +228,10 @@ var Sentry = class extends HeyApiClient {
206
228
  */
207
229
  openIssue(options) {
208
230
  return (options.client ?? this.client).get({
209
- requestValidator: async (data) => await zod.object({
210
- body: zod.never().optional(),
231
+ requestValidator: async (data) => await zod_mini.object({
232
+ body: zod_mini.optional(zod_mini.never()),
211
233
  path: require_zod_gen.zSentryOpenIssuePath,
212
- query: zod.never().optional()
234
+ query: zod_mini.optional(zod_mini.never())
213
235
  }).parseAsync(data),
214
236
  security: [{
215
237
  in: "cookie",
@@ -230,10 +252,10 @@ var SourceMaps = class extends HeyApiClient {
230
252
  */
231
253
  orgDetails(options) {
232
254
  return (options.client ?? this.client).get({
233
- requestValidator: async (data) => await zod.object({
234
- body: zod.never().optional(),
255
+ requestValidator: async (data) => await zod_mini.object({
256
+ body: zod_mini.optional(zod_mini.never()),
235
257
  path: require_zod_gen.zSourceMapsOrgDetailsPath,
236
- query: zod.never().optional()
258
+ query: zod_mini.optional(zod_mini.never())
237
259
  }).parseAsync(data),
238
260
  responseValidator: async (data) => await require_zod_gen.zSourceMapsOrgDetailsResponse.parseAsync(data),
239
261
  url: "/api/0/organizations/{org_slug}/",
@@ -245,10 +267,10 @@ var SourceMaps = class extends HeyApiClient {
245
267
  */
246
268
  artifactBundleAssemble(options) {
247
269
  return (options.client ?? this.client).post({
248
- requestValidator: async (data) => await zod.object({
270
+ requestValidator: async (data) => await zod_mini.object({
249
271
  body: require_zod_gen.zSourceMapsArtifactBundleAssembleBody,
250
272
  path: require_zod_gen.zSourceMapsArtifactBundleAssemblePath,
251
- query: zod.never().optional()
273
+ query: zod_mini.optional(zod_mini.never())
252
274
  }).parseAsync(data),
253
275
  responseValidator: async (data) => await require_zod_gen.zSourceMapsArtifactBundleAssembleResponse.parseAsync(data),
254
276
  security: [{
@@ -268,10 +290,10 @@ var SourceMaps = class extends HeyApiClient {
268
290
  */
269
291
  chunkUploadCapability(options) {
270
292
  return (options.client ?? this.client).get({
271
- requestValidator: async (data) => await zod.object({
272
- body: zod.never().optional(),
293
+ requestValidator: async (data) => await zod_mini.object({
294
+ body: zod_mini.optional(zod_mini.never()),
273
295
  path: require_zod_gen.zSourceMapsChunkUploadCapabilityPath,
274
- query: zod.never().optional()
296
+ query: zod_mini.optional(zod_mini.never())
275
297
  }).parseAsync(data),
276
298
  responseValidator: async (data) => await require_zod_gen.zSourceMapsChunkUploadCapabilityResponse.parseAsync(data),
277
299
  security: [{
@@ -288,10 +310,10 @@ var SourceMaps = class extends HeyApiClient {
288
310
  chunkUpload(options) {
289
311
  return (options.client ?? this.client).post({
290
312
  ...require_bodySerializer_gen.formDataBodySerializer,
291
- requestValidator: async (data) => await zod.object({
313
+ requestValidator: async (data) => await zod_mini.object({
292
314
  body: require_zod_gen.zSourceMapsChunkUploadBody,
293
315
  path: require_zod_gen.zSourceMapsChunkUploadPath,
294
- query: zod.never().optional()
316
+ query: zod_mini.optional(zod_mini.never())
295
317
  }).parseAsync(data),
296
318
  security: [{
297
319
  scheme: "bearer",
@@ -310,10 +332,10 @@ var SourceMaps = class extends HeyApiClient {
310
332
  */
311
333
  list(options) {
312
334
  return (options.client ?? this.client).get({
313
- requestValidator: async (data) => await zod.object({
314
- body: zod.never().optional(),
335
+ requestValidator: async (data) => await zod_mini.object({
336
+ body: zod_mini.optional(zod_mini.never()),
315
337
  path: require_zod_gen.zSourceMapsListPath,
316
- query: zod.never().optional()
338
+ query: zod_mini.optional(zod_mini.never())
317
339
  }).parseAsync(data),
318
340
  responseValidator: async (data) => await require_zod_gen.zSourceMapsListResponse.parseAsync(data),
319
341
  security: [{
@@ -334,10 +356,10 @@ var DebugFiles = class extends HeyApiClient {
334
356
  */
335
357
  assemble(options) {
336
358
  return (options.client ?? this.client).post({
337
- requestValidator: async (data) => await zod.object({
359
+ requestValidator: async (data) => await zod_mini.object({
338
360
  body: require_zod_gen.zDebugFilesAssembleBody,
339
361
  path: require_zod_gen.zDebugFilesAssemblePath,
340
- query: zod.never().optional()
362
+ query: zod_mini.optional(zod_mini.never())
341
363
  }).parseAsync(data),
342
364
  responseValidator: async (data) => await require_zod_gen.zDebugFilesAssembleResponse.parseAsync(data),
343
365
  security: [{
@@ -363,10 +385,10 @@ var DebugFiles = class extends HeyApiClient {
363
385
  upload(options) {
364
386
  return (options.client ?? this.client).post({
365
387
  ...require_bodySerializer_gen.formDataBodySerializer,
366
- requestValidator: async (data) => await zod.object({
388
+ requestValidator: async (data) => await zod_mini.object({
367
389
  body: require_zod_gen.zDebugFilesUploadBody,
368
390
  path: require_zod_gen.zDebugFilesUploadPath,
369
- query: zod.never().optional()
391
+ query: zod_mini.optional(zod_mini.never())
370
392
  }).parseAsync(data),
371
393
  responseValidator: async (data) => await require_zod_gen.zDebugFilesUploadResponse.parseAsync(data),
372
394
  security: [{
@@ -396,10 +418,10 @@ var Releases = class extends HeyApiClient {
396
418
  */
397
419
  create(options) {
398
420
  return (options.client ?? this.client).post({
399
- requestValidator: async (data) => await zod.object({
421
+ requestValidator: async (data) => await zod_mini.object({
400
422
  body: require_zod_gen.zReleasesCreateBody,
401
423
  path: require_zod_gen.zReleasesCreatePath,
402
- query: zod.never().optional()
424
+ query: zod_mini.optional(zod_mini.never())
403
425
  }).parseAsync(data),
404
426
  responseValidator: async (data) => await require_zod_gen.zReleasesCreateResponse.parseAsync(data),
405
427
  security: [{
@@ -420,10 +442,10 @@ var Releases = class extends HeyApiClient {
420
442
  */
421
443
  finalize(options) {
422
444
  return (options.client ?? this.client).put({
423
- requestValidator: async (data) => await zod.object({
445
+ requestValidator: async (data) => await zod_mini.object({
424
446
  body: require_zod_gen.zReleasesFinalizeBody,
425
447
  path: require_zod_gen.zReleasesFinalizePath,
426
- query: zod.never().optional()
448
+ query: zod_mini.optional(zod_mini.never())
427
449
  }).parseAsync(data),
428
450
  responseValidator: async (data) => await require_zod_gen.zReleasesFinalizeResponse.parseAsync(data),
429
451
  security: [{
@@ -444,10 +466,10 @@ var Releases = class extends HeyApiClient {
444
466
  */
445
467
  list(options) {
446
468
  return (options.client ?? this.client).get({
447
- requestValidator: async (data) => await zod.object({
448
- body: zod.never().optional(),
469
+ requestValidator: async (data) => await zod_mini.object({
470
+ body: zod_mini.optional(zod_mini.never()),
449
471
  path: require_zod_gen.zReleasesListPath,
450
- query: require_zod_gen.zReleasesListQuery.optional()
472
+ query: zod_mini.optional(require_zod_gen.zReleasesListQuery)
451
473
  }).parseAsync(data),
452
474
  responseValidator: async (data) => await require_zod_gen.zReleasesListResponse.parseAsync(data),
453
475
  security: [{
@@ -464,10 +486,10 @@ var Releases = class extends HeyApiClient {
464
486
  */
465
487
  get(options) {
466
488
  return (options.client ?? this.client).get({
467
- requestValidator: async (data) => await zod.object({
468
- body: zod.never().optional(),
489
+ requestValidator: async (data) => await zod_mini.object({
490
+ body: zod_mini.optional(zod_mini.never()),
469
491
  path: require_zod_gen.zReleasesGetPath,
470
- query: require_zod_gen.zReleasesGetQuery.optional()
492
+ query: zod_mini.optional(require_zod_gen.zReleasesGetQuery)
471
493
  }).parseAsync(data),
472
494
  responseValidator: async (data) => await require_zod_gen.zReleasesGetResponse.parseAsync(data),
473
495
  security: [{
@@ -483,10 +505,10 @@ var Releases = class extends HeyApiClient {
483
505
  */
484
506
  newIssues(options) {
485
507
  return (options.client ?? this.client).get({
486
- requestValidator: async (data) => await zod.object({
487
- body: zod.never().optional(),
508
+ requestValidator: async (data) => await zod_mini.object({
509
+ body: zod_mini.optional(zod_mini.never()),
488
510
  path: require_zod_gen.zReleasesNewIssuesPath,
489
- query: require_zod_gen.zReleasesNewIssuesQuery.optional()
511
+ query: zod_mini.optional(require_zod_gen.zReleasesNewIssuesQuery)
490
512
  }).parseAsync(data),
491
513
  responseValidator: async (data) => await require_zod_gen.zReleasesNewIssuesResponse.parseAsync(data),
492
514
  security: [{
@@ -504,10 +526,10 @@ var Access = class extends HeyApiClient {
504
526
  */
505
527
  catalog(options) {
506
528
  return (options?.client ?? this.client).get({
507
- requestValidator: async (data) => await zod.object({
508
- body: zod.never().optional(),
509
- path: zod.never().optional(),
510
- query: zod.never().optional()
529
+ requestValidator: async (data) => await zod_mini.object({
530
+ body: zod_mini.optional(zod_mini.never()),
531
+ path: zod_mini.optional(zod_mini.never()),
532
+ query: zod_mini.optional(zod_mini.never())
511
533
  }).parseAsync(data),
512
534
  responseValidator: async (data) => await require_zod_gen.zAccessCatalogResponse.parseAsync(data),
513
535
  security: [{
@@ -523,10 +545,10 @@ var Access = class extends HeyApiClient {
523
545
  */
524
546
  me(options) {
525
547
  return (options?.client ?? this.client).get({
526
- requestValidator: async (data) => await zod.object({
527
- body: zod.never().optional(),
528
- path: zod.never().optional(),
529
- query: zod.never().optional()
548
+ requestValidator: async (data) => await zod_mini.object({
549
+ body: zod_mini.optional(zod_mini.never()),
550
+ path: zod_mini.optional(zod_mini.never()),
551
+ query: zod_mini.optional(zod_mini.never())
530
552
  }).parseAsync(data),
531
553
  responseValidator: async (data) => await require_zod_gen.zAccessMeResponse.parseAsync(data),
532
554
  security: [{
@@ -538,16 +560,57 @@ var Access = class extends HeyApiClient {
538
560
  });
539
561
  }
540
562
  };
563
+ var Feedback = class extends HeyApiClient {
564
+ /**
565
+ * Lists user feedback across every project the reader can read issues on.
566
+ */
567
+ listAll(options) {
568
+ return (options?.client ?? this.client).get({
569
+ requestValidator: async (data) => await zod_mini.object({
570
+ body: zod_mini.optional(zod_mini.never()),
571
+ path: zod_mini.optional(zod_mini.never()),
572
+ query: zod_mini.optional(require_zod_gen.zFeedbackListAllQuery)
573
+ }).parseAsync(data),
574
+ responseValidator: async (data) => await require_zod_gen.zFeedbackListAllResponse.parseAsync(data),
575
+ security: [{
576
+ scheme: "bearer",
577
+ type: "http"
578
+ }],
579
+ url: "/api/feedback",
580
+ ...options
581
+ });
582
+ }
583
+ /**
584
+ * Lists user feedback with what each user submitted. Every feedback is an
585
+ * issue of category `feedback`; spam is a muted one.
586
+ */
587
+ list(options) {
588
+ return (options.client ?? this.client).get({
589
+ requestValidator: async (data) => await zod_mini.object({
590
+ body: zod_mini.optional(zod_mini.never()),
591
+ path: require_zod_gen.zFeedbackListPath,
592
+ query: zod_mini.optional(require_zod_gen.zFeedbackListQuery)
593
+ }).parseAsync(data),
594
+ responseValidator: async (data) => await require_zod_gen.zFeedbackListResponse.parseAsync(data),
595
+ security: [{
596
+ scheme: "bearer",
597
+ type: "http"
598
+ }],
599
+ url: "/api/projects/{project_id}/feedback",
600
+ ...options
601
+ });
602
+ }
603
+ };
541
604
  var Github = class extends HeyApiClient {
542
605
  /**
543
606
  * Disconnects the GitHub App from this instance.
544
607
  */
545
608
  disconnect(options) {
546
609
  return (options?.client ?? this.client).delete({
547
- requestValidator: async (data) => await zod.object({
548
- body: zod.never().optional(),
549
- path: zod.never().optional(),
550
- query: zod.never().optional()
610
+ requestValidator: async (data) => await zod_mini.object({
611
+ body: zod_mini.optional(zod_mini.never()),
612
+ path: zod_mini.optional(zod_mini.never()),
613
+ query: zod_mini.optional(zod_mini.never())
551
614
  }).parseAsync(data),
552
615
  responseValidator: async (data) => await require_zod_gen.zGithubDisconnectResponse.parseAsync(data),
553
616
  security: [{
@@ -563,10 +626,10 @@ var Github = class extends HeyApiClient {
563
626
  */
564
627
  status(options) {
565
628
  return (options?.client ?? this.client).get({
566
- requestValidator: async (data) => await zod.object({
567
- body: zod.never().optional(),
568
- path: zod.never().optional(),
569
- query: zod.never().optional()
629
+ requestValidator: async (data) => await zod_mini.object({
630
+ body: zod_mini.optional(zod_mini.never()),
631
+ path: zod_mini.optional(zod_mini.never()),
632
+ query: zod_mini.optional(zod_mini.never())
570
633
  }).parseAsync(data),
571
634
  responseValidator: async (data) => await require_zod_gen.zGithubStatusResponse.parseAsync(data),
572
635
  security: [{
@@ -583,9 +646,9 @@ var Github = class extends HeyApiClient {
583
646
  */
584
647
  callback(options) {
585
648
  return (options.client ?? this.client).get({
586
- requestValidator: async (data) => await zod.object({
587
- body: zod.never().optional(),
588
- path: zod.never().optional(),
649
+ requestValidator: async (data) => await zod_mini.object({
650
+ body: zod_mini.optional(zod_mini.never()),
651
+ path: zod_mini.optional(zod_mini.never()),
589
652
  query: require_zod_gen.zGithubCallbackQuery
590
653
  }).parseAsync(data),
591
654
  security: [{
@@ -602,9 +665,9 @@ var Github = class extends HeyApiClient {
602
665
  */
603
666
  installed(options) {
604
667
  return (options.client ?? this.client).get({
605
- requestValidator: async (data) => await zod.object({
606
- body: zod.never().optional(),
607
- path: zod.never().optional(),
668
+ requestValidator: async (data) => await zod_mini.object({
669
+ body: zod_mini.optional(zod_mini.never()),
670
+ path: zod_mini.optional(zod_mini.never()),
608
671
  query: require_zod_gen.zGithubInstalledQuery
609
672
  }).parseAsync(data),
610
673
  security: [{
@@ -621,10 +684,10 @@ var Github = class extends HeyApiClient {
621
684
  */
622
685
  putIssueTemplate(options) {
623
686
  return (options.client ?? this.client).put({
624
- requestValidator: async (data) => await zod.object({
687
+ requestValidator: async (data) => await zod_mini.object({
625
688
  body: require_zod_gen.zGithubPutIssueTemplateBody,
626
- path: zod.never().optional(),
627
- query: zod.never().optional()
689
+ path: zod_mini.optional(zod_mini.never()),
690
+ query: zod_mini.optional(zod_mini.never())
628
691
  }).parseAsync(data),
629
692
  responseValidator: async (data) => await require_zod_gen.zGithubPutIssueTemplateResponse.parseAsync(data),
630
693
  security: [{
@@ -645,10 +708,10 @@ var Github = class extends HeyApiClient {
645
708
  */
646
709
  manifest(options) {
647
710
  return (options.client ?? this.client).post({
648
- requestValidator: async (data) => await zod.object({
711
+ requestValidator: async (data) => await zod_mini.object({
649
712
  body: require_zod_gen.zGithubManifestBody,
650
- path: zod.never().optional(),
651
- query: zod.never().optional()
713
+ path: zod_mini.optional(zod_mini.never()),
714
+ query: zod_mini.optional(zod_mini.never())
652
715
  }).parseAsync(data),
653
716
  responseValidator: async (data) => await require_zod_gen.zGithubManifestResponse.parseAsync(data),
654
717
  security: [{
@@ -668,10 +731,10 @@ var Github = class extends HeyApiClient {
668
731
  */
669
732
  getMyLogin(options) {
670
733
  return (options?.client ?? this.client).get({
671
- requestValidator: async (data) => await zod.object({
672
- body: zod.never().optional(),
673
- path: zod.never().optional(),
674
- query: zod.never().optional()
734
+ requestValidator: async (data) => await zod_mini.object({
735
+ body: zod_mini.optional(zod_mini.never()),
736
+ path: zod_mini.optional(zod_mini.never()),
737
+ query: zod_mini.optional(zod_mini.never())
675
738
  }).parseAsync(data),
676
739
  responseValidator: async (data) => await require_zod_gen.zGithubGetMyLoginResponse.parseAsync(data),
677
740
  security: [{
@@ -687,10 +750,10 @@ var Github = class extends HeyApiClient {
687
750
  */
688
751
  putMyLogin(options) {
689
752
  return (options.client ?? this.client).put({
690
- requestValidator: async (data) => await zod.object({
753
+ requestValidator: async (data) => await zod_mini.object({
691
754
  body: require_zod_gen.zGithubPutMyLoginBody,
692
- path: zod.never().optional(),
693
- query: zod.never().optional()
755
+ path: zod_mini.optional(zod_mini.never()),
756
+ query: zod_mini.optional(zod_mini.never())
694
757
  }).parseAsync(data),
695
758
  responseValidator: async (data) => await require_zod_gen.zGithubPutMyLoginResponse.parseAsync(data),
696
759
  security: [{
@@ -711,9 +774,9 @@ var Github = class extends HeyApiClient {
711
774
  */
712
775
  repositories(options) {
713
776
  return (options.client ?? this.client).get({
714
- requestValidator: async (data) => await zod.object({
715
- body: zod.never().optional(),
716
- path: zod.never().optional(),
777
+ requestValidator: async (data) => await zod_mini.object({
778
+ body: zod_mini.optional(zod_mini.never()),
779
+ path: zod_mini.optional(zod_mini.never()),
717
780
  query: require_zod_gen.zGithubRepositoriesQuery
718
781
  }).parseAsync(data),
719
782
  responseValidator: async (data) => await require_zod_gen.zGithubRepositoriesResponse.parseAsync(data),
@@ -731,10 +794,10 @@ var Github = class extends HeyApiClient {
731
794
  */
732
795
  webhook(options) {
733
796
  return (options.client ?? this.client).post({
734
- requestValidator: async (data) => await zod.object({
797
+ requestValidator: async (data) => await zod_mini.object({
735
798
  body: require_zod_gen.zGithubWebhookBody,
736
- path: zod.never().optional(),
737
- query: zod.never().optional()
799
+ path: zod_mini.optional(zod_mini.never()),
800
+ query: zod_mini.optional(zod_mini.never())
738
801
  }).parseAsync(data),
739
802
  responseValidator: async (data) => await require_zod_gen.zGithubWebhookResponse.parseAsync(data),
740
803
  url: "/api/github/webhook",
@@ -750,10 +813,10 @@ var Github = class extends HeyApiClient {
750
813
  */
751
814
  deleteProjectRepository(options) {
752
815
  return (options.client ?? this.client).delete({
753
- requestValidator: async (data) => await zod.object({
754
- body: zod.never().optional(),
816
+ requestValidator: async (data) => await zod_mini.object({
817
+ body: zod_mini.optional(zod_mini.never()),
755
818
  path: require_zod_gen.zGithubDeleteProjectRepositoryPath,
756
- query: zod.never().optional()
819
+ query: zod_mini.optional(zod_mini.never())
757
820
  }).parseAsync(data),
758
821
  responseValidator: async (data) => await require_zod_gen.zGithubDeleteProjectRepositoryResponse.parseAsync(data),
759
822
  security: [{
@@ -769,10 +832,10 @@ var Github = class extends HeyApiClient {
769
832
  */
770
833
  getProjectRepository(options) {
771
834
  return (options.client ?? this.client).get({
772
- requestValidator: async (data) => await zod.object({
773
- body: zod.never().optional(),
835
+ requestValidator: async (data) => await zod_mini.object({
836
+ body: zod_mini.optional(zod_mini.never()),
774
837
  path: require_zod_gen.zGithubGetProjectRepositoryPath,
775
- query: zod.never().optional()
838
+ query: zod_mini.optional(zod_mini.never())
776
839
  }).parseAsync(data),
777
840
  responseValidator: async (data) => await require_zod_gen.zGithubGetProjectRepositoryResponse.parseAsync(data),
778
841
  security: [{
@@ -788,10 +851,10 @@ var Github = class extends HeyApiClient {
788
851
  */
789
852
  putProjectRepository(options) {
790
853
  return (options.client ?? this.client).put({
791
- requestValidator: async (data) => await zod.object({
854
+ requestValidator: async (data) => await zod_mini.object({
792
855
  body: require_zod_gen.zGithubPutProjectRepositoryBody,
793
856
  path: require_zod_gen.zGithubPutProjectRepositoryPath,
794
- query: zod.never().optional()
857
+ query: zod_mini.optional(zod_mini.never())
795
858
  }).parseAsync(data),
796
859
  responseValidator: async (data) => await require_zod_gen.zGithubPutProjectRepositoryResponse.parseAsync(data),
797
860
  security: [{
@@ -812,10 +875,10 @@ var Github = class extends HeyApiClient {
812
875
  */
813
876
  syncCodeowners(options) {
814
877
  return (options.client ?? this.client).post({
815
- requestValidator: async (data) => await zod.object({
816
- body: zod.never().optional(),
878
+ requestValidator: async (data) => await zod_mini.object({
879
+ body: zod_mini.optional(zod_mini.never()),
817
880
  path: require_zod_gen.zGithubSyncCodeownersPath,
818
- query: zod.never().optional()
881
+ query: zod_mini.optional(zod_mini.never())
819
882
  }).parseAsync(data),
820
883
  responseValidator: async (data) => await require_zod_gen.zGithubSyncCodeownersResponse.parseAsync(data),
821
884
  security: [{
@@ -832,10 +895,10 @@ var Github = class extends HeyApiClient {
832
895
  */
833
896
  issue(options) {
834
897
  return (options.client ?? this.client).get({
835
- requestValidator: async (data) => await zod.object({
836
- body: zod.never().optional(),
898
+ requestValidator: async (data) => await zod_mini.object({
899
+ body: zod_mini.optional(zod_mini.never()),
837
900
  path: require_zod_gen.zGithubIssuePath,
838
- query: zod.never().optional()
901
+ query: zod_mini.optional(zod_mini.never())
839
902
  }).parseAsync(data),
840
903
  responseValidator: async (data) => await require_zod_gen.zGithubIssueResponse.parseAsync(data),
841
904
  security: [{
@@ -852,10 +915,10 @@ var Github = class extends HeyApiClient {
852
915
  */
853
916
  issueDraft(options) {
854
917
  return (options.client ?? this.client).get({
855
- requestValidator: async (data) => await zod.object({
856
- body: zod.never().optional(),
918
+ requestValidator: async (data) => await zod_mini.object({
919
+ body: zod_mini.optional(zod_mini.never()),
857
920
  path: require_zod_gen.zGithubIssueDraftPath,
858
- query: zod.never().optional()
921
+ query: zod_mini.optional(zod_mini.never())
859
922
  }).parseAsync(data),
860
923
  responseValidator: async (data) => await require_zod_gen.zGithubIssueDraftResponse.parseAsync(data),
861
924
  security: [{
@@ -871,10 +934,10 @@ var Github = class extends HeyApiClient {
871
934
  */
872
935
  createIssue(options) {
873
936
  return (options.client ?? this.client).post({
874
- requestValidator: async (data) => await zod.object({
937
+ requestValidator: async (data) => await zod_mini.object({
875
938
  body: require_zod_gen.zGithubCreateIssueBody,
876
939
  path: require_zod_gen.zGithubCreateIssuePath,
877
- query: zod.never().optional()
940
+ query: zod_mini.optional(zod_mini.never())
878
941
  }).parseAsync(data),
879
942
  responseValidator: async (data) => await require_zod_gen.zGithubCreateIssueResponse.parseAsync(data),
880
943
  security: [{
@@ -894,10 +957,10 @@ var Github = class extends HeyApiClient {
894
957
  */
895
958
  linkIssue(options) {
896
959
  return (options.client ?? this.client).post({
897
- requestValidator: async (data) => await zod.object({
960
+ requestValidator: async (data) => await zod_mini.object({
898
961
  body: require_zod_gen.zGithubLinkIssueBody,
899
962
  path: require_zod_gen.zGithubLinkIssuePath,
900
- query: zod.never().optional()
963
+ query: zod_mini.optional(zod_mini.never())
901
964
  }).parseAsync(data),
902
965
  responseValidator: async (data) => await require_zod_gen.zGithubLinkIssueResponse.parseAsync(data),
903
966
  security: [{
@@ -917,10 +980,10 @@ var Github = class extends HeyApiClient {
917
980
  */
918
981
  unlinkIssue(options) {
919
982
  return (options.client ?? this.client).delete({
920
- requestValidator: async (data) => await zod.object({
921
- body: zod.never().optional(),
983
+ requestValidator: async (data) => await zod_mini.object({
984
+ body: zod_mini.optional(zod_mini.never()),
922
985
  path: require_zod_gen.zGithubUnlinkIssuePath,
923
- query: zod.never().optional()
986
+ query: zod_mini.optional(zod_mini.never())
924
987
  }).parseAsync(data),
925
988
  responseValidator: async (data) => await require_zod_gen.zGithubUnlinkIssueResponse.parseAsync(data),
926
989
  security: [{
@@ -943,10 +1006,10 @@ var AlertChannels = class extends HeyApiClient {
943
1006
  */
944
1007
  list(options) {
945
1008
  return (options?.client ?? this.client).get({
946
- requestValidator: async (data) => await zod.object({
947
- body: zod.never().optional(),
948
- path: zod.never().optional(),
949
- query: zod.never().optional()
1009
+ requestValidator: async (data) => await zod_mini.object({
1010
+ body: zod_mini.optional(zod_mini.never()),
1011
+ path: zod_mini.optional(zod_mini.never()),
1012
+ query: zod_mini.optional(zod_mini.never())
950
1013
  }).parseAsync(data),
951
1014
  responseValidator: async (data) => await require_zod_gen.zAlertChannelsListResponse.parseAsync(data),
952
1015
  security: [{
@@ -962,10 +1025,10 @@ var AlertChannels = class extends HeyApiClient {
962
1025
  */
963
1026
  create(options) {
964
1027
  return (options.client ?? this.client).post({
965
- requestValidator: async (data) => await zod.object({
1028
+ requestValidator: async (data) => await zod_mini.object({
966
1029
  body: require_zod_gen.zAlertChannelsCreateBody,
967
- path: zod.never().optional(),
968
- query: zod.never().optional()
1030
+ path: zod_mini.optional(zod_mini.never()),
1031
+ query: zod_mini.optional(zod_mini.never())
969
1032
  }).parseAsync(data),
970
1033
  responseValidator: async (data) => await require_zod_gen.zAlertChannelsCreateResponse.parseAsync(data),
971
1034
  security: [{
@@ -988,10 +1051,10 @@ var AlertChannels = class extends HeyApiClient {
988
1051
  */
989
1052
  previewTemplate(options) {
990
1053
  return (options.client ?? this.client).post({
991
- requestValidator: async (data) => await zod.object({
1054
+ requestValidator: async (data) => await zod_mini.object({
992
1055
  body: require_zod_gen.zAlertChannelsPreviewTemplateBody,
993
- path: zod.never().optional(),
994
- query: zod.never().optional()
1056
+ path: zod_mini.optional(zod_mini.never()),
1057
+ query: zod_mini.optional(zod_mini.never())
995
1058
  }).parseAsync(data),
996
1059
  responseValidator: async (data) => await require_zod_gen.zAlertChannelsPreviewTemplateResponse.parseAsync(data),
997
1060
  security: [{
@@ -1011,10 +1074,10 @@ var AlertChannels = class extends HeyApiClient {
1011
1074
  */
1012
1075
  delete(options) {
1013
1076
  return (options.client ?? this.client).delete({
1014
- requestValidator: async (data) => await zod.object({
1015
- body: zod.never().optional(),
1077
+ requestValidator: async (data) => await zod_mini.object({
1078
+ body: zod_mini.optional(zod_mini.never()),
1016
1079
  path: require_zod_gen.zAlertChannelsDeletePath,
1017
- query: zod.never().optional()
1080
+ query: zod_mini.optional(zod_mini.never())
1018
1081
  }).parseAsync(data),
1019
1082
  responseValidator: async (data) => await require_zod_gen.zAlertChannelsDeleteResponse.parseAsync(data),
1020
1083
  security: [{
@@ -1030,10 +1093,10 @@ var AlertChannels = class extends HeyApiClient {
1030
1093
  */
1031
1094
  get(options) {
1032
1095
  return (options.client ?? this.client).get({
1033
- requestValidator: async (data) => await zod.object({
1034
- body: zod.never().optional(),
1096
+ requestValidator: async (data) => await zod_mini.object({
1097
+ body: zod_mini.optional(zod_mini.never()),
1035
1098
  path: require_zod_gen.zAlertChannelsGetPath,
1036
- query: zod.never().optional()
1099
+ query: zod_mini.optional(zod_mini.never())
1037
1100
  }).parseAsync(data),
1038
1101
  responseValidator: async (data) => await require_zod_gen.zAlertChannelsGetResponse.parseAsync(data),
1039
1102
  security: [{
@@ -1049,10 +1112,10 @@ var AlertChannels = class extends HeyApiClient {
1049
1112
  */
1050
1113
  update(options) {
1051
1114
  return (options.client ?? this.client).patch({
1052
- requestValidator: async (data) => await zod.object({
1115
+ requestValidator: async (data) => await zod_mini.object({
1053
1116
  body: require_zod_gen.zAlertChannelsUpdateBody,
1054
1117
  path: require_zod_gen.zAlertChannelsUpdatePath,
1055
- query: zod.never().optional()
1118
+ query: zod_mini.optional(zod_mini.never())
1056
1119
  }).parseAsync(data),
1057
1120
  responseValidator: async (data) => await require_zod_gen.zAlertChannelsUpdateResponse.parseAsync(data),
1058
1121
  security: [{
@@ -1072,10 +1135,10 @@ var AlertChannels = class extends HeyApiClient {
1072
1135
  */
1073
1136
  test(options) {
1074
1137
  return (options.client ?? this.client).post({
1075
- requestValidator: async (data) => await zod.object({
1076
- body: require_zod_gen.zAlertChannelsTestBody.optional(),
1138
+ requestValidator: async (data) => await zod_mini.object({
1139
+ body: zod_mini.optional(require_zod_gen.zAlertChannelsTestBody),
1077
1140
  path: require_zod_gen.zAlertChannelsTestPath,
1078
- query: zod.never().optional()
1141
+ query: zod_mini.optional(zod_mini.never())
1079
1142
  }).parseAsync(data),
1080
1143
  responseValidator: async (data) => await require_zod_gen.zAlertChannelsTestResponse.parseAsync(data),
1081
1144
  security: [{
@@ -1097,10 +1160,10 @@ var Invitations = class extends HeyApiClient {
1097
1160
  */
1098
1161
  list(options) {
1099
1162
  return (options?.client ?? this.client).get({
1100
- requestValidator: async (data) => await zod.object({
1101
- body: zod.never().optional(),
1102
- path: zod.never().optional(),
1103
- query: zod.never().optional()
1163
+ requestValidator: async (data) => await zod_mini.object({
1164
+ body: zod_mini.optional(zod_mini.never()),
1165
+ path: zod_mini.optional(zod_mini.never()),
1166
+ query: zod_mini.optional(zod_mini.never())
1104
1167
  }).parseAsync(data),
1105
1168
  responseValidator: async (data) => await require_zod_gen.zInvitationsListResponse.parseAsync(data),
1106
1169
  security: [{
@@ -1120,10 +1183,10 @@ var Invitations = class extends HeyApiClient {
1120
1183
  */
1121
1184
  create(options) {
1122
1185
  return (options.client ?? this.client).post({
1123
- requestValidator: async (data) => await zod.object({
1186
+ requestValidator: async (data) => await zod_mini.object({
1124
1187
  body: require_zod_gen.zInvitationsCreateBody,
1125
- path: zod.never().optional(),
1126
- query: zod.never().optional()
1188
+ path: zod_mini.optional(zod_mini.never()),
1189
+ query: zod_mini.optional(zod_mini.never())
1127
1190
  }).parseAsync(data),
1128
1191
  responseValidator: async (data) => await require_zod_gen.zInvitationsCreateResponse.parseAsync(data),
1129
1192
  security: [{
@@ -1143,10 +1206,10 @@ var Invitations = class extends HeyApiClient {
1143
1206
  */
1144
1207
  emailStatus(options) {
1145
1208
  return (options?.client ?? this.client).get({
1146
- requestValidator: async (data) => await zod.object({
1147
- body: zod.never().optional(),
1148
- path: zod.never().optional(),
1149
- query: zod.never().optional()
1209
+ requestValidator: async (data) => await zod_mini.object({
1210
+ body: zod_mini.optional(zod_mini.never()),
1211
+ path: zod_mini.optional(zod_mini.never()),
1212
+ query: zod_mini.optional(zod_mini.never())
1150
1213
  }).parseAsync(data),
1151
1214
  responseValidator: async (data) => await require_zod_gen.zInvitationsEmailStatusResponse.parseAsync(data),
1152
1215
  security: [{
@@ -1162,10 +1225,10 @@ var Invitations = class extends HeyApiClient {
1162
1225
  */
1163
1226
  revoke(options) {
1164
1227
  return (options.client ?? this.client).delete({
1165
- requestValidator: async (data) => await zod.object({
1166
- body: zod.never().optional(),
1228
+ requestValidator: async (data) => await zod_mini.object({
1229
+ body: zod_mini.optional(zod_mini.never()),
1167
1230
  path: require_zod_gen.zInvitationsRevokePath,
1168
- query: zod.never().optional()
1231
+ query: zod_mini.optional(zod_mini.never())
1169
1232
  }).parseAsync(data),
1170
1233
  responseValidator: async (data) => await require_zod_gen.zInvitationsRevokeResponse.parseAsync(data),
1171
1234
  security: [{
@@ -1181,10 +1244,10 @@ var Invitations = class extends HeyApiClient {
1181
1244
  */
1182
1245
  resend(options) {
1183
1246
  return (options.client ?? this.client).post({
1184
- requestValidator: async (data) => await zod.object({
1185
- body: zod.never().optional(),
1247
+ requestValidator: async (data) => await zod_mini.object({
1248
+ body: zod_mini.optional(zod_mini.never()),
1186
1249
  path: require_zod_gen.zInvitationsResendPath,
1187
- query: zod.never().optional()
1250
+ query: zod_mini.optional(zod_mini.never())
1188
1251
  }).parseAsync(data),
1189
1252
  responseValidator: async (data) => await require_zod_gen.zInvitationsResendResponse.parseAsync(data),
1190
1253
  security: [{
@@ -1196,34 +1259,43 @@ var Invitations = class extends HeyApiClient {
1196
1259
  });
1197
1260
  }
1198
1261
  };
1199
- var Oauth = class extends HeyApiClient {
1262
+ var Issues = class extends HeyApiClient {
1200
1263
  /**
1201
- * Verifies an authorization request and says who is asking.
1264
+ * Lists issues across every project the reader can read issues on, in the
1265
+ * same shape and pages as a project's list.
1202
1266
  */
1203
- getAuthorization(options) {
1204
- return (options.client ?? this.client).get({
1205
- requestValidator: async (data) => await zod.object({
1206
- body: zod.never().optional(),
1207
- path: zod.never().optional(),
1208
- query: require_zod_gen.zOauthGetAuthorizationQuery
1267
+ listAll(options) {
1268
+ return (options?.client ?? this.client).get({
1269
+ requestValidator: async (data) => await zod_mini.object({
1270
+ body: zod_mini.optional(zod_mini.never()),
1271
+ path: zod_mini.optional(zod_mini.never()),
1272
+ query: zod_mini.optional(require_zod_gen.zIssuesListAllQuery)
1209
1273
  }).parseAsync(data),
1210
- responseValidator: async (data) => await require_zod_gen.zOauthGetAuthorizationResponse.parseAsync(data),
1211
- url: "/api/oauth/authorize",
1274
+ responseValidator: async (data) => await require_zod_gen.zIssuesListAllResponse.parseAsync(data),
1275
+ security: [{
1276
+ scheme: "bearer",
1277
+ type: "http"
1278
+ }],
1279
+ url: "/api/issues",
1212
1280
  ...options
1213
1281
  });
1214
1282
  }
1215
1283
  /**
1216
- * Approves or denies an authorization request as the signed-in user.
1284
+ * Deletes many issues at once, selected by id or by filter.
1217
1285
  */
1218
- decideAuthorization(options) {
1219
- return (options.client ?? this.client).post({
1220
- requestValidator: async (data) => await zod.object({
1221
- body: require_zod_gen.zOauthDecideAuthorizationBody,
1222
- path: zod.never().optional(),
1223
- query: zod.never().optional()
1286
+ bulkDelete(options) {
1287
+ return (options.client ?? this.client).delete({
1288
+ requestValidator: async (data) => await zod_mini.object({
1289
+ body: require_zod_gen.zIssuesBulkDeleteBody,
1290
+ path: require_zod_gen.zIssuesBulkDeletePath,
1291
+ query: zod_mini.optional(zod_mini.never())
1224
1292
  }).parseAsync(data),
1225
- responseValidator: async (data) => await require_zod_gen.zOauthDecideAuthorizationResponse.parseAsync(data),
1226
- url: "/api/oauth/authorize",
1293
+ responseValidator: async (data) => await require_zod_gen.zIssuesBulkDeleteResponse.parseAsync(data),
1294
+ security: [{
1295
+ scheme: "bearer",
1296
+ type: "http"
1297
+ }],
1298
+ url: "/api/projects/{project_id}/issues",
1227
1299
  ...options,
1228
1300
  headers: {
1229
1301
  "Content-Type": "application/json",
@@ -1232,78 +1304,40 @@ var Oauth = class extends HeyApiClient {
1232
1304
  });
1233
1305
  }
1234
1306
  /**
1235
- * Lists the assistants connected to the signed-in user's account.
1236
- */
1237
- listGrants(options) {
1238
- return (options?.client ?? this.client).get({
1239
- requestValidator: async (data) => await zod.object({
1240
- body: zod.never().optional(),
1241
- path: zod.never().optional(),
1242
- query: zod.never().optional()
1243
- }).parseAsync(data),
1244
- responseValidator: async (data) => await require_zod_gen.zOauthListGrantsResponse.parseAsync(data),
1245
- url: "/api/oauth/grants",
1246
- ...options
1247
- });
1248
- }
1249
- /**
1250
- * Disconnects an assistant: its tokens stop working at once.
1251
- */
1252
- revokeGrant(options) {
1253
- return (options.client ?? this.client).delete({
1254
- requestValidator: async (data) => await zod.object({
1255
- body: zod.never().optional(),
1256
- path: require_zod_gen.zOauthRevokeGrantPath,
1257
- query: zod.never().optional()
1258
- }).parseAsync(data),
1259
- responseValidator: async (data) => await require_zod_gen.zOauthRevokeGrantResponse.parseAsync(data),
1260
- url: "/api/oauth/grants/{id}",
1261
- ...options
1262
- });
1263
- }
1264
- };
1265
- var Projects = class extends HeyApiClient {
1266
- /**
1267
- * List projects with pagination.
1268
- *
1269
- * Only the projects the caller holds a permission on.
1307
+ * Lists issues for a project with offset-based pagination
1270
1308
  */
1271
1309
  list(options) {
1272
- return (options?.client ?? this.client).get({
1273
- requestValidator: async (data) => await zod.object({
1274
- body: zod.never().optional(),
1275
- path: zod.never().optional(),
1276
- query: require_zod_gen.zProjectsListQuery.optional()
1310
+ return (options.client ?? this.client).get({
1311
+ requestValidator: async (data) => await zod_mini.object({
1312
+ body: zod_mini.optional(zod_mini.never()),
1313
+ path: require_zod_gen.zIssuesListPath,
1314
+ query: zod_mini.optional(require_zod_gen.zIssuesListQuery)
1277
1315
  }).parseAsync(data),
1278
- responseValidator: async (data) => await require_zod_gen.zProjectsListResponse.parseAsync(data),
1316
+ responseValidator: async (data) => await require_zod_gen.zIssuesListResponse.parseAsync(data),
1279
1317
  security: [{
1280
1318
  scheme: "bearer",
1281
1319
  type: "http"
1282
1320
  }],
1283
- url: "/api/projects",
1321
+ url: "/api/projects/{project_id}/issues",
1284
1322
  ...options
1285
1323
  });
1286
1324
  }
1287
1325
  /**
1288
- * Create a new project
1289
- *
1290
- * Needs `projects:create` and a permission on at least one project, because
1291
- * the creator's own roles extend to the new one. A token limited to chosen
1292
- * projects can create one, but its list does not grow to reach it.
1326
+ * Sets the status or priority of many issues at once, by id.
1293
1327
  */
1294
- create(options) {
1295
- return (options.client ?? this.client).post({
1296
- requestValidator: async (data) => await zod.object({
1297
- body: require_zod_gen.zProjectsCreateBody,
1298
- path: zod.never().optional(),
1299
- query: zod.never().optional()
1328
+ bulkUpdate(options) {
1329
+ return (options.client ?? this.client).put({
1330
+ requestValidator: async (data) => await zod_mini.object({
1331
+ body: require_zod_gen.zIssuesBulkUpdateBody,
1332
+ path: require_zod_gen.zIssuesBulkUpdatePath,
1333
+ query: zod_mini.optional(zod_mini.never())
1300
1334
  }).parseAsync(data),
1301
- responseValidator: async (data) => await require_zod_gen.zProjectsCreateResponse.parseAsync(data),
1335
+ responseValidator: async (data) => await require_zod_gen.zIssuesBulkUpdateResponse.parseAsync(data),
1302
1336
  security: [{
1303
1337
  scheme: "bearer",
1304
1338
  type: "http"
1305
1339
  }],
1306
- url: "/api/projects",
1340
+ url: "/api/projects/{project_id}/issues",
1307
1341
  ...options,
1308
1342
  headers: {
1309
1343
  "Content-Type": "application/json",
@@ -1312,59 +1346,59 @@ var Projects = class extends HeyApiClient {
1312
1346
  });
1313
1347
  }
1314
1348
  /**
1315
- * Delete a project
1349
+ * Hard-deletes an issue and all associated events
1316
1350
  */
1317
1351
  delete(options) {
1318
1352
  return (options.client ?? this.client).delete({
1319
- requestValidator: async (data) => await zod.object({
1320
- body: zod.never().optional(),
1321
- path: require_zod_gen.zProjectsDeletePath,
1322
- query: zod.never().optional()
1353
+ requestValidator: async (data) => await zod_mini.object({
1354
+ body: zod_mini.optional(zod_mini.never()),
1355
+ path: require_zod_gen.zIssuesDeletePath,
1356
+ query: zod_mini.optional(zod_mini.never())
1323
1357
  }).parseAsync(data),
1324
- responseValidator: async (data) => await require_zod_gen.zProjectsDeleteResponse.parseAsync(data),
1358
+ responseValidator: async (data) => await require_zod_gen.zIssuesDeleteResponse.parseAsync(data),
1325
1359
  security: [{
1326
1360
  scheme: "bearer",
1327
1361
  type: "http"
1328
1362
  }],
1329
- url: "/api/projects/{id}",
1363
+ url: "/api/projects/{project_id}/issues/{issue_id}",
1330
1364
  ...options
1331
1365
  });
1332
1366
  }
1333
1367
  /**
1334
- * Get a project by ID
1368
+ * Gets a single issue by ID
1335
1369
  */
1336
1370
  get(options) {
1337
1371
  return (options.client ?? this.client).get({
1338
- requestValidator: async (data) => await zod.object({
1339
- body: zod.never().optional(),
1340
- path: require_zod_gen.zProjectsGetPath,
1341
- query: zod.never().optional()
1372
+ requestValidator: async (data) => await zod_mini.object({
1373
+ body: zod_mini.optional(zod_mini.never()),
1374
+ path: require_zod_gen.zIssuesGetPath,
1375
+ query: zod_mini.optional(zod_mini.never())
1342
1376
  }).parseAsync(data),
1343
- responseValidator: async (data) => await require_zod_gen.zProjectsGetResponse.parseAsync(data),
1377
+ responseValidator: async (data) => await require_zod_gen.zIssuesGetResponse.parseAsync(data),
1344
1378
  security: [{
1345
1379
  scheme: "bearer",
1346
1380
  type: "http"
1347
1381
  }],
1348
- url: "/api/projects/{id}",
1382
+ url: "/api/projects/{project_id}/issues/{issue_id}",
1349
1383
  ...options
1350
1384
  });
1351
1385
  }
1352
1386
  /**
1353
- * Update a project
1387
+ * Updates issue state (resolve, mute, etc.)
1354
1388
  */
1355
1389
  update(options) {
1356
1390
  return (options.client ?? this.client).patch({
1357
- requestValidator: async (data) => await zod.object({
1358
- body: require_zod_gen.zProjectsUpdateBody,
1359
- path: require_zod_gen.zProjectsUpdatePath,
1360
- query: zod.never().optional()
1391
+ requestValidator: async (data) => await zod_mini.object({
1392
+ body: require_zod_gen.zIssuesUpdateBody,
1393
+ path: require_zod_gen.zIssuesUpdatePath,
1394
+ query: zod_mini.optional(zod_mini.never())
1361
1395
  }).parseAsync(data),
1362
- responseValidator: async (data) => await require_zod_gen.zProjectsUpdateResponse.parseAsync(data),
1396
+ responseValidator: async (data) => await require_zod_gen.zIssuesUpdateResponse.parseAsync(data),
1363
1397
  security: [{
1364
1398
  scheme: "bearer",
1365
1399
  type: "http"
1366
1400
  }],
1367
- url: "/api/projects/{id}",
1401
+ url: "/api/projects/{project_id}/issues/{issue_id}",
1368
1402
  ...options,
1369
1403
  headers: {
1370
1404
  "Content-Type": "application/json",
@@ -1373,332 +1407,339 @@ var Projects = class extends HeyApiClient {
1373
1407
  });
1374
1408
  }
1375
1409
  /**
1376
- * What a project without limits of its own follows
1410
+ * Chronological activity log (incl. comments).
1377
1411
  */
1378
- getRateLimits(options) {
1379
- return (options?.client ?? this.client).get({
1380
- requestValidator: async (data) => await zod.object({
1381
- body: zod.never().optional(),
1382
- path: zod.never().optional(),
1383
- query: zod.never().optional()
1412
+ getActivity(options) {
1413
+ return (options.client ?? this.client).get({
1414
+ requestValidator: async (data) => await zod_mini.object({
1415
+ body: zod_mini.optional(zod_mini.never()),
1416
+ path: require_zod_gen.zIssuesGetActivityPath,
1417
+ query: zod_mini.optional(zod_mini.never())
1384
1418
  }).parseAsync(data),
1385
- responseValidator: async (data) => await require_zod_gen.zProjectsGetRateLimitsResponse.parseAsync(data),
1419
+ responseValidator: async (data) => await require_zod_gen.zIssuesGetActivityResponse.parseAsync(data),
1386
1420
  security: [{
1387
1421
  scheme: "bearer",
1388
1422
  type: "http"
1389
1423
  }],
1390
- url: "/api/rate-limits",
1424
+ url: "/api/projects/{project_id}/issues/{issue_id}/activity",
1391
1425
  ...options
1392
1426
  });
1393
1427
  }
1394
- };
1395
- var Agents = class extends HeyApiClient {
1396
1428
  /**
1397
- * Lists conversations -- traces sharing a `gen_ai.conversation.id` -- the most recently active first.
1429
+ * Returns the unique user count and top tags for the issue.
1398
1430
  */
1399
- conversations(options) {
1431
+ getAggregates(options) {
1400
1432
  return (options.client ?? this.client).get({
1401
- requestValidator: async (data) => await zod.object({
1402
- body: zod.never().optional(),
1403
- path: require_zod_gen.zAgentsConversationsPath,
1404
- query: require_zod_gen.zAgentsConversationsQuery.optional()
1433
+ requestValidator: async (data) => await zod_mini.object({
1434
+ body: zod_mini.optional(zod_mini.never()),
1435
+ path: require_zod_gen.zIssuesGetAggregatesPath,
1436
+ query: zod_mini.optional(zod_mini.never())
1405
1437
  }).parseAsync(data),
1406
- responseValidator: async (data) => await require_zod_gen.zAgentsConversationsResponse.parseAsync(data),
1438
+ responseValidator: async (data) => await require_zod_gen.zIssuesGetAggregatesResponse.parseAsync(data),
1407
1439
  security: [{
1408
1440
  scheme: "bearer",
1409
1441
  type: "http"
1410
1442
  }],
1411
- url: "/api/projects/{project_id}/agents/conversations",
1443
+ url: "/api/projects/{project_id}/issues/{issue_id}/aggregates",
1412
1444
  ...options
1413
1445
  });
1414
1446
  }
1415
1447
  /**
1416
- * Returns every AI span of a conversation's turns, oldest first, with its input and output.
1448
+ * Set/clear the per-user bookmark.
1417
1449
  */
1418
- conversation(options) {
1419
- return (options.client ?? this.client).get({
1420
- requestValidator: async (data) => await zod.object({
1421
- body: zod.never().optional(),
1422
- path: require_zod_gen.zAgentsConversationPath,
1423
- query: zod.never().optional()
1450
+ setBookmark(options) {
1451
+ return (options.client ?? this.client).put({
1452
+ requestValidator: async (data) => await zod_mini.object({
1453
+ body: require_zod_gen.zIssuesSetBookmarkBody,
1454
+ path: require_zod_gen.zIssuesSetBookmarkPath,
1455
+ query: zod_mini.optional(zod_mini.never())
1424
1456
  }).parseAsync(data),
1425
- responseValidator: async (data) => await require_zod_gen.zAgentsConversationResponse.parseAsync(data),
1457
+ responseValidator: async (data) => await require_zod_gen.zIssuesSetBookmarkResponse.parseAsync(data),
1426
1458
  security: [{
1427
1459
  scheme: "bearer",
1428
1460
  type: "http"
1429
1461
  }],
1430
- url: "/api/projects/{project_id}/agents/conversations/{conversation_id}",
1431
- ...options
1462
+ url: "/api/projects/{project_id}/issues/{issue_id}/bookmark",
1463
+ ...options,
1464
+ headers: {
1465
+ "Content-Type": "application/json",
1466
+ ...options.headers
1467
+ }
1432
1468
  });
1433
1469
  }
1434
1470
  /**
1435
- * Time-bucketed avg/p95 duration for `agent`/`ai_client` spans.
1471
+ * Add a note.
1436
1472
  */
1437
- duration(options) {
1438
- return (options.client ?? this.client).get({
1439
- requestValidator: async (data) => await zod.object({
1440
- body: zod.never().optional(),
1441
- path: require_zod_gen.zAgentsDurationPath,
1442
- query: require_zod_gen.zAgentsDurationQuery.optional()
1473
+ createComment(options) {
1474
+ return (options.client ?? this.client).post({
1475
+ requestValidator: async (data) => await zod_mini.object({
1476
+ body: require_zod_gen.zIssuesCreateCommentBody,
1477
+ path: require_zod_gen.zIssuesCreateCommentPath,
1478
+ query: zod_mini.optional(zod_mini.never())
1443
1479
  }).parseAsync(data),
1444
- responseValidator: async (data) => await require_zod_gen.zAgentsDurationResponse.parseAsync(data),
1480
+ responseValidator: async (data) => await require_zod_gen.zIssuesCreateCommentResponse.parseAsync(data),
1445
1481
  security: [{
1446
1482
  scheme: "bearer",
1447
1483
  type: "http"
1448
1484
  }],
1449
- url: "/api/projects/{project_id}/agents/duration",
1450
- ...options
1485
+ url: "/api/projects/{project_id}/issues/{issue_id}/comments",
1486
+ ...options,
1487
+ headers: {
1488
+ "Content-Type": "application/json",
1489
+ ...options.headers
1490
+ }
1451
1491
  });
1452
1492
  }
1453
1493
  /**
1454
- * The options the environment filter offers, read from the data rather than
1455
- * hardcoded — an installation may name its environments anything.
1494
+ * Lists the grouping hashes that map to an issue.
1456
1495
  */
1457
- environments(options) {
1496
+ getHashes(options) {
1458
1497
  return (options.client ?? this.client).get({
1459
- requestValidator: async (data) => await zod.object({
1460
- body: zod.never().optional(),
1461
- path: require_zod_gen.zAgentsEnvironmentsPath,
1462
- query: zod.never().optional()
1498
+ requestValidator: async (data) => await zod_mini.object({
1499
+ body: zod_mini.optional(zod_mini.never()),
1500
+ path: require_zod_gen.zIssuesGetHashesPath,
1501
+ query: zod_mini.optional(zod_mini.never())
1463
1502
  }).parseAsync(data),
1464
- responseValidator: async (data) => await require_zod_gen.zAgentsEnvironmentsResponse.parseAsync(data),
1503
+ responseValidator: async (data) => await require_zod_gen.zIssuesGetHashesResponse.parseAsync(data),
1465
1504
  security: [{
1466
1505
  scheme: "bearer",
1467
1506
  type: "http"
1468
1507
  }],
1469
- url: "/api/projects/{project_id}/agents/environments",
1508
+ url: "/api/projects/{project_id}/issues/{issue_id}/hashes",
1470
1509
  ...options
1471
1510
  });
1472
1511
  }
1473
1512
  /**
1474
- * Lists the AI models a project's agents called, with requests, tokens and latency.
1513
+ * Mark the issue as seen by the current user.
1475
1514
  */
1476
- modelsTable(options) {
1477
- return (options.client ?? this.client).get({
1478
- requestValidator: async (data) => await zod.object({
1479
- body: zod.never().optional(),
1480
- path: require_zod_gen.zAgentsModelsTablePath,
1481
- query: require_zod_gen.zAgentsModelsTableQuery.optional()
1515
+ markSeen(options) {
1516
+ return (options.client ?? this.client).post({
1517
+ requestValidator: async (data) => await zod_mini.object({
1518
+ body: zod_mini.optional(zod_mini.never()),
1519
+ path: require_zod_gen.zIssuesMarkSeenPath,
1520
+ query: zod_mini.optional(zod_mini.never())
1482
1521
  }).parseAsync(data),
1483
- responseValidator: async (data) => await require_zod_gen.zAgentsModelsTableResponse.parseAsync(data),
1522
+ responseValidator: async (data) => await require_zod_gen.zIssuesMarkSeenResponse.parseAsync(data),
1484
1523
  security: [{
1485
1524
  scheme: "bearer",
1486
1525
  type: "http"
1487
1526
  }],
1488
- url: "/api/projects/{project_id}/agents/models",
1527
+ url: "/api/projects/{project_id}/issues/{issue_id}/seen",
1489
1528
  ...options
1490
1529
  });
1491
1530
  }
1492
1531
  /**
1493
- * Top models by LLM call count (`gen_ai.operation.type:ai_client`).
1532
+ * Zero-filled event-count timeseries.
1494
1533
  */
1495
- modelsCalls(options) {
1534
+ getStats(options) {
1496
1535
  return (options.client ?? this.client).get({
1497
- requestValidator: async (data) => await zod.object({
1498
- body: zod.never().optional(),
1499
- path: require_zod_gen.zAgentsModelsCallsPath,
1500
- query: require_zod_gen.zAgentsModelsCallsQuery.optional()
1536
+ requestValidator: async (data) => await zod_mini.object({
1537
+ body: zod_mini.optional(zod_mini.never()),
1538
+ path: require_zod_gen.zIssuesGetStatsPath,
1539
+ query: zod_mini.optional(require_zod_gen.zIssuesGetStatsQuery)
1501
1540
  }).parseAsync(data),
1502
- responseValidator: async (data) => await require_zod_gen.zAgentsModelsCallsResponse.parseAsync(data),
1541
+ responseValidator: async (data) => await require_zod_gen.zIssuesGetStatsResponse.parseAsync(data),
1503
1542
  security: [{
1504
1543
  scheme: "bearer",
1505
1544
  type: "http"
1506
1545
  }],
1507
- url: "/api/projects/{project_id}/agents/models/calls",
1546
+ url: "/api/projects/{project_id}/issues/{issue_id}/stats",
1508
1547
  ...options
1509
1548
  });
1510
1549
  }
1511
1550
  /**
1512
- * Top models by total tokens used (`gen_ai.operation.type:ai_client`).
1551
+ * Set/clear the per-user subscription.
1513
1552
  */
1514
- modelsTokens(options) {
1515
- return (options.client ?? this.client).get({
1516
- requestValidator: async (data) => await zod.object({
1517
- body: zod.never().optional(),
1518
- path: require_zod_gen.zAgentsModelsTokensPath,
1519
- query: require_zod_gen.zAgentsModelsTokensQuery.optional()
1553
+ setSubscription(options) {
1554
+ return (options.client ?? this.client).put({
1555
+ requestValidator: async (data) => await zod_mini.object({
1556
+ body: require_zod_gen.zIssuesSetSubscriptionBody,
1557
+ path: require_zod_gen.zIssuesSetSubscriptionPath,
1558
+ query: zod_mini.optional(zod_mini.never())
1520
1559
  }).parseAsync(data),
1521
- responseValidator: async (data) => await require_zod_gen.zAgentsModelsTokensResponse.parseAsync(data),
1560
+ responseValidator: async (data) => await require_zod_gen.zIssuesSetSubscriptionResponse.parseAsync(data),
1522
1561
  security: [{
1523
1562
  scheme: "bearer",
1524
1563
  type: "http"
1525
1564
  }],
1526
- url: "/api/projects/{project_id}/agents/models/tokens",
1527
- ...options
1565
+ url: "/api/projects/{project_id}/issues/{issue_id}/subscription",
1566
+ ...options,
1567
+ headers: {
1568
+ "Content-Type": "application/json",
1569
+ ...options.headers
1570
+ }
1528
1571
  });
1529
1572
  }
1530
1573
  /**
1531
- * Time-bucketed count of agent-run spans (`gen_ai.operation.type:agent`).
1574
+ * Lists the distinct values (with counts) for a tag key across the issue.
1532
1575
  */
1533
- runs(options) {
1576
+ getTagValues(options) {
1534
1577
  return (options.client ?? this.client).get({
1535
- requestValidator: async (data) => await zod.object({
1536
- body: zod.never().optional(),
1537
- path: require_zod_gen.zAgentsRunsPath,
1538
- query: require_zod_gen.zAgentsRunsQuery.optional()
1578
+ requestValidator: async (data) => await zod_mini.object({
1579
+ body: zod_mini.optional(zod_mini.never()),
1580
+ path: require_zod_gen.zIssuesGetTagValuesPath,
1581
+ query: zod_mini.optional(zod_mini.never())
1539
1582
  }).parseAsync(data),
1540
- responseValidator: async (data) => await require_zod_gen.zAgentsRunsResponse.parseAsync(data),
1583
+ responseValidator: async (data) => await require_zod_gen.zIssuesGetTagValuesResponse.parseAsync(data),
1541
1584
  security: [{
1542
1585
  scheme: "bearer",
1543
1586
  type: "http"
1544
1587
  }],
1545
- url: "/api/projects/{project_id}/agents/runs",
1588
+ url: "/api/projects/{project_id}/issues/{issue_id}/tags/{key}",
1546
1589
  ...options
1547
1590
  });
1548
1591
  }
1549
1592
  /**
1550
- * Agent runs, LLM calls, tool calls, errors, tokens and latency over the
1551
- * selected window — the numbers the six charts cannot state outright.
1593
+ * List user feedback for an issue.
1552
1594
  */
1553
- summary(options) {
1595
+ listUserReports(options) {
1554
1596
  return (options.client ?? this.client).get({
1555
- requestValidator: async (data) => await zod.object({
1556
- body: zod.never().optional(),
1557
- path: require_zod_gen.zAgentsSummaryPath,
1558
- query: require_zod_gen.zAgentsSummaryQuery.optional()
1597
+ requestValidator: async (data) => await zod_mini.object({
1598
+ body: zod_mini.optional(zod_mini.never()),
1599
+ path: require_zod_gen.zIssuesListUserReportsPath,
1600
+ query: zod_mini.optional(require_zod_gen.zIssuesListUserReportsQuery)
1559
1601
  }).parseAsync(data),
1560
- responseValidator: async (data) => await require_zod_gen.zAgentsSummaryResponse.parseAsync(data),
1602
+ responseValidator: async (data) => await require_zod_gen.zIssuesListUserReportsResponse.parseAsync(data),
1561
1603
  security: [{
1562
1604
  scheme: "bearer",
1563
1605
  type: "http"
1564
1606
  }],
1565
- url: "/api/projects/{project_id}/agents/summary",
1607
+ url: "/api/projects/{project_id}/issues/{issue_id}/user-reports",
1566
1608
  ...options
1567
1609
  });
1568
1610
  }
1569
1611
  /**
1570
- * Top tools by call count (`gen_ai.operation.type:tool`).
1612
+ * Attach user feedback to an issue.
1571
1613
  */
1572
- tools(options) {
1573
- return (options.client ?? this.client).get({
1574
- requestValidator: async (data) => await zod.object({
1575
- body: zod.never().optional(),
1576
- path: require_zod_gen.zAgentsToolsPath,
1577
- query: require_zod_gen.zAgentsToolsQuery.optional()
1614
+ createUserReport(options) {
1615
+ return (options.client ?? this.client).post({
1616
+ requestValidator: async (data) => await zod_mini.object({
1617
+ body: require_zod_gen.zIssuesCreateUserReportBody,
1618
+ path: require_zod_gen.zIssuesCreateUserReportPath,
1619
+ query: zod_mini.optional(zod_mini.never())
1578
1620
  }).parseAsync(data),
1579
- responseValidator: async (data) => await require_zod_gen.zAgentsToolsResponse.parseAsync(data),
1621
+ responseValidator: async (data) => await require_zod_gen.zIssuesCreateUserReportResponse.parseAsync(data),
1580
1622
  security: [{
1581
1623
  scheme: "bearer",
1582
1624
  type: "http"
1583
1625
  }],
1584
- url: "/api/projects/{project_id}/agents/tools",
1585
- ...options
1626
+ url: "/api/projects/{project_id}/issues/{issue_id}/user-reports",
1627
+ ...options,
1628
+ headers: {
1629
+ "Content-Type": "application/json",
1630
+ ...options.headers
1631
+ }
1586
1632
  });
1587
1633
  }
1634
+ };
1635
+ var Oauth = class extends HeyApiClient {
1588
1636
  /**
1589
- * Lists the tools a project's agents called, with calls, errors and latency.
1637
+ * Verifies an authorization request and says who is asking.
1590
1638
  */
1591
- toolsTable(options) {
1639
+ getAuthorization(options) {
1592
1640
  return (options.client ?? this.client).get({
1593
- requestValidator: async (data) => await zod.object({
1594
- body: zod.never().optional(),
1595
- path: require_zod_gen.zAgentsToolsTablePath,
1596
- query: require_zod_gen.zAgentsToolsTableQuery.optional()
1641
+ requestValidator: async (data) => await zod_mini.object({
1642
+ body: zod_mini.optional(zod_mini.never()),
1643
+ path: zod_mini.optional(zod_mini.never()),
1644
+ query: require_zod_gen.zOauthGetAuthorizationQuery
1597
1645
  }).parseAsync(data),
1598
- responseValidator: async (data) => await require_zod_gen.zAgentsToolsTableResponse.parseAsync(data),
1599
- security: [{
1600
- scheme: "bearer",
1601
- type: "http"
1602
- }],
1603
- url: "/api/projects/{project_id}/agents/tools/stats",
1646
+ responseValidator: async (data) => await require_zod_gen.zOauthGetAuthorizationResponse.parseAsync(data),
1647
+ url: "/api/oauth/authorize",
1604
1648
  ...options
1605
1649
  });
1606
1650
  }
1607
1651
  /**
1608
- * Paginated per-trace_id aggregate (duration, tokens, tool usage) across
1609
- * all AI spans sharing that trace, regardless of origin.
1652
+ * Approves or denies an authorization request as the signed-in user.
1610
1653
  */
1611
- traces(options) {
1612
- return (options.client ?? this.client).get({
1613
- requestValidator: async (data) => await zod.object({
1614
- body: zod.never().optional(),
1615
- path: require_zod_gen.zAgentsTracesPath,
1616
- query: require_zod_gen.zAgentsTracesQuery.optional()
1654
+ decideAuthorization(options) {
1655
+ return (options.client ?? this.client).post({
1656
+ requestValidator: async (data) => await zod_mini.object({
1657
+ body: require_zod_gen.zOauthDecideAuthorizationBody,
1658
+ path: zod_mini.optional(zod_mini.never()),
1659
+ query: zod_mini.optional(zod_mini.never())
1617
1660
  }).parseAsync(data),
1618
- responseValidator: async (data) => await require_zod_gen.zAgentsTracesResponse.parseAsync(data),
1619
- security: [{
1620
- scheme: "bearer",
1621
- type: "http"
1622
- }],
1623
- url: "/api/projects/{project_id}/agents/traces",
1624
- ...options
1661
+ responseValidator: async (data) => await require_zod_gen.zOauthDecideAuthorizationResponse.parseAsync(data),
1662
+ url: "/api/oauth/authorize",
1663
+ ...options,
1664
+ headers: {
1665
+ "Content-Type": "application/json",
1666
+ ...options.headers
1667
+ }
1625
1668
  });
1626
1669
  }
1627
- };
1628
- var AlertRules = class extends HeyApiClient {
1629
1670
  /**
1630
- * Lists the alerts a project sent, newest first.
1671
+ * Lists the assistants connected to the signed-in user's account.
1631
1672
  */
1632
- listHistory(options) {
1633
- return (options.client ?? this.client).get({
1634
- requestValidator: async (data) => await zod.object({
1635
- body: zod.never().optional(),
1636
- path: require_zod_gen.zAlertRulesListHistoryPath,
1637
- query: require_zod_gen.zAlertRulesListHistoryQuery.optional()
1673
+ listGrants(options) {
1674
+ return (options?.client ?? this.client).get({
1675
+ requestValidator: async (data) => await zod_mini.object({
1676
+ body: zod_mini.optional(zod_mini.never()),
1677
+ path: zod_mini.optional(zod_mini.never()),
1678
+ query: zod_mini.optional(zod_mini.never())
1638
1679
  }).parseAsync(data),
1639
- responseValidator: async (data) => await require_zod_gen.zAlertRulesListHistoryResponse.parseAsync(data),
1640
- security: [{
1641
- scheme: "bearer",
1642
- type: "http"
1643
- }],
1644
- url: "/api/projects/{project_id}/alert-history",
1680
+ responseValidator: async (data) => await require_zod_gen.zOauthListGrantsResponse.parseAsync(data),
1681
+ url: "/api/oauth/grants",
1645
1682
  ...options
1646
1683
  });
1647
1684
  }
1648
1685
  /**
1649
- * Count a project's alert deliveries per day, by outcome.
1686
+ * Disconnects an assistant: its tokens stop working at once.
1650
1687
  */
1651
- historyByDay(options) {
1652
- return (options.client ?? this.client).get({
1653
- requestValidator: async (data) => await zod.object({
1654
- body: zod.never().optional(),
1655
- path: require_zod_gen.zAlertRulesHistoryByDayPath,
1656
- query: require_zod_gen.zAlertRulesHistoryByDayQuery.optional()
1688
+ revokeGrant(options) {
1689
+ return (options.client ?? this.client).delete({
1690
+ requestValidator: async (data) => await zod_mini.object({
1691
+ body: zod_mini.optional(zod_mini.never()),
1692
+ path: require_zod_gen.zOauthRevokeGrantPath,
1693
+ query: zod_mini.optional(zod_mini.never())
1657
1694
  }).parseAsync(data),
1658
- responseValidator: async (data) => await require_zod_gen.zAlertRulesHistoryByDayResponse.parseAsync(data),
1659
- security: [{
1660
- scheme: "bearer",
1661
- type: "http"
1662
- }],
1663
- url: "/api/projects/{project_id}/alert-history/daily",
1695
+ responseValidator: async (data) => await require_zod_gen.zOauthRevokeGrantResponse.parseAsync(data),
1696
+ url: "/api/oauth/grants/{id}",
1664
1697
  ...options
1665
1698
  });
1666
1699
  }
1700
+ };
1701
+ var Projects = class extends HeyApiClient {
1667
1702
  /**
1668
- * Lists a project's alert rules.
1703
+ * List projects with pagination.
1704
+ *
1705
+ * Only the projects the caller holds a permission on.
1669
1706
  */
1670
1707
  list(options) {
1671
- return (options.client ?? this.client).get({
1672
- requestValidator: async (data) => await zod.object({
1673
- body: zod.never().optional(),
1674
- path: require_zod_gen.zAlertRulesListPath,
1675
- query: zod.never().optional()
1708
+ return (options?.client ?? this.client).get({
1709
+ requestValidator: async (data) => await zod_mini.object({
1710
+ body: zod_mini.optional(zod_mini.never()),
1711
+ path: zod_mini.optional(zod_mini.never()),
1712
+ query: zod_mini.optional(require_zod_gen.zProjectsListQuery)
1676
1713
  }).parseAsync(data),
1677
- responseValidator: async (data) => await require_zod_gen.zAlertRulesListResponse.parseAsync(data),
1714
+ responseValidator: async (data) => await require_zod_gen.zProjectsListResponse.parseAsync(data),
1678
1715
  security: [{
1679
1716
  scheme: "bearer",
1680
1717
  type: "http"
1681
1718
  }],
1682
- url: "/api/projects/{project_id}/alert-rules",
1719
+ url: "/api/projects",
1683
1720
  ...options
1684
1721
  });
1685
1722
  }
1686
1723
  /**
1687
- * Creates an alert rule in a project.
1724
+ * Create a new project
1725
+ *
1726
+ * Needs `projects:create` and a permission on at least one project, because
1727
+ * the creator's own roles extend to the new one. A token limited to chosen
1728
+ * projects can create one, but its list does not grow to reach it.
1688
1729
  */
1689
1730
  create(options) {
1690
1731
  return (options.client ?? this.client).post({
1691
- requestValidator: async (data) => await zod.object({
1692
- body: require_zod_gen.zAlertRulesCreateBody,
1693
- path: require_zod_gen.zAlertRulesCreatePath,
1694
- query: zod.never().optional()
1732
+ requestValidator: async (data) => await zod_mini.object({
1733
+ body: require_zod_gen.zProjectsCreateBody,
1734
+ path: zod_mini.optional(zod_mini.never()),
1735
+ query: zod_mini.optional(zod_mini.never())
1695
1736
  }).parseAsync(data),
1696
- responseValidator: async (data) => await require_zod_gen.zAlertRulesCreateResponse.parseAsync(data),
1737
+ responseValidator: async (data) => await require_zod_gen.zProjectsCreateResponse.parseAsync(data),
1697
1738
  security: [{
1698
1739
  scheme: "bearer",
1699
1740
  type: "http"
1700
1741
  }],
1701
- url: "/api/projects/{project_id}/alert-rules",
1742
+ url: "/api/projects",
1702
1743
  ...options,
1703
1744
  headers: {
1704
1745
  "Content-Type": "application/json",
@@ -1707,59 +1748,59 @@ var AlertRules = class extends HeyApiClient {
1707
1748
  });
1708
1749
  }
1709
1750
  /**
1710
- * Deletes an alert rule.
1751
+ * Delete a project
1711
1752
  */
1712
1753
  delete(options) {
1713
1754
  return (options.client ?? this.client).delete({
1714
- requestValidator: async (data) => await zod.object({
1715
- body: zod.never().optional(),
1716
- path: require_zod_gen.zAlertRulesDeletePath,
1717
- query: zod.never().optional()
1755
+ requestValidator: async (data) => await zod_mini.object({
1756
+ body: zod_mini.optional(zod_mini.never()),
1757
+ path: require_zod_gen.zProjectsDeletePath,
1758
+ query: zod_mini.optional(zod_mini.never())
1718
1759
  }).parseAsync(data),
1719
- responseValidator: async (data) => await require_zod_gen.zAlertRulesDeleteResponse.parseAsync(data),
1760
+ responseValidator: async (data) => await require_zod_gen.zProjectsDeleteResponse.parseAsync(data),
1720
1761
  security: [{
1721
1762
  scheme: "bearer",
1722
1763
  type: "http"
1723
1764
  }],
1724
- url: "/api/projects/{project_id}/alert-rules/{rule_id}",
1765
+ url: "/api/projects/{id}",
1725
1766
  ...options
1726
1767
  });
1727
1768
  }
1728
1769
  /**
1729
- * Gets one alert rule.
1770
+ * Get a project by ID
1730
1771
  */
1731
1772
  get(options) {
1732
1773
  return (options.client ?? this.client).get({
1733
- requestValidator: async (data) => await zod.object({
1734
- body: zod.never().optional(),
1735
- path: require_zod_gen.zAlertRulesGetPath,
1736
- query: zod.never().optional()
1774
+ requestValidator: async (data) => await zod_mini.object({
1775
+ body: zod_mini.optional(zod_mini.never()),
1776
+ path: require_zod_gen.zProjectsGetPath,
1777
+ query: zod_mini.optional(zod_mini.never())
1737
1778
  }).parseAsync(data),
1738
- responseValidator: async (data) => await require_zod_gen.zAlertRulesGetResponse.parseAsync(data),
1779
+ responseValidator: async (data) => await require_zod_gen.zProjectsGetResponse.parseAsync(data),
1739
1780
  security: [{
1740
1781
  scheme: "bearer",
1741
1782
  type: "http"
1742
1783
  }],
1743
- url: "/api/projects/{project_id}/alert-rules/{rule_id}",
1784
+ url: "/api/projects/{id}",
1744
1785
  ...options
1745
1786
  });
1746
1787
  }
1747
1788
  /**
1748
- * Updates an alert rule.
1789
+ * Update a project
1749
1790
  */
1750
1791
  update(options) {
1751
1792
  return (options.client ?? this.client).patch({
1752
- requestValidator: async (data) => await zod.object({
1753
- body: require_zod_gen.zAlertRulesUpdateBody,
1754
- path: require_zod_gen.zAlertRulesUpdatePath,
1755
- query: zod.never().optional()
1793
+ requestValidator: async (data) => await zod_mini.object({
1794
+ body: require_zod_gen.zProjectsUpdateBody,
1795
+ path: require_zod_gen.zProjectsUpdatePath,
1796
+ query: zod_mini.optional(zod_mini.never())
1756
1797
  }).parseAsync(data),
1757
- responseValidator: async (data) => await require_zod_gen.zAlertRulesUpdateResponse.parseAsync(data),
1798
+ responseValidator: async (data) => await require_zod_gen.zProjectsUpdateResponse.parseAsync(data),
1758
1799
  security: [{
1759
1800
  scheme: "bearer",
1760
1801
  type: "http"
1761
1802
  }],
1762
- url: "/api/projects/{project_id}/alert-rules/{rule_id}",
1803
+ url: "/api/projects/{id}",
1763
1804
  ...options,
1764
1805
  headers: {
1765
1806
  "Content-Type": "application/json",
@@ -1767,308 +1808,333 @@ var AlertRules = class extends HeyApiClient {
1767
1808
  }
1768
1809
  });
1769
1810
  }
1811
+ /**
1812
+ * What a project without limits of its own follows
1813
+ */
1814
+ getRateLimits(options) {
1815
+ return (options?.client ?? this.client).get({
1816
+ requestValidator: async (data) => await zod_mini.object({
1817
+ body: zod_mini.optional(zod_mini.never()),
1818
+ path: zod_mini.optional(zod_mini.never()),
1819
+ query: zod_mini.optional(zod_mini.never())
1820
+ }).parseAsync(data),
1821
+ responseValidator: async (data) => await require_zod_gen.zProjectsGetRateLimitsResponse.parseAsync(data),
1822
+ security: [{
1823
+ scheme: "bearer",
1824
+ type: "http"
1825
+ }],
1826
+ url: "/api/rate-limits",
1827
+ ...options
1828
+ });
1829
+ }
1770
1830
  };
1771
- var Events = class extends HeyApiClient {
1831
+ var Agents = class extends HeyApiClient {
1772
1832
  /**
1773
- * Downloads an attachment. Only a real image is served inline; anything
1774
- * else, whatever type it claims, is a download that never runs.
1833
+ * Lists conversations -- traces sharing a `gen_ai.conversation.id` -- the most recently active first.
1775
1834
  */
1776
- downloadAttachment(options) {
1835
+ conversations(options) {
1777
1836
  return (options.client ?? this.client).get({
1778
- requestValidator: async (data) => await zod.object({
1779
- body: zod.never().optional(),
1780
- path: require_zod_gen.zEventsDownloadAttachmentPath,
1781
- query: zod.never().optional()
1837
+ requestValidator: async (data) => await zod_mini.object({
1838
+ body: zod_mini.optional(zod_mini.never()),
1839
+ path: require_zod_gen.zAgentsConversationsPath,
1840
+ query: zod_mini.optional(require_zod_gen.zAgentsConversationsQuery)
1782
1841
  }).parseAsync(data),
1783
- responseValidator: async (data) => await require_zod_gen.zEventsDownloadAttachmentResponse.parseAsync(data),
1842
+ responseValidator: async (data) => await require_zod_gen.zAgentsConversationsResponse.parseAsync(data),
1784
1843
  security: [{
1785
1844
  scheme: "bearer",
1786
1845
  type: "http"
1787
1846
  }],
1788
- url: "/api/projects/{project_id}/attachments/{attachment_id}",
1847
+ url: "/api/projects/{project_id}/agents/conversations",
1789
1848
  ...options
1790
1849
  });
1791
1850
  }
1792
1851
  /**
1793
- * Resolve the ID returned by a Sentry SDK without already knowing the issue.
1852
+ * Returns every AI span of a conversation's turns, oldest first, with its input and output.
1794
1853
  */
1795
- getBySentryId(options) {
1854
+ conversation(options) {
1796
1855
  return (options.client ?? this.client).get({
1797
- requestValidator: async (data) => await zod.object({
1798
- body: zod.never().optional(),
1799
- path: require_zod_gen.zEventsGetBySentryIdPath,
1800
- query: zod.never().optional()
1856
+ requestValidator: async (data) => await zod_mini.object({
1857
+ body: zod_mini.optional(zod_mini.never()),
1858
+ path: require_zod_gen.zAgentsConversationPath,
1859
+ query: zod_mini.optional(zod_mini.never())
1801
1860
  }).parseAsync(data),
1802
- responseValidator: async (data) => await require_zod_gen.zEventsGetBySentryIdResponse.parseAsync(data),
1861
+ responseValidator: async (data) => await require_zod_gen.zAgentsConversationResponse.parseAsync(data),
1803
1862
  security: [{
1804
1863
  scheme: "bearer",
1805
1864
  type: "http"
1806
1865
  }],
1807
- url: "/api/projects/{project_id}/events/sentry/{event_id}",
1866
+ url: "/api/projects/{project_id}/agents/conversations/{conversation_id}",
1808
1867
  ...options
1809
1868
  });
1810
1869
  }
1811
1870
  /**
1812
- * Lists events for an issue with cursor-based pagination
1871
+ * Time-bucketed avg/p95 duration for `agent`/`ai_client` spans.
1813
1872
  */
1814
- list(options) {
1873
+ duration(options) {
1815
1874
  return (options.client ?? this.client).get({
1816
- requestValidator: async (data) => await zod.object({
1817
- body: zod.never().optional(),
1818
- path: require_zod_gen.zEventsListPath,
1819
- query: require_zod_gen.zEventsListQuery.optional()
1875
+ requestValidator: async (data) => await zod_mini.object({
1876
+ body: zod_mini.optional(zod_mini.never()),
1877
+ path: require_zod_gen.zAgentsDurationPath,
1878
+ query: zod_mini.optional(require_zod_gen.zAgentsDurationQuery)
1820
1879
  }).parseAsync(data),
1821
- responseValidator: async (data) => await require_zod_gen.zEventsListResponse.parseAsync(data),
1880
+ responseValidator: async (data) => await require_zod_gen.zAgentsDurationResponse.parseAsync(data),
1822
1881
  security: [{
1823
1882
  scheme: "bearer",
1824
1883
  type: "http"
1825
1884
  }],
1826
- url: "/api/projects/{project_id}/issues/{issue_id}/events",
1885
+ url: "/api/projects/{project_id}/agents/duration",
1827
1886
  ...options
1828
1887
  });
1829
1888
  }
1830
1889
  /**
1831
- * Gets a single event with full data
1890
+ * The options the environment filter offers, read from the data rather than
1891
+ * hardcoded — an installation may name its environments anything.
1832
1892
  */
1833
- get(options) {
1893
+ environments(options) {
1834
1894
  return (options.client ?? this.client).get({
1835
- requestValidator: async (data) => await zod.object({
1836
- body: zod.never().optional(),
1837
- path: require_zod_gen.zEventsGetPath,
1838
- query: zod.never().optional()
1895
+ requestValidator: async (data) => await zod_mini.object({
1896
+ body: zod_mini.optional(zod_mini.never()),
1897
+ path: require_zod_gen.zAgentsEnvironmentsPath,
1898
+ query: zod_mini.optional(zod_mini.never())
1839
1899
  }).parseAsync(data),
1840
- responseValidator: async (data) => await require_zod_gen.zEventsGetResponse.parseAsync(data),
1900
+ responseValidator: async (data) => await require_zod_gen.zAgentsEnvironmentsResponse.parseAsync(data),
1841
1901
  security: [{
1842
1902
  scheme: "bearer",
1843
1903
  type: "http"
1844
1904
  }],
1845
- url: "/api/projects/{project_id}/issues/{issue_id}/events/{event_id}",
1905
+ url: "/api/projects/{project_id}/agents/environments",
1846
1906
  ...options
1847
1907
  });
1848
1908
  }
1849
1909
  /**
1850
- * Lists the files sent with an event, such as a feedback's screenshot.
1910
+ * Lists the AI models a project's agents called, with requests, tokens and latency.
1851
1911
  */
1852
- listAttachments(options) {
1912
+ modelsTable(options) {
1853
1913
  return (options.client ?? this.client).get({
1854
- requestValidator: async (data) => await zod.object({
1855
- body: zod.never().optional(),
1856
- path: require_zod_gen.zEventsListAttachmentsPath,
1857
- query: zod.never().optional()
1914
+ requestValidator: async (data) => await zod_mini.object({
1915
+ body: zod_mini.optional(zod_mini.never()),
1916
+ path: require_zod_gen.zAgentsModelsTablePath,
1917
+ query: zod_mini.optional(require_zod_gen.zAgentsModelsTableQuery)
1858
1918
  }).parseAsync(data),
1859
- responseValidator: async (data) => await require_zod_gen.zEventsListAttachmentsResponse.parseAsync(data),
1919
+ responseValidator: async (data) => await require_zod_gen.zAgentsModelsTableResponse.parseAsync(data),
1860
1920
  security: [{
1861
1921
  scheme: "bearer",
1862
1922
  type: "http"
1863
1923
  }],
1864
- url: "/api/projects/{project_id}/issues/{issue_id}/events/{event_id}/attachments",
1924
+ url: "/api/projects/{project_id}/agents/models",
1865
1925
  ...options
1866
1926
  });
1867
1927
  }
1868
- };
1869
- var Environments = class extends HeyApiClient {
1870
1928
  /**
1871
- * Lists the environments a project's issues have been seen in, by name.
1929
+ * Top models by LLM call count (`gen_ai.operation.type:ai_client`).
1872
1930
  */
1873
- list(options) {
1931
+ modelsCalls(options) {
1874
1932
  return (options.client ?? this.client).get({
1875
- requestValidator: async (data) => await zod.object({
1876
- body: zod.never().optional(),
1877
- path: require_zod_gen.zEnvironmentsListPath,
1878
- query: zod.never().optional()
1933
+ requestValidator: async (data) => await zod_mini.object({
1934
+ body: zod_mini.optional(zod_mini.never()),
1935
+ path: require_zod_gen.zAgentsModelsCallsPath,
1936
+ query: zod_mini.optional(require_zod_gen.zAgentsModelsCallsQuery)
1879
1937
  }).parseAsync(data),
1880
- responseValidator: async (data) => await require_zod_gen.zEnvironmentsListResponse.parseAsync(data),
1938
+ responseValidator: async (data) => await require_zod_gen.zAgentsModelsCallsResponse.parseAsync(data),
1881
1939
  security: [{
1882
1940
  scheme: "bearer",
1883
1941
  type: "http"
1884
1942
  }],
1885
- url: "/api/projects/{project_id}/environments",
1943
+ url: "/api/projects/{project_id}/agents/models/calls",
1886
1944
  ...options
1887
1945
  });
1888
1946
  }
1889
- };
1890
- var Stats = class extends HeyApiClient {
1891
1947
  /**
1892
- * Counts a project's events over time, bucketed for a chart.
1948
+ * Top models by total tokens used (`gen_ai.operation.type:ai_client`).
1893
1949
  */
1894
- getEventTimeseries(options) {
1950
+ modelsTokens(options) {
1895
1951
  return (options.client ?? this.client).get({
1896
- requestValidator: async (data) => await zod.object({
1897
- body: zod.never().optional(),
1898
- path: require_zod_gen.zStatsGetEventTimeseriesPath,
1899
- query: require_zod_gen.zStatsGetEventTimeseriesQuery.optional()
1952
+ requestValidator: async (data) => await zod_mini.object({
1953
+ body: zod_mini.optional(zod_mini.never()),
1954
+ path: require_zod_gen.zAgentsModelsTokensPath,
1955
+ query: zod_mini.optional(require_zod_gen.zAgentsModelsTokensQuery)
1900
1956
  }).parseAsync(data),
1901
- responseValidator: async (data) => await require_zod_gen.zStatsGetEventTimeseriesResponse.parseAsync(data),
1957
+ responseValidator: async (data) => await require_zod_gen.zAgentsModelsTokensResponse.parseAsync(data),
1902
1958
  security: [{
1903
1959
  scheme: "bearer",
1904
1960
  type: "http"
1905
1961
  }],
1906
- url: "/api/projects/{project_id}/events/stats",
1962
+ url: "/api/projects/{project_id}/agents/models/tokens",
1907
1963
  ...options
1908
1964
  });
1909
1965
  }
1910
1966
  /**
1911
- * Headline figures for a project's overview: events, new and open issues.
1967
+ * Time-bucketed count of agent-run spans (`gen_ai.operation.type:agent`).
1912
1968
  */
1913
- getSummary(options) {
1969
+ runs(options) {
1914
1970
  return (options.client ?? this.client).get({
1915
- requestValidator: async (data) => await zod.object({
1916
- body: zod.never().optional(),
1917
- path: require_zod_gen.zStatsGetSummaryPath,
1918
- query: require_zod_gen.zStatsGetSummaryQuery.optional()
1971
+ requestValidator: async (data) => await zod_mini.object({
1972
+ body: zod_mini.optional(zod_mini.never()),
1973
+ path: require_zod_gen.zAgentsRunsPath,
1974
+ query: zod_mini.optional(require_zod_gen.zAgentsRunsQuery)
1919
1975
  }).parseAsync(data),
1920
- responseValidator: async (data) => await require_zod_gen.zStatsGetSummaryResponse.parseAsync(data),
1976
+ responseValidator: async (data) => await require_zod_gen.zAgentsRunsResponse.parseAsync(data),
1921
1977
  security: [{
1922
1978
  scheme: "bearer",
1923
1979
  type: "http"
1924
1980
  }],
1925
- url: "/api/projects/{project_id}/stats/summary",
1981
+ url: "/api/projects/{project_id}/agents/runs",
1926
1982
  ...options
1927
1983
  });
1928
1984
  }
1929
- };
1930
- var Feedback = class extends HeyApiClient {
1931
1985
  /**
1932
- * Lists user feedback with what each user submitted. Every feedback is an
1933
- * issue of category `feedback`; spam is a muted one.
1986
+ * Agent runs, LLM calls, tool calls, errors, tokens and latency over the
1987
+ * selected window — the numbers the six charts cannot state outright.
1934
1988
  */
1935
- list(options) {
1989
+ summary(options) {
1936
1990
  return (options.client ?? this.client).get({
1937
- requestValidator: async (data) => await zod.object({
1938
- body: zod.never().optional(),
1939
- path: require_zod_gen.zFeedbackListPath,
1940
- query: require_zod_gen.zFeedbackListQuery.optional()
1991
+ requestValidator: async (data) => await zod_mini.object({
1992
+ body: zod_mini.optional(zod_mini.never()),
1993
+ path: require_zod_gen.zAgentsSummaryPath,
1994
+ query: zod_mini.optional(require_zod_gen.zAgentsSummaryQuery)
1941
1995
  }).parseAsync(data),
1942
- responseValidator: async (data) => await require_zod_gen.zFeedbackListResponse.parseAsync(data),
1996
+ responseValidator: async (data) => await require_zod_gen.zAgentsSummaryResponse.parseAsync(data),
1943
1997
  security: [{
1944
1998
  scheme: "bearer",
1945
1999
  type: "http"
1946
2000
  }],
1947
- url: "/api/projects/{project_id}/feedback",
2001
+ url: "/api/projects/{project_id}/agents/summary",
1948
2002
  ...options
1949
2003
  });
1950
2004
  }
1951
- };
1952
- var Issues = class extends HeyApiClient {
1953
2005
  /**
1954
- * Deletes many issues at once, selected by id or by filter.
2006
+ * Top tools by call count (`gen_ai.operation.type:tool`).
1955
2007
  */
1956
- bulkDelete(options) {
1957
- return (options.client ?? this.client).delete({
1958
- requestValidator: async (data) => await zod.object({
1959
- body: require_zod_gen.zIssuesBulkDeleteBody,
1960
- path: require_zod_gen.zIssuesBulkDeletePath,
1961
- query: zod.never().optional()
2008
+ tools(options) {
2009
+ return (options.client ?? this.client).get({
2010
+ requestValidator: async (data) => await zod_mini.object({
2011
+ body: zod_mini.optional(zod_mini.never()),
2012
+ path: require_zod_gen.zAgentsToolsPath,
2013
+ query: zod_mini.optional(require_zod_gen.zAgentsToolsQuery)
1962
2014
  }).parseAsync(data),
1963
- responseValidator: async (data) => await require_zod_gen.zIssuesBulkDeleteResponse.parseAsync(data),
2015
+ responseValidator: async (data) => await require_zod_gen.zAgentsToolsResponse.parseAsync(data),
1964
2016
  security: [{
1965
2017
  scheme: "bearer",
1966
2018
  type: "http"
1967
2019
  }],
1968
- url: "/api/projects/{project_id}/issues",
1969
- ...options,
1970
- headers: {
1971
- "Content-Type": "application/json",
1972
- ...options.headers
1973
- }
2020
+ url: "/api/projects/{project_id}/agents/tools",
2021
+ ...options
1974
2022
  });
1975
2023
  }
1976
2024
  /**
1977
- * Lists issues for a project with offset-based pagination
2025
+ * Lists the tools a project's agents called, with calls, errors and latency.
1978
2026
  */
1979
- list(options) {
2027
+ toolsTable(options) {
1980
2028
  return (options.client ?? this.client).get({
1981
- requestValidator: async (data) => await zod.object({
1982
- body: zod.never().optional(),
1983
- path: require_zod_gen.zIssuesListPath,
1984
- query: require_zod_gen.zIssuesListQuery.optional()
2029
+ requestValidator: async (data) => await zod_mini.object({
2030
+ body: zod_mini.optional(zod_mini.never()),
2031
+ path: require_zod_gen.zAgentsToolsTablePath,
2032
+ query: zod_mini.optional(require_zod_gen.zAgentsToolsTableQuery)
1985
2033
  }).parseAsync(data),
1986
- responseValidator: async (data) => await require_zod_gen.zIssuesListResponse.parseAsync(data),
2034
+ responseValidator: async (data) => await require_zod_gen.zAgentsToolsTableResponse.parseAsync(data),
1987
2035
  security: [{
1988
2036
  scheme: "bearer",
1989
2037
  type: "http"
1990
2038
  }],
1991
- url: "/api/projects/{project_id}/issues",
2039
+ url: "/api/projects/{project_id}/agents/tools/stats",
1992
2040
  ...options
1993
2041
  });
1994
2042
  }
1995
2043
  /**
1996
- * Sets the status or priority of many issues at once, by id.
2044
+ * Paginated per-trace_id aggregate (duration, tokens, tool usage) across
2045
+ * all AI spans sharing that trace, regardless of origin.
1997
2046
  */
1998
- bulkUpdate(options) {
1999
- return (options.client ?? this.client).put({
2000
- requestValidator: async (data) => await zod.object({
2001
- body: require_zod_gen.zIssuesBulkUpdateBody,
2002
- path: require_zod_gen.zIssuesBulkUpdatePath,
2003
- query: zod.never().optional()
2047
+ traces(options) {
2048
+ return (options.client ?? this.client).get({
2049
+ requestValidator: async (data) => await zod_mini.object({
2050
+ body: zod_mini.optional(zod_mini.never()),
2051
+ path: require_zod_gen.zAgentsTracesPath,
2052
+ query: zod_mini.optional(require_zod_gen.zAgentsTracesQuery)
2004
2053
  }).parseAsync(data),
2005
- responseValidator: async (data) => await require_zod_gen.zIssuesBulkUpdateResponse.parseAsync(data),
2054
+ responseValidator: async (data) => await require_zod_gen.zAgentsTracesResponse.parseAsync(data),
2006
2055
  security: [{
2007
2056
  scheme: "bearer",
2008
2057
  type: "http"
2009
2058
  }],
2010
- url: "/api/projects/{project_id}/issues",
2011
- ...options,
2012
- headers: {
2013
- "Content-Type": "application/json",
2014
- ...options.headers
2015
- }
2059
+ url: "/api/projects/{project_id}/agents/traces",
2060
+ ...options
2016
2061
  });
2017
2062
  }
2063
+ };
2064
+ var AlertRules = class extends HeyApiClient {
2018
2065
  /**
2019
- * Hard-deletes an issue and all associated events
2066
+ * Lists the alerts a project sent, newest first.
2020
2067
  */
2021
- delete(options) {
2022
- return (options.client ?? this.client).delete({
2023
- requestValidator: async (data) => await zod.object({
2024
- body: zod.never().optional(),
2025
- path: require_zod_gen.zIssuesDeletePath,
2026
- query: zod.never().optional()
2068
+ listHistory(options) {
2069
+ return (options.client ?? this.client).get({
2070
+ requestValidator: async (data) => await zod_mini.object({
2071
+ body: zod_mini.optional(zod_mini.never()),
2072
+ path: require_zod_gen.zAlertRulesListHistoryPath,
2073
+ query: zod_mini.optional(require_zod_gen.zAlertRulesListHistoryQuery)
2027
2074
  }).parseAsync(data),
2028
- responseValidator: async (data) => await require_zod_gen.zIssuesDeleteResponse.parseAsync(data),
2075
+ responseValidator: async (data) => await require_zod_gen.zAlertRulesListHistoryResponse.parseAsync(data),
2029
2076
  security: [{
2030
2077
  scheme: "bearer",
2031
2078
  type: "http"
2032
2079
  }],
2033
- url: "/api/projects/{project_id}/issues/{issue_id}",
2080
+ url: "/api/projects/{project_id}/alert-history",
2034
2081
  ...options
2035
2082
  });
2036
2083
  }
2037
2084
  /**
2038
- * Gets a single issue by ID
2085
+ * Count a project's alert deliveries per day, by outcome.
2039
2086
  */
2040
- get(options) {
2087
+ historyByDay(options) {
2041
2088
  return (options.client ?? this.client).get({
2042
- requestValidator: async (data) => await zod.object({
2043
- body: zod.never().optional(),
2044
- path: require_zod_gen.zIssuesGetPath,
2045
- query: zod.never().optional()
2089
+ requestValidator: async (data) => await zod_mini.object({
2090
+ body: zod_mini.optional(zod_mini.never()),
2091
+ path: require_zod_gen.zAlertRulesHistoryByDayPath,
2092
+ query: zod_mini.optional(require_zod_gen.zAlertRulesHistoryByDayQuery)
2046
2093
  }).parseAsync(data),
2047
- responseValidator: async (data) => await require_zod_gen.zIssuesGetResponse.parseAsync(data),
2094
+ responseValidator: async (data) => await require_zod_gen.zAlertRulesHistoryByDayResponse.parseAsync(data),
2048
2095
  security: [{
2049
2096
  scheme: "bearer",
2050
2097
  type: "http"
2051
2098
  }],
2052
- url: "/api/projects/{project_id}/issues/{issue_id}",
2099
+ url: "/api/projects/{project_id}/alert-history/daily",
2053
2100
  ...options
2054
2101
  });
2055
2102
  }
2056
2103
  /**
2057
- * Updates issue state (resolve, mute, etc.)
2104
+ * Lists a project's alert rules.
2058
2105
  */
2059
- update(options) {
2060
- return (options.client ?? this.client).patch({
2061
- requestValidator: async (data) => await zod.object({
2062
- body: require_zod_gen.zIssuesUpdateBody,
2063
- path: require_zod_gen.zIssuesUpdatePath,
2064
- query: zod.never().optional()
2106
+ list(options) {
2107
+ return (options.client ?? this.client).get({
2108
+ requestValidator: async (data) => await zod_mini.object({
2109
+ body: zod_mini.optional(zod_mini.never()),
2110
+ path: require_zod_gen.zAlertRulesListPath,
2111
+ query: zod_mini.optional(zod_mini.never())
2065
2112
  }).parseAsync(data),
2066
- responseValidator: async (data) => await require_zod_gen.zIssuesUpdateResponse.parseAsync(data),
2113
+ responseValidator: async (data) => await require_zod_gen.zAlertRulesListResponse.parseAsync(data),
2067
2114
  security: [{
2068
2115
  scheme: "bearer",
2069
2116
  type: "http"
2070
2117
  }],
2071
- url: "/api/projects/{project_id}/issues/{issue_id}",
2118
+ url: "/api/projects/{project_id}/alert-rules",
2119
+ ...options
2120
+ });
2121
+ }
2122
+ /**
2123
+ * Creates an alert rule in a project.
2124
+ */
2125
+ create(options) {
2126
+ return (options.client ?? this.client).post({
2127
+ requestValidator: async (data) => await zod_mini.object({
2128
+ body: require_zod_gen.zAlertRulesCreateBody,
2129
+ path: require_zod_gen.zAlertRulesCreatePath,
2130
+ query: zod_mini.optional(zod_mini.never())
2131
+ }).parseAsync(data),
2132
+ responseValidator: async (data) => await require_zod_gen.zAlertRulesCreateResponse.parseAsync(data),
2133
+ security: [{
2134
+ scheme: "bearer",
2135
+ type: "http"
2136
+ }],
2137
+ url: "/api/projects/{project_id}/alert-rules",
2072
2138
  ...options,
2073
2139
  headers: {
2074
2140
  "Content-Type": "application/json",
@@ -2077,59 +2143,59 @@ var Issues = class extends HeyApiClient {
2077
2143
  });
2078
2144
  }
2079
2145
  /**
2080
- * Chronological activity log (incl. comments).
2146
+ * Deletes an alert rule.
2081
2147
  */
2082
- getActivity(options) {
2083
- return (options.client ?? this.client).get({
2084
- requestValidator: async (data) => await zod.object({
2085
- body: zod.never().optional(),
2086
- path: require_zod_gen.zIssuesGetActivityPath,
2087
- query: zod.never().optional()
2148
+ delete(options) {
2149
+ return (options.client ?? this.client).delete({
2150
+ requestValidator: async (data) => await zod_mini.object({
2151
+ body: zod_mini.optional(zod_mini.never()),
2152
+ path: require_zod_gen.zAlertRulesDeletePath,
2153
+ query: zod_mini.optional(zod_mini.never())
2088
2154
  }).parseAsync(data),
2089
- responseValidator: async (data) => await require_zod_gen.zIssuesGetActivityResponse.parseAsync(data),
2155
+ responseValidator: async (data) => await require_zod_gen.zAlertRulesDeleteResponse.parseAsync(data),
2090
2156
  security: [{
2091
2157
  scheme: "bearer",
2092
2158
  type: "http"
2093
2159
  }],
2094
- url: "/api/projects/{project_id}/issues/{issue_id}/activity",
2160
+ url: "/api/projects/{project_id}/alert-rules/{rule_id}",
2095
2161
  ...options
2096
2162
  });
2097
2163
  }
2098
2164
  /**
2099
- * Returns the unique user count and top tags for the issue.
2165
+ * Gets one alert rule.
2100
2166
  */
2101
- getAggregates(options) {
2167
+ get(options) {
2102
2168
  return (options.client ?? this.client).get({
2103
- requestValidator: async (data) => await zod.object({
2104
- body: zod.never().optional(),
2105
- path: require_zod_gen.zIssuesGetAggregatesPath,
2106
- query: zod.never().optional()
2169
+ requestValidator: async (data) => await zod_mini.object({
2170
+ body: zod_mini.optional(zod_mini.never()),
2171
+ path: require_zod_gen.zAlertRulesGetPath,
2172
+ query: zod_mini.optional(zod_mini.never())
2107
2173
  }).parseAsync(data),
2108
- responseValidator: async (data) => await require_zod_gen.zIssuesGetAggregatesResponse.parseAsync(data),
2174
+ responseValidator: async (data) => await require_zod_gen.zAlertRulesGetResponse.parseAsync(data),
2109
2175
  security: [{
2110
2176
  scheme: "bearer",
2111
2177
  type: "http"
2112
2178
  }],
2113
- url: "/api/projects/{project_id}/issues/{issue_id}/aggregates",
2179
+ url: "/api/projects/{project_id}/alert-rules/{rule_id}",
2114
2180
  ...options
2115
2181
  });
2116
2182
  }
2117
2183
  /**
2118
- * Set/clear the per-user bookmark.
2184
+ * Updates an alert rule.
2119
2185
  */
2120
- setBookmark(options) {
2121
- return (options.client ?? this.client).put({
2122
- requestValidator: async (data) => await zod.object({
2123
- body: require_zod_gen.zIssuesSetBookmarkBody,
2124
- path: require_zod_gen.zIssuesSetBookmarkPath,
2125
- query: zod.never().optional()
2186
+ update(options) {
2187
+ return (options.client ?? this.client).patch({
2188
+ requestValidator: async (data) => await zod_mini.object({
2189
+ body: require_zod_gen.zAlertRulesUpdateBody,
2190
+ path: require_zod_gen.zAlertRulesUpdatePath,
2191
+ query: zod_mini.optional(zod_mini.never())
2126
2192
  }).parseAsync(data),
2127
- responseValidator: async (data) => await require_zod_gen.zIssuesSetBookmarkResponse.parseAsync(data),
2193
+ responseValidator: async (data) => await require_zod_gen.zAlertRulesUpdateResponse.parseAsync(data),
2128
2194
  security: [{
2129
2195
  scheme: "bearer",
2130
2196
  type: "http"
2131
2197
  }],
2132
- url: "/api/projects/{project_id}/issues/{issue_id}/bookmark",
2198
+ url: "/api/projects/{project_id}/alert-rules/{rule_id}",
2133
2199
  ...options,
2134
2200
  headers: {
2135
2201
  "Content-Type": "application/json",
@@ -2137,168 +2203,163 @@ var Issues = class extends HeyApiClient {
2137
2203
  }
2138
2204
  });
2139
2205
  }
2206
+ };
2207
+ var Events = class extends HeyApiClient {
2140
2208
  /**
2141
- * Add a note.
2209
+ * Downloads an attachment. Only a real image is served inline; anything
2210
+ * else, whatever type it claims, is a download that never runs.
2142
2211
  */
2143
- createComment(options) {
2144
- return (options.client ?? this.client).post({
2145
- requestValidator: async (data) => await zod.object({
2146
- body: require_zod_gen.zIssuesCreateCommentBody,
2147
- path: require_zod_gen.zIssuesCreateCommentPath,
2148
- query: zod.never().optional()
2212
+ downloadAttachment(options) {
2213
+ return (options.client ?? this.client).get({
2214
+ requestValidator: async (data) => await zod_mini.object({
2215
+ body: zod_mini.optional(zod_mini.never()),
2216
+ path: require_zod_gen.zEventsDownloadAttachmentPath,
2217
+ query: zod_mini.optional(zod_mini.never())
2149
2218
  }).parseAsync(data),
2150
- responseValidator: async (data) => await require_zod_gen.zIssuesCreateCommentResponse.parseAsync(data),
2219
+ responseValidator: async (data) => await require_zod_gen.zEventsDownloadAttachmentResponse.parseAsync(data),
2151
2220
  security: [{
2152
2221
  scheme: "bearer",
2153
2222
  type: "http"
2154
2223
  }],
2155
- url: "/api/projects/{project_id}/issues/{issue_id}/comments",
2156
- ...options,
2157
- headers: {
2158
- "Content-Type": "application/json",
2159
- ...options.headers
2160
- }
2224
+ url: "/api/projects/{project_id}/attachments/{attachment_id}",
2225
+ ...options
2161
2226
  });
2162
2227
  }
2163
2228
  /**
2164
- * Lists the grouping hashes that map to an issue.
2229
+ * Resolve the ID returned by a Sentry SDK without already knowing the issue.
2165
2230
  */
2166
- getHashes(options) {
2231
+ getBySentryId(options) {
2167
2232
  return (options.client ?? this.client).get({
2168
- requestValidator: async (data) => await zod.object({
2169
- body: zod.never().optional(),
2170
- path: require_zod_gen.zIssuesGetHashesPath,
2171
- query: zod.never().optional()
2233
+ requestValidator: async (data) => await zod_mini.object({
2234
+ body: zod_mini.optional(zod_mini.never()),
2235
+ path: require_zod_gen.zEventsGetBySentryIdPath,
2236
+ query: zod_mini.optional(zod_mini.never())
2172
2237
  }).parseAsync(data),
2173
- responseValidator: async (data) => await require_zod_gen.zIssuesGetHashesResponse.parseAsync(data),
2238
+ responseValidator: async (data) => await require_zod_gen.zEventsGetBySentryIdResponse.parseAsync(data),
2174
2239
  security: [{
2175
2240
  scheme: "bearer",
2176
2241
  type: "http"
2177
2242
  }],
2178
- url: "/api/projects/{project_id}/issues/{issue_id}/hashes",
2243
+ url: "/api/projects/{project_id}/events/sentry/{event_id}",
2179
2244
  ...options
2180
2245
  });
2181
2246
  }
2182
2247
  /**
2183
- * Mark the issue as seen by the current user.
2248
+ * Lists events for an issue with cursor-based pagination
2184
2249
  */
2185
- markSeen(options) {
2186
- return (options.client ?? this.client).post({
2187
- requestValidator: async (data) => await zod.object({
2188
- body: zod.never().optional(),
2189
- path: require_zod_gen.zIssuesMarkSeenPath,
2190
- query: zod.never().optional()
2250
+ list(options) {
2251
+ return (options.client ?? this.client).get({
2252
+ requestValidator: async (data) => await zod_mini.object({
2253
+ body: zod_mini.optional(zod_mini.never()),
2254
+ path: require_zod_gen.zEventsListPath,
2255
+ query: zod_mini.optional(require_zod_gen.zEventsListQuery)
2191
2256
  }).parseAsync(data),
2192
- responseValidator: async (data) => await require_zod_gen.zIssuesMarkSeenResponse.parseAsync(data),
2257
+ responseValidator: async (data) => await require_zod_gen.zEventsListResponse.parseAsync(data),
2193
2258
  security: [{
2194
2259
  scheme: "bearer",
2195
2260
  type: "http"
2196
2261
  }],
2197
- url: "/api/projects/{project_id}/issues/{issue_id}/seen",
2262
+ url: "/api/projects/{project_id}/issues/{issue_id}/events",
2198
2263
  ...options
2199
2264
  });
2200
2265
  }
2201
2266
  /**
2202
- * Zero-filled event-count timeseries.
2267
+ * Gets a single event with full data
2203
2268
  */
2204
- getStats(options) {
2269
+ get(options) {
2205
2270
  return (options.client ?? this.client).get({
2206
- requestValidator: async (data) => await zod.object({
2207
- body: zod.never().optional(),
2208
- path: require_zod_gen.zIssuesGetStatsPath,
2209
- query: require_zod_gen.zIssuesGetStatsQuery.optional()
2271
+ requestValidator: async (data) => await zod_mini.object({
2272
+ body: zod_mini.optional(zod_mini.never()),
2273
+ path: require_zod_gen.zEventsGetPath,
2274
+ query: zod_mini.optional(zod_mini.never())
2210
2275
  }).parseAsync(data),
2211
- responseValidator: async (data) => await require_zod_gen.zIssuesGetStatsResponse.parseAsync(data),
2276
+ responseValidator: async (data) => await require_zod_gen.zEventsGetResponse.parseAsync(data),
2212
2277
  security: [{
2213
2278
  scheme: "bearer",
2214
2279
  type: "http"
2215
2280
  }],
2216
- url: "/api/projects/{project_id}/issues/{issue_id}/stats",
2281
+ url: "/api/projects/{project_id}/issues/{issue_id}/events/{event_id}",
2217
2282
  ...options
2218
2283
  });
2219
2284
  }
2220
2285
  /**
2221
- * Set/clear the per-user subscription.
2286
+ * Lists the files sent with an event, such as a feedback's screenshot.
2222
2287
  */
2223
- setSubscription(options) {
2224
- return (options.client ?? this.client).put({
2225
- requestValidator: async (data) => await zod.object({
2226
- body: require_zod_gen.zIssuesSetSubscriptionBody,
2227
- path: require_zod_gen.zIssuesSetSubscriptionPath,
2228
- query: zod.never().optional()
2288
+ listAttachments(options) {
2289
+ return (options.client ?? this.client).get({
2290
+ requestValidator: async (data) => await zod_mini.object({
2291
+ body: zod_mini.optional(zod_mini.never()),
2292
+ path: require_zod_gen.zEventsListAttachmentsPath,
2293
+ query: zod_mini.optional(zod_mini.never())
2229
2294
  }).parseAsync(data),
2230
- responseValidator: async (data) => await require_zod_gen.zIssuesSetSubscriptionResponse.parseAsync(data),
2295
+ responseValidator: async (data) => await require_zod_gen.zEventsListAttachmentsResponse.parseAsync(data),
2231
2296
  security: [{
2232
2297
  scheme: "bearer",
2233
2298
  type: "http"
2234
2299
  }],
2235
- url: "/api/projects/{project_id}/issues/{issue_id}/subscription",
2236
- ...options,
2237
- headers: {
2238
- "Content-Type": "application/json",
2239
- ...options.headers
2240
- }
2300
+ url: "/api/projects/{project_id}/issues/{issue_id}/events/{event_id}/attachments",
2301
+ ...options
2241
2302
  });
2242
2303
  }
2304
+ };
2305
+ var Environments = class extends HeyApiClient {
2243
2306
  /**
2244
- * Lists the distinct values (with counts) for a tag key across the issue.
2307
+ * Lists the environments a project's issues have been seen in, by name.
2245
2308
  */
2246
- getTagValues(options) {
2309
+ list(options) {
2247
2310
  return (options.client ?? this.client).get({
2248
- requestValidator: async (data) => await zod.object({
2249
- body: zod.never().optional(),
2250
- path: require_zod_gen.zIssuesGetTagValuesPath,
2251
- query: zod.never().optional()
2311
+ requestValidator: async (data) => await zod_mini.object({
2312
+ body: zod_mini.optional(zod_mini.never()),
2313
+ path: require_zod_gen.zEnvironmentsListPath,
2314
+ query: zod_mini.optional(zod_mini.never())
2252
2315
  }).parseAsync(data),
2253
- responseValidator: async (data) => await require_zod_gen.zIssuesGetTagValuesResponse.parseAsync(data),
2316
+ responseValidator: async (data) => await require_zod_gen.zEnvironmentsListResponse.parseAsync(data),
2254
2317
  security: [{
2255
2318
  scheme: "bearer",
2256
2319
  type: "http"
2257
2320
  }],
2258
- url: "/api/projects/{project_id}/issues/{issue_id}/tags/{key}",
2321
+ url: "/api/projects/{project_id}/environments",
2259
2322
  ...options
2260
2323
  });
2261
2324
  }
2325
+ };
2326
+ var Stats = class extends HeyApiClient {
2262
2327
  /**
2263
- * List user feedback for an issue.
2328
+ * Counts a project's events over time, bucketed for a chart.
2264
2329
  */
2265
- listUserReports(options) {
2330
+ getEventTimeseries(options) {
2266
2331
  return (options.client ?? this.client).get({
2267
- requestValidator: async (data) => await zod.object({
2268
- body: zod.never().optional(),
2269
- path: require_zod_gen.zIssuesListUserReportsPath,
2270
- query: require_zod_gen.zIssuesListUserReportsQuery.optional()
2332
+ requestValidator: async (data) => await zod_mini.object({
2333
+ body: zod_mini.optional(zod_mini.never()),
2334
+ path: require_zod_gen.zStatsGetEventTimeseriesPath,
2335
+ query: zod_mini.optional(require_zod_gen.zStatsGetEventTimeseriesQuery)
2271
2336
  }).parseAsync(data),
2272
- responseValidator: async (data) => await require_zod_gen.zIssuesListUserReportsResponse.parseAsync(data),
2337
+ responseValidator: async (data) => await require_zod_gen.zStatsGetEventTimeseriesResponse.parseAsync(data),
2273
2338
  security: [{
2274
2339
  scheme: "bearer",
2275
2340
  type: "http"
2276
2341
  }],
2277
- url: "/api/projects/{project_id}/issues/{issue_id}/user-reports",
2342
+ url: "/api/projects/{project_id}/events/stats",
2278
2343
  ...options
2279
2344
  });
2280
2345
  }
2281
2346
  /**
2282
- * Attach user feedback to an issue.
2347
+ * Headline figures for a project's overview: events, new and open issues.
2283
2348
  */
2284
- createUserReport(options) {
2285
- return (options.client ?? this.client).post({
2286
- requestValidator: async (data) => await zod.object({
2287
- body: require_zod_gen.zIssuesCreateUserReportBody,
2288
- path: require_zod_gen.zIssuesCreateUserReportPath,
2289
- query: zod.never().optional()
2349
+ getSummary(options) {
2350
+ return (options.client ?? this.client).get({
2351
+ requestValidator: async (data) => await zod_mini.object({
2352
+ body: zod_mini.optional(zod_mini.never()),
2353
+ path: require_zod_gen.zStatsGetSummaryPath,
2354
+ query: zod_mini.optional(require_zod_gen.zStatsGetSummaryQuery)
2290
2355
  }).parseAsync(data),
2291
- responseValidator: async (data) => await require_zod_gen.zIssuesCreateUserReportResponse.parseAsync(data),
2356
+ responseValidator: async (data) => await require_zod_gen.zStatsGetSummaryResponse.parseAsync(data),
2292
2357
  security: [{
2293
2358
  scheme: "bearer",
2294
2359
  type: "http"
2295
2360
  }],
2296
- url: "/api/projects/{project_id}/issues/{issue_id}/user-reports",
2297
- ...options,
2298
- headers: {
2299
- "Content-Type": "application/json",
2300
- ...options.headers
2301
- }
2361
+ url: "/api/projects/{project_id}/stats/summary",
2362
+ ...options
2302
2363
  });
2303
2364
  }
2304
2365
  };
@@ -2309,10 +2370,10 @@ var Logs = class extends HeyApiClient {
2309
2370
  */
2310
2371
  list(options) {
2311
2372
  return (options.client ?? this.client).get({
2312
- requestValidator: async (data) => await zod.object({
2313
- body: zod.never().optional(),
2373
+ requestValidator: async (data) => await zod_mini.object({
2374
+ body: zod_mini.optional(zod_mini.never()),
2314
2375
  path: require_zod_gen.zLogsListPath,
2315
- query: require_zod_gen.zLogsListQuery.optional()
2376
+ query: zod_mini.optional(require_zod_gen.zLogsListQuery)
2316
2377
  }).parseAsync(data),
2317
2378
  responseValidator: async (data) => await require_zod_gen.zLogsListResponse.parseAsync(data),
2318
2379
  security: [{
@@ -2328,10 +2389,10 @@ var Logs = class extends HeyApiClient {
2328
2389
  */
2329
2390
  volume(options) {
2330
2391
  return (options.client ?? this.client).get({
2331
- requestValidator: async (data) => await zod.object({
2332
- body: zod.never().optional(),
2392
+ requestValidator: async (data) => await zod_mini.object({
2393
+ body: zod_mini.optional(zod_mini.never()),
2333
2394
  path: require_zod_gen.zLogsVolumePath,
2334
- query: require_zod_gen.zLogsVolumeQuery.optional()
2395
+ query: zod_mini.optional(require_zod_gen.zLogsVolumeQuery)
2335
2396
  }).parseAsync(data),
2336
2397
  responseValidator: async (data) => await require_zod_gen.zLogsVolumeResponse.parseAsync(data),
2337
2398
  security: [{
@@ -2347,10 +2408,10 @@ var Logs = class extends HeyApiClient {
2347
2408
  */
2348
2409
  get(options) {
2349
2410
  return (options.client ?? this.client).get({
2350
- requestValidator: async (data) => await zod.object({
2351
- body: zod.never().optional(),
2411
+ requestValidator: async (data) => await zod_mini.object({
2412
+ body: zod_mini.optional(zod_mini.never()),
2352
2413
  path: require_zod_gen.zLogsGetPath,
2353
- query: zod.never().optional()
2414
+ query: zod_mini.optional(zod_mini.never())
2354
2415
  }).parseAsync(data),
2355
2416
  responseValidator: async (data) => await require_zod_gen.zLogsGetResponse.parseAsync(data),
2356
2417
  security: [{
@@ -2368,10 +2429,10 @@ var Members = class extends HeyApiClient {
2368
2429
  */
2369
2430
  list(options) {
2370
2431
  return (options.client ?? this.client).get({
2371
- requestValidator: async (data) => await zod.object({
2372
- body: zod.never().optional(),
2432
+ requestValidator: async (data) => await zod_mini.object({
2433
+ body: zod_mini.optional(zod_mini.never()),
2373
2434
  path: require_zod_gen.zMembersListPath,
2374
- query: zod.never().optional()
2435
+ query: zod_mini.optional(zod_mini.never())
2375
2436
  }).parseAsync(data),
2376
2437
  responseValidator: async (data) => await require_zod_gen.zMembersListResponse.parseAsync(data),
2377
2438
  security: [{
@@ -2387,10 +2448,10 @@ var Members = class extends HeyApiClient {
2387
2448
  */
2388
2449
  upsert(options) {
2389
2450
  return (options.client ?? this.client).put({
2390
- requestValidator: async (data) => await zod.object({
2451
+ requestValidator: async (data) => await zod_mini.object({
2391
2452
  body: require_zod_gen.zMembersUpsertBody,
2392
2453
  path: require_zod_gen.zMembersUpsertPath,
2393
- query: zod.never().optional()
2454
+ query: zod_mini.optional(zod_mini.never())
2394
2455
  }).parseAsync(data),
2395
2456
  responseValidator: async (data) => await require_zod_gen.zMembersUpsertResponse.parseAsync(data),
2396
2457
  security: [{
@@ -2410,10 +2471,10 @@ var Members = class extends HeyApiClient {
2410
2471
  */
2411
2472
  candidates(options) {
2412
2473
  return (options.client ?? this.client).get({
2413
- requestValidator: async (data) => await zod.object({
2414
- body: zod.never().optional(),
2474
+ requestValidator: async (data) => await zod_mini.object({
2475
+ body: zod_mini.optional(zod_mini.never()),
2415
2476
  path: require_zod_gen.zMembersCandidatesPath,
2416
- query: zod.never().optional()
2477
+ query: zod_mini.optional(zod_mini.never())
2417
2478
  }).parseAsync(data),
2418
2479
  responseValidator: async (data) => await require_zod_gen.zMembersCandidatesResponse.parseAsync(data),
2419
2480
  security: [{
@@ -2429,10 +2490,10 @@ var Members = class extends HeyApiClient {
2429
2490
  */
2430
2491
  remove(options) {
2431
2492
  return (options.client ?? this.client).delete({
2432
- requestValidator: async (data) => await zod.object({
2433
- body: zod.never().optional(),
2493
+ requestValidator: async (data) => await zod_mini.object({
2494
+ body: zod_mini.optional(zod_mini.never()),
2434
2495
  path: require_zod_gen.zMembersRemovePath,
2435
- query: zod.never().optional()
2496
+ query: zod_mini.optional(zod_mini.never())
2436
2497
  }).parseAsync(data),
2437
2498
  responseValidator: async (data) => await require_zod_gen.zMembersRemoveResponse.parseAsync(data),
2438
2499
  security: [{
@@ -2450,10 +2511,10 @@ var Monitors = class extends HeyApiClient {
2450
2511
  */
2451
2512
  stats(options) {
2452
2513
  return (options.client ?? this.client).get({
2453
- requestValidator: async (data) => await zod.object({
2454
- body: zod.never().optional(),
2514
+ requestValidator: async (data) => await zod_mini.object({
2515
+ body: zod_mini.optional(zod_mini.never()),
2455
2516
  path: require_zod_gen.zMonitorsStatsPath,
2456
- query: require_zod_gen.zMonitorsStatsQuery.optional()
2517
+ query: zod_mini.optional(require_zod_gen.zMonitorsStatsQuery)
2457
2518
  }).parseAsync(data),
2458
2519
  responseValidator: async (data) => await require_zod_gen.zMonitorsStatsResponse.parseAsync(data),
2459
2520
  security: [{
@@ -2469,10 +2530,10 @@ var Monitors = class extends HeyApiClient {
2469
2530
  */
2470
2531
  list(options) {
2471
2532
  return (options.client ?? this.client).get({
2472
- requestValidator: async (data) => await zod.object({
2473
- body: zod.never().optional(),
2533
+ requestValidator: async (data) => await zod_mini.object({
2534
+ body: zod_mini.optional(zod_mini.never()),
2474
2535
  path: require_zod_gen.zMonitorsListPath,
2475
- query: zod.never().optional()
2536
+ query: zod_mini.optional(zod_mini.never())
2476
2537
  }).parseAsync(data),
2477
2538
  responseValidator: async (data) => await require_zod_gen.zMonitorsListResponse.parseAsync(data),
2478
2539
  security: [{
@@ -2488,10 +2549,10 @@ var Monitors = class extends HeyApiClient {
2488
2549
  */
2489
2550
  create(options) {
2490
2551
  return (options.client ?? this.client).post({
2491
- requestValidator: async (data) => await zod.object({
2552
+ requestValidator: async (data) => await zod_mini.object({
2492
2553
  body: require_zod_gen.zMonitorsCreateBody,
2493
2554
  path: require_zod_gen.zMonitorsCreatePath,
2494
- query: zod.never().optional()
2555
+ query: zod_mini.optional(zod_mini.never())
2495
2556
  }).parseAsync(data),
2496
2557
  responseValidator: async (data) => await require_zod_gen.zMonitorsCreateResponse.parseAsync(data),
2497
2558
  security: [{
@@ -2511,10 +2572,10 @@ var Monitors = class extends HeyApiClient {
2511
2572
  */
2512
2573
  delete(options) {
2513
2574
  return (options.client ?? this.client).delete({
2514
- requestValidator: async (data) => await zod.object({
2515
- body: zod.never().optional(),
2575
+ requestValidator: async (data) => await zod_mini.object({
2576
+ body: zod_mini.optional(zod_mini.never()),
2516
2577
  path: require_zod_gen.zMonitorsDeletePath,
2517
- query: zod.never().optional()
2578
+ query: zod_mini.optional(zod_mini.never())
2518
2579
  }).parseAsync(data),
2519
2580
  responseValidator: async (data) => await require_zod_gen.zMonitorsDeleteResponse.parseAsync(data),
2520
2581
  security: [{
@@ -2530,10 +2591,10 @@ var Monitors = class extends HeyApiClient {
2530
2591
  */
2531
2592
  get(options) {
2532
2593
  return (options.client ?? this.client).get({
2533
- requestValidator: async (data) => await zod.object({
2534
- body: zod.never().optional(),
2594
+ requestValidator: async (data) => await zod_mini.object({
2595
+ body: zod_mini.optional(zod_mini.never()),
2535
2596
  path: require_zod_gen.zMonitorsGetPath,
2536
- query: zod.never().optional()
2597
+ query: zod_mini.optional(zod_mini.never())
2537
2598
  }).parseAsync(data),
2538
2599
  responseValidator: async (data) => await require_zod_gen.zMonitorsGetResponse.parseAsync(data),
2539
2600
  security: [{
@@ -2549,10 +2610,10 @@ var Monitors = class extends HeyApiClient {
2549
2610
  */
2550
2611
  update(options) {
2551
2612
  return (options.client ?? this.client).put({
2552
- requestValidator: async (data) => await zod.object({
2613
+ requestValidator: async (data) => await zod_mini.object({
2553
2614
  body: require_zod_gen.zMonitorsUpdateBody,
2554
2615
  path: require_zod_gen.zMonitorsUpdatePath,
2555
- query: zod.never().optional()
2616
+ query: zod_mini.optional(zod_mini.never())
2556
2617
  }).parseAsync(data),
2557
2618
  responseValidator: async (data) => await require_zod_gen.zMonitorsUpdateResponse.parseAsync(data),
2558
2619
  security: [{
@@ -2572,10 +2633,10 @@ var Monitors = class extends HeyApiClient {
2572
2633
  */
2573
2634
  listCheckins(options) {
2574
2635
  return (options.client ?? this.client).get({
2575
- requestValidator: async (data) => await zod.object({
2576
- body: zod.never().optional(),
2636
+ requestValidator: async (data) => await zod_mini.object({
2637
+ body: zod_mini.optional(zod_mini.never()),
2577
2638
  path: require_zod_gen.zMonitorsListCheckinsPath,
2578
- query: require_zod_gen.zMonitorsListCheckinsQuery.optional()
2639
+ query: zod_mini.optional(require_zod_gen.zMonitorsListCheckinsQuery)
2579
2640
  }).parseAsync(data),
2580
2641
  responseValidator: async (data) => await require_zod_gen.zMonitorsListCheckinsResponse.parseAsync(data),
2581
2642
  security: [{
@@ -2593,10 +2654,10 @@ var Sessions = class extends HeyApiClient {
2593
2654
  */
2594
2655
  getStats(options) {
2595
2656
  return (options.client ?? this.client).get({
2596
- requestValidator: async (data) => await zod.object({
2597
- body: zod.never().optional(),
2657
+ requestValidator: async (data) => await zod_mini.object({
2658
+ body: zod_mini.optional(zod_mini.never()),
2598
2659
  path: require_zod_gen.zSessionsGetStatsPath,
2599
- query: require_zod_gen.zSessionsGetStatsQuery.optional()
2660
+ query: zod_mini.optional(require_zod_gen.zSessionsGetStatsQuery)
2600
2661
  }).parseAsync(data),
2601
2662
  responseValidator: async (data) => await require_zod_gen.zSessionsGetStatsResponse.parseAsync(data),
2602
2663
  security: [{
@@ -2612,10 +2673,10 @@ var Sessions = class extends HeyApiClient {
2612
2673
  */
2613
2674
  getSummary(options) {
2614
2675
  return (options.client ?? this.client).get({
2615
- requestValidator: async (data) => await zod.object({
2616
- body: zod.never().optional(),
2676
+ requestValidator: async (data) => await zod_mini.object({
2677
+ body: zod_mini.optional(zod_mini.never()),
2617
2678
  path: require_zod_gen.zSessionsGetSummaryPath,
2618
- query: require_zod_gen.zSessionsGetSummaryQuery.optional()
2679
+ query: zod_mini.optional(require_zod_gen.zSessionsGetSummaryQuery)
2619
2680
  }).parseAsync(data),
2620
2681
  responseValidator: async (data) => await require_zod_gen.zSessionsGetSummaryResponse.parseAsync(data),
2621
2682
  security: [{
@@ -2631,10 +2692,10 @@ var Sessions = class extends HeyApiClient {
2631
2692
  */
2632
2693
  getTimeseries(options) {
2633
2694
  return (options.client ?? this.client).get({
2634
- requestValidator: async (data) => await zod.object({
2635
- body: zod.never().optional(),
2695
+ requestValidator: async (data) => await zod_mini.object({
2696
+ body: zod_mini.optional(zod_mini.never()),
2636
2697
  path: require_zod_gen.zSessionsGetTimeseriesPath,
2637
- query: require_zod_gen.zSessionsGetTimeseriesQuery.optional()
2698
+ query: zod_mini.optional(require_zod_gen.zSessionsGetTimeseriesQuery)
2638
2699
  }).parseAsync(data),
2639
2700
  responseValidator: async (data) => await require_zod_gen.zSessionsGetTimeseriesResponse.parseAsync(data),
2640
2701
  security: [{
@@ -2655,10 +2716,10 @@ var Spans = class extends HeyApiClient {
2655
2716
  */
2656
2717
  list(options) {
2657
2718
  return (options.client ?? this.client).get({
2658
- requestValidator: async (data) => await zod.object({
2659
- body: zod.never().optional(),
2719
+ requestValidator: async (data) => await zod_mini.object({
2720
+ body: zod_mini.optional(zod_mini.never()),
2660
2721
  path: require_zod_gen.zSpansListPath,
2661
- query: require_zod_gen.zSpansListQuery.optional()
2722
+ query: zod_mini.optional(require_zod_gen.zSpansListQuery)
2662
2723
  }).parseAsync(data),
2663
2724
  responseValidator: async (data) => await require_zod_gen.zSpansListResponse.parseAsync(data),
2664
2725
  security: [{
@@ -2677,10 +2738,10 @@ var Spans = class extends HeyApiClient {
2677
2738
  */
2678
2739
  get(options) {
2679
2740
  return (options.client ?? this.client).get({
2680
- requestValidator: async (data) => await zod.object({
2681
- body: zod.never().optional(),
2741
+ requestValidator: async (data) => await zod_mini.object({
2742
+ body: zod_mini.optional(zod_mini.never()),
2682
2743
  path: require_zod_gen.zSpansGetPath,
2683
- query: zod.never().optional()
2744
+ query: zod_mini.optional(zod_mini.never())
2684
2745
  }).parseAsync(data),
2685
2746
  responseValidator: async (data) => await require_zod_gen.zSpansGetResponse.parseAsync(data),
2686
2747
  security: [{
@@ -2698,10 +2759,10 @@ var Transactions = class extends HeyApiClient {
2698
2759
  */
2699
2760
  list(options) {
2700
2761
  return (options.client ?? this.client).get({
2701
- requestValidator: async (data) => await zod.object({
2702
- body: zod.never().optional(),
2762
+ requestValidator: async (data) => await zod_mini.object({
2763
+ body: zod_mini.optional(zod_mini.never()),
2703
2764
  path: require_zod_gen.zTransactionsListPath,
2704
- query: require_zod_gen.zTransactionsListQuery.optional()
2765
+ query: zod_mini.optional(require_zod_gen.zTransactionsListQuery)
2705
2766
  }).parseAsync(data),
2706
2767
  responseValidator: async (data) => await require_zod_gen.zTransactionsListResponse.parseAsync(data),
2707
2768
  security: [{
@@ -2719,10 +2780,10 @@ var Transactions = class extends HeyApiClient {
2719
2780
  */
2720
2781
  getStats(options) {
2721
2782
  return (options.client ?? this.client).get({
2722
- requestValidator: async (data) => await zod.object({
2723
- body: zod.never().optional(),
2783
+ requestValidator: async (data) => await zod_mini.object({
2784
+ body: zod_mini.optional(zod_mini.never()),
2724
2785
  path: require_zod_gen.zTransactionsGetStatsPath,
2725
- query: require_zod_gen.zTransactionsGetStatsQuery.optional()
2786
+ query: zod_mini.optional(require_zod_gen.zTransactionsGetStatsQuery)
2726
2787
  }).parseAsync(data),
2727
2788
  responseValidator: async (data) => await require_zod_gen.zTransactionsGetStatsResponse.parseAsync(data),
2728
2789
  security: [{
@@ -2739,8 +2800,8 @@ var Transactions = class extends HeyApiClient {
2739
2800
  */
2740
2801
  getStatGroup(options) {
2741
2802
  return (options.client ?? this.client).get({
2742
- requestValidator: async (data) => await zod.object({
2743
- body: zod.never().optional(),
2803
+ requestValidator: async (data) => await zod_mini.object({
2804
+ body: zod_mini.optional(zod_mini.never()),
2744
2805
  path: require_zod_gen.zTransactionsGetStatGroupPath,
2745
2806
  query: require_zod_gen.zTransactionsGetStatGroupQuery
2746
2807
  }).parseAsync(data),
@@ -2761,8 +2822,8 @@ var Transactions = class extends HeyApiClient {
2761
2822
  */
2762
2823
  getStatGroupTimeseries(options) {
2763
2824
  return (options.client ?? this.client).get({
2764
- requestValidator: async (data) => await zod.object({
2765
- body: zod.never().optional(),
2825
+ requestValidator: async (data) => await zod_mini.object({
2826
+ body: zod_mini.optional(zod_mini.never()),
2766
2827
  path: require_zod_gen.zTransactionsGetStatGroupTimeseriesPath,
2767
2828
  query: require_zod_gen.zTransactionsGetStatGroupTimeseriesQuery
2768
2829
  }).parseAsync(data),
@@ -2781,10 +2842,10 @@ var Transactions = class extends HeyApiClient {
2781
2842
  */
2782
2843
  get(options) {
2783
2844
  return (options.client ?? this.client).get({
2784
- requestValidator: async (data) => await zod.object({
2785
- body: zod.never().optional(),
2845
+ requestValidator: async (data) => await zod_mini.object({
2846
+ body: zod_mini.optional(zod_mini.never()),
2786
2847
  path: require_zod_gen.zTransactionsGetPath,
2787
- query: zod.never().optional()
2848
+ query: zod_mini.optional(zod_mini.never())
2788
2849
  }).parseAsync(data),
2789
2850
  responseValidator: async (data) => await require_zod_gen.zTransactionsGetResponse.parseAsync(data),
2790
2851
  security: [{
@@ -2801,10 +2862,10 @@ var Transactions = class extends HeyApiClient {
2801
2862
  */
2802
2863
  getSpans(options) {
2803
2864
  return (options.client ?? this.client).get({
2804
- requestValidator: async (data) => await zod.object({
2805
- body: zod.never().optional(),
2865
+ requestValidator: async (data) => await zod_mini.object({
2866
+ body: zod_mini.optional(zod_mini.never()),
2806
2867
  path: require_zod_gen.zTransactionsGetSpansPath,
2807
- query: zod.never().optional()
2868
+ query: zod_mini.optional(zod_mini.never())
2808
2869
  }).parseAsync(data),
2809
2870
  responseValidator: async (data) => await require_zod_gen.zTransactionsGetSpansResponse.parseAsync(data),
2810
2871
  security: [{
@@ -2816,16 +2877,125 @@ var Transactions = class extends HeyApiClient {
2816
2877
  });
2817
2878
  }
2818
2879
  };
2880
+ var SavedViews = class extends HeyApiClient {
2881
+ /**
2882
+ * Lists the views of one project page the caller sees: their own and the shared ones.
2883
+ */
2884
+ list(options) {
2885
+ return (options.client ?? this.client).get({
2886
+ requestValidator: async (data) => await zod_mini.object({
2887
+ body: zod_mini.optional(zod_mini.never()),
2888
+ path: require_zod_gen.zSavedViewsListPath,
2889
+ query: require_zod_gen.zSavedViewsListQuery
2890
+ }).parseAsync(data),
2891
+ responseValidator: async (data) => await require_zod_gen.zSavedViewsListResponse.parseAsync(data),
2892
+ security: [{
2893
+ scheme: "bearer",
2894
+ type: "http"
2895
+ }],
2896
+ url: "/api/projects/{project_id}/views",
2897
+ ...options
2898
+ });
2899
+ }
2900
+ /**
2901
+ * Saves a project page's address as a view, personal unless `visibility` is `project`.
2902
+ */
2903
+ create(options) {
2904
+ return (options.client ?? this.client).post({
2905
+ requestValidator: async (data) => await zod_mini.object({
2906
+ body: require_zod_gen.zSavedViewsCreateBody,
2907
+ path: require_zod_gen.zSavedViewsCreatePath,
2908
+ query: zod_mini.optional(zod_mini.never())
2909
+ }).parseAsync(data),
2910
+ responseValidator: async (data) => await require_zod_gen.zSavedViewsCreateResponse.parseAsync(data),
2911
+ security: [{
2912
+ scheme: "bearer",
2913
+ type: "http"
2914
+ }],
2915
+ url: "/api/projects/{project_id}/views",
2916
+ ...options,
2917
+ headers: {
2918
+ "Content-Type": "application/json",
2919
+ ...options.headers
2920
+ }
2921
+ });
2922
+ }
2923
+ /**
2924
+ * Sets or clears the view a project page opens on, for the caller or the project.
2925
+ */
2926
+ setDefault(options) {
2927
+ return (options.client ?? this.client).put({
2928
+ requestValidator: async (data) => await zod_mini.object({
2929
+ body: require_zod_gen.zSavedViewsSetDefaultBody,
2930
+ path: require_zod_gen.zSavedViewsSetDefaultPath,
2931
+ query: zod_mini.optional(zod_mini.never())
2932
+ }).parseAsync(data),
2933
+ responseValidator: async (data) => await require_zod_gen.zSavedViewsSetDefaultResponse.parseAsync(data),
2934
+ security: [{
2935
+ scheme: "bearer",
2936
+ type: "http"
2937
+ }],
2938
+ url: "/api/projects/{project_id}/views/default",
2939
+ ...options,
2940
+ headers: {
2941
+ "Content-Type": "application/json",
2942
+ ...options.headers
2943
+ }
2944
+ });
2945
+ }
2946
+ /**
2947
+ * Deletes a project view.
2948
+ */
2949
+ delete(options) {
2950
+ return (options.client ?? this.client).delete({
2951
+ requestValidator: async (data) => await zod_mini.object({
2952
+ body: zod_mini.optional(zod_mini.never()),
2953
+ path: require_zod_gen.zSavedViewsDeletePath,
2954
+ query: zod_mini.optional(zod_mini.never())
2955
+ }).parseAsync(data),
2956
+ responseValidator: async (data) => await require_zod_gen.zSavedViewsDeleteResponse.parseAsync(data),
2957
+ security: [{
2958
+ scheme: "bearer",
2959
+ type: "http"
2960
+ }],
2961
+ url: "/api/projects/{project_id}/views/{view_id}",
2962
+ ...options
2963
+ });
2964
+ }
2965
+ /**
2966
+ * Renames a project view, or changes its address or who sees it.
2967
+ */
2968
+ update(options) {
2969
+ return (options.client ?? this.client).patch({
2970
+ requestValidator: async (data) => await zod_mini.object({
2971
+ body: require_zod_gen.zSavedViewsUpdateBody,
2972
+ path: require_zod_gen.zSavedViewsUpdatePath,
2973
+ query: zod_mini.optional(zod_mini.never())
2974
+ }).parseAsync(data),
2975
+ responseValidator: async (data) => await require_zod_gen.zSavedViewsUpdateResponse.parseAsync(data),
2976
+ security: [{
2977
+ scheme: "bearer",
2978
+ type: "http"
2979
+ }],
2980
+ url: "/api/projects/{project_id}/views/{view_id}",
2981
+ ...options,
2982
+ headers: {
2983
+ "Content-Type": "application/json",
2984
+ ...options.headers
2985
+ }
2986
+ });
2987
+ }
2988
+ };
2819
2989
  var Roles = class extends HeyApiClient {
2820
2990
  /**
2821
2991
  * Lists every role with its permissions and how often it is assigned.
2822
2992
  */
2823
2993
  list(options) {
2824
2994
  return (options?.client ?? this.client).get({
2825
- requestValidator: async (data) => await zod.object({
2826
- body: zod.never().optional(),
2827
- path: zod.never().optional(),
2828
- query: zod.never().optional()
2995
+ requestValidator: async (data) => await zod_mini.object({
2996
+ body: zod_mini.optional(zod_mini.never()),
2997
+ path: zod_mini.optional(zod_mini.never()),
2998
+ query: zod_mini.optional(zod_mini.never())
2829
2999
  }).parseAsync(data),
2830
3000
  responseValidator: async (data) => await require_zod_gen.zRolesListResponse.parseAsync(data),
2831
3001
  security: [{
@@ -2841,10 +3011,10 @@ var Roles = class extends HeyApiClient {
2841
3011
  */
2842
3012
  create(options) {
2843
3013
  return (options.client ?? this.client).post({
2844
- requestValidator: async (data) => await zod.object({
3014
+ requestValidator: async (data) => await zod_mini.object({
2845
3015
  body: require_zod_gen.zRolesCreateBody,
2846
- path: zod.never().optional(),
2847
- query: zod.never().optional()
3016
+ path: zod_mini.optional(zod_mini.never()),
3017
+ query: zod_mini.optional(zod_mini.never())
2848
3018
  }).parseAsync(data),
2849
3019
  responseValidator: async (data) => await require_zod_gen.zRolesCreateResponse.parseAsync(data),
2850
3020
  security: [{
@@ -2864,10 +3034,10 @@ var Roles = class extends HeyApiClient {
2864
3034
  */
2865
3035
  delete(options) {
2866
3036
  return (options.client ?? this.client).delete({
2867
- requestValidator: async (data) => await zod.object({
2868
- body: zod.never().optional(),
3037
+ requestValidator: async (data) => await zod_mini.object({
3038
+ body: zod_mini.optional(zod_mini.never()),
2869
3039
  path: require_zod_gen.zRolesDeletePath,
2870
- query: zod.never().optional()
3040
+ query: zod_mini.optional(zod_mini.never())
2871
3041
  }).parseAsync(data),
2872
3042
  responseValidator: async (data) => await require_zod_gen.zRolesDeleteResponse.parseAsync(data),
2873
3043
  security: [{
@@ -2886,10 +3056,10 @@ var Roles = class extends HeyApiClient {
2886
3056
  */
2887
3057
  update(options) {
2888
3058
  return (options.client ?? this.client).put({
2889
- requestValidator: async (data) => await zod.object({
3059
+ requestValidator: async (data) => await zod_mini.object({
2890
3060
  body: require_zod_gen.zRolesUpdateBody,
2891
3061
  path: require_zod_gen.zRolesUpdatePath,
2892
- query: zod.never().optional()
3062
+ query: zod_mini.optional(zod_mini.never())
2893
3063
  }).parseAsync(data),
2894
3064
  responseValidator: async (data) => await require_zod_gen.zRolesUpdateResponse.parseAsync(data),
2895
3065
  security: [{
@@ -2912,10 +3082,10 @@ var Schedules = class extends HeyApiClient {
2912
3082
  */
2913
3083
  preview(options) {
2914
3084
  return (options.client ?? this.client).post({
2915
- requestValidator: async (data) => await zod.object({
3085
+ requestValidator: async (data) => await zod_mini.object({
2916
3086
  body: require_zod_gen.zSchedulesPreviewBody,
2917
- path: zod.never().optional(),
2918
- query: zod.never().optional()
3087
+ path: zod_mini.optional(zod_mini.never()),
3088
+ query: zod_mini.optional(zod_mini.never())
2919
3089
  }).parseAsync(data),
2920
3090
  responseValidator: async (data) => await require_zod_gen.zSchedulesPreviewResponse.parseAsync(data),
2921
3091
  security: [{
@@ -2938,10 +3108,10 @@ var Settings = class extends HeyApiClient {
2938
3108
  */
2939
3109
  getMcp(options) {
2940
3110
  return (options?.client ?? this.client).get({
2941
- requestValidator: async (data) => await zod.object({
2942
- body: zod.never().optional(),
2943
- path: zod.never().optional(),
2944
- query: zod.never().optional()
3111
+ requestValidator: async (data) => await zod_mini.object({
3112
+ body: zod_mini.optional(zod_mini.never()),
3113
+ path: zod_mini.optional(zod_mini.never()),
3114
+ query: zod_mini.optional(zod_mini.never())
2945
3115
  }).parseAsync(data),
2946
3116
  responseValidator: async (data) => await require_zod_gen.zSettingsGetMcpResponse.parseAsync(data),
2947
3117
  security: [{
@@ -2957,10 +3127,10 @@ var Settings = class extends HeyApiClient {
2957
3127
  */
2958
3128
  updateMcp(options) {
2959
3129
  return (options.client ?? this.client).put({
2960
- requestValidator: async (data) => await zod.object({
3130
+ requestValidator: async (data) => await zod_mini.object({
2961
3131
  body: require_zod_gen.zSettingsUpdateMcpBody,
2962
- path: zod.never().optional(),
2963
- query: zod.never().optional()
3132
+ path: zod_mini.optional(zod_mini.never()),
3133
+ query: zod_mini.optional(zod_mini.never())
2964
3134
  }).parseAsync(data),
2965
3135
  responseValidator: async (data) => await require_zod_gen.zSettingsUpdateMcpResponse.parseAsync(data),
2966
3136
  security: [{
@@ -2982,10 +3152,10 @@ var Storage = class extends HeyApiClient {
2982
3152
  */
2983
3153
  getAge(options) {
2984
3154
  return (options?.client ?? this.client).get({
2985
- requestValidator: async (data) => await zod.object({
2986
- body: zod.never().optional(),
2987
- path: zod.never().optional(),
2988
- query: zod.never().optional()
3155
+ requestValidator: async (data) => await zod_mini.object({
3156
+ body: zod_mini.optional(zod_mini.never()),
3157
+ path: zod_mini.optional(zod_mini.never()),
3158
+ query: zod_mini.optional(zod_mini.never())
2989
3159
  }).parseAsync(data),
2990
3160
  responseValidator: async (data) => await require_zod_gen.zStorageGetAgeResponse.parseAsync(data),
2991
3161
  security: [{
@@ -3003,10 +3173,10 @@ var Storage = class extends HeyApiClient {
3003
3173
  */
3004
3174
  executeCleanup(options) {
3005
3175
  return (options.client ?? this.client).post({
3006
- requestValidator: async (data) => await zod.object({
3176
+ requestValidator: async (data) => await zod_mini.object({
3007
3177
  body: require_zod_gen.zStorageExecuteCleanupBody,
3008
- path: zod.never().optional(),
3009
- query: zod.never().optional()
3178
+ path: zod_mini.optional(zod_mini.never()),
3179
+ query: zod_mini.optional(zod_mini.never())
3010
3180
  }).parseAsync(data),
3011
3181
  responseValidator: async (data) => await require_zod_gen.zStorageExecuteCleanupResponse.parseAsync(data),
3012
3182
  security: [{
@@ -3026,10 +3196,10 @@ var Storage = class extends HeyApiClient {
3026
3196
  */
3027
3197
  previewCleanup(options) {
3028
3198
  return (options.client ?? this.client).post({
3029
- requestValidator: async (data) => await zod.object({
3199
+ requestValidator: async (data) => await zod_mini.object({
3030
3200
  body: require_zod_gen.zStoragePreviewCleanupBody,
3031
- path: zod.never().optional(),
3032
- query: zod.never().optional()
3201
+ path: zod_mini.optional(zod_mini.never()),
3202
+ query: zod_mini.optional(zod_mini.never())
3033
3203
  }).parseAsync(data),
3034
3204
  responseValidator: async (data) => await require_zod_gen.zStoragePreviewCleanupResponse.parseAsync(data),
3035
3205
  security: [{
@@ -3050,10 +3220,10 @@ var Storage = class extends HeyApiClient {
3050
3220
  */
3051
3221
  getCleanupStatus(options) {
3052
3222
  return (options?.client ?? this.client).get({
3053
- requestValidator: async (data) => await zod.object({
3054
- body: zod.never().optional(),
3055
- path: zod.never().optional(),
3056
- query: zod.never().optional()
3223
+ requestValidator: async (data) => await zod_mini.object({
3224
+ body: zod_mini.optional(zod_mini.never()),
3225
+ path: zod_mini.optional(zod_mini.never()),
3226
+ query: zod_mini.optional(zod_mini.never())
3057
3227
  }).parseAsync(data),
3058
3228
  responseValidator: async (data) => await require_zod_gen.zStorageGetCleanupStatusResponse.parseAsync(data),
3059
3229
  security: [{
@@ -3070,10 +3240,10 @@ var Storage = class extends HeyApiClient {
3070
3240
  */
3071
3241
  getCompaction(options) {
3072
3242
  return (options?.client ?? this.client).get({
3073
- requestValidator: async (data) => await zod.object({
3074
- body: zod.never().optional(),
3075
- path: zod.never().optional(),
3076
- query: zod.never().optional()
3243
+ requestValidator: async (data) => await zod_mini.object({
3244
+ body: zod_mini.optional(zod_mini.never()),
3245
+ path: zod_mini.optional(zod_mini.never()),
3246
+ query: zod_mini.optional(zod_mini.never())
3077
3247
  }).parseAsync(data),
3078
3248
  responseValidator: async (data) => await require_zod_gen.zStorageGetCompactionResponse.parseAsync(data),
3079
3249
  security: [{
@@ -3091,10 +3261,10 @@ var Storage = class extends HeyApiClient {
3091
3261
  */
3092
3262
  compact(options) {
3093
3263
  return (options?.client ?? this.client).post({
3094
- requestValidator: async (data) => await zod.object({
3095
- body: zod.never().optional(),
3096
- path: zod.never().optional(),
3097
- query: zod.never().optional()
3264
+ requestValidator: async (data) => await zod_mini.object({
3265
+ body: zod_mini.optional(zod_mini.never()),
3266
+ path: zod_mini.optional(zod_mini.never()),
3267
+ query: zod_mini.optional(zod_mini.never())
3098
3268
  }).parseAsync(data),
3099
3269
  responseValidator: async (data) => await require_zod_gen.zStorageCompactResponse.parseAsync(data),
3100
3270
  security: [{
@@ -3110,10 +3280,10 @@ var Storage = class extends HeyApiClient {
3110
3280
  */
3111
3281
  getProjects(options) {
3112
3282
  return (options?.client ?? this.client).get({
3113
- requestValidator: async (data) => await zod.object({
3114
- body: zod.never().optional(),
3115
- path: zod.never().optional(),
3116
- query: zod.never().optional()
3283
+ requestValidator: async (data) => await zod_mini.object({
3284
+ body: zod_mini.optional(zod_mini.never()),
3285
+ path: zod_mini.optional(zod_mini.never()),
3286
+ query: zod_mini.optional(zod_mini.never())
3117
3287
  }).parseAsync(data),
3118
3288
  responseValidator: async (data) => await require_zod_gen.zStorageGetProjectsResponse.parseAsync(data),
3119
3289
  security: [{
@@ -3129,10 +3299,10 @@ var Storage = class extends HeyApiClient {
3129
3299
  */
3130
3300
  getRetention(options) {
3131
3301
  return (options?.client ?? this.client).get({
3132
- requestValidator: async (data) => await zod.object({
3133
- body: zod.never().optional(),
3134
- path: zod.never().optional(),
3135
- query: zod.never().optional()
3302
+ requestValidator: async (data) => await zod_mini.object({
3303
+ body: zod_mini.optional(zod_mini.never()),
3304
+ path: zod_mini.optional(zod_mini.never()),
3305
+ query: zod_mini.optional(zod_mini.never())
3136
3306
  }).parseAsync(data),
3137
3307
  responseValidator: async (data) => await require_zod_gen.zStorageGetRetentionResponse.parseAsync(data),
3138
3308
  security: [{
@@ -3148,10 +3318,10 @@ var Storage = class extends HeyApiClient {
3148
3318
  */
3149
3319
  updateRetention(options) {
3150
3320
  return (options.client ?? this.client).put({
3151
- requestValidator: async (data) => await zod.object({
3321
+ requestValidator: async (data) => await zod_mini.object({
3152
3322
  body: require_zod_gen.zStorageUpdateRetentionBody,
3153
- path: zod.never().optional(),
3154
- query: zod.never().optional()
3323
+ path: zod_mini.optional(zod_mini.never()),
3324
+ query: zod_mini.optional(zod_mini.never())
3155
3325
  }).parseAsync(data),
3156
3326
  responseValidator: async (data) => await require_zod_gen.zStorageUpdateRetentionResponse.parseAsync(data),
3157
3327
  security: [{
@@ -3172,10 +3342,10 @@ var Storage = class extends HeyApiClient {
3172
3342
  */
3173
3343
  previewRetention(options) {
3174
3344
  return (options.client ?? this.client).post({
3175
- requestValidator: async (data) => await zod.object({
3345
+ requestValidator: async (data) => await zod_mini.object({
3176
3346
  body: require_zod_gen.zStoragePreviewRetentionBody,
3177
- path: zod.never().optional(),
3178
- query: zod.never().optional()
3347
+ path: zod_mini.optional(zod_mini.never()),
3348
+ query: zod_mini.optional(zod_mini.never())
3179
3349
  }).parseAsync(data),
3180
3350
  responseValidator: async (data) => await require_zod_gen.zStoragePreviewRetentionResponse.parseAsync(data),
3181
3351
  security: [{
@@ -3196,10 +3366,10 @@ var Storage = class extends HeyApiClient {
3196
3366
  */
3197
3367
  runRetention(options) {
3198
3368
  return (options?.client ?? this.client).post({
3199
- requestValidator: async (data) => await zod.object({
3200
- body: zod.never().optional(),
3201
- path: zod.never().optional(),
3202
- query: zod.never().optional()
3369
+ requestValidator: async (data) => await zod_mini.object({
3370
+ body: zod_mini.optional(zod_mini.never()),
3371
+ path: zod_mini.optional(zod_mini.never()),
3372
+ query: zod_mini.optional(zod_mini.never())
3203
3373
  }).parseAsync(data),
3204
3374
  responseValidator: async (data) => await require_zod_gen.zStorageRunRetentionResponse.parseAsync(data),
3205
3375
  security: [{
@@ -3215,10 +3385,10 @@ var Storage = class extends HeyApiClient {
3215
3385
  */
3216
3386
  gcSourceMaps(options) {
3217
3387
  return (options?.client ?? this.client).post({
3218
- requestValidator: async (data) => await zod.object({
3219
- body: zod.never().optional(),
3220
- path: zod.never().optional(),
3221
- query: zod.never().optional()
3388
+ requestValidator: async (data) => await zod_mini.object({
3389
+ body: zod_mini.optional(zod_mini.never()),
3390
+ path: zod_mini.optional(zod_mini.never()),
3391
+ query: zod_mini.optional(zod_mini.never())
3222
3392
  }).parseAsync(data),
3223
3393
  responseValidator: async (data) => await require_zod_gen.zStorageGcSourceMapsResponse.parseAsync(data),
3224
3394
  security: [{
@@ -3234,10 +3404,10 @@ var Storage = class extends HeyApiClient {
3234
3404
  */
3235
3405
  previewSourceMapGc(options) {
3236
3406
  return (options?.client ?? this.client).post({
3237
- requestValidator: async (data) => await zod.object({
3238
- body: zod.never().optional(),
3239
- path: zod.never().optional(),
3240
- query: zod.never().optional()
3407
+ requestValidator: async (data) => await zod_mini.object({
3408
+ body: zod_mini.optional(zod_mini.never()),
3409
+ path: zod_mini.optional(zod_mini.never()),
3410
+ query: zod_mini.optional(zod_mini.never())
3241
3411
  }).parseAsync(data),
3242
3412
  responseValidator: async (data) => await require_zod_gen.zStoragePreviewSourceMapGcResponse.parseAsync(data),
3243
3413
  security: [{
@@ -3253,10 +3423,10 @@ var Storage = class extends HeyApiClient {
3253
3423
  */
3254
3424
  getSummary(options) {
3255
3425
  return (options?.client ?? this.client).get({
3256
- requestValidator: async (data) => await zod.object({
3257
- body: zod.never().optional(),
3258
- path: zod.never().optional(),
3259
- query: zod.never().optional()
3426
+ requestValidator: async (data) => await zod_mini.object({
3427
+ body: zod_mini.optional(zod_mini.never()),
3428
+ path: zod_mini.optional(zod_mini.never()),
3429
+ query: zod_mini.optional(zod_mini.never())
3260
3430
  }).parseAsync(data),
3261
3431
  responseValidator: async (data) => await require_zod_gen.zStorageGetSummaryResponse.parseAsync(data),
3262
3432
  security: [{
@@ -3274,10 +3444,10 @@ var Team = class extends HeyApiClient {
3274
3444
  */
3275
3445
  list(options) {
3276
3446
  return (options?.client ?? this.client).get({
3277
- requestValidator: async (data) => await zod.object({
3278
- body: zod.never().optional(),
3279
- path: zod.never().optional(),
3280
- query: zod.never().optional()
3447
+ requestValidator: async (data) => await zod_mini.object({
3448
+ body: zod_mini.optional(zod_mini.never()),
3449
+ path: zod_mini.optional(zod_mini.never()),
3450
+ query: zod_mini.optional(zod_mini.never())
3281
3451
  }).parseAsync(data),
3282
3452
  responseValidator: async (data) => await require_zod_gen.zTeamListResponse.parseAsync(data),
3283
3453
  security: [{
@@ -3293,10 +3463,10 @@ var Team = class extends HeyApiClient {
3293
3463
  */
3294
3464
  deleteUser(options) {
3295
3465
  return (options.client ?? this.client).delete({
3296
- requestValidator: async (data) => await zod.object({
3297
- body: zod.never().optional(),
3466
+ requestValidator: async (data) => await zod_mini.object({
3467
+ body: zod_mini.optional(zod_mini.never()),
3298
3468
  path: require_zod_gen.zTeamDeleteUserPath,
3299
- query: zod.never().optional()
3469
+ query: zod_mini.optional(zod_mini.never())
3300
3470
  }).parseAsync(data),
3301
3471
  responseValidator: async (data) => await require_zod_gen.zTeamDeleteUserResponse.parseAsync(data),
3302
3472
  security: [{
@@ -3312,10 +3482,10 @@ var Team = class extends HeyApiClient {
3312
3482
  */
3313
3483
  updateRole(options) {
3314
3484
  return (options.client ?? this.client).patch({
3315
- requestValidator: async (data) => await zod.object({
3485
+ requestValidator: async (data) => await zod_mini.object({
3316
3486
  body: require_zod_gen.zTeamUpdateRoleBody,
3317
3487
  path: require_zod_gen.zTeamUpdateRolePath,
3318
- query: zod.never().optional()
3488
+ query: zod_mini.optional(zod_mini.never())
3319
3489
  }).parseAsync(data),
3320
3490
  responseValidator: async (data) => await require_zod_gen.zTeamUpdateRoleResponse.parseAsync(data),
3321
3491
  security: [{
@@ -3337,10 +3507,10 @@ var Telemetry = class extends HeyApiClient {
3337
3507
  */
3338
3508
  preview(options) {
3339
3509
  return (options?.client ?? this.client).get({
3340
- requestValidator: async (data) => await zod.object({
3341
- body: zod.never().optional(),
3342
- path: zod.never().optional(),
3343
- query: zod.never().optional()
3510
+ requestValidator: async (data) => await zod_mini.object({
3511
+ body: zod_mini.optional(zod_mini.never()),
3512
+ path: zod_mini.optional(zod_mini.never()),
3513
+ query: zod_mini.optional(zod_mini.never())
3344
3514
  }).parseAsync(data),
3345
3515
  responseValidator: async (data) => await require_zod_gen.zTelemetryPreviewResponse.parseAsync(data),
3346
3516
  security: [{
@@ -3361,10 +3531,10 @@ var Tokens = class extends HeyApiClient {
3361
3531
  */
3362
3532
  list(options) {
3363
3533
  return (options?.client ?? this.client).get({
3364
- requestValidator: async (data) => await zod.object({
3365
- body: zod.never().optional(),
3366
- path: zod.never().optional(),
3367
- query: zod.never().optional()
3534
+ requestValidator: async (data) => await zod_mini.object({
3535
+ body: zod_mini.optional(zod_mini.never()),
3536
+ path: zod_mini.optional(zod_mini.never()),
3537
+ query: zod_mini.optional(zod_mini.never())
3368
3538
  }).parseAsync(data),
3369
3539
  responseValidator: async (data) => await require_zod_gen.zTokensListResponse.parseAsync(data),
3370
3540
  security: [{
@@ -3383,10 +3553,10 @@ var Tokens = class extends HeyApiClient {
3383
3553
  */
3384
3554
  create(options) {
3385
3555
  return (options.client ?? this.client).post({
3386
- requestValidator: async (data) => await zod.object({
3556
+ requestValidator: async (data) => await zod_mini.object({
3387
3557
  body: require_zod_gen.zTokensCreateBody,
3388
- path: zod.never().optional(),
3389
- query: zod.never().optional()
3558
+ path: zod_mini.optional(zod_mini.never()),
3559
+ query: zod_mini.optional(zod_mini.never())
3390
3560
  }).parseAsync(data),
3391
3561
  responseValidator: async (data) => await require_zod_gen.zTokensCreateResponse.parseAsync(data),
3392
3562
  security: [{
@@ -3408,10 +3578,10 @@ var Tokens = class extends HeyApiClient {
3408
3578
  */
3409
3579
  delete(options) {
3410
3580
  return (options.client ?? this.client).delete({
3411
- requestValidator: async (data) => await zod.object({
3412
- body: zod.never().optional(),
3581
+ requestValidator: async (data) => await zod_mini.object({
3582
+ body: zod_mini.optional(zod_mini.never()),
3413
3583
  path: require_zod_gen.zTokensDeletePath,
3414
- query: zod.never().optional()
3584
+ query: zod_mini.optional(zod_mini.never())
3415
3585
  }).parseAsync(data),
3416
3586
  responseValidator: async (data) => await require_zod_gen.zTokensDeleteResponse.parseAsync(data),
3417
3587
  security: [{
@@ -3430,10 +3600,10 @@ var Tokens = class extends HeyApiClient {
3430
3600
  */
3431
3601
  get(options) {
3432
3602
  return (options.client ?? this.client).get({
3433
- requestValidator: async (data) => await zod.object({
3434
- body: zod.never().optional(),
3603
+ requestValidator: async (data) => await zod_mini.object({
3604
+ body: zod_mini.optional(zod_mini.never()),
3435
3605
  path: require_zod_gen.zTokensGetPath,
3436
- query: zod.never().optional()
3606
+ query: zod_mini.optional(zod_mini.never())
3437
3607
  }).parseAsync(data),
3438
3608
  responseValidator: async (data) => await require_zod_gen.zTokensGetResponse.parseAsync(data),
3439
3609
  security: [{
@@ -3451,10 +3621,10 @@ var Users = class extends HeyApiClient {
3451
3621
  */
3452
3622
  assignments(options) {
3453
3623
  return (options.client ?? this.client).get({
3454
- requestValidator: async (data) => await zod.object({
3455
- body: zod.never().optional(),
3624
+ requestValidator: async (data) => await zod_mini.object({
3625
+ body: zod_mini.optional(zod_mini.never()),
3456
3626
  path: require_zod_gen.zUsersAssignmentsPath,
3457
- query: zod.never().optional()
3627
+ query: zod_mini.optional(zod_mini.never())
3458
3628
  }).parseAsync(data),
3459
3629
  responseValidator: async (data) => await require_zod_gen.zUsersAssignmentsResponse.parseAsync(data),
3460
3630
  security: [{
@@ -3473,10 +3643,10 @@ var Users = class extends HeyApiClient {
3473
3643
  */
3474
3644
  setAssignments(options) {
3475
3645
  return (options.client ?? this.client).put({
3476
- requestValidator: async (data) => await zod.object({
3646
+ requestValidator: async (data) => await zod_mini.object({
3477
3647
  body: require_zod_gen.zUsersSetAssignmentsBody,
3478
3648
  path: require_zod_gen.zUsersSetAssignmentsPath,
3479
- query: zod.never().optional()
3649
+ query: zod_mini.optional(zod_mini.never())
3480
3650
  }).parseAsync(data),
3481
3651
  responseValidator: async (data) => await require_zod_gen.zUsersSetAssignmentsResponse.parseAsync(data),
3482
3652
  security: [{
@@ -3492,16 +3662,125 @@ var Users = class extends HeyApiClient {
3492
3662
  });
3493
3663
  }
3494
3664
  };
3665
+ var WorkspaceViews = class extends HeyApiClient {
3666
+ /**
3667
+ * Lists the views of one workspace page (one that spans every project).
3668
+ */
3669
+ list(options) {
3670
+ return (options.client ?? this.client).get({
3671
+ requestValidator: async (data) => await zod_mini.object({
3672
+ body: zod_mini.optional(zod_mini.never()),
3673
+ path: zod_mini.optional(zod_mini.never()),
3674
+ query: require_zod_gen.zWorkspaceViewsListQuery
3675
+ }).parseAsync(data),
3676
+ responseValidator: async (data) => await require_zod_gen.zWorkspaceViewsListResponse.parseAsync(data),
3677
+ security: [{
3678
+ scheme: "bearer",
3679
+ type: "http"
3680
+ }],
3681
+ url: "/api/views",
3682
+ ...options
3683
+ });
3684
+ }
3685
+ /**
3686
+ * Saves a workspace page's address as a view, personal unless `visibility` is `project`.
3687
+ */
3688
+ create(options) {
3689
+ return (options.client ?? this.client).post({
3690
+ requestValidator: async (data) => await zod_mini.object({
3691
+ body: require_zod_gen.zWorkspaceViewsCreateBody,
3692
+ path: zod_mini.optional(zod_mini.never()),
3693
+ query: zod_mini.optional(zod_mini.never())
3694
+ }).parseAsync(data),
3695
+ responseValidator: async (data) => await require_zod_gen.zWorkspaceViewsCreateResponse.parseAsync(data),
3696
+ security: [{
3697
+ scheme: "bearer",
3698
+ type: "http"
3699
+ }],
3700
+ url: "/api/views",
3701
+ ...options,
3702
+ headers: {
3703
+ "Content-Type": "application/json",
3704
+ ...options.headers
3705
+ }
3706
+ });
3707
+ }
3708
+ /**
3709
+ * Sets or clears the view a workspace page opens on, for the caller or everyone.
3710
+ */
3711
+ setDefault(options) {
3712
+ return (options.client ?? this.client).put({
3713
+ requestValidator: async (data) => await zod_mini.object({
3714
+ body: require_zod_gen.zWorkspaceViewsSetDefaultBody,
3715
+ path: zod_mini.optional(zod_mini.never()),
3716
+ query: zod_mini.optional(zod_mini.never())
3717
+ }).parseAsync(data),
3718
+ responseValidator: async (data) => await require_zod_gen.zWorkspaceViewsSetDefaultResponse.parseAsync(data),
3719
+ security: [{
3720
+ scheme: "bearer",
3721
+ type: "http"
3722
+ }],
3723
+ url: "/api/views/default",
3724
+ ...options,
3725
+ headers: {
3726
+ "Content-Type": "application/json",
3727
+ ...options.headers
3728
+ }
3729
+ });
3730
+ }
3731
+ /**
3732
+ * Deletes a workspace view.
3733
+ */
3734
+ delete(options) {
3735
+ return (options.client ?? this.client).delete({
3736
+ requestValidator: async (data) => await zod_mini.object({
3737
+ body: zod_mini.optional(zod_mini.never()),
3738
+ path: require_zod_gen.zWorkspaceViewsDeletePath,
3739
+ query: zod_mini.optional(zod_mini.never())
3740
+ }).parseAsync(data),
3741
+ responseValidator: async (data) => await require_zod_gen.zWorkspaceViewsDeleteResponse.parseAsync(data),
3742
+ security: [{
3743
+ scheme: "bearer",
3744
+ type: "http"
3745
+ }],
3746
+ url: "/api/views/{view_id}",
3747
+ ...options
3748
+ });
3749
+ }
3750
+ /**
3751
+ * Renames a workspace view, or changes its address or who sees it.
3752
+ */
3753
+ update(options) {
3754
+ return (options.client ?? this.client).patch({
3755
+ requestValidator: async (data) => await zod_mini.object({
3756
+ body: require_zod_gen.zWorkspaceViewsUpdateBody,
3757
+ path: require_zod_gen.zWorkspaceViewsUpdatePath,
3758
+ query: zod_mini.optional(zod_mini.never())
3759
+ }).parseAsync(data),
3760
+ responseValidator: async (data) => await require_zod_gen.zWorkspaceViewsUpdateResponse.parseAsync(data),
3761
+ security: [{
3762
+ scheme: "bearer",
3763
+ type: "http"
3764
+ }],
3765
+ url: "/api/views/{view_id}",
3766
+ ...options,
3767
+ headers: {
3768
+ "Content-Type": "application/json",
3769
+ ...options.headers
3770
+ }
3771
+ });
3772
+ }
3773
+ };
3495
3774
  var Auth = class extends HeyApiClient {
3496
3775
  /**
3497
3776
  * Accept a pending invitation: creates the user (with the invite's email + role) and logs in.
3498
3777
  */
3499
3778
  acceptInvitation(options) {
3500
3779
  return (options.client ?? this.client).post({
3501
- requestValidator: async (data) => await zod.object({
3780
+ requestValidator: async (data) => await zod_mini.object({
3502
3781
  body: require_zod_gen.zAuthAcceptInvitationBody,
3503
- path: zod.never().optional(),
3504
- query: zod.never().optional()
3782
+ path: zod_mini.optional(zod_mini.never()),
3783
+ query: zod_mini.optional(zod_mini.never())
3505
3784
  }).parseAsync(data),
3506
3785
  responseValidator: async (data) => await require_zod_gen.zAuthAcceptInvitationResponse.parseAsync(data),
3507
3786
  url: "/auth/accept-invitation",
@@ -3517,10 +3796,10 @@ var Auth = class extends HeyApiClient {
3517
3796
  */
3518
3797
  getInvitation(options) {
3519
3798
  return (options.client ?? this.client).get({
3520
- requestValidator: async (data) => await zod.object({
3521
- body: zod.never().optional(),
3799
+ requestValidator: async (data) => await zod_mini.object({
3800
+ body: zod_mini.optional(zod_mini.never()),
3522
3801
  path: require_zod_gen.zAuthGetInvitationPath,
3523
- query: zod.never().optional()
3802
+ query: zod_mini.optional(zod_mini.never())
3524
3803
  }).parseAsync(data),
3525
3804
  responseValidator: async (data) => await require_zod_gen.zAuthGetInvitationResponse.parseAsync(data),
3526
3805
  url: "/auth/invitation/{token}",
@@ -3532,10 +3811,10 @@ var Auth = class extends HeyApiClient {
3532
3811
  */
3533
3812
  login(options) {
3534
3813
  return (options.client ?? this.client).post({
3535
- requestValidator: async (data) => await zod.object({
3814
+ requestValidator: async (data) => await zod_mini.object({
3536
3815
  body: require_zod_gen.zAuthLoginBody,
3537
- path: zod.never().optional(),
3538
- query: zod.never().optional()
3816
+ path: zod_mini.optional(zod_mini.never()),
3817
+ query: zod_mini.optional(zod_mini.never())
3539
3818
  }).parseAsync(data),
3540
3819
  responseValidator: async (data) => await require_zod_gen.zAuthLoginResponse.parseAsync(data),
3541
3820
  url: "/auth/login",
@@ -3551,10 +3830,10 @@ var Auth = class extends HeyApiClient {
3551
3830
  */
3552
3831
  logout(options) {
3553
3832
  return (options?.client ?? this.client).post({
3554
- requestValidator: async (data) => await zod.object({
3555
- body: zod.never().optional(),
3556
- path: zod.never().optional(),
3557
- query: zod.never().optional()
3833
+ requestValidator: async (data) => await zod_mini.object({
3834
+ body: zod_mini.optional(zod_mini.never()),
3835
+ path: zod_mini.optional(zod_mini.never()),
3836
+ query: zod_mini.optional(zod_mini.never())
3558
3837
  }).parseAsync(data),
3559
3838
  responseValidator: async (data) => await require_zod_gen.zAuthLogoutResponse.parseAsync(data),
3560
3839
  security: [{
@@ -3571,10 +3850,10 @@ var Auth = class extends HeyApiClient {
3571
3850
  */
3572
3851
  getCurrentUser(options) {
3573
3852
  return (options?.client ?? this.client).get({
3574
- requestValidator: async (data) => await zod.object({
3575
- body: zod.never().optional(),
3576
- path: zod.never().optional(),
3577
- query: zod.never().optional()
3853
+ requestValidator: async (data) => await zod_mini.object({
3854
+ body: zod_mini.optional(zod_mini.never()),
3855
+ path: zod_mini.optional(zod_mini.never()),
3856
+ query: zod_mini.optional(zod_mini.never())
3578
3857
  }).parseAsync(data),
3579
3858
  responseValidator: async (data) => await require_zod_gen.zAuthGetCurrentUserResponse.parseAsync(data),
3580
3859
  security: [{
@@ -3591,10 +3870,10 @@ var Auth = class extends HeyApiClient {
3591
3870
  */
3592
3871
  updateCurrentUser(options) {
3593
3872
  return (options.client ?? this.client).patch({
3594
- requestValidator: async (data) => await zod.object({
3873
+ requestValidator: async (data) => await zod_mini.object({
3595
3874
  body: require_zod_gen.zAuthUpdateCurrentUserBody,
3596
- path: zod.never().optional(),
3597
- query: zod.never().optional()
3875
+ path: zod_mini.optional(zod_mini.never()),
3876
+ query: zod_mini.optional(zod_mini.never())
3598
3877
  }).parseAsync(data),
3599
3878
  responseValidator: async (data) => await require_zod_gen.zAuthUpdateCurrentUserResponse.parseAsync(data),
3600
3879
  security: [{
@@ -3616,10 +3895,10 @@ var Auth = class extends HeyApiClient {
3616
3895
  */
3617
3896
  changePassword(options) {
3618
3897
  return (options.client ?? this.client).post({
3619
- requestValidator: async (data) => await zod.object({
3898
+ requestValidator: async (data) => await zod_mini.object({
3620
3899
  body: require_zod_gen.zAuthChangePasswordBody,
3621
- path: zod.never().optional(),
3622
- query: zod.never().optional()
3900
+ path: zod_mini.optional(zod_mini.never()),
3901
+ query: zod_mini.optional(zod_mini.never())
3623
3902
  }).parseAsync(data),
3624
3903
  responseValidator: async (data) => await require_zod_gen.zAuthChangePasswordResponse.parseAsync(data),
3625
3904
  security: [{
@@ -3641,10 +3920,10 @@ var Auth = class extends HeyApiClient {
3641
3920
  */
3642
3921
  ssoCallback(options) {
3643
3922
  return (options?.client ?? this.client).get({
3644
- requestValidator: async (data) => await zod.object({
3645
- body: zod.never().optional(),
3646
- path: zod.never().optional(),
3647
- query: require_zod_gen.zAuthSsoCallbackQuery.optional()
3923
+ requestValidator: async (data) => await zod_mini.object({
3924
+ body: zod_mini.optional(zod_mini.never()),
3925
+ path: zod_mini.optional(zod_mini.never()),
3926
+ query: zod_mini.optional(require_zod_gen.zAuthSsoCallbackQuery)
3648
3927
  }).parseAsync(data),
3649
3928
  responseValidator: async (data) => await require_zod_gen.zAuthSsoCallbackResponse.parseAsync(data),
3650
3929
  url: "/auth/sso/callback",
@@ -3656,10 +3935,10 @@ var Auth = class extends HeyApiClient {
3656
3935
  */
3657
3936
  ssoConfig(options) {
3658
3937
  return (options?.client ?? this.client).get({
3659
- requestValidator: async (data) => await zod.object({
3660
- body: zod.never().optional(),
3661
- path: zod.never().optional(),
3662
- query: zod.never().optional()
3938
+ requestValidator: async (data) => await zod_mini.object({
3939
+ body: zod_mini.optional(zod_mini.never()),
3940
+ path: zod_mini.optional(zod_mini.never()),
3941
+ query: zod_mini.optional(zod_mini.never())
3663
3942
  }).parseAsync(data),
3664
3943
  responseValidator: async (data) => await require_zod_gen.zAuthSsoConfigResponse.parseAsync(data),
3665
3944
  url: "/auth/sso/config",
@@ -3671,10 +3950,10 @@ var Auth = class extends HeyApiClient {
3671
3950
  */
3672
3951
  ssoLink(options) {
3673
3952
  return (options?.client ?? this.client).get({
3674
- requestValidator: async (data) => await zod.object({
3675
- body: zod.never().optional(),
3676
- path: zod.never().optional(),
3677
- query: zod.never().optional()
3953
+ requestValidator: async (data) => await zod_mini.object({
3954
+ body: zod_mini.optional(zod_mini.never()),
3955
+ path: zod_mini.optional(zod_mini.never()),
3956
+ query: zod_mini.optional(zod_mini.never())
3678
3957
  }).parseAsync(data),
3679
3958
  responseValidator: async (data) => await require_zod_gen.zAuthSsoLinkResponse.parseAsync(data),
3680
3959
  url: "/auth/sso/link",
@@ -3687,10 +3966,10 @@ var Auth = class extends HeyApiClient {
3687
3966
  */
3688
3967
  confirmSsoLink(options) {
3689
3968
  return (options.client ?? this.client).post({
3690
- requestValidator: async (data) => await zod.object({
3969
+ requestValidator: async (data) => await zod_mini.object({
3691
3970
  body: require_zod_gen.zAuthConfirmSsoLinkBody,
3692
- path: zod.never().optional(),
3693
- query: zod.never().optional()
3971
+ path: zod_mini.optional(zod_mini.never()),
3972
+ query: zod_mini.optional(zod_mini.never())
3694
3973
  }).parseAsync(data),
3695
3974
  responseValidator: async (data) => await require_zod_gen.zAuthConfirmSsoLinkResponse.parseAsync(data),
3696
3975
  url: "/auth/sso/link",
@@ -3707,10 +3986,10 @@ var Auth = class extends HeyApiClient {
3707
3986
  */
3708
3987
  ssoStart(options) {
3709
3988
  return (options?.client ?? this.client).post({
3710
- requestValidator: async (data) => await zod.object({
3711
- body: zod.never().optional(),
3712
- path: zod.never().optional(),
3713
- query: zod.never().optional()
3989
+ requestValidator: async (data) => await zod_mini.object({
3990
+ body: zod_mini.optional(zod_mini.never()),
3991
+ path: zod_mini.optional(zod_mini.never()),
3992
+ query: zod_mini.optional(zod_mini.never())
3714
3993
  }).parseAsync(data),
3715
3994
  responseValidator: async (data) => await require_zod_gen.zAuthSsoStartResponse.parseAsync(data),
3716
3995
  url: "/auth/sso/start",
@@ -3725,10 +4004,10 @@ var Health = class extends HeyApiClient {
3725
4004
  */
3726
4005
  liveness(options) {
3727
4006
  return (options?.client ?? this.client).get({
3728
- requestValidator: async (data) => await zod.object({
3729
- body: zod.never().optional(),
3730
- path: zod.never().optional(),
3731
- query: zod.never().optional()
4007
+ requestValidator: async (data) => await zod_mini.object({
4008
+ body: zod_mini.optional(zod_mini.never()),
4009
+ path: zod_mini.optional(zod_mini.never()),
4010
+ query: zod_mini.optional(zod_mini.never())
3732
4011
  }).parseAsync(data),
3733
4012
  responseValidator: async (data) => await require_zod_gen.zHealthLivenessResponse.parseAsync(data),
3734
4013
  url: "/health",
@@ -3741,10 +4020,10 @@ var Health = class extends HeyApiClient {
3741
4020
  */
3742
4021
  readiness(options) {
3743
4022
  return (options?.client ?? this.client).get({
3744
- requestValidator: async (data) => await zod.object({
3745
- body: zod.never().optional(),
3746
- path: zod.never().optional(),
3747
- query: zod.never().optional()
4023
+ requestValidator: async (data) => await zod_mini.object({
4024
+ body: zod_mini.optional(zod_mini.never()),
4025
+ path: zod_mini.optional(zod_mini.never()),
4026
+ query: zod_mini.optional(zod_mini.never())
3748
4027
  }).parseAsync(data),
3749
4028
  responseValidator: async (data) => await require_zod_gen.zHealthReadinessResponse.parseAsync(data),
3750
4029
  url: "/health/ready",
@@ -3762,10 +4041,10 @@ var Health = class extends HeyApiClient {
3762
4041
  */
3763
4042
  version(options) {
3764
4043
  return (options?.client ?? this.client).get({
3765
- requestValidator: async (data) => await zod.object({
3766
- body: zod.never().optional(),
3767
- path: zod.never().optional(),
3768
- query: zod.never().optional()
4044
+ requestValidator: async (data) => await zod_mini.object({
4045
+ body: zod_mini.optional(zod_mini.never()),
4046
+ path: zod_mini.optional(zod_mini.never()),
4047
+ query: zod_mini.optional(zod_mini.never())
3769
4048
  }).parseAsync(data),
3770
4049
  responseValidator: async (data) => await require_zod_gen.zHealthVersionResponse.parseAsync(data),
3771
4050
  security: [{
@@ -3807,6 +4086,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
3807
4086
  get access() {
3808
4087
  return this._access ??= new Access({ client: this.client });
3809
4088
  }
4089
+ _feedback;
4090
+ get feedback() {
4091
+ return this._feedback ??= new Feedback({ client: this.client });
4092
+ }
3810
4093
  _github;
3811
4094
  get github() {
3812
4095
  return this._github ??= new Github({ client: this.client });
@@ -3819,6 +4102,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
3819
4102
  get invitations() {
3820
4103
  return this._invitations ??= new Invitations({ client: this.client });
3821
4104
  }
4105
+ _issues;
4106
+ get issues() {
4107
+ return this._issues ??= new Issues({ client: this.client });
4108
+ }
3822
4109
  _oauth;
3823
4110
  get oauth() {
3824
4111
  return this._oauth ??= new Oauth({ client: this.client });
@@ -3847,14 +4134,6 @@ var Rustrak = class Rustrak extends HeyApiClient {
3847
4134
  get stats() {
3848
4135
  return this._stats ??= new Stats({ client: this.client });
3849
4136
  }
3850
- _feedback;
3851
- get feedback() {
3852
- return this._feedback ??= new Feedback({ client: this.client });
3853
- }
3854
- _issues;
3855
- get issues() {
3856
- return this._issues ??= new Issues({ client: this.client });
3857
- }
3858
4137
  _logs;
3859
4138
  get logs() {
3860
4139
  return this._logs ??= new Logs({ client: this.client });
@@ -3879,6 +4158,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
3879
4158
  get transactions() {
3880
4159
  return this._transactions ??= new Transactions({ client: this.client });
3881
4160
  }
4161
+ _savedViews;
4162
+ get savedViews() {
4163
+ return this._savedViews ??= new SavedViews({ client: this.client });
4164
+ }
3882
4165
  _roles;
3883
4166
  get roles() {
3884
4167
  return this._roles ??= new Roles({ client: this.client });
@@ -3911,6 +4194,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
3911
4194
  get users() {
3912
4195
  return this._users ??= new Users({ client: this.client });
3913
4196
  }
4197
+ _workspaceViews;
4198
+ get workspaceViews() {
4199
+ return this._workspaceViews ??= new WorkspaceViews({ client: this.client });
4200
+ }
3914
4201
  _auth;
3915
4202
  get auth() {
3916
4203
  return this._auth ??= new Auth({ client: this.client });
@@ -3941,6 +4228,7 @@ exports.Projects = Projects;
3941
4228
  exports.Releases = Releases;
3942
4229
  exports.Roles = Roles;
3943
4230
  exports.Rustrak = Rustrak;
4231
+ exports.SavedViews = SavedViews;
3944
4232
  exports.Schedules = Schedules;
3945
4233
  exports.Sentry = Sentry;
3946
4234
  exports.Sessions = Sessions;
@@ -3954,5 +4242,6 @@ exports.Telemetry = Telemetry;
3954
4242
  exports.Tokens = Tokens;
3955
4243
  exports.Transactions = Transactions;
3956
4244
  exports.Users = Users;
4245
+ exports.WorkspaceViews = WorkspaceViews;
3957
4246
 
3958
4247
  //# sourceMappingURL=sdk.gen.cjs.map