@rustrak/client 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +47 -48
  2. package/dist/client.cjs +4 -3
  3. package/dist/client.cjs.map +1 -1
  4. package/dist/client.d.cts +2 -1
  5. package/dist/client.d.cts.map +1 -1
  6. package/dist/client.d.mts +2 -1
  7. package/dist/client.d.mts.map +1 -1
  8. package/dist/client.mjs +5 -4
  9. package/dist/client.mjs.map +1 -1
  10. package/dist/config.d.cts.map +1 -1
  11. package/dist/config.d.mts.map +1 -1
  12. package/dist/errors.cjs +19 -6
  13. package/dist/errors.cjs.map +1 -1
  14. package/dist/errors.d.cts +1 -1
  15. package/dist/errors.d.cts.map +1 -1
  16. package/dist/errors.d.mts +1 -1
  17. package/dist/errors.d.mts.map +1 -1
  18. package/dist/errors.mjs +19 -7
  19. package/dist/errors.mjs.map +1 -1
  20. package/dist/generated/binary.gen.cjs +6 -0
  21. package/dist/generated/binary.gen.cjs.map +1 -0
  22. package/dist/generated/binary.gen.d.cts +2 -0
  23. package/dist/generated/binary.gen.d.cts.map +1 -0
  24. package/dist/generated/binary.gen.d.mts +2 -0
  25. package/dist/generated/binary.gen.d.mts.map +1 -0
  26. package/dist/generated/binary.gen.mjs +6 -0
  27. package/dist/generated/binary.gen.mjs.map +1 -0
  28. package/dist/generated/sdk.gen.cjs +96 -187
  29. package/dist/generated/sdk.gen.cjs.map +1 -1
  30. package/dist/generated/sdk.gen.d.cts +1 -2
  31. package/dist/generated/sdk.gen.d.cts.map +1 -1
  32. package/dist/generated/sdk.gen.d.mts +1 -2
  33. package/dist/generated/sdk.gen.d.mts.map +1 -1
  34. package/dist/generated/sdk.gen.mjs +97 -188
  35. package/dist/generated/sdk.gen.mjs.map +1 -1
  36. package/dist/generated/types.gen.d.cts +3 -21
  37. package/dist/generated/types.gen.d.cts.map +1 -1
  38. package/dist/generated/types.gen.d.mts +3 -21
  39. package/dist/generated/types.gen.d.mts.map +1 -1
  40. package/dist/generated/zod.gen.cjs +2 -17
  41. package/dist/generated/zod.gen.cjs.map +1 -1
  42. package/dist/generated/zod.gen.mjs +3 -16
  43. package/dist/generated/zod.gen.mjs.map +1 -1
  44. package/dist/index.d.cts +2 -2
  45. package/dist/index.d.mts +2 -2
  46. package/dist/result.cjs +0 -2
  47. package/dist/result.cjs.map +1 -1
  48. package/dist/result.d.cts.map +1 -1
  49. package/dist/result.d.mts.map +1 -1
  50. package/dist/result.mjs +0 -2
  51. package/dist/result.mjs.map +1 -1
  52. package/dist/utils/http.cjs +18 -31
  53. package/dist/utils/http.cjs.map +1 -1
  54. package/dist/utils/http.mjs +20 -32
  55. package/dist/utils/http.mjs.map +1 -1
  56. package/package.json +3 -5
@@ -25,8 +25,6 @@ var HeyApiRegistry = class {
25
25
  };
26
26
  var Sentry = class extends HeyApiClient {
27
27
  /**
28
- * GET /api/0/issues/{issue_id}/
29
- *
30
28
  * One issue with its releases and its 24h and 30d series (Sentry's
31
29
  * `GroupDetailsEndpoint`). Also served under `/groups/` and the
32
30
  * organization-scoped paths, as Sentry does.
@@ -48,8 +46,6 @@ var Sentry = class extends HeyApiClient {
48
46
  });
49
47
  }
50
48
  /**
51
- * PUT /api/0/issues/{issue_id}/
52
- *
53
49
  * Sets an issue's status and returns the issue (Sentry's
54
50
  * `GroupDetailsEndpoint.put`). The change goes through Rustrak's own
55
51
  * issue update, so it is recorded and mirrored like any other.
@@ -75,8 +71,6 @@ var Sentry = class extends HeyApiClient {
75
71
  });
76
72
  }
77
73
  /**
78
- * GET /api/0/issues/{issue_id}/events/latest/
79
- *
80
74
  * The issue's most recent event (Sentry's `GroupEventDetailsEndpoint`,
81
75
  * `issues/endpoints/group_event_details.py`).
82
76
  */
@@ -97,8 +91,6 @@ var Sentry = class extends HeyApiClient {
97
91
  });
98
92
  }
99
93
  /**
100
- * GET /api/0/organizations/
101
- *
102
94
  * The organizations the token belongs to (Sentry's
103
95
  * `OrganizationIndexEndpoint`): always the one synthetic org.
104
96
  */
@@ -119,8 +111,6 @@ var Sentry = class extends HeyApiClient {
119
111
  });
120
112
  }
121
113
  /**
122
- * GET /api/0/organizations/{org_slug}/repos/
123
- *
124
114
  * The code repositories connected to the organization (Sentry's
125
115
  * `OrganizationRepositoriesEndpoint`). Rustrak connects none through
126
116
  * Sentry's integrations, so the list is always empty.
@@ -142,8 +132,6 @@ var Sentry = class extends HeyApiClient {
142
132
  });
143
133
  }
144
134
  /**
145
- * GET /api/0/projects/
146
- *
147
135
  * The projects the token can see, newest first (Sentry's
148
136
  * `ProjectIndexEndpoint`, `core/endpoints/project_index.py`).
149
137
  */
@@ -164,8 +152,6 @@ var Sentry = class extends HeyApiClient {
164
152
  });
165
153
  }
166
154
  /**
167
- * GET /api/0/projects/{org_slug}/{project_slug}/issues/
168
- *
169
155
  * A project's issues, filtered by `query`, sorted by `sort` and paginated
170
156
  * by `cursor` (Sentry's `ProjectGroupIndexEndpoint`,
171
157
  * `issues/endpoints/project_group_index.py`).
@@ -187,8 +173,6 @@ var Sentry = class extends HeyApiClient {
187
173
  });
188
174
  }
189
175
  /**
190
- * POST /api/0/projects/{org_slug}/{project_slug}/user-feedback/
191
- *
192
176
  * Submit a user report about an error event (Sentry's
193
177
  * `ProjectUserReportsEndpoint`, `feedback/endpoints/project_user_reports.py`).
194
178
  * Accepts `Authorization: DSN <dsn>` as well as a token; the report becomes a
@@ -215,8 +199,6 @@ var Sentry = class extends HeyApiClient {
215
199
  });
216
200
  }
217
201
  /**
218
- * GET /{org_slug}/{project_slug}/issues/{issue_id}/
219
- *
220
202
  * The issue page GitLab's "View in Sentry" opens: Sentry redirects this
221
203
  * legacy path to the issue (`static/app/router/routes.tsx`), Rustrak to its
222
204
  * dashboard. A visitor who is not signed in goes to the login page instead,
@@ -231,7 +213,7 @@ var Sentry = class extends HeyApiClient {
231
213
  }).parseAsync(data),
232
214
  security: [{
233
215
  in: "cookie",
234
- name: "session",
216
+ name: "rustrak_session",
235
217
  type: "apiKey"
236
218
  }, {
237
219
  scheme: "bearer",
@@ -244,7 +226,6 @@ var Sentry = class extends HeyApiClient {
244
226
  };
245
227
  var SourceMaps = class extends HeyApiClient {
246
228
  /**
247
- * GET /api/0/organizations/{org_slug}/
248
229
  * Always returns 200 with synthetic org data — sentry-cli validates this before uploading.
249
230
  */
250
231
  orgDetails(options) {
@@ -260,7 +241,7 @@ var SourceMaps = class extends HeyApiClient {
260
241
  });
261
242
  }
262
243
  /**
263
- * POST /api/0/organizations/{org_slug}/artifactbundle/assemble/
244
+ * Assembles uploaded chunks into an artifact bundle (sentry-cli `sourcemaps upload`).
264
245
  */
265
246
  artifactBundleAssemble(options) {
266
247
  return (options.client ?? this.client).post({
@@ -283,7 +264,7 @@ var SourceMaps = class extends HeyApiClient {
283
264
  });
284
265
  }
285
266
  /**
286
- * GET /api/0/organizations/{org_slug}/chunk-upload/
267
+ * Describes how sentry-cli should upload chunks: size, concurrency and accepted kinds.
287
268
  */
288
269
  chunkUploadCapability(options) {
289
270
  return (options.client ?? this.client).get({
@@ -302,7 +283,7 @@ var SourceMaps = class extends HeyApiClient {
302
283
  });
303
284
  }
304
285
  /**
305
- * POST /api/0/organizations/{org_slug}/chunk-upload/
286
+ * Receives chunks of a source map or debug file upload from sentry-cli.
306
287
  */
307
288
  chunkUpload(options) {
308
289
  return (options.client ?? this.client).post({
@@ -325,7 +306,7 @@ var SourceMaps = class extends HeyApiClient {
325
306
  });
326
307
  }
327
308
  /**
328
- * GET /api/0/projects/{org_slug}/{project_slug}/files/source-maps/
309
+ * Lists a project's uploaded source map artifacts (sentry-cli).
329
310
  */
330
311
  list(options) {
331
312
  return (options.client ?? this.client).get({
@@ -403,8 +384,6 @@ var DebugFiles = class extends HeyApiClient {
403
384
  };
404
385
  var Releases = class extends HeyApiClient {
405
386
  /**
406
- * POST /api/0/projects/{org_slug}/{project_slug}/releases/
407
- *
408
387
  * Sentry-compatible release creation. Idempotent: repeating the same
409
388
  * `(project, version)` returns 208 rather than erroring — sentry-cli and JS
410
389
  * bundler plugins call this on every build. Triggers date-based regression
@@ -436,8 +415,6 @@ var Releases = class extends HeyApiClient {
436
415
  });
437
416
  }
438
417
  /**
439
- * PUT /api/0/projects/{org_slug}/{project_slug}/releases/{version}/
440
- *
441
418
  * Generic partial update (`ref`, `url`, `dateReleased`). Setting
442
419
  * `dateReleased` IS "finalize" — there is no separate status flag.
443
420
  */
@@ -502,7 +479,7 @@ var Releases = class extends HeyApiClient {
502
479
  });
503
480
  }
504
481
  /**
505
- * GET /api/projects/{project_id}/releases/{release}/new-issues
482
+ * Lists the issues first seen in a release.
506
483
  */
507
484
  newIssues(options) {
508
485
  return (options.client ?? this.client).get({
@@ -563,7 +540,7 @@ var Access = class extends HeyApiClient {
563
540
  };
564
541
  var Github = class extends HeyApiClient {
565
542
  /**
566
- * DELETE /api/github
543
+ * Disconnects the GitHub App from this instance.
567
544
  */
568
545
  disconnect(options) {
569
546
  return (options?.client ?? this.client).delete({
@@ -582,7 +559,7 @@ var Github = class extends HeyApiClient {
582
559
  });
583
560
  }
584
561
  /**
585
- * GET /api/github
562
+ * Shows whether a GitHub App is connected, and how.
586
563
  */
587
564
  status(options) {
588
565
  return (options?.client ?? this.client).get({
@@ -601,7 +578,7 @@ var Github = class extends HeyApiClient {
601
578
  });
602
579
  }
603
580
  /**
604
- * GET /api/github/callback: GitHub sends the browser here after creating the
581
+ * GitHub sends the browser here after creating the
605
582
  * app; the code trades for its credentials.
606
583
  */
607
584
  callback(options) {
@@ -620,7 +597,7 @@ var Github = class extends HeyApiClient {
620
597
  });
621
598
  }
622
599
  /**
623
- * GET /api/github/installed: GitHub sends the browser here after the app is
600
+ * GitHub sends the browser here after the app is
624
601
  * installed on an account.
625
602
  */
626
603
  installed(options) {
@@ -639,7 +616,7 @@ var Github = class extends HeyApiClient {
639
616
  });
640
617
  }
641
618
  /**
642
- * PUT /api/github/issue-template: the labels, title prefix and body footer
619
+ * The labels, title prefix and body footer
643
620
  * every GitHub issue starts with, before a project's own.
644
621
  */
645
622
  putIssueTemplate(options) {
@@ -663,7 +640,7 @@ var Github = class extends HeyApiClient {
663
640
  });
664
641
  }
665
642
  /**
666
- * POST /api/github/manifest: what the dashboard posts to GitHub so GitHub
643
+ * What the dashboard posts to GitHub so GitHub
667
644
  * creates an app already configured for this server.
668
645
  */
669
646
  manifest(options) {
@@ -687,7 +664,7 @@ var Github = class extends HeyApiClient {
687
664
  });
688
665
  }
689
666
  /**
690
- * GET /api/github/me: the GitHub username assignees sync through.
667
+ * The GitHub username assignees sync through.
691
668
  */
692
669
  getMyLogin(options) {
693
670
  return (options?.client ?? this.client).get({
@@ -706,7 +683,7 @@ var Github = class extends HeyApiClient {
706
683
  });
707
684
  }
708
685
  /**
709
- * PUT /api/github/me
686
+ * Sets or clears the caller's GitHub username, which assignees sync through.
710
687
  */
711
688
  putMyLogin(options) {
712
689
  return (options.client ?? this.client).put({
@@ -729,7 +706,7 @@ var Github = class extends HeyApiClient {
729
706
  });
730
707
  }
731
708
  /**
732
- * GET /api/github/repositories?project_id=: the repositories a project can
709
+ * The repositories a project can
733
710
  * point at, for whoever may change that project's settings.
734
711
  */
735
712
  repositories(options) {
@@ -749,7 +726,7 @@ var Github = class extends HeyApiClient {
749
726
  });
750
727
  }
751
728
  /**
752
- * POST /api/github/webhook: public, and trusted only through the signature
729
+ * Public, and trusted only through the signature
753
730
  * GitHub computes with the app's webhook secret.
754
731
  */
755
732
  webhook(options) {
@@ -769,7 +746,7 @@ var Github = class extends HeyApiClient {
769
746
  });
770
747
  }
771
748
  /**
772
- * DELETE /api/projects/{project_id}/github
749
+ * Unlinks a project from its GitHub repository.
773
750
  */
774
751
  deleteProjectRepository(options) {
775
752
  return (options.client ?? this.client).delete({
@@ -788,7 +765,7 @@ var Github = class extends HeyApiClient {
788
765
  });
789
766
  }
790
767
  /**
791
- * GET /api/projects/{project_id}/github
768
+ * Gets the GitHub repository a project is linked to.
792
769
  */
793
770
  getProjectRepository(options) {
794
771
  return (options.client ?? this.client).get({
@@ -807,7 +784,7 @@ var Github = class extends HeyApiClient {
807
784
  });
808
785
  }
809
786
  /**
810
- * PUT /api/projects/{project_id}/github
787
+ * Links a project to a GitHub repository.
811
788
  */
812
789
  putProjectRepository(options) {
813
790
  return (options.client ?? this.client).put({
@@ -830,7 +807,7 @@ var Github = class extends HeyApiClient {
830
807
  });
831
808
  }
832
809
  /**
833
- * POST /api/projects/{project_id}/github/codeowners: copies the repository's
810
+ * Copies the repository's
834
811
  * CODEOWNERS so ownership can be answered without asking GitHub each time.
835
812
  */
836
813
  syncCodeowners(options) {
@@ -850,7 +827,7 @@ var Github = class extends HeyApiClient {
850
827
  });
851
828
  }
852
829
  /**
853
- * GET /api/projects/{project_id}/issues/{issue_id}/github: the issue's links,
830
+ * The issue's links,
854
831
  * the commits that may have caused it, and who owns its culprit file.
855
832
  */
856
833
  issue(options) {
@@ -981,7 +958,7 @@ var AlertChannels = class extends HeyApiClient {
981
958
  });
982
959
  }
983
960
  /**
984
- * POST /api/alert-channels
961
+ * Creates a notification integration (webhook, Slack, email…).
985
962
  */
986
963
  create(options) {
987
964
  return (options.client ?? this.client).post({
@@ -1004,8 +981,6 @@ var AlertChannels = class extends HeyApiClient {
1004
981
  });
1005
982
  }
1006
983
  /**
1007
- * POST /api/integrations/preview-template
1008
- *
1009
984
  * Renders a Custom Webhook template against a sample payload and hands back
1010
985
  * the body that would be sent. The dashboard cannot run the template engine,
1011
986
  * so it asks while the reader types; going through the dispatcher's own
@@ -1032,7 +1007,7 @@ var AlertChannels = class extends HeyApiClient {
1032
1007
  });
1033
1008
  }
1034
1009
  /**
1035
- * DELETE /api/alert-channels/{id}
1010
+ * Deletes a notification integration.
1036
1011
  */
1037
1012
  delete(options) {
1038
1013
  return (options.client ?? this.client).delete({
@@ -1051,7 +1026,7 @@ var AlertChannels = class extends HeyApiClient {
1051
1026
  });
1052
1027
  }
1053
1028
  /**
1054
- * GET /api/alert-channels/{id}
1029
+ * Gets one notification integration.
1055
1030
  */
1056
1031
  get(options) {
1057
1032
  return (options.client ?? this.client).get({
@@ -1070,7 +1045,7 @@ var AlertChannels = class extends HeyApiClient {
1070
1045
  });
1071
1046
  }
1072
1047
  /**
1073
- * PATCH /api/alert-channels/{id}
1048
+ * Updates a notification integration.
1074
1049
  */
1075
1050
  update(options) {
1076
1051
  return (options.client ?? this.client).patch({
@@ -1093,7 +1068,7 @@ var AlertChannels = class extends HeyApiClient {
1093
1068
  });
1094
1069
  }
1095
1070
  /**
1096
- * POST /api/integrations/{id}/test
1071
+ * Sends a test notification through an integration.
1097
1072
  */
1098
1073
  test(options) {
1099
1074
  return (options.client ?? this.client).post({
@@ -1118,7 +1093,7 @@ var AlertChannels = class extends HeyApiClient {
1118
1093
  };
1119
1094
  var Invitations = class extends HeyApiClient {
1120
1095
  /**
1121
- * GET /api/invitations — list invitations (needs `invitations:read`)
1096
+ * List invitations (needs `invitations:read`)
1122
1097
  */
1123
1098
  list(options) {
1124
1099
  return (options?.client ?? this.client).get({
@@ -1137,7 +1112,7 @@ var Invitations = class extends HeyApiClient {
1137
1112
  });
1138
1113
  }
1139
1114
  /**
1140
- * POST /api/invitations — create an invitation (needs `invitations:create`)
1115
+ * Create an invitation (needs `invitations:create`)
1141
1116
  *
1142
1117
  * With `send_email: true` the invite link is also emailed. A failed send
1143
1118
  * still creates the invitation, with `email_sent_at: null`, so its link can
@@ -1164,7 +1139,7 @@ var Invitations = class extends HeyApiClient {
1164
1139
  });
1165
1140
  }
1166
1141
  /**
1167
- * GET /api/invitations/email-status — whether invitation emails can be sent (needs `invitations:read`)
1142
+ * Whether invitation emails can be sent (needs `invitations:read`)
1168
1143
  */
1169
1144
  emailStatus(options) {
1170
1145
  return (options?.client ?? this.client).get({
@@ -1183,7 +1158,7 @@ var Invitations = class extends HeyApiClient {
1183
1158
  });
1184
1159
  }
1185
1160
  /**
1186
- * DELETE /api/invitations/{id} — revoke a pending invitation (needs `invitations:delete`)
1161
+ * Revoke a pending invitation (needs `invitations:delete`)
1187
1162
  */
1188
1163
  revoke(options) {
1189
1164
  return (options.client ?? this.client).delete({
@@ -1202,7 +1177,7 @@ var Invitations = class extends HeyApiClient {
1202
1177
  });
1203
1178
  }
1204
1179
  /**
1205
- * POST /api/invitations/{id}/resend — email the invite link again (needs `invitations:create`)
1180
+ * Email the invite link again (needs `invitations:create`)
1206
1181
  */
1207
1182
  resend(options) {
1208
1183
  return (options.client ?? this.client).post({
@@ -1289,7 +1264,7 @@ var Oauth = class extends HeyApiClient {
1289
1264
  };
1290
1265
  var Projects = class extends HeyApiClient {
1291
1266
  /**
1292
- * GET /api/projects - List projects with pagination
1267
+ * List projects with pagination.
1293
1268
  *
1294
1269
  * Only the projects the caller holds a permission on.
1295
1270
  */
@@ -1310,7 +1285,7 @@ var Projects = class extends HeyApiClient {
1310
1285
  });
1311
1286
  }
1312
1287
  /**
1313
- * POST /api/projects - Create a new project
1288
+ * Create a new project
1314
1289
  *
1315
1290
  * Needs `projects:create` and a permission on at least one project, because
1316
1291
  * the creator's own roles extend to the new one. A token limited to chosen
@@ -1337,7 +1312,7 @@ var Projects = class extends HeyApiClient {
1337
1312
  });
1338
1313
  }
1339
1314
  /**
1340
- * DELETE /api/projects/{id} - Delete a project
1315
+ * Delete a project
1341
1316
  */
1342
1317
  delete(options) {
1343
1318
  return (options.client ?? this.client).delete({
@@ -1356,7 +1331,7 @@ var Projects = class extends HeyApiClient {
1356
1331
  });
1357
1332
  }
1358
1333
  /**
1359
- * GET /api/projects/{id} - Get a project by ID
1334
+ * Get a project by ID
1360
1335
  */
1361
1336
  get(options) {
1362
1337
  return (options.client ?? this.client).get({
@@ -1375,7 +1350,7 @@ var Projects = class extends HeyApiClient {
1375
1350
  });
1376
1351
  }
1377
1352
  /**
1378
- * PATCH /api/projects/{id} - Update a project
1353
+ * Update a project
1379
1354
  */
1380
1355
  update(options) {
1381
1356
  return (options.client ?? this.client).patch({
@@ -1398,7 +1373,7 @@ var Projects = class extends HeyApiClient {
1398
1373
  });
1399
1374
  }
1400
1375
  /**
1401
- * GET /api/rate-limits - What a project without limits of its own follows
1376
+ * What a project without limits of its own follows
1402
1377
  */
1403
1378
  getRateLimits(options) {
1404
1379
  return (options?.client ?? this.client).get({
@@ -1419,7 +1394,6 @@ var Projects = class extends HeyApiClient {
1419
1394
  };
1420
1395
  var Agents = class extends HeyApiClient {
1421
1396
  /**
1422
- * GET /api/projects/{project_id}/agents/conversations
1423
1397
  * Lists conversations -- traces sharing a `gen_ai.conversation.id` -- the most recently active first.
1424
1398
  */
1425
1399
  conversations(options) {
@@ -1439,7 +1413,6 @@ var Agents = class extends HeyApiClient {
1439
1413
  });
1440
1414
  }
1441
1415
  /**
1442
- * GET /api/projects/{project_id}/agents/conversations/{conversation_id}
1443
1416
  * Returns every AI span of a conversation's turns, oldest first, with its input and output.
1444
1417
  */
1445
1418
  conversation(options) {
@@ -1459,7 +1432,6 @@ var Agents = class extends HeyApiClient {
1459
1432
  });
1460
1433
  }
1461
1434
  /**
1462
- * GET /api/projects/{project_id}/agents/duration
1463
1435
  * Time-bucketed avg/p95 duration for `agent`/`ai_client` spans.
1464
1436
  */
1465
1437
  duration(options) {
@@ -1479,7 +1451,6 @@ var Agents = class extends HeyApiClient {
1479
1451
  });
1480
1452
  }
1481
1453
  /**
1482
- * GET /api/projects/{project_id}/agents/environments
1483
1454
  * The options the environment filter offers, read from the data rather than
1484
1455
  * hardcoded — an installation may name its environments anything.
1485
1456
  */
@@ -1500,7 +1471,7 @@ var Agents = class extends HeyApiClient {
1500
1471
  });
1501
1472
  }
1502
1473
  /**
1503
- * GET /api/projects/{project_id}/agents/models
1474
+ * Lists the AI models a project's agents called, with requests, tokens and latency.
1504
1475
  */
1505
1476
  modelsTable(options) {
1506
1477
  return (options.client ?? this.client).get({
@@ -1519,7 +1490,6 @@ var Agents = class extends HeyApiClient {
1519
1490
  });
1520
1491
  }
1521
1492
  /**
1522
- * GET /api/projects/{project_id}/agents/models/calls
1523
1493
  * Top models by LLM call count (`gen_ai.operation.type:ai_client`).
1524
1494
  */
1525
1495
  modelsCalls(options) {
@@ -1539,7 +1509,6 @@ var Agents = class extends HeyApiClient {
1539
1509
  });
1540
1510
  }
1541
1511
  /**
1542
- * GET /api/projects/{project_id}/agents/models/tokens
1543
1512
  * Top models by total tokens used (`gen_ai.operation.type:ai_client`).
1544
1513
  */
1545
1514
  modelsTokens(options) {
@@ -1559,7 +1528,6 @@ var Agents = class extends HeyApiClient {
1559
1528
  });
1560
1529
  }
1561
1530
  /**
1562
- * GET /api/projects/{project_id}/agents/runs
1563
1531
  * Time-bucketed count of agent-run spans (`gen_ai.operation.type:agent`).
1564
1532
  */
1565
1533
  runs(options) {
@@ -1579,7 +1547,6 @@ var Agents = class extends HeyApiClient {
1579
1547
  });
1580
1548
  }
1581
1549
  /**
1582
- * GET /api/projects/{project_id}/agents/summary
1583
1550
  * Agent runs, LLM calls, tool calls, errors, tokens and latency over the
1584
1551
  * selected window — the numbers the six charts cannot state outright.
1585
1552
  */
@@ -1600,7 +1567,6 @@ var Agents = class extends HeyApiClient {
1600
1567
  });
1601
1568
  }
1602
1569
  /**
1603
- * GET /api/projects/{project_id}/agents/tools
1604
1570
  * Top tools by call count (`gen_ai.operation.type:tool`).
1605
1571
  */
1606
1572
  tools(options) {
@@ -1620,7 +1586,7 @@ var Agents = class extends HeyApiClient {
1620
1586
  });
1621
1587
  }
1622
1588
  /**
1623
- * GET /api/projects/{project_id}/agents/tools/stats
1589
+ * Lists the tools a project's agents called, with calls, errors and latency.
1624
1590
  */
1625
1591
  toolsTable(options) {
1626
1592
  return (options.client ?? this.client).get({
@@ -1639,7 +1605,6 @@ var Agents = class extends HeyApiClient {
1639
1605
  });
1640
1606
  }
1641
1607
  /**
1642
- * GET /api/projects/{project_id}/agents/traces
1643
1608
  * Paginated per-trace_id aggregate (duration, tokens, tool usage) across
1644
1609
  * all AI spans sharing that trace, regardless of origin.
1645
1610
  */
@@ -1662,7 +1627,7 @@ var Agents = class extends HeyApiClient {
1662
1627
  };
1663
1628
  var AlertRules = class extends HeyApiClient {
1664
1629
  /**
1665
- * GET /api/projects/{project_id}/alert-history
1630
+ * Lists the alerts a project sent, newest first.
1666
1631
  */
1667
1632
  listHistory(options) {
1668
1633
  return (options.client ?? this.client).get({
@@ -1700,7 +1665,7 @@ var AlertRules = class extends HeyApiClient {
1700
1665
  });
1701
1666
  }
1702
1667
  /**
1703
- * GET /api/projects/{project_id}/alert-rules
1668
+ * Lists a project's alert rules.
1704
1669
  */
1705
1670
  list(options) {
1706
1671
  return (options.client ?? this.client).get({
@@ -1719,7 +1684,7 @@ var AlertRules = class extends HeyApiClient {
1719
1684
  });
1720
1685
  }
1721
1686
  /**
1722
- * POST /api/projects/{project_id}/alert-rules
1687
+ * Creates an alert rule in a project.
1723
1688
  */
1724
1689
  create(options) {
1725
1690
  return (options.client ?? this.client).post({
@@ -1742,7 +1707,7 @@ var AlertRules = class extends HeyApiClient {
1742
1707
  });
1743
1708
  }
1744
1709
  /**
1745
- * DELETE /api/projects/{project_id}/alert-rules/{rule_id}
1710
+ * Deletes an alert rule.
1746
1711
  */
1747
1712
  delete(options) {
1748
1713
  return (options.client ?? this.client).delete({
@@ -1761,7 +1726,7 @@ var AlertRules = class extends HeyApiClient {
1761
1726
  });
1762
1727
  }
1763
1728
  /**
1764
- * GET /api/projects/{project_id}/alert-rules/{rule_id}
1729
+ * Gets one alert rule.
1765
1730
  */
1766
1731
  get(options) {
1767
1732
  return (options.client ?? this.client).get({
@@ -1780,7 +1745,7 @@ var AlertRules = class extends HeyApiClient {
1780
1745
  });
1781
1746
  }
1782
1747
  /**
1783
- * PATCH /api/projects/{project_id}/alert-rules/{rule_id}
1748
+ * Updates an alert rule.
1784
1749
  */
1785
1750
  update(options) {
1786
1751
  return (options.client ?? this.client).patch({
@@ -1805,7 +1770,6 @@ var AlertRules = class extends HeyApiClient {
1805
1770
  };
1806
1771
  var Events = class extends HeyApiClient {
1807
1772
  /**
1808
- * GET /api/projects/{project_id}/attachments/{attachment_id}
1809
1773
  * Downloads an attachment. Only a real image is served inline; anything
1810
1774
  * else, whatever type it claims, is a download that never runs.
1811
1775
  */
@@ -1845,7 +1809,6 @@ var Events = class extends HeyApiClient {
1845
1809
  });
1846
1810
  }
1847
1811
  /**
1848
- * GET /api/projects/{project_id}/issues/{issue_id}/events
1849
1812
  * Lists events for an issue with cursor-based pagination
1850
1813
  */
1851
1814
  list(options) {
@@ -1865,7 +1828,6 @@ var Events = class extends HeyApiClient {
1865
1828
  });
1866
1829
  }
1867
1830
  /**
1868
- * GET /api/projects/{project_id}/issues/{issue_id}/events/{event_id}
1869
1831
  * Gets a single event with full data
1870
1832
  */
1871
1833
  get(options) {
@@ -1885,7 +1847,6 @@ var Events = class extends HeyApiClient {
1885
1847
  });
1886
1848
  }
1887
1849
  /**
1888
- * GET /api/projects/{project_id}/issues/{issue_id}/events/{event_id}/attachments
1889
1850
  * Lists the files sent with an event, such as a feedback's screenshot.
1890
1851
  */
1891
1852
  listAttachments(options) {
@@ -1907,7 +1868,6 @@ var Events = class extends HeyApiClient {
1907
1868
  };
1908
1869
  var Environments = class extends HeyApiClient {
1909
1870
  /**
1910
- * GET /api/projects/{project_id}/environments
1911
1871
  * Lists the environments a project's issues have been seen in, by name.
1912
1872
  */
1913
1873
  list(options) {
@@ -1929,7 +1889,7 @@ var Environments = class extends HeyApiClient {
1929
1889
  };
1930
1890
  var Stats = class extends HeyApiClient {
1931
1891
  /**
1932
- * GET /api/projects/{project_id}/events/stats
1892
+ * Counts a project's events over time, bucketed for a chart.
1933
1893
  */
1934
1894
  getEventTimeseries(options) {
1935
1895
  return (options.client ?? this.client).get({
@@ -1948,7 +1908,7 @@ var Stats = class extends HeyApiClient {
1948
1908
  });
1949
1909
  }
1950
1910
  /**
1951
- * GET /api/projects/{project_id}/stats/summary
1911
+ * Headline figures for a project's overview: events, new and open issues.
1952
1912
  */
1953
1913
  getSummary(options) {
1954
1914
  return (options.client ?? this.client).get({
@@ -1969,7 +1929,6 @@ var Stats = class extends HeyApiClient {
1969
1929
  };
1970
1930
  var Feedback = class extends HeyApiClient {
1971
1931
  /**
1972
- * GET /api/projects/{project_id}/feedback
1973
1932
  * Lists user feedback with what each user submitted. Every feedback is an
1974
1933
  * issue of category `feedback`; spam is a muted one.
1975
1934
  */
@@ -1992,7 +1951,7 @@ var Feedback = class extends HeyApiClient {
1992
1951
  };
1993
1952
  var Issues = class extends HeyApiClient {
1994
1953
  /**
1995
- * DELETE /api/projects/{project_id}/issues (bulk delete by ids or filter)
1954
+ * Deletes many issues at once, selected by id or by filter.
1996
1955
  */
1997
1956
  bulkDelete(options) {
1998
1957
  return (options.client ?? this.client).delete({
@@ -2015,7 +1974,6 @@ var Issues = class extends HeyApiClient {
2015
1974
  });
2016
1975
  }
2017
1976
  /**
2018
- * GET /api/projects/{project_id}/issues
2019
1977
  * Lists issues for a project with offset-based pagination
2020
1978
  */
2021
1979
  list(options) {
@@ -2035,7 +1993,7 @@ var Issues = class extends HeyApiClient {
2035
1993
  });
2036
1994
  }
2037
1995
  /**
2038
- * PUT /api/projects/{project_id}/issues (bulk mutate)
1996
+ * Sets the status or priority of many issues at once, by id.
2039
1997
  */
2040
1998
  bulkUpdate(options) {
2041
1999
  return (options.client ?? this.client).put({
@@ -2058,7 +2016,6 @@ var Issues = class extends HeyApiClient {
2058
2016
  });
2059
2017
  }
2060
2018
  /**
2061
- * DELETE /api/projects/{project_id}/issues/{issue_id}
2062
2019
  * Hard-deletes an issue and all associated events
2063
2020
  */
2064
2021
  delete(options) {
@@ -2078,7 +2035,6 @@ var Issues = class extends HeyApiClient {
2078
2035
  });
2079
2036
  }
2080
2037
  /**
2081
- * GET /api/projects/{project_id}/issues/{issue_id}
2082
2038
  * Gets a single issue by ID
2083
2039
  */
2084
2040
  get(options) {
@@ -2098,7 +2054,6 @@ var Issues = class extends HeyApiClient {
2098
2054
  });
2099
2055
  }
2100
2056
  /**
2101
- * PATCH /api/projects/{project_id}/issues/{issue_id}
2102
2057
  * Updates issue state (resolve, mute, etc.)
2103
2058
  */
2104
2059
  update(options) {
@@ -2122,7 +2077,7 @@ var Issues = class extends HeyApiClient {
2122
2077
  });
2123
2078
  }
2124
2079
  /**
2125
- * GET /{issue_id}/activity — chronological activity log (incl. comments).
2080
+ * Chronological activity log (incl. comments).
2126
2081
  */
2127
2082
  getActivity(options) {
2128
2083
  return (options.client ?? this.client).get({
@@ -2141,7 +2096,6 @@ var Issues = class extends HeyApiClient {
2141
2096
  });
2142
2097
  }
2143
2098
  /**
2144
- * GET /api/projects/{project_id}/issues/{issue_id}/aggregates
2145
2099
  * Returns the unique user count and top tags for the issue.
2146
2100
  */
2147
2101
  getAggregates(options) {
@@ -2161,7 +2115,7 @@ var Issues = class extends HeyApiClient {
2161
2115
  });
2162
2116
  }
2163
2117
  /**
2164
- * PUT /{issue_id}/bookmark — set/clear the per-user bookmark.
2118
+ * Set/clear the per-user bookmark.
2165
2119
  */
2166
2120
  setBookmark(options) {
2167
2121
  return (options.client ?? this.client).put({
@@ -2184,7 +2138,7 @@ var Issues = class extends HeyApiClient {
2184
2138
  });
2185
2139
  }
2186
2140
  /**
2187
- * POST /{issue_id}/comments — add a note.
2141
+ * Add a note.
2188
2142
  */
2189
2143
  createComment(options) {
2190
2144
  return (options.client ?? this.client).post({
@@ -2207,7 +2161,6 @@ var Issues = class extends HeyApiClient {
2207
2161
  });
2208
2162
  }
2209
2163
  /**
2210
- * GET /api/projects/{project_id}/issues/{issue_id}/hashes
2211
2164
  * Lists the grouping hashes that map to an issue.
2212
2165
  */
2213
2166
  getHashes(options) {
@@ -2227,7 +2180,7 @@ var Issues = class extends HeyApiClient {
2227
2180
  });
2228
2181
  }
2229
2182
  /**
2230
- * POST /{issue_id}/seen — mark the issue as seen by the current user.
2183
+ * Mark the issue as seen by the current user.
2231
2184
  */
2232
2185
  markSeen(options) {
2233
2186
  return (options.client ?? this.client).post({
@@ -2246,7 +2199,7 @@ var Issues = class extends HeyApiClient {
2246
2199
  });
2247
2200
  }
2248
2201
  /**
2249
- * GET /{issue_id}/stats?window=24h|30d — zero-filled event-count timeseries.
2202
+ * Zero-filled event-count timeseries.
2250
2203
  */
2251
2204
  getStats(options) {
2252
2205
  return (options.client ?? this.client).get({
@@ -2265,7 +2218,7 @@ var Issues = class extends HeyApiClient {
2265
2218
  });
2266
2219
  }
2267
2220
  /**
2268
- * PUT /{issue_id}/subscription — set/clear the per-user subscription.
2221
+ * Set/clear the per-user subscription.
2269
2222
  */
2270
2223
  setSubscription(options) {
2271
2224
  return (options.client ?? this.client).put({
@@ -2288,7 +2241,6 @@ var Issues = class extends HeyApiClient {
2288
2241
  });
2289
2242
  }
2290
2243
  /**
2291
- * GET /api/projects/{project_id}/issues/{issue_id}/tags/{key}
2292
2244
  * Lists the distinct values (with counts) for a tag key across the issue.
2293
2245
  */
2294
2246
  getTagValues(options) {
@@ -2308,7 +2260,7 @@ var Issues = class extends HeyApiClient {
2308
2260
  });
2309
2261
  }
2310
2262
  /**
2311
- * GET /{issue_id}/user-reports — list user feedback for an issue.
2263
+ * List user feedback for an issue.
2312
2264
  */
2313
2265
  listUserReports(options) {
2314
2266
  return (options.client ?? this.client).get({
@@ -2327,7 +2279,7 @@ var Issues = class extends HeyApiClient {
2327
2279
  });
2328
2280
  }
2329
2281
  /**
2330
- * POST /{issue_id}/user-reports — attach user feedback to an issue.
2282
+ * Attach user feedback to an issue.
2331
2283
  */
2332
2284
  createUserReport(options) {
2333
2285
  return (options.client ?? this.client).post({
@@ -2352,7 +2304,6 @@ var Issues = class extends HeyApiClient {
2352
2304
  };
2353
2305
  var Logs = class extends HeyApiClient {
2354
2306
  /**
2355
- * GET /api/projects/{project_id}/logs
2356
2307
  * Lists logs for a project with offset-based pagination (newest first by
2357
2308
  * log timestamp), optionally filtered by level, trace id, message and window.
2358
2309
  */
@@ -2373,7 +2324,6 @@ var Logs = class extends HeyApiClient {
2373
2324
  });
2374
2325
  }
2375
2326
  /**
2376
- * GET /api/projects/{project_id}/logs/volume
2377
2327
  * Counts a project's logs per level over time, with the list's filters.
2378
2328
  */
2379
2329
  volume(options) {
@@ -2393,7 +2343,6 @@ var Logs = class extends HeyApiClient {
2393
2343
  });
2394
2344
  }
2395
2345
  /**
2396
- * GET /api/projects/{project_id}/logs/{log_id}
2397
2346
  * Returns one of a project's logs, wherever it falls in the list.
2398
2347
  */
2399
2348
  get(options) {
@@ -2497,7 +2446,6 @@ var Members = class extends HeyApiClient {
2497
2446
  };
2498
2447
  var Monitors = class extends HeyApiClient {
2499
2448
  /**
2500
- * GET /api/projects/{project_id}/monitor-stats
2501
2449
  * Counts the check-ins of a project's monitors by status over a window, bucket by bucket.
2502
2450
  */
2503
2451
  stats(options) {
@@ -2517,7 +2465,7 @@ var Monitors = class extends HeyApiClient {
2517
2465
  });
2518
2466
  }
2519
2467
  /**
2520
- * GET /api/projects/{project_id}/monitors
2468
+ * Lists a project's cron monitors.
2521
2469
  */
2522
2470
  list(options) {
2523
2471
  return (options.client ?? this.client).get({
@@ -2536,7 +2484,7 @@ var Monitors = class extends HeyApiClient {
2536
2484
  });
2537
2485
  }
2538
2486
  /**
2539
- * POST /api/projects/{project_id}/monitors
2487
+ * Creates a cron monitor in a project.
2540
2488
  */
2541
2489
  create(options) {
2542
2490
  return (options.client ?? this.client).post({
@@ -2559,7 +2507,7 @@ var Monitors = class extends HeyApiClient {
2559
2507
  });
2560
2508
  }
2561
2509
  /**
2562
- * DELETE /api/projects/{project_id}/monitors/{slug}
2510
+ * Deletes a cron monitor and its check-ins.
2563
2511
  */
2564
2512
  delete(options) {
2565
2513
  return (options.client ?? this.client).delete({
@@ -2578,7 +2526,7 @@ var Monitors = class extends HeyApiClient {
2578
2526
  });
2579
2527
  }
2580
2528
  /**
2581
- * GET /api/projects/{project_id}/monitors/{slug}
2529
+ * Gets one cron monitor.
2582
2530
  */
2583
2531
  get(options) {
2584
2532
  return (options.client ?? this.client).get({
@@ -2597,7 +2545,7 @@ var Monitors = class extends HeyApiClient {
2597
2545
  });
2598
2546
  }
2599
2547
  /**
2600
- * PUT /api/projects/{project_id}/monitors/{slug}
2548
+ * Updates a cron monitor.
2601
2549
  */
2602
2550
  update(options) {
2603
2551
  return (options.client ?? this.client).put({
@@ -2620,7 +2568,7 @@ var Monitors = class extends HeyApiClient {
2620
2568
  });
2621
2569
  }
2622
2570
  /**
2623
- * GET /api/projects/{project_id}/monitors/{slug}/checkins
2571
+ * Lists a cron monitor's check-ins, newest first.
2624
2572
  */
2625
2573
  listCheckins(options) {
2626
2574
  return (options.client ?? this.client).get({
@@ -2641,7 +2589,7 @@ var Monitors = class extends HeyApiClient {
2641
2589
  };
2642
2590
  var Sessions = class extends HeyApiClient {
2643
2591
  /**
2644
- * GET /api/projects/{project_id}/sessions/stats
2592
+ * Session counts by release, for release health.
2645
2593
  */
2646
2594
  getStats(options) {
2647
2595
  return (options.client ?? this.client).get({
@@ -2660,7 +2608,7 @@ var Sessions = class extends HeyApiClient {
2660
2608
  });
2661
2609
  }
2662
2610
  /**
2663
- * GET /api/projects/{project_id}/sessions/summary
2611
+ * Totals and crash-free rates for a project's sessions.
2664
2612
  */
2665
2613
  getSummary(options) {
2666
2614
  return (options.client ?? this.client).get({
@@ -2679,7 +2627,7 @@ var Sessions = class extends HeyApiClient {
2679
2627
  });
2680
2628
  }
2681
2629
  /**
2682
- * GET /api/projects/{project_id}/sessions/timeseries
2630
+ * Session counts over time, bucketed for a chart.
2683
2631
  */
2684
2632
  getTimeseries(options) {
2685
2633
  return (options.client ?? this.client).get({
@@ -2700,7 +2648,6 @@ var Sessions = class extends HeyApiClient {
2700
2648
  };
2701
2649
  var Spans = class extends HeyApiClient {
2702
2650
  /**
2703
- * GET /api/projects/{project_id}/spans
2704
2651
  * Lists spans for a project with offset-based pagination (newest by
2705
2652
  * start_timestamp first), optionally filtered by op/status/trace_id.
2706
2653
  * Returns spans regardless of origin — standalone or extracted from a
@@ -2723,7 +2670,6 @@ var Spans = class extends HeyApiClient {
2723
2670
  });
2724
2671
  }
2725
2672
  /**
2726
- * GET /api/projects/{project_id}/spans/{span_id}
2727
2673
  * Returns one span together with its attributes and tags — the `gen_ai.*`
2728
2674
  * payload (prompts, responses, tool arguments and results) that the list
2729
2675
  * response deliberately omits, since `spans.data` is untrimmed and a whole
@@ -2748,7 +2694,6 @@ var Spans = class extends HeyApiClient {
2748
2694
  };
2749
2695
  var Transactions = class extends HeyApiClient {
2750
2696
  /**
2751
- * GET /api/projects/{project_id}/transactions
2752
2697
  * Lists transactions for a project with offset-based pagination (newest first).
2753
2698
  */
2754
2699
  list(options) {
@@ -2768,7 +2713,6 @@ var Transactions = class extends HeyApiClient {
2768
2713
  });
2769
2714
  }
2770
2715
  /**
2771
- * GET /api/projects/{project_id}/transactions/stats
2772
2716
  * Returns paginated aggregate performance stats (count, time spent, p50/p95/p99
2773
2717
  * latency, failure rate) grouped by transaction name + op, the most time spent
2774
2718
  * first unless `sort` asks otherwise.
@@ -2790,7 +2734,6 @@ var Transactions = class extends HeyApiClient {
2790
2734
  });
2791
2735
  }
2792
2736
  /**
2793
- * GET /api/projects/{project_id}/transactions/stats/group?name=&op=
2794
2737
  * Returns the aggregate stats for a single transaction group — a direct lookup
2795
2738
  * so the summary header works regardless of how many groups the project has.
2796
2739
  */
@@ -2833,7 +2776,6 @@ var Transactions = class extends HeyApiClient {
2833
2776
  });
2834
2777
  }
2835
2778
  /**
2836
- * GET /api/projects/{project_id}/transactions/{transaction_id}
2837
2779
  * Returns a single transaction with its full Sentry payload (spans, contexts,
2838
2780
  * measurements, tags) for the performance detail view.
2839
2781
  */
@@ -2854,7 +2796,6 @@ var Transactions = class extends HeyApiClient {
2854
2796
  });
2855
2797
  }
2856
2798
  /**
2857
- * GET /api/projects/{project_id}/transactions/{transaction_id}/spans
2858
2799
  * Returns the indexed spans extracted from a transaction, ordered for the
2859
2800
  * waterfall view (by start_timestamp ascending).
2860
2801
  */
@@ -2966,8 +2907,6 @@ var Roles = class extends HeyApiClient {
2966
2907
  };
2967
2908
  var Schedules = class extends HeyApiClient {
2968
2909
  /**
2969
- * POST /api/schedules/preview
2970
- *
2971
2910
  * Validates a schedule and lists its next five runs from now, so no client
2972
2911
  * ever parses a crontab itself.
2973
2912
  */
@@ -3039,7 +2978,7 @@ var Settings = class extends HeyApiClient {
3039
2978
  };
3040
2979
  var Storage = class extends HeyApiClient {
3041
2980
  /**
3042
- * GET /api/storage/age — rows per age bucket, per project and kind.
2981
+ * Rows per age bucket, per project and kind.
3043
2982
  */
3044
2983
  getAge(options) {
3045
2984
  return (options?.client ?? this.client).get({
@@ -3058,7 +2997,7 @@ var Storage = class extends HeyApiClient {
3058
2997
  });
3059
2998
  }
3060
2999
  /**
3061
- * POST /api/storage/cleanup — starts deleting old data and the issues it
3000
+ * Starts deleting old data and the issues it
3062
3001
  * empties. Returns at once: the purge runs detached, in batches, and
3063
3002
  * `GET /api/storage/cleanup/status` reports its progress.
3064
3003
  */
@@ -3083,7 +3022,7 @@ var Storage = class extends HeyApiClient {
3083
3022
  });
3084
3023
  }
3085
3024
  /**
3086
- * POST /api/storage/cleanup/preview — dry-run count, mutates nothing.
3025
+ * Dry-run count, mutates nothing.
3087
3026
  */
3088
3027
  previewCleanup(options) {
3089
3028
  return (options.client ?? this.client).post({
@@ -3106,7 +3045,7 @@ var Storage = class extends HeyApiClient {
3106
3045
  });
3107
3046
  }
3108
3047
  /**
3109
- * GET /api/storage/cleanup/status — progress of the running cleanup, or the
3048
+ * Progress of the running cleanup, or the
3110
3049
  * outcome of the last one.
3111
3050
  */
3112
3051
  getCleanupStatus(options) {
@@ -3126,7 +3065,7 @@ var Storage = class extends HeyApiClient {
3126
3065
  });
3127
3066
  }
3128
3067
  /**
3129
- * GET /api/storage/compaction — whether the database file shrinks when data
3068
+ * Whether the database file shrinks when data
3130
3069
  * is deleted, and the disk a one-off compaction needs.
3131
3070
  */
3132
3071
  getCompaction(options) {
@@ -3146,7 +3085,7 @@ var Storage = class extends HeyApiClient {
3146
3085
  });
3147
3086
  }
3148
3087
  /**
3149
- * POST /api/storage/compaction — rewrites a SQLite file created before
3088
+ * Rewrites a SQLite file created before
3150
3089
  * incremental mode, so it gives freed space back from then on. Writes wait
3151
3090
  * while it runs; follow it with `GET /api/storage/cleanup/status`.
3152
3091
  */
@@ -3167,7 +3106,7 @@ var Storage = class extends HeyApiClient {
3167
3106
  });
3168
3107
  }
3169
3108
  /**
3170
- * GET /api/storage/projects — per-project counts and estimated weight.
3109
+ * Per-project counts and estimated weight.
3171
3110
  */
3172
3111
  getProjects(options) {
3173
3112
  return (options?.client ?? this.client).get({
@@ -3186,7 +3125,7 @@ var Storage = class extends HeyApiClient {
3186
3125
  });
3187
3126
  }
3188
3127
  /**
3189
- * GET /api/storage/retention
3128
+ * Gets the retention settings and the cleanup schedule.
3190
3129
  */
3191
3130
  getRetention(options) {
3192
3131
  return (options?.client ?? this.client).get({
@@ -3205,7 +3144,7 @@ var Storage = class extends HeyApiClient {
3205
3144
  });
3206
3145
  }
3207
3146
  /**
3208
- * PUT /api/storage/retention
3147
+ * Updates the retention settings; the next cleanup is scheduled at once.
3209
3148
  */
3210
3149
  updateRetention(options) {
3211
3150
  return (options.client ?? this.client).put({
@@ -3228,7 +3167,7 @@ var Storage = class extends HeyApiClient {
3228
3167
  });
3229
3168
  }
3230
3169
  /**
3231
- * POST /api/storage/retention/preview — what saving these settings would
3170
+ * What saving these settings would
3232
3171
  * delete on the next cleanup, without saving or deleting anything.
3233
3172
  */
3234
3173
  previewRetention(options) {
@@ -3252,7 +3191,7 @@ var Storage = class extends HeyApiClient {
3252
3191
  });
3253
3192
  }
3254
3193
  /**
3255
- * POST /api/storage/retention/run — enforces the saved retention now,
3194
+ * Enforces the saved retention now,
3256
3195
  * without waiting for the schedule. Follow it with the cleanup status.
3257
3196
  */
3258
3197
  runRetention(options) {
@@ -3272,7 +3211,7 @@ var Storage = class extends HeyApiClient {
3272
3211
  });
3273
3212
  }
3274
3213
  /**
3275
- * POST /api/storage/source-maps/gc — delete orphaned source maps (DB + disk).
3214
+ * Delete orphaned source maps (DB + disk).
3276
3215
  */
3277
3216
  gcSourceMaps(options) {
3278
3217
  return (options?.client ?? this.client).post({
@@ -3291,7 +3230,7 @@ var Storage = class extends HeyApiClient {
3291
3230
  });
3292
3231
  }
3293
3232
  /**
3294
- * POST /api/storage/source-maps/gc/preview — dry-run orphan count, deletes nothing.
3233
+ * Dry-run orphan count, deletes nothing.
3295
3234
  */
3296
3235
  previewSourceMapGc(options) {
3297
3236
  return (options?.client ?? this.client).post({
@@ -3310,7 +3249,7 @@ var Storage = class extends HeyApiClient {
3310
3249
  });
3311
3250
  }
3312
3251
  /**
3313
- * GET /api/storage/summary — row counts, DB size, and source-map weight.
3252
+ * Row counts, DB size, and source-map weight.
3314
3253
  */
3315
3254
  getSummary(options) {
3316
3255
  return (options?.client ?? this.client).get({
@@ -3331,7 +3270,7 @@ var Storage = class extends HeyApiClient {
3331
3270
  };
3332
3271
  var Team = class extends HeyApiClient {
3333
3272
  /**
3334
- * GET /api/team — list all users (needs `users:read`)
3273
+ * List all users (needs `users:read`)
3335
3274
  */
3336
3275
  list(options) {
3337
3276
  return (options?.client ?? this.client).get({
@@ -3350,7 +3289,7 @@ var Team = class extends HeyApiClient {
3350
3289
  });
3351
3290
  }
3352
3291
  /**
3353
- * DELETE /api/team/{user_id} — remove a user from the instance (needs `users:delete`)
3292
+ * Remove a user from the instance (needs `users:delete`)
3354
3293
  */
3355
3294
  deleteUser(options) {
3356
3295
  return (options.client ?? this.client).delete({
@@ -3369,7 +3308,7 @@ var Team = class extends HeyApiClient {
3369
3308
  });
3370
3309
  }
3371
3310
  /**
3372
- * PATCH /api/team/{user_id}/role — change a user's global role (needs `users:update`)
3311
+ * Change a user's global role (needs `users:update`)
3373
3312
  */
3374
3313
  updateRole(options) {
3375
3314
  return (options.client ?? this.client).patch({
@@ -3394,7 +3333,7 @@ var Team = class extends HeyApiClient {
3394
3333
  };
3395
3334
  var Telemetry = class extends HeyApiClient {
3396
3335
  /**
3397
- * GET /api/telemetry/preview
3336
+ * Shows the exact anonymous telemetry report this instance would send.
3398
3337
  */
3399
3338
  preview(options) {
3400
3339
  return (options?.client ?? this.client).get({
@@ -3415,7 +3354,7 @@ var Telemetry = class extends HeyApiClient {
3415
3354
  };
3416
3355
  var Tokens = class extends HeyApiClient {
3417
3356
  /**
3418
- * GET /api/tokens - List tokens (masked)
3357
+ * List tokens (masked)
3419
3358
  *
3420
3359
  * Everyone sees their own tokens; `api-tokens:read` sees every token. A token
3421
3360
  * limited to other permissions sees none: it must not reach its owner's others.
@@ -3437,7 +3376,7 @@ var Tokens = class extends HeyApiClient {
3437
3376
  });
3438
3377
  }
3439
3378
  /**
3440
- * POST /api/tokens - Create a new token (from a signed-in session only)
3379
+ * Create a new token (from a signed-in session only)
3441
3380
  *
3442
3381
  * A token cannot create tokens: a limited or expiring one could otherwise
3443
3382
  * mint itself a way out of its limits.
@@ -3463,7 +3402,7 @@ var Tokens = class extends HeyApiClient {
3463
3402
  });
3464
3403
  }
3465
3404
  /**
3466
- * DELETE /api/tokens/{id} - Revoke a token
3405
+ * Revoke a token
3467
3406
  *
3468
3407
  * Everyone may revoke their own; `api-tokens:delete` revokes any.
3469
3408
  */
@@ -3484,7 +3423,7 @@ var Tokens = class extends HeyApiClient {
3484
3423
  });
3485
3424
  }
3486
3425
  /**
3487
- * GET /api/tokens/{id} - Token details, masked
3426
+ * Token details, masked
3488
3427
  *
3489
3428
  * Tokens are stored hashed, so the full value is only ever shown on
3490
3429
  * creation. Everyone may view their own; `api-tokens:read` views any.
@@ -3555,7 +3494,6 @@ var Users = class extends HeyApiClient {
3555
3494
  };
3556
3495
  var Auth = class extends HeyApiClient {
3557
3496
  /**
3558
- * POST /auth/accept-invitation
3559
3497
  * Accept a pending invitation: creates the user (with the invite's email + role) and logs in.
3560
3498
  */
3561
3499
  acceptInvitation(options) {
@@ -3575,7 +3513,6 @@ var Auth = class extends HeyApiClient {
3575
3513
  });
3576
3514
  }
3577
3515
  /**
3578
- * GET /auth/invitation/{token}
3579
3516
  * Returns the invitation's details if it is still acceptable (for the accept page).
3580
3517
  */
3581
3518
  getInvitation(options) {
@@ -3591,7 +3528,6 @@ var Auth = class extends HeyApiClient {
3591
3528
  });
3592
3529
  }
3593
3530
  /**
3594
- * POST /auth/login
3595
3531
  * Authenticate user and create session
3596
3532
  */
3597
3533
  login(options) {
@@ -3611,7 +3547,6 @@ var Auth = class extends HeyApiClient {
3611
3547
  });
3612
3548
  }
3613
3549
  /**
3614
- * POST /auth/logout
3615
3550
  * Clear session
3616
3551
  */
3617
3552
  logout(options) {
@@ -3624,7 +3559,7 @@ var Auth = class extends HeyApiClient {
3624
3559
  responseValidator: async (data) => await require_zod_gen.zAuthLogoutResponse.parseAsync(data),
3625
3560
  security: [{
3626
3561
  in: "cookie",
3627
- name: "session",
3562
+ name: "rustrak_session",
3628
3563
  type: "apiKey"
3629
3564
  }],
3630
3565
  url: "/auth/logout",
@@ -3632,7 +3567,6 @@ var Auth = class extends HeyApiClient {
3632
3567
  });
3633
3568
  }
3634
3569
  /**
3635
- * GET /auth/me
3636
3570
  * Get current authenticated user
3637
3571
  */
3638
3572
  getCurrentUser(options) {
@@ -3645,7 +3579,7 @@ var Auth = class extends HeyApiClient {
3645
3579
  responseValidator: async (data) => await require_zod_gen.zAuthGetCurrentUserResponse.parseAsync(data),
3646
3580
  security: [{
3647
3581
  in: "cookie",
3648
- name: "session",
3582
+ name: "rustrak_session",
3649
3583
  type: "apiKey"
3650
3584
  }],
3651
3585
  url: "/auth/me",
@@ -3653,7 +3587,6 @@ var Auth = class extends HeyApiClient {
3653
3587
  });
3654
3588
  }
3655
3589
  /**
3656
- * PATCH /auth/me
3657
3590
  * Update the current user's presentation preferences
3658
3591
  */
3659
3592
  updateCurrentUser(options) {
@@ -3666,7 +3599,7 @@ var Auth = class extends HeyApiClient {
3666
3599
  responseValidator: async (data) => await require_zod_gen.zAuthUpdateCurrentUserResponse.parseAsync(data),
3667
3600
  security: [{
3668
3601
  in: "cookie",
3669
- name: "session",
3602
+ name: "rustrak_session",
3670
3603
  type: "apiKey"
3671
3604
  }],
3672
3605
  url: "/auth/me",
@@ -3678,8 +3611,8 @@ var Auth = class extends HeyApiClient {
3678
3611
  });
3679
3612
  }
3680
3613
  /**
3681
- * POST /auth/me/password
3682
- * Change the current user's password
3614
+ * Change the current user's password. Every other session of the user ends;
3615
+ * this one continues under a new id.
3683
3616
  */
3684
3617
  changePassword(options) {
3685
3618
  return (options.client ?? this.client).post({
@@ -3691,7 +3624,7 @@ var Auth = class extends HeyApiClient {
3691
3624
  responseValidator: async (data) => await require_zod_gen.zAuthChangePasswordResponse.parseAsync(data),
3692
3625
  security: [{
3693
3626
  in: "cookie",
3694
- name: "session",
3627
+ name: "rustrak_session",
3695
3628
  type: "apiKey"
3696
3629
  }],
3697
3630
  url: "/auth/me/password",
@@ -3703,26 +3636,6 @@ var Auth = class extends HeyApiClient {
3703
3636
  });
3704
3637
  }
3705
3638
  /**
3706
- * POST /auth/register
3707
- * Registration is invite-only — always rejected. Use `/auth/accept-invitation`.
3708
- */
3709
- register(options) {
3710
- return (options.client ?? this.client).post({
3711
- requestValidator: async (data) => await zod.object({
3712
- body: require_zod_gen.zAuthRegisterBody,
3713
- path: zod.never().optional(),
3714
- query: zod.never().optional()
3715
- }).parseAsync(data),
3716
- url: "/auth/register",
3717
- ...options,
3718
- headers: {
3719
- "Content-Type": "application/json",
3720
- ...options.headers
3721
- }
3722
- });
3723
- }
3724
- /**
3725
- * GET /auth/sso/callback
3726
3639
  * Validate the provider response, resolve or provision the local account, and
3727
3640
  * establish the normal Rustrak session.
3728
3641
  */
@@ -3739,7 +3652,6 @@ var Auth = class extends HeyApiClient {
3739
3652
  });
3740
3653
  }
3741
3654
  /**
3742
- * GET /auth/sso/config
3743
3655
  * Public, non-sensitive information used to render the login page.
3744
3656
  */
3745
3657
  ssoConfig(options) {
@@ -3755,7 +3667,6 @@ var Auth = class extends HeyApiClient {
3755
3667
  });
3756
3668
  }
3757
3669
  /**
3758
- * GET /auth/sso/link
3759
3670
  * The account an SSO login matched, shown while its owner confirms.
3760
3671
  */
3761
3672
  ssoLink(options) {
@@ -3771,7 +3682,6 @@ var Auth = class extends HeyApiClient {
3771
3682
  });
3772
3683
  }
3773
3684
  /**
3774
- * POST /auth/sso/link
3775
3685
  * Link the pending SSO identity to its account once the account's password
3776
3686
  * is given, and sign in. A wrong password keeps the link pending for a retry.
3777
3687
  */
@@ -3792,9 +3702,8 @@ var Auth = class extends HeyApiClient {
3792
3702
  });
3793
3703
  }
3794
3704
  /**
3795
- * POST /auth/sso/start
3796
3705
  * Create a one-time OIDC authorization request and retain its protections in
3797
- * the encrypted session cookie.
3706
+ * the session.
3798
3707
  */
3799
3708
  ssoStart(options) {
3800
3709
  return (options?.client ?? this.client).post({
@@ -3864,7 +3773,7 @@ var Health = class extends HeyApiClient {
3864
3773
  type: "http"
3865
3774
  }, {
3866
3775
  in: "cookie",
3867
- name: "session",
3776
+ name: "rustrak_session",
3868
3777
  type: "apiKey"
3869
3778
  }],
3870
3779
  url: "/health/version",