@rustrak/client 0.24.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.
- package/README.md +76 -61
- package/dist/client.cjs +4 -3
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -1
- package/dist/client.d.cts.map +1 -1
- package/dist/client.d.mts +2 -1
- package/dist/client.d.mts.map +1 -1
- package/dist/client.mjs +5 -4
- package/dist/client.mjs.map +1 -1
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts.map +1 -1
- package/dist/errors.cjs +19 -6
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +1 -1
- package/dist/errors.d.cts.map +1 -1
- package/dist/errors.d.mts +1 -1
- package/dist/errors.d.mts.map +1 -1
- package/dist/errors.mjs +19 -7
- package/dist/errors.mjs.map +1 -1
- package/dist/generated/binary.gen.cjs +6 -0
- package/dist/generated/binary.gen.cjs.map +1 -0
- package/dist/generated/binary.gen.d.cts +2 -0
- package/dist/generated/binary.gen.d.cts.map +1 -0
- package/dist/generated/binary.gen.d.mts +2 -0
- package/dist/generated/binary.gen.d.mts.map +1 -0
- package/dist/generated/binary.gen.mjs +6 -0
- package/dist/generated/binary.gen.mjs.map +1 -0
- package/dist/generated/sdk.gen.cjs +371 -199
- package/dist/generated/sdk.gen.cjs.map +1 -1
- package/dist/generated/sdk.gen.d.cts +24 -2
- package/dist/generated/sdk.gen.d.cts.map +1 -1
- package/dist/generated/sdk.gen.d.mts +24 -2
- package/dist/generated/sdk.gen.d.mts.map +1 -1
- package/dist/generated/sdk.gen.mjs +370 -201
- package/dist/generated/sdk.gen.mjs.map +1 -1
- package/dist/generated/types.gen.d.cts +313 -47
- package/dist/generated/types.gen.d.cts.map +1 -1
- package/dist/generated/types.gen.d.mts +313 -47
- package/dist/generated/types.gen.d.mts.map +1 -1
- package/dist/generated/zod.gen.cjs +315 -88
- package/dist/generated/zod.gen.cjs.map +1 -1
- package/dist/generated/zod.gen.mjs +275 -84
- package/dist/generated/zod.gen.mjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/result.cjs +0 -2
- package/dist/result.cjs.map +1 -1
- package/dist/result.d.cts.map +1 -1
- package/dist/result.d.mts.map +1 -1
- package/dist/result.mjs +0 -2
- package/dist/result.mjs.map +1 -1
- package/dist/utils/http.cjs +18 -31
- package/dist/utils/http.cjs.map +1 -1
- package/dist/utils/http.mjs +20 -32
- package/dist/utils/http.mjs.map +1 -1
- 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: "
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
482
|
+
* Lists the issues first seen in a release.
|
|
506
483
|
*/
|
|
507
484
|
newIssues(options) {
|
|
508
485
|
return (options.client ?? this.client).get({
|
|
@@ -521,9 +498,49 @@ var Releases = class extends HeyApiClient {
|
|
|
521
498
|
});
|
|
522
499
|
}
|
|
523
500
|
};
|
|
501
|
+
var Access = class extends HeyApiClient {
|
|
502
|
+
/**
|
|
503
|
+
* Lists every resource a permission can name, with its module, scope and actions.
|
|
504
|
+
*/
|
|
505
|
+
catalog(options) {
|
|
506
|
+
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()
|
|
511
|
+
}).parseAsync(data),
|
|
512
|
+
responseValidator: async (data) => await require_zod_gen.zAccessCatalogResponse.parseAsync(data),
|
|
513
|
+
security: [{
|
|
514
|
+
scheme: "bearer",
|
|
515
|
+
type: "http"
|
|
516
|
+
}],
|
|
517
|
+
url: "/api/access/catalog",
|
|
518
|
+
...options
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Returns what the caller may do, on the instance and on each project.
|
|
523
|
+
*/
|
|
524
|
+
me(options) {
|
|
525
|
+
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()
|
|
530
|
+
}).parseAsync(data),
|
|
531
|
+
responseValidator: async (data) => await require_zod_gen.zAccessMeResponse.parseAsync(data),
|
|
532
|
+
security: [{
|
|
533
|
+
scheme: "bearer",
|
|
534
|
+
type: "http"
|
|
535
|
+
}],
|
|
536
|
+
url: "/api/access/me",
|
|
537
|
+
...options
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
};
|
|
524
541
|
var Github = class extends HeyApiClient {
|
|
525
542
|
/**
|
|
526
|
-
*
|
|
543
|
+
* Disconnects the GitHub App from this instance.
|
|
527
544
|
*/
|
|
528
545
|
disconnect(options) {
|
|
529
546
|
return (options?.client ?? this.client).delete({
|
|
@@ -542,7 +559,7 @@ var Github = class extends HeyApiClient {
|
|
|
542
559
|
});
|
|
543
560
|
}
|
|
544
561
|
/**
|
|
545
|
-
*
|
|
562
|
+
* Shows whether a GitHub App is connected, and how.
|
|
546
563
|
*/
|
|
547
564
|
status(options) {
|
|
548
565
|
return (options?.client ?? this.client).get({
|
|
@@ -561,7 +578,7 @@ var Github = class extends HeyApiClient {
|
|
|
561
578
|
});
|
|
562
579
|
}
|
|
563
580
|
/**
|
|
564
|
-
*
|
|
581
|
+
* GitHub sends the browser here after creating the
|
|
565
582
|
* app; the code trades for its credentials.
|
|
566
583
|
*/
|
|
567
584
|
callback(options) {
|
|
@@ -580,7 +597,7 @@ var Github = class extends HeyApiClient {
|
|
|
580
597
|
});
|
|
581
598
|
}
|
|
582
599
|
/**
|
|
583
|
-
*
|
|
600
|
+
* GitHub sends the browser here after the app is
|
|
584
601
|
* installed on an account.
|
|
585
602
|
*/
|
|
586
603
|
installed(options) {
|
|
@@ -599,7 +616,7 @@ var Github = class extends HeyApiClient {
|
|
|
599
616
|
});
|
|
600
617
|
}
|
|
601
618
|
/**
|
|
602
|
-
*
|
|
619
|
+
* The labels, title prefix and body footer
|
|
603
620
|
* every GitHub issue starts with, before a project's own.
|
|
604
621
|
*/
|
|
605
622
|
putIssueTemplate(options) {
|
|
@@ -623,7 +640,7 @@ var Github = class extends HeyApiClient {
|
|
|
623
640
|
});
|
|
624
641
|
}
|
|
625
642
|
/**
|
|
626
|
-
*
|
|
643
|
+
* What the dashboard posts to GitHub so GitHub
|
|
627
644
|
* creates an app already configured for this server.
|
|
628
645
|
*/
|
|
629
646
|
manifest(options) {
|
|
@@ -647,7 +664,7 @@ var Github = class extends HeyApiClient {
|
|
|
647
664
|
});
|
|
648
665
|
}
|
|
649
666
|
/**
|
|
650
|
-
*
|
|
667
|
+
* The GitHub username assignees sync through.
|
|
651
668
|
*/
|
|
652
669
|
getMyLogin(options) {
|
|
653
670
|
return (options?.client ?? this.client).get({
|
|
@@ -666,7 +683,7 @@ var Github = class extends HeyApiClient {
|
|
|
666
683
|
});
|
|
667
684
|
}
|
|
668
685
|
/**
|
|
669
|
-
*
|
|
686
|
+
* Sets or clears the caller's GitHub username, which assignees sync through.
|
|
670
687
|
*/
|
|
671
688
|
putMyLogin(options) {
|
|
672
689
|
return (options.client ?? this.client).put({
|
|
@@ -689,7 +706,7 @@ var Github = class extends HeyApiClient {
|
|
|
689
706
|
});
|
|
690
707
|
}
|
|
691
708
|
/**
|
|
692
|
-
*
|
|
709
|
+
* The repositories a project can
|
|
693
710
|
* point at, for whoever may change that project's settings.
|
|
694
711
|
*/
|
|
695
712
|
repositories(options) {
|
|
@@ -709,7 +726,7 @@ var Github = class extends HeyApiClient {
|
|
|
709
726
|
});
|
|
710
727
|
}
|
|
711
728
|
/**
|
|
712
|
-
*
|
|
729
|
+
* Public, and trusted only through the signature
|
|
713
730
|
* GitHub computes with the app's webhook secret.
|
|
714
731
|
*/
|
|
715
732
|
webhook(options) {
|
|
@@ -729,7 +746,7 @@ var Github = class extends HeyApiClient {
|
|
|
729
746
|
});
|
|
730
747
|
}
|
|
731
748
|
/**
|
|
732
|
-
*
|
|
749
|
+
* Unlinks a project from its GitHub repository.
|
|
733
750
|
*/
|
|
734
751
|
deleteProjectRepository(options) {
|
|
735
752
|
return (options.client ?? this.client).delete({
|
|
@@ -748,7 +765,7 @@ var Github = class extends HeyApiClient {
|
|
|
748
765
|
});
|
|
749
766
|
}
|
|
750
767
|
/**
|
|
751
|
-
*
|
|
768
|
+
* Gets the GitHub repository a project is linked to.
|
|
752
769
|
*/
|
|
753
770
|
getProjectRepository(options) {
|
|
754
771
|
return (options.client ?? this.client).get({
|
|
@@ -767,7 +784,7 @@ var Github = class extends HeyApiClient {
|
|
|
767
784
|
});
|
|
768
785
|
}
|
|
769
786
|
/**
|
|
770
|
-
*
|
|
787
|
+
* Links a project to a GitHub repository.
|
|
771
788
|
*/
|
|
772
789
|
putProjectRepository(options) {
|
|
773
790
|
return (options.client ?? this.client).put({
|
|
@@ -790,7 +807,7 @@ var Github = class extends HeyApiClient {
|
|
|
790
807
|
});
|
|
791
808
|
}
|
|
792
809
|
/**
|
|
793
|
-
*
|
|
810
|
+
* Copies the repository's
|
|
794
811
|
* CODEOWNERS so ownership can be answered without asking GitHub each time.
|
|
795
812
|
*/
|
|
796
813
|
syncCodeowners(options) {
|
|
@@ -810,7 +827,7 @@ var Github = class extends HeyApiClient {
|
|
|
810
827
|
});
|
|
811
828
|
}
|
|
812
829
|
/**
|
|
813
|
-
*
|
|
830
|
+
* The issue's links,
|
|
814
831
|
* the commits that may have caused it, and who owns its culprit file.
|
|
815
832
|
*/
|
|
816
833
|
issue(options) {
|
|
@@ -917,7 +934,12 @@ var Github = class extends HeyApiClient {
|
|
|
917
934
|
};
|
|
918
935
|
var AlertChannels = class extends HeyApiClient {
|
|
919
936
|
/**
|
|
920
|
-
*
|
|
937
|
+
* Lists the channels alerts can go through.
|
|
938
|
+
*
|
|
939
|
+
* `integrations:read` sees their credentials masked, `integrations:update` in
|
|
940
|
+
* full. Holding an alert-rules permission on any project is enough for the
|
|
941
|
+
* rest, without them: choosing where a rule notifies takes a channel's name,
|
|
942
|
+
* not its secrets.
|
|
921
943
|
*/
|
|
922
944
|
list(options) {
|
|
923
945
|
return (options?.client ?? this.client).get({
|
|
@@ -936,7 +958,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
936
958
|
});
|
|
937
959
|
}
|
|
938
960
|
/**
|
|
939
|
-
*
|
|
961
|
+
* Creates a notification integration (webhook, Slack, email…).
|
|
940
962
|
*/
|
|
941
963
|
create(options) {
|
|
942
964
|
return (options.client ?? this.client).post({
|
|
@@ -959,8 +981,6 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
959
981
|
});
|
|
960
982
|
}
|
|
961
983
|
/**
|
|
962
|
-
* POST /api/integrations/preview-template
|
|
963
|
-
*
|
|
964
984
|
* Renders a Custom Webhook template against a sample payload and hands back
|
|
965
985
|
* the body that would be sent. The dashboard cannot run the template engine,
|
|
966
986
|
* so it asks while the reader types; going through the dispatcher's own
|
|
@@ -987,7 +1007,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
987
1007
|
});
|
|
988
1008
|
}
|
|
989
1009
|
/**
|
|
990
|
-
*
|
|
1010
|
+
* Deletes a notification integration.
|
|
991
1011
|
*/
|
|
992
1012
|
delete(options) {
|
|
993
1013
|
return (options.client ?? this.client).delete({
|
|
@@ -1006,7 +1026,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1006
1026
|
});
|
|
1007
1027
|
}
|
|
1008
1028
|
/**
|
|
1009
|
-
*
|
|
1029
|
+
* Gets one notification integration.
|
|
1010
1030
|
*/
|
|
1011
1031
|
get(options) {
|
|
1012
1032
|
return (options.client ?? this.client).get({
|
|
@@ -1025,7 +1045,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1025
1045
|
});
|
|
1026
1046
|
}
|
|
1027
1047
|
/**
|
|
1028
|
-
*
|
|
1048
|
+
* Updates a notification integration.
|
|
1029
1049
|
*/
|
|
1030
1050
|
update(options) {
|
|
1031
1051
|
return (options.client ?? this.client).patch({
|
|
@@ -1048,7 +1068,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1048
1068
|
});
|
|
1049
1069
|
}
|
|
1050
1070
|
/**
|
|
1051
|
-
*
|
|
1071
|
+
* Sends a test notification through an integration.
|
|
1052
1072
|
*/
|
|
1053
1073
|
test(options) {
|
|
1054
1074
|
return (options.client ?? this.client).post({
|
|
@@ -1073,7 +1093,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1073
1093
|
};
|
|
1074
1094
|
var Invitations = class extends HeyApiClient {
|
|
1075
1095
|
/**
|
|
1076
|
-
*
|
|
1096
|
+
* List invitations (needs `invitations:read`)
|
|
1077
1097
|
*/
|
|
1078
1098
|
list(options) {
|
|
1079
1099
|
return (options?.client ?? this.client).get({
|
|
@@ -1092,7 +1112,11 @@ var Invitations = class extends HeyApiClient {
|
|
|
1092
1112
|
});
|
|
1093
1113
|
}
|
|
1094
1114
|
/**
|
|
1095
|
-
*
|
|
1115
|
+
* Create an invitation (needs `invitations:create`)
|
|
1116
|
+
*
|
|
1117
|
+
* With `send_email: true` the invite link is also emailed. A failed send
|
|
1118
|
+
* still creates the invitation, with `email_sent_at: null`, so its link can
|
|
1119
|
+
* be shared by hand or the email resent.
|
|
1096
1120
|
*/
|
|
1097
1121
|
create(options) {
|
|
1098
1122
|
return (options.client ?? this.client).post({
|
|
@@ -1115,7 +1139,26 @@ var Invitations = class extends HeyApiClient {
|
|
|
1115
1139
|
});
|
|
1116
1140
|
}
|
|
1117
1141
|
/**
|
|
1118
|
-
*
|
|
1142
|
+
* Whether invitation emails can be sent (needs `invitations:read`)
|
|
1143
|
+
*/
|
|
1144
|
+
emailStatus(options) {
|
|
1145
|
+
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()
|
|
1150
|
+
}).parseAsync(data),
|
|
1151
|
+
responseValidator: async (data) => await require_zod_gen.zInvitationsEmailStatusResponse.parseAsync(data),
|
|
1152
|
+
security: [{
|
|
1153
|
+
scheme: "bearer",
|
|
1154
|
+
type: "http"
|
|
1155
|
+
}],
|
|
1156
|
+
url: "/api/invitations/email-status",
|
|
1157
|
+
...options
|
|
1158
|
+
});
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* Revoke a pending invitation (needs `invitations:delete`)
|
|
1119
1162
|
*/
|
|
1120
1163
|
revoke(options) {
|
|
1121
1164
|
return (options.client ?? this.client).delete({
|
|
@@ -1129,7 +1172,26 @@ var Invitations = class extends HeyApiClient {
|
|
|
1129
1172
|
scheme: "bearer",
|
|
1130
1173
|
type: "http"
|
|
1131
1174
|
}],
|
|
1132
|
-
url: "/api/invitations/{
|
|
1175
|
+
url: "/api/invitations/{id}",
|
|
1176
|
+
...options
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
/**
|
|
1180
|
+
* Email the invite link again (needs `invitations:create`)
|
|
1181
|
+
*/
|
|
1182
|
+
resend(options) {
|
|
1183
|
+
return (options.client ?? this.client).post({
|
|
1184
|
+
requestValidator: async (data) => await zod.object({
|
|
1185
|
+
body: zod.never().optional(),
|
|
1186
|
+
path: require_zod_gen.zInvitationsResendPath,
|
|
1187
|
+
query: zod.never().optional()
|
|
1188
|
+
}).parseAsync(data),
|
|
1189
|
+
responseValidator: async (data) => await require_zod_gen.zInvitationsResendResponse.parseAsync(data),
|
|
1190
|
+
security: [{
|
|
1191
|
+
scheme: "bearer",
|
|
1192
|
+
type: "http"
|
|
1193
|
+
}],
|
|
1194
|
+
url: "/api/invitations/{id}/resend",
|
|
1133
1195
|
...options
|
|
1134
1196
|
});
|
|
1135
1197
|
}
|
|
@@ -1202,9 +1264,9 @@ var Oauth = class extends HeyApiClient {
|
|
|
1202
1264
|
};
|
|
1203
1265
|
var Projects = class extends HeyApiClient {
|
|
1204
1266
|
/**
|
|
1205
|
-
*
|
|
1267
|
+
* List projects with pagination.
|
|
1206
1268
|
*
|
|
1207
|
-
*
|
|
1269
|
+
* Only the projects the caller holds a permission on.
|
|
1208
1270
|
*/
|
|
1209
1271
|
list(options) {
|
|
1210
1272
|
return (options?.client ?? this.client).get({
|
|
@@ -1223,10 +1285,11 @@ var Projects = class extends HeyApiClient {
|
|
|
1223
1285
|
});
|
|
1224
1286
|
}
|
|
1225
1287
|
/**
|
|
1226
|
-
*
|
|
1288
|
+
* Create a new project
|
|
1227
1289
|
*
|
|
1228
|
-
*
|
|
1229
|
-
*
|
|
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.
|
|
1230
1293
|
*/
|
|
1231
1294
|
create(options) {
|
|
1232
1295
|
return (options.client ?? this.client).post({
|
|
@@ -1249,7 +1312,7 @@ var Projects = class extends HeyApiClient {
|
|
|
1249
1312
|
});
|
|
1250
1313
|
}
|
|
1251
1314
|
/**
|
|
1252
|
-
*
|
|
1315
|
+
* Delete a project
|
|
1253
1316
|
*/
|
|
1254
1317
|
delete(options) {
|
|
1255
1318
|
return (options.client ?? this.client).delete({
|
|
@@ -1268,7 +1331,7 @@ var Projects = class extends HeyApiClient {
|
|
|
1268
1331
|
});
|
|
1269
1332
|
}
|
|
1270
1333
|
/**
|
|
1271
|
-
*
|
|
1334
|
+
* Get a project by ID
|
|
1272
1335
|
*/
|
|
1273
1336
|
get(options) {
|
|
1274
1337
|
return (options.client ?? this.client).get({
|
|
@@ -1287,7 +1350,7 @@ var Projects = class extends HeyApiClient {
|
|
|
1287
1350
|
});
|
|
1288
1351
|
}
|
|
1289
1352
|
/**
|
|
1290
|
-
*
|
|
1353
|
+
* Update a project
|
|
1291
1354
|
*/
|
|
1292
1355
|
update(options) {
|
|
1293
1356
|
return (options.client ?? this.client).patch({
|
|
@@ -1310,7 +1373,7 @@ var Projects = class extends HeyApiClient {
|
|
|
1310
1373
|
});
|
|
1311
1374
|
}
|
|
1312
1375
|
/**
|
|
1313
|
-
*
|
|
1376
|
+
* What a project without limits of its own follows
|
|
1314
1377
|
*/
|
|
1315
1378
|
getRateLimits(options) {
|
|
1316
1379
|
return (options?.client ?? this.client).get({
|
|
@@ -1331,7 +1394,6 @@ var Projects = class extends HeyApiClient {
|
|
|
1331
1394
|
};
|
|
1332
1395
|
var Agents = class extends HeyApiClient {
|
|
1333
1396
|
/**
|
|
1334
|
-
* GET /api/projects/{project_id}/agents/conversations
|
|
1335
1397
|
* Lists conversations -- traces sharing a `gen_ai.conversation.id` -- the most recently active first.
|
|
1336
1398
|
*/
|
|
1337
1399
|
conversations(options) {
|
|
@@ -1351,7 +1413,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1351
1413
|
});
|
|
1352
1414
|
}
|
|
1353
1415
|
/**
|
|
1354
|
-
* GET /api/projects/{project_id}/agents/conversations/{conversation_id}
|
|
1355
1416
|
* Returns every AI span of a conversation's turns, oldest first, with its input and output.
|
|
1356
1417
|
*/
|
|
1357
1418
|
conversation(options) {
|
|
@@ -1371,7 +1432,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1371
1432
|
});
|
|
1372
1433
|
}
|
|
1373
1434
|
/**
|
|
1374
|
-
* GET /api/projects/{project_id}/agents/duration
|
|
1375
1435
|
* Time-bucketed avg/p95 duration for `agent`/`ai_client` spans.
|
|
1376
1436
|
*/
|
|
1377
1437
|
duration(options) {
|
|
@@ -1391,7 +1451,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1391
1451
|
});
|
|
1392
1452
|
}
|
|
1393
1453
|
/**
|
|
1394
|
-
* GET /api/projects/{project_id}/agents/environments
|
|
1395
1454
|
* The options the environment filter offers, read from the data rather than
|
|
1396
1455
|
* hardcoded — an installation may name its environments anything.
|
|
1397
1456
|
*/
|
|
@@ -1412,7 +1471,7 @@ var Agents = class extends HeyApiClient {
|
|
|
1412
1471
|
});
|
|
1413
1472
|
}
|
|
1414
1473
|
/**
|
|
1415
|
-
*
|
|
1474
|
+
* Lists the AI models a project's agents called, with requests, tokens and latency.
|
|
1416
1475
|
*/
|
|
1417
1476
|
modelsTable(options) {
|
|
1418
1477
|
return (options.client ?? this.client).get({
|
|
@@ -1431,7 +1490,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1431
1490
|
});
|
|
1432
1491
|
}
|
|
1433
1492
|
/**
|
|
1434
|
-
* GET /api/projects/{project_id}/agents/models/calls
|
|
1435
1493
|
* Top models by LLM call count (`gen_ai.operation.type:ai_client`).
|
|
1436
1494
|
*/
|
|
1437
1495
|
modelsCalls(options) {
|
|
@@ -1451,7 +1509,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1451
1509
|
});
|
|
1452
1510
|
}
|
|
1453
1511
|
/**
|
|
1454
|
-
* GET /api/projects/{project_id}/agents/models/tokens
|
|
1455
1512
|
* Top models by total tokens used (`gen_ai.operation.type:ai_client`).
|
|
1456
1513
|
*/
|
|
1457
1514
|
modelsTokens(options) {
|
|
@@ -1471,7 +1528,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1471
1528
|
});
|
|
1472
1529
|
}
|
|
1473
1530
|
/**
|
|
1474
|
-
* GET /api/projects/{project_id}/agents/runs
|
|
1475
1531
|
* Time-bucketed count of agent-run spans (`gen_ai.operation.type:agent`).
|
|
1476
1532
|
*/
|
|
1477
1533
|
runs(options) {
|
|
@@ -1491,7 +1547,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1491
1547
|
});
|
|
1492
1548
|
}
|
|
1493
1549
|
/**
|
|
1494
|
-
* GET /api/projects/{project_id}/agents/summary
|
|
1495
1550
|
* Agent runs, LLM calls, tool calls, errors, tokens and latency over the
|
|
1496
1551
|
* selected window — the numbers the six charts cannot state outright.
|
|
1497
1552
|
*/
|
|
@@ -1512,7 +1567,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1512
1567
|
});
|
|
1513
1568
|
}
|
|
1514
1569
|
/**
|
|
1515
|
-
* GET /api/projects/{project_id}/agents/tools
|
|
1516
1570
|
* Top tools by call count (`gen_ai.operation.type:tool`).
|
|
1517
1571
|
*/
|
|
1518
1572
|
tools(options) {
|
|
@@ -1532,7 +1586,7 @@ var Agents = class extends HeyApiClient {
|
|
|
1532
1586
|
});
|
|
1533
1587
|
}
|
|
1534
1588
|
/**
|
|
1535
|
-
*
|
|
1589
|
+
* Lists the tools a project's agents called, with calls, errors and latency.
|
|
1536
1590
|
*/
|
|
1537
1591
|
toolsTable(options) {
|
|
1538
1592
|
return (options.client ?? this.client).get({
|
|
@@ -1551,7 +1605,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1551
1605
|
});
|
|
1552
1606
|
}
|
|
1553
1607
|
/**
|
|
1554
|
-
* GET /api/projects/{project_id}/agents/traces
|
|
1555
1608
|
* Paginated per-trace_id aggregate (duration, tokens, tool usage) across
|
|
1556
1609
|
* all AI spans sharing that trace, regardless of origin.
|
|
1557
1610
|
*/
|
|
@@ -1574,7 +1627,7 @@ var Agents = class extends HeyApiClient {
|
|
|
1574
1627
|
};
|
|
1575
1628
|
var AlertRules = class extends HeyApiClient {
|
|
1576
1629
|
/**
|
|
1577
|
-
*
|
|
1630
|
+
* Lists the alerts a project sent, newest first.
|
|
1578
1631
|
*/
|
|
1579
1632
|
listHistory(options) {
|
|
1580
1633
|
return (options.client ?? this.client).get({
|
|
@@ -1612,7 +1665,7 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1612
1665
|
});
|
|
1613
1666
|
}
|
|
1614
1667
|
/**
|
|
1615
|
-
*
|
|
1668
|
+
* Lists a project's alert rules.
|
|
1616
1669
|
*/
|
|
1617
1670
|
list(options) {
|
|
1618
1671
|
return (options.client ?? this.client).get({
|
|
@@ -1631,7 +1684,7 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1631
1684
|
});
|
|
1632
1685
|
}
|
|
1633
1686
|
/**
|
|
1634
|
-
*
|
|
1687
|
+
* Creates an alert rule in a project.
|
|
1635
1688
|
*/
|
|
1636
1689
|
create(options) {
|
|
1637
1690
|
return (options.client ?? this.client).post({
|
|
@@ -1654,7 +1707,7 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1654
1707
|
});
|
|
1655
1708
|
}
|
|
1656
1709
|
/**
|
|
1657
|
-
*
|
|
1710
|
+
* Deletes an alert rule.
|
|
1658
1711
|
*/
|
|
1659
1712
|
delete(options) {
|
|
1660
1713
|
return (options.client ?? this.client).delete({
|
|
@@ -1673,7 +1726,7 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1673
1726
|
});
|
|
1674
1727
|
}
|
|
1675
1728
|
/**
|
|
1676
|
-
*
|
|
1729
|
+
* Gets one alert rule.
|
|
1677
1730
|
*/
|
|
1678
1731
|
get(options) {
|
|
1679
1732
|
return (options.client ?? this.client).get({
|
|
@@ -1692,7 +1745,7 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1692
1745
|
});
|
|
1693
1746
|
}
|
|
1694
1747
|
/**
|
|
1695
|
-
*
|
|
1748
|
+
* Updates an alert rule.
|
|
1696
1749
|
*/
|
|
1697
1750
|
update(options) {
|
|
1698
1751
|
return (options.client ?? this.client).patch({
|
|
@@ -1717,7 +1770,6 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1717
1770
|
};
|
|
1718
1771
|
var Events = class extends HeyApiClient {
|
|
1719
1772
|
/**
|
|
1720
|
-
* GET /api/projects/{project_id}/attachments/{attachment_id}
|
|
1721
1773
|
* Downloads an attachment. Only a real image is served inline; anything
|
|
1722
1774
|
* else, whatever type it claims, is a download that never runs.
|
|
1723
1775
|
*/
|
|
@@ -1757,7 +1809,6 @@ var Events = class extends HeyApiClient {
|
|
|
1757
1809
|
});
|
|
1758
1810
|
}
|
|
1759
1811
|
/**
|
|
1760
|
-
* GET /api/projects/{project_id}/issues/{issue_id}/events
|
|
1761
1812
|
* Lists events for an issue with cursor-based pagination
|
|
1762
1813
|
*/
|
|
1763
1814
|
list(options) {
|
|
@@ -1777,7 +1828,6 @@ var Events = class extends HeyApiClient {
|
|
|
1777
1828
|
});
|
|
1778
1829
|
}
|
|
1779
1830
|
/**
|
|
1780
|
-
* GET /api/projects/{project_id}/issues/{issue_id}/events/{event_id}
|
|
1781
1831
|
* Gets a single event with full data
|
|
1782
1832
|
*/
|
|
1783
1833
|
get(options) {
|
|
@@ -1797,7 +1847,6 @@ var Events = class extends HeyApiClient {
|
|
|
1797
1847
|
});
|
|
1798
1848
|
}
|
|
1799
1849
|
/**
|
|
1800
|
-
* GET /api/projects/{project_id}/issues/{issue_id}/events/{event_id}/attachments
|
|
1801
1850
|
* Lists the files sent with an event, such as a feedback's screenshot.
|
|
1802
1851
|
*/
|
|
1803
1852
|
listAttachments(options) {
|
|
@@ -1819,7 +1868,6 @@ var Events = class extends HeyApiClient {
|
|
|
1819
1868
|
};
|
|
1820
1869
|
var Environments = class extends HeyApiClient {
|
|
1821
1870
|
/**
|
|
1822
|
-
* GET /api/projects/{project_id}/environments
|
|
1823
1871
|
* Lists the environments a project's issues have been seen in, by name.
|
|
1824
1872
|
*/
|
|
1825
1873
|
list(options) {
|
|
@@ -1841,7 +1889,7 @@ var Environments = class extends HeyApiClient {
|
|
|
1841
1889
|
};
|
|
1842
1890
|
var Stats = class extends HeyApiClient {
|
|
1843
1891
|
/**
|
|
1844
|
-
*
|
|
1892
|
+
* Counts a project's events over time, bucketed for a chart.
|
|
1845
1893
|
*/
|
|
1846
1894
|
getEventTimeseries(options) {
|
|
1847
1895
|
return (options.client ?? this.client).get({
|
|
@@ -1860,7 +1908,7 @@ var Stats = class extends HeyApiClient {
|
|
|
1860
1908
|
});
|
|
1861
1909
|
}
|
|
1862
1910
|
/**
|
|
1863
|
-
*
|
|
1911
|
+
* Headline figures for a project's overview: events, new and open issues.
|
|
1864
1912
|
*/
|
|
1865
1913
|
getSummary(options) {
|
|
1866
1914
|
return (options.client ?? this.client).get({
|
|
@@ -1881,7 +1929,6 @@ var Stats = class extends HeyApiClient {
|
|
|
1881
1929
|
};
|
|
1882
1930
|
var Feedback = class extends HeyApiClient {
|
|
1883
1931
|
/**
|
|
1884
|
-
* GET /api/projects/{project_id}/feedback
|
|
1885
1932
|
* Lists user feedback with what each user submitted. Every feedback is an
|
|
1886
1933
|
* issue of category `feedback`; spam is a muted one.
|
|
1887
1934
|
*/
|
|
@@ -1904,7 +1951,7 @@ var Feedback = class extends HeyApiClient {
|
|
|
1904
1951
|
};
|
|
1905
1952
|
var Issues = class extends HeyApiClient {
|
|
1906
1953
|
/**
|
|
1907
|
-
*
|
|
1954
|
+
* Deletes many issues at once, selected by id or by filter.
|
|
1908
1955
|
*/
|
|
1909
1956
|
bulkDelete(options) {
|
|
1910
1957
|
return (options.client ?? this.client).delete({
|
|
@@ -1927,7 +1974,6 @@ var Issues = class extends HeyApiClient {
|
|
|
1927
1974
|
});
|
|
1928
1975
|
}
|
|
1929
1976
|
/**
|
|
1930
|
-
* GET /api/projects/{project_id}/issues
|
|
1931
1977
|
* Lists issues for a project with offset-based pagination
|
|
1932
1978
|
*/
|
|
1933
1979
|
list(options) {
|
|
@@ -1947,7 +1993,7 @@ var Issues = class extends HeyApiClient {
|
|
|
1947
1993
|
});
|
|
1948
1994
|
}
|
|
1949
1995
|
/**
|
|
1950
|
-
*
|
|
1996
|
+
* Sets the status or priority of many issues at once, by id.
|
|
1951
1997
|
*/
|
|
1952
1998
|
bulkUpdate(options) {
|
|
1953
1999
|
return (options.client ?? this.client).put({
|
|
@@ -1970,7 +2016,6 @@ var Issues = class extends HeyApiClient {
|
|
|
1970
2016
|
});
|
|
1971
2017
|
}
|
|
1972
2018
|
/**
|
|
1973
|
-
* DELETE /api/projects/{project_id}/issues/{issue_id}
|
|
1974
2019
|
* Hard-deletes an issue and all associated events
|
|
1975
2020
|
*/
|
|
1976
2021
|
delete(options) {
|
|
@@ -1990,7 +2035,6 @@ var Issues = class extends HeyApiClient {
|
|
|
1990
2035
|
});
|
|
1991
2036
|
}
|
|
1992
2037
|
/**
|
|
1993
|
-
* GET /api/projects/{project_id}/issues/{issue_id}
|
|
1994
2038
|
* Gets a single issue by ID
|
|
1995
2039
|
*/
|
|
1996
2040
|
get(options) {
|
|
@@ -2010,7 +2054,6 @@ var Issues = class extends HeyApiClient {
|
|
|
2010
2054
|
});
|
|
2011
2055
|
}
|
|
2012
2056
|
/**
|
|
2013
|
-
* PATCH /api/projects/{project_id}/issues/{issue_id}
|
|
2014
2057
|
* Updates issue state (resolve, mute, etc.)
|
|
2015
2058
|
*/
|
|
2016
2059
|
update(options) {
|
|
@@ -2034,7 +2077,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2034
2077
|
});
|
|
2035
2078
|
}
|
|
2036
2079
|
/**
|
|
2037
|
-
*
|
|
2080
|
+
* Chronological activity log (incl. comments).
|
|
2038
2081
|
*/
|
|
2039
2082
|
getActivity(options) {
|
|
2040
2083
|
return (options.client ?? this.client).get({
|
|
@@ -2053,7 +2096,6 @@ var Issues = class extends HeyApiClient {
|
|
|
2053
2096
|
});
|
|
2054
2097
|
}
|
|
2055
2098
|
/**
|
|
2056
|
-
* GET /api/projects/{project_id}/issues/{issue_id}/aggregates
|
|
2057
2099
|
* Returns the unique user count and top tags for the issue.
|
|
2058
2100
|
*/
|
|
2059
2101
|
getAggregates(options) {
|
|
@@ -2073,7 +2115,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2073
2115
|
});
|
|
2074
2116
|
}
|
|
2075
2117
|
/**
|
|
2076
|
-
*
|
|
2118
|
+
* Set/clear the per-user bookmark.
|
|
2077
2119
|
*/
|
|
2078
2120
|
setBookmark(options) {
|
|
2079
2121
|
return (options.client ?? this.client).put({
|
|
@@ -2096,7 +2138,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2096
2138
|
});
|
|
2097
2139
|
}
|
|
2098
2140
|
/**
|
|
2099
|
-
*
|
|
2141
|
+
* Add a note.
|
|
2100
2142
|
*/
|
|
2101
2143
|
createComment(options) {
|
|
2102
2144
|
return (options.client ?? this.client).post({
|
|
@@ -2119,7 +2161,6 @@ var Issues = class extends HeyApiClient {
|
|
|
2119
2161
|
});
|
|
2120
2162
|
}
|
|
2121
2163
|
/**
|
|
2122
|
-
* GET /api/projects/{project_id}/issues/{issue_id}/hashes
|
|
2123
2164
|
* Lists the grouping hashes that map to an issue.
|
|
2124
2165
|
*/
|
|
2125
2166
|
getHashes(options) {
|
|
@@ -2139,7 +2180,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2139
2180
|
});
|
|
2140
2181
|
}
|
|
2141
2182
|
/**
|
|
2142
|
-
*
|
|
2183
|
+
* Mark the issue as seen by the current user.
|
|
2143
2184
|
*/
|
|
2144
2185
|
markSeen(options) {
|
|
2145
2186
|
return (options.client ?? this.client).post({
|
|
@@ -2158,7 +2199,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2158
2199
|
});
|
|
2159
2200
|
}
|
|
2160
2201
|
/**
|
|
2161
|
-
*
|
|
2202
|
+
* Zero-filled event-count timeseries.
|
|
2162
2203
|
*/
|
|
2163
2204
|
getStats(options) {
|
|
2164
2205
|
return (options.client ?? this.client).get({
|
|
@@ -2177,7 +2218,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2177
2218
|
});
|
|
2178
2219
|
}
|
|
2179
2220
|
/**
|
|
2180
|
-
*
|
|
2221
|
+
* Set/clear the per-user subscription.
|
|
2181
2222
|
*/
|
|
2182
2223
|
setSubscription(options) {
|
|
2183
2224
|
return (options.client ?? this.client).put({
|
|
@@ -2200,7 +2241,6 @@ var Issues = class extends HeyApiClient {
|
|
|
2200
2241
|
});
|
|
2201
2242
|
}
|
|
2202
2243
|
/**
|
|
2203
|
-
* GET /api/projects/{project_id}/issues/{issue_id}/tags/{key}
|
|
2204
2244
|
* Lists the distinct values (with counts) for a tag key across the issue.
|
|
2205
2245
|
*/
|
|
2206
2246
|
getTagValues(options) {
|
|
@@ -2220,7 +2260,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2220
2260
|
});
|
|
2221
2261
|
}
|
|
2222
2262
|
/**
|
|
2223
|
-
*
|
|
2263
|
+
* List user feedback for an issue.
|
|
2224
2264
|
*/
|
|
2225
2265
|
listUserReports(options) {
|
|
2226
2266
|
return (options.client ?? this.client).get({
|
|
@@ -2239,7 +2279,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2239
2279
|
});
|
|
2240
2280
|
}
|
|
2241
2281
|
/**
|
|
2242
|
-
*
|
|
2282
|
+
* Attach user feedback to an issue.
|
|
2243
2283
|
*/
|
|
2244
2284
|
createUserReport(options) {
|
|
2245
2285
|
return (options.client ?? this.client).post({
|
|
@@ -2264,7 +2304,6 @@ var Issues = class extends HeyApiClient {
|
|
|
2264
2304
|
};
|
|
2265
2305
|
var Logs = class extends HeyApiClient {
|
|
2266
2306
|
/**
|
|
2267
|
-
* GET /api/projects/{project_id}/logs
|
|
2268
2307
|
* Lists logs for a project with offset-based pagination (newest first by
|
|
2269
2308
|
* log timestamp), optionally filtered by level, trace id, message and window.
|
|
2270
2309
|
*/
|
|
@@ -2285,7 +2324,6 @@ var Logs = class extends HeyApiClient {
|
|
|
2285
2324
|
});
|
|
2286
2325
|
}
|
|
2287
2326
|
/**
|
|
2288
|
-
* GET /api/projects/{project_id}/logs/volume
|
|
2289
2327
|
* Counts a project's logs per level over time, with the list's filters.
|
|
2290
2328
|
*/
|
|
2291
2329
|
volume(options) {
|
|
@@ -2305,7 +2343,6 @@ var Logs = class extends HeyApiClient {
|
|
|
2305
2343
|
});
|
|
2306
2344
|
}
|
|
2307
2345
|
/**
|
|
2308
|
-
* GET /api/projects/{project_id}/logs/{log_id}
|
|
2309
2346
|
* Returns one of a project's logs, wherever it falls in the list.
|
|
2310
2347
|
*/
|
|
2311
2348
|
get(options) {
|
|
@@ -2327,7 +2364,7 @@ var Logs = class extends HeyApiClient {
|
|
|
2327
2364
|
};
|
|
2328
2365
|
var Members = class extends HeyApiClient {
|
|
2329
2366
|
/**
|
|
2330
|
-
*
|
|
2367
|
+
* Lists everyone holding a role on the project, with those roles; personal permissions are not roles.
|
|
2331
2368
|
*/
|
|
2332
2369
|
list(options) {
|
|
2333
2370
|
return (options.client ?? this.client).get({
|
|
@@ -2346,7 +2383,7 @@ var Members = class extends HeyApiClient {
|
|
|
2346
2383
|
});
|
|
2347
2384
|
}
|
|
2348
2385
|
/**
|
|
2349
|
-
*
|
|
2386
|
+
* Sets the roles a user holds on the project.
|
|
2350
2387
|
*/
|
|
2351
2388
|
upsert(options) {
|
|
2352
2389
|
return (options.client ?? this.client).put({
|
|
@@ -2369,7 +2406,26 @@ var Members = class extends HeyApiClient {
|
|
|
2369
2406
|
});
|
|
2370
2407
|
}
|
|
2371
2408
|
/**
|
|
2372
|
-
*
|
|
2409
|
+
* Lists the people and the roles the caller can give on the project, so it takes neither `users:read` nor `roles:read` to manage its members.
|
|
2410
|
+
*/
|
|
2411
|
+
candidates(options) {
|
|
2412
|
+
return (options.client ?? this.client).get({
|
|
2413
|
+
requestValidator: async (data) => await zod.object({
|
|
2414
|
+
body: zod.never().optional(),
|
|
2415
|
+
path: require_zod_gen.zMembersCandidatesPath,
|
|
2416
|
+
query: zod.never().optional()
|
|
2417
|
+
}).parseAsync(data),
|
|
2418
|
+
responseValidator: async (data) => await require_zod_gen.zMembersCandidatesResponse.parseAsync(data),
|
|
2419
|
+
security: [{
|
|
2420
|
+
scheme: "bearer",
|
|
2421
|
+
type: "http"
|
|
2422
|
+
}],
|
|
2423
|
+
url: "/api/projects/{project_id}/members/candidates",
|
|
2424
|
+
...options
|
|
2425
|
+
});
|
|
2426
|
+
}
|
|
2427
|
+
/**
|
|
2428
|
+
* Removes the roles a user holds on this project; roles on all projects and personal permissions stay.
|
|
2373
2429
|
*/
|
|
2374
2430
|
remove(options) {
|
|
2375
2431
|
return (options.client ?? this.client).delete({
|
|
@@ -2390,7 +2446,6 @@ var Members = class extends HeyApiClient {
|
|
|
2390
2446
|
};
|
|
2391
2447
|
var Monitors = class extends HeyApiClient {
|
|
2392
2448
|
/**
|
|
2393
|
-
* GET /api/projects/{project_id}/monitor-stats
|
|
2394
2449
|
* Counts the check-ins of a project's monitors by status over a window, bucket by bucket.
|
|
2395
2450
|
*/
|
|
2396
2451
|
stats(options) {
|
|
@@ -2410,7 +2465,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2410
2465
|
});
|
|
2411
2466
|
}
|
|
2412
2467
|
/**
|
|
2413
|
-
*
|
|
2468
|
+
* Lists a project's cron monitors.
|
|
2414
2469
|
*/
|
|
2415
2470
|
list(options) {
|
|
2416
2471
|
return (options.client ?? this.client).get({
|
|
@@ -2429,7 +2484,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2429
2484
|
});
|
|
2430
2485
|
}
|
|
2431
2486
|
/**
|
|
2432
|
-
*
|
|
2487
|
+
* Creates a cron monitor in a project.
|
|
2433
2488
|
*/
|
|
2434
2489
|
create(options) {
|
|
2435
2490
|
return (options.client ?? this.client).post({
|
|
@@ -2452,7 +2507,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2452
2507
|
});
|
|
2453
2508
|
}
|
|
2454
2509
|
/**
|
|
2455
|
-
*
|
|
2510
|
+
* Deletes a cron monitor and its check-ins.
|
|
2456
2511
|
*/
|
|
2457
2512
|
delete(options) {
|
|
2458
2513
|
return (options.client ?? this.client).delete({
|
|
@@ -2471,7 +2526,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2471
2526
|
});
|
|
2472
2527
|
}
|
|
2473
2528
|
/**
|
|
2474
|
-
*
|
|
2529
|
+
* Gets one cron monitor.
|
|
2475
2530
|
*/
|
|
2476
2531
|
get(options) {
|
|
2477
2532
|
return (options.client ?? this.client).get({
|
|
@@ -2490,7 +2545,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2490
2545
|
});
|
|
2491
2546
|
}
|
|
2492
2547
|
/**
|
|
2493
|
-
*
|
|
2548
|
+
* Updates a cron monitor.
|
|
2494
2549
|
*/
|
|
2495
2550
|
update(options) {
|
|
2496
2551
|
return (options.client ?? this.client).put({
|
|
@@ -2513,7 +2568,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2513
2568
|
});
|
|
2514
2569
|
}
|
|
2515
2570
|
/**
|
|
2516
|
-
*
|
|
2571
|
+
* Lists a cron monitor's check-ins, newest first.
|
|
2517
2572
|
*/
|
|
2518
2573
|
listCheckins(options) {
|
|
2519
2574
|
return (options.client ?? this.client).get({
|
|
@@ -2534,7 +2589,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2534
2589
|
};
|
|
2535
2590
|
var Sessions = class extends HeyApiClient {
|
|
2536
2591
|
/**
|
|
2537
|
-
*
|
|
2592
|
+
* Session counts by release, for release health.
|
|
2538
2593
|
*/
|
|
2539
2594
|
getStats(options) {
|
|
2540
2595
|
return (options.client ?? this.client).get({
|
|
@@ -2553,7 +2608,7 @@ var Sessions = class extends HeyApiClient {
|
|
|
2553
2608
|
});
|
|
2554
2609
|
}
|
|
2555
2610
|
/**
|
|
2556
|
-
*
|
|
2611
|
+
* Totals and crash-free rates for a project's sessions.
|
|
2557
2612
|
*/
|
|
2558
2613
|
getSummary(options) {
|
|
2559
2614
|
return (options.client ?? this.client).get({
|
|
@@ -2572,7 +2627,7 @@ var Sessions = class extends HeyApiClient {
|
|
|
2572
2627
|
});
|
|
2573
2628
|
}
|
|
2574
2629
|
/**
|
|
2575
|
-
*
|
|
2630
|
+
* Session counts over time, bucketed for a chart.
|
|
2576
2631
|
*/
|
|
2577
2632
|
getTimeseries(options) {
|
|
2578
2633
|
return (options.client ?? this.client).get({
|
|
@@ -2593,7 +2648,6 @@ var Sessions = class extends HeyApiClient {
|
|
|
2593
2648
|
};
|
|
2594
2649
|
var Spans = class extends HeyApiClient {
|
|
2595
2650
|
/**
|
|
2596
|
-
* GET /api/projects/{project_id}/spans
|
|
2597
2651
|
* Lists spans for a project with offset-based pagination (newest by
|
|
2598
2652
|
* start_timestamp first), optionally filtered by op/status/trace_id.
|
|
2599
2653
|
* Returns spans regardless of origin — standalone or extracted from a
|
|
@@ -2616,7 +2670,6 @@ var Spans = class extends HeyApiClient {
|
|
|
2616
2670
|
});
|
|
2617
2671
|
}
|
|
2618
2672
|
/**
|
|
2619
|
-
* GET /api/projects/{project_id}/spans/{span_id}
|
|
2620
2673
|
* Returns one span together with its attributes and tags — the `gen_ai.*`
|
|
2621
2674
|
* payload (prompts, responses, tool arguments and results) that the list
|
|
2622
2675
|
* response deliberately omits, since `spans.data` is untrimmed and a whole
|
|
@@ -2641,7 +2694,6 @@ var Spans = class extends HeyApiClient {
|
|
|
2641
2694
|
};
|
|
2642
2695
|
var Transactions = class extends HeyApiClient {
|
|
2643
2696
|
/**
|
|
2644
|
-
* GET /api/projects/{project_id}/transactions
|
|
2645
2697
|
* Lists transactions for a project with offset-based pagination (newest first).
|
|
2646
2698
|
*/
|
|
2647
2699
|
list(options) {
|
|
@@ -2661,7 +2713,6 @@ var Transactions = class extends HeyApiClient {
|
|
|
2661
2713
|
});
|
|
2662
2714
|
}
|
|
2663
2715
|
/**
|
|
2664
|
-
* GET /api/projects/{project_id}/transactions/stats
|
|
2665
2716
|
* Returns paginated aggregate performance stats (count, time spent, p50/p95/p99
|
|
2666
2717
|
* latency, failure rate) grouped by transaction name + op, the most time spent
|
|
2667
2718
|
* first unless `sort` asks otherwise.
|
|
@@ -2683,7 +2734,6 @@ var Transactions = class extends HeyApiClient {
|
|
|
2683
2734
|
});
|
|
2684
2735
|
}
|
|
2685
2736
|
/**
|
|
2686
|
-
* GET /api/projects/{project_id}/transactions/stats/group?name=&op=
|
|
2687
2737
|
* Returns the aggregate stats for a single transaction group — a direct lookup
|
|
2688
2738
|
* so the summary header works regardless of how many groups the project has.
|
|
2689
2739
|
*/
|
|
@@ -2726,7 +2776,6 @@ var Transactions = class extends HeyApiClient {
|
|
|
2726
2776
|
});
|
|
2727
2777
|
}
|
|
2728
2778
|
/**
|
|
2729
|
-
* GET /api/projects/{project_id}/transactions/{transaction_id}
|
|
2730
2779
|
* Returns a single transaction with its full Sentry payload (spans, contexts,
|
|
2731
2780
|
* measurements, tags) for the performance detail view.
|
|
2732
2781
|
*/
|
|
@@ -2747,7 +2796,6 @@ var Transactions = class extends HeyApiClient {
|
|
|
2747
2796
|
});
|
|
2748
2797
|
}
|
|
2749
2798
|
/**
|
|
2750
|
-
* GET /api/projects/{project_id}/transactions/{transaction_id}/spans
|
|
2751
2799
|
* Returns the indexed spans extracted from a transaction, ordered for the
|
|
2752
2800
|
* waterfall view (by start_timestamp ascending).
|
|
2753
2801
|
*/
|
|
@@ -2768,10 +2816,97 @@ var Transactions = class extends HeyApiClient {
|
|
|
2768
2816
|
});
|
|
2769
2817
|
}
|
|
2770
2818
|
};
|
|
2771
|
-
var
|
|
2819
|
+
var Roles = class extends HeyApiClient {
|
|
2820
|
+
/**
|
|
2821
|
+
* Lists every role with its permissions and how often it is assigned.
|
|
2822
|
+
*/
|
|
2823
|
+
list(options) {
|
|
2824
|
+
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()
|
|
2829
|
+
}).parseAsync(data),
|
|
2830
|
+
responseValidator: async (data) => await require_zod_gen.zRolesListResponse.parseAsync(data),
|
|
2831
|
+
security: [{
|
|
2832
|
+
scheme: "bearer",
|
|
2833
|
+
type: "http"
|
|
2834
|
+
}],
|
|
2835
|
+
url: "/api/roles",
|
|
2836
|
+
...options
|
|
2837
|
+
});
|
|
2838
|
+
}
|
|
2772
2839
|
/**
|
|
2773
|
-
*
|
|
2840
|
+
* Creates a role from permissions the caller holds themselves.
|
|
2841
|
+
*/
|
|
2842
|
+
create(options) {
|
|
2843
|
+
return (options.client ?? this.client).post({
|
|
2844
|
+
requestValidator: async (data) => await zod.object({
|
|
2845
|
+
body: require_zod_gen.zRolesCreateBody,
|
|
2846
|
+
path: zod.never().optional(),
|
|
2847
|
+
query: zod.never().optional()
|
|
2848
|
+
}).parseAsync(data),
|
|
2849
|
+
responseValidator: async (data) => await require_zod_gen.zRolesCreateResponse.parseAsync(data),
|
|
2850
|
+
security: [{
|
|
2851
|
+
scheme: "bearer",
|
|
2852
|
+
type: "http"
|
|
2853
|
+
}],
|
|
2854
|
+
url: "/api/roles",
|
|
2855
|
+
...options,
|
|
2856
|
+
headers: {
|
|
2857
|
+
"Content-Type": "application/json",
|
|
2858
|
+
...options.headers
|
|
2859
|
+
}
|
|
2860
|
+
});
|
|
2861
|
+
}
|
|
2862
|
+
/**
|
|
2863
|
+
* Deletes a role nobody holds.
|
|
2864
|
+
*/
|
|
2865
|
+
delete(options) {
|
|
2866
|
+
return (options.client ?? this.client).delete({
|
|
2867
|
+
requestValidator: async (data) => await zod.object({
|
|
2868
|
+
body: zod.never().optional(),
|
|
2869
|
+
path: require_zod_gen.zRolesDeletePath,
|
|
2870
|
+
query: zod.never().optional()
|
|
2871
|
+
}).parseAsync(data),
|
|
2872
|
+
responseValidator: async (data) => await require_zod_gen.zRolesDeleteResponse.parseAsync(data),
|
|
2873
|
+
security: [{
|
|
2874
|
+
scheme: "bearer",
|
|
2875
|
+
type: "http"
|
|
2876
|
+
}],
|
|
2877
|
+
url: "/api/roles/{id}",
|
|
2878
|
+
...options
|
|
2879
|
+
});
|
|
2880
|
+
}
|
|
2881
|
+
/**
|
|
2882
|
+
* Replaces a role's name, description and permissions.
|
|
2774
2883
|
*
|
|
2884
|
+
* The caller must hold both the permissions being added and those being
|
|
2885
|
+
* removed, so nobody strips a role of something they could not give back.
|
|
2886
|
+
*/
|
|
2887
|
+
update(options) {
|
|
2888
|
+
return (options.client ?? this.client).put({
|
|
2889
|
+
requestValidator: async (data) => await zod.object({
|
|
2890
|
+
body: require_zod_gen.zRolesUpdateBody,
|
|
2891
|
+
path: require_zod_gen.zRolesUpdatePath,
|
|
2892
|
+
query: zod.never().optional()
|
|
2893
|
+
}).parseAsync(data),
|
|
2894
|
+
responseValidator: async (data) => await require_zod_gen.zRolesUpdateResponse.parseAsync(data),
|
|
2895
|
+
security: [{
|
|
2896
|
+
scheme: "bearer",
|
|
2897
|
+
type: "http"
|
|
2898
|
+
}],
|
|
2899
|
+
url: "/api/roles/{id}",
|
|
2900
|
+
...options,
|
|
2901
|
+
headers: {
|
|
2902
|
+
"Content-Type": "application/json",
|
|
2903
|
+
...options.headers
|
|
2904
|
+
}
|
|
2905
|
+
});
|
|
2906
|
+
}
|
|
2907
|
+
};
|
|
2908
|
+
var Schedules = class extends HeyApiClient {
|
|
2909
|
+
/**
|
|
2775
2910
|
* Validates a schedule and lists its next five runs from now, so no client
|
|
2776
2911
|
* ever parses a crontab itself.
|
|
2777
2912
|
*/
|
|
@@ -2798,7 +2933,8 @@ var Schedules = class extends HeyApiClient {
|
|
|
2798
2933
|
};
|
|
2799
2934
|
var Settings = class extends HeyApiClient {
|
|
2800
2935
|
/**
|
|
2801
|
-
* Whether the MCP endpoint at `/mcp` is on.
|
|
2936
|
+
* Whether the MCP endpoint at `/mcp` is on. Open to every member: it is what
|
|
2937
|
+
* they point their own assistant at.
|
|
2802
2938
|
*/
|
|
2803
2939
|
getMcp(options) {
|
|
2804
2940
|
return (options?.client ?? this.client).get({
|
|
@@ -2817,7 +2953,7 @@ var Settings = class extends HeyApiClient {
|
|
|
2817
2953
|
});
|
|
2818
2954
|
}
|
|
2819
2955
|
/**
|
|
2820
|
-
* Turns the MCP endpoint at `/mcp` on or off
|
|
2956
|
+
* Turns the MCP endpoint at `/mcp` on or off (needs `mcp:update`).
|
|
2821
2957
|
*/
|
|
2822
2958
|
updateMcp(options) {
|
|
2823
2959
|
return (options.client ?? this.client).put({
|
|
@@ -2842,7 +2978,7 @@ var Settings = class extends HeyApiClient {
|
|
|
2842
2978
|
};
|
|
2843
2979
|
var Storage = class extends HeyApiClient {
|
|
2844
2980
|
/**
|
|
2845
|
-
*
|
|
2981
|
+
* Rows per age bucket, per project and kind.
|
|
2846
2982
|
*/
|
|
2847
2983
|
getAge(options) {
|
|
2848
2984
|
return (options?.client ?? this.client).get({
|
|
@@ -2861,7 +2997,7 @@ var Storage = class extends HeyApiClient {
|
|
|
2861
2997
|
});
|
|
2862
2998
|
}
|
|
2863
2999
|
/**
|
|
2864
|
-
*
|
|
3000
|
+
* Starts deleting old data and the issues it
|
|
2865
3001
|
* empties. Returns at once: the purge runs detached, in batches, and
|
|
2866
3002
|
* `GET /api/storage/cleanup/status` reports its progress.
|
|
2867
3003
|
*/
|
|
@@ -2886,7 +3022,7 @@ var Storage = class extends HeyApiClient {
|
|
|
2886
3022
|
});
|
|
2887
3023
|
}
|
|
2888
3024
|
/**
|
|
2889
|
-
*
|
|
3025
|
+
* Dry-run count, mutates nothing.
|
|
2890
3026
|
*/
|
|
2891
3027
|
previewCleanup(options) {
|
|
2892
3028
|
return (options.client ?? this.client).post({
|
|
@@ -2909,7 +3045,7 @@ var Storage = class extends HeyApiClient {
|
|
|
2909
3045
|
});
|
|
2910
3046
|
}
|
|
2911
3047
|
/**
|
|
2912
|
-
*
|
|
3048
|
+
* Progress of the running cleanup, or the
|
|
2913
3049
|
* outcome of the last one.
|
|
2914
3050
|
*/
|
|
2915
3051
|
getCleanupStatus(options) {
|
|
@@ -2929,7 +3065,7 @@ var Storage = class extends HeyApiClient {
|
|
|
2929
3065
|
});
|
|
2930
3066
|
}
|
|
2931
3067
|
/**
|
|
2932
|
-
*
|
|
3068
|
+
* Whether the database file shrinks when data
|
|
2933
3069
|
* is deleted, and the disk a one-off compaction needs.
|
|
2934
3070
|
*/
|
|
2935
3071
|
getCompaction(options) {
|
|
@@ -2949,7 +3085,7 @@ var Storage = class extends HeyApiClient {
|
|
|
2949
3085
|
});
|
|
2950
3086
|
}
|
|
2951
3087
|
/**
|
|
2952
|
-
*
|
|
3088
|
+
* Rewrites a SQLite file created before
|
|
2953
3089
|
* incremental mode, so it gives freed space back from then on. Writes wait
|
|
2954
3090
|
* while it runs; follow it with `GET /api/storage/cleanup/status`.
|
|
2955
3091
|
*/
|
|
@@ -2970,7 +3106,7 @@ var Storage = class extends HeyApiClient {
|
|
|
2970
3106
|
});
|
|
2971
3107
|
}
|
|
2972
3108
|
/**
|
|
2973
|
-
*
|
|
3109
|
+
* Per-project counts and estimated weight.
|
|
2974
3110
|
*/
|
|
2975
3111
|
getProjects(options) {
|
|
2976
3112
|
return (options?.client ?? this.client).get({
|
|
@@ -2989,7 +3125,7 @@ var Storage = class extends HeyApiClient {
|
|
|
2989
3125
|
});
|
|
2990
3126
|
}
|
|
2991
3127
|
/**
|
|
2992
|
-
*
|
|
3128
|
+
* Gets the retention settings and the cleanup schedule.
|
|
2993
3129
|
*/
|
|
2994
3130
|
getRetention(options) {
|
|
2995
3131
|
return (options?.client ?? this.client).get({
|
|
@@ -3008,7 +3144,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3008
3144
|
});
|
|
3009
3145
|
}
|
|
3010
3146
|
/**
|
|
3011
|
-
*
|
|
3147
|
+
* Updates the retention settings; the next cleanup is scheduled at once.
|
|
3012
3148
|
*/
|
|
3013
3149
|
updateRetention(options) {
|
|
3014
3150
|
return (options.client ?? this.client).put({
|
|
@@ -3031,7 +3167,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3031
3167
|
});
|
|
3032
3168
|
}
|
|
3033
3169
|
/**
|
|
3034
|
-
*
|
|
3170
|
+
* What saving these settings would
|
|
3035
3171
|
* delete on the next cleanup, without saving or deleting anything.
|
|
3036
3172
|
*/
|
|
3037
3173
|
previewRetention(options) {
|
|
@@ -3055,7 +3191,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3055
3191
|
});
|
|
3056
3192
|
}
|
|
3057
3193
|
/**
|
|
3058
|
-
*
|
|
3194
|
+
* Enforces the saved retention now,
|
|
3059
3195
|
* without waiting for the schedule. Follow it with the cleanup status.
|
|
3060
3196
|
*/
|
|
3061
3197
|
runRetention(options) {
|
|
@@ -3075,7 +3211,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3075
3211
|
});
|
|
3076
3212
|
}
|
|
3077
3213
|
/**
|
|
3078
|
-
*
|
|
3214
|
+
* Delete orphaned source maps (DB + disk).
|
|
3079
3215
|
*/
|
|
3080
3216
|
gcSourceMaps(options) {
|
|
3081
3217
|
return (options?.client ?? this.client).post({
|
|
@@ -3094,7 +3230,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3094
3230
|
});
|
|
3095
3231
|
}
|
|
3096
3232
|
/**
|
|
3097
|
-
*
|
|
3233
|
+
* Dry-run orphan count, deletes nothing.
|
|
3098
3234
|
*/
|
|
3099
3235
|
previewSourceMapGc(options) {
|
|
3100
3236
|
return (options?.client ?? this.client).post({
|
|
@@ -3113,7 +3249,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3113
3249
|
});
|
|
3114
3250
|
}
|
|
3115
3251
|
/**
|
|
3116
|
-
*
|
|
3252
|
+
* Row counts, DB size, and source-map weight.
|
|
3117
3253
|
*/
|
|
3118
3254
|
getSummary(options) {
|
|
3119
3255
|
return (options?.client ?? this.client).get({
|
|
@@ -3134,7 +3270,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3134
3270
|
};
|
|
3135
3271
|
var Team = class extends HeyApiClient {
|
|
3136
3272
|
/**
|
|
3137
|
-
*
|
|
3273
|
+
* List all users (needs `users:read`)
|
|
3138
3274
|
*/
|
|
3139
3275
|
list(options) {
|
|
3140
3276
|
return (options?.client ?? this.client).get({
|
|
@@ -3153,7 +3289,7 @@ var Team = class extends HeyApiClient {
|
|
|
3153
3289
|
});
|
|
3154
3290
|
}
|
|
3155
3291
|
/**
|
|
3156
|
-
*
|
|
3292
|
+
* Remove a user from the instance (needs `users:delete`)
|
|
3157
3293
|
*/
|
|
3158
3294
|
deleteUser(options) {
|
|
3159
3295
|
return (options.client ?? this.client).delete({
|
|
@@ -3172,7 +3308,7 @@ var Team = class extends HeyApiClient {
|
|
|
3172
3308
|
});
|
|
3173
3309
|
}
|
|
3174
3310
|
/**
|
|
3175
|
-
*
|
|
3311
|
+
* Change a user's global role (needs `users:update`)
|
|
3176
3312
|
*/
|
|
3177
3313
|
updateRole(options) {
|
|
3178
3314
|
return (options.client ?? this.client).patch({
|
|
@@ -3197,7 +3333,7 @@ var Team = class extends HeyApiClient {
|
|
|
3197
3333
|
};
|
|
3198
3334
|
var Telemetry = class extends HeyApiClient {
|
|
3199
3335
|
/**
|
|
3200
|
-
*
|
|
3336
|
+
* Shows the exact anonymous telemetry report this instance would send.
|
|
3201
3337
|
*/
|
|
3202
3338
|
preview(options) {
|
|
3203
3339
|
return (options?.client ?? this.client).get({
|
|
@@ -3218,9 +3354,10 @@ var Telemetry = class extends HeyApiClient {
|
|
|
3218
3354
|
};
|
|
3219
3355
|
var Tokens = class extends HeyApiClient {
|
|
3220
3356
|
/**
|
|
3221
|
-
*
|
|
3357
|
+
* List tokens (masked)
|
|
3222
3358
|
*
|
|
3223
|
-
*
|
|
3359
|
+
* Everyone sees their own tokens; `api-tokens:read` sees every token. A token
|
|
3360
|
+
* limited to other permissions sees none: it must not reach its owner's others.
|
|
3224
3361
|
*/
|
|
3225
3362
|
list(options) {
|
|
3226
3363
|
return (options?.client ?? this.client).get({
|
|
@@ -3239,7 +3376,10 @@ var Tokens = class extends HeyApiClient {
|
|
|
3239
3376
|
});
|
|
3240
3377
|
}
|
|
3241
3378
|
/**
|
|
3242
|
-
*
|
|
3379
|
+
* Create a new token (from a signed-in session only)
|
|
3380
|
+
*
|
|
3381
|
+
* A token cannot create tokens: a limited or expiring one could otherwise
|
|
3382
|
+
* mint itself a way out of its limits.
|
|
3243
3383
|
*/
|
|
3244
3384
|
create(options) {
|
|
3245
3385
|
return (options.client ?? this.client).post({
|
|
@@ -3262,9 +3402,9 @@ var Tokens = class extends HeyApiClient {
|
|
|
3262
3402
|
});
|
|
3263
3403
|
}
|
|
3264
3404
|
/**
|
|
3265
|
-
*
|
|
3405
|
+
* Revoke a token
|
|
3266
3406
|
*
|
|
3267
|
-
*
|
|
3407
|
+
* Everyone may revoke their own; `api-tokens:delete` revokes any.
|
|
3268
3408
|
*/
|
|
3269
3409
|
delete(options) {
|
|
3270
3410
|
return (options.client ?? this.client).delete({
|
|
@@ -3283,10 +3423,10 @@ var Tokens = class extends HeyApiClient {
|
|
|
3283
3423
|
});
|
|
3284
3424
|
}
|
|
3285
3425
|
/**
|
|
3286
|
-
*
|
|
3426
|
+
* Token details, masked
|
|
3287
3427
|
*
|
|
3288
|
-
*
|
|
3289
|
-
*
|
|
3428
|
+
* Tokens are stored hashed, so the full value is only ever shown on
|
|
3429
|
+
* creation. Everyone may view their own; `api-tokens:read` views any.
|
|
3290
3430
|
*/
|
|
3291
3431
|
get(options) {
|
|
3292
3432
|
return (options.client ?? this.client).get({
|
|
@@ -3305,9 +3445,55 @@ var Tokens = class extends HeyApiClient {
|
|
|
3305
3445
|
});
|
|
3306
3446
|
}
|
|
3307
3447
|
};
|
|
3448
|
+
var Users = class extends HeyApiClient {
|
|
3449
|
+
/**
|
|
3450
|
+
* Lists the roles a user holds, on the instance and on each project.
|
|
3451
|
+
*/
|
|
3452
|
+
assignments(options) {
|
|
3453
|
+
return (options.client ?? this.client).get({
|
|
3454
|
+
requestValidator: async (data) => await zod.object({
|
|
3455
|
+
body: zod.never().optional(),
|
|
3456
|
+
path: require_zod_gen.zUsersAssignmentsPath,
|
|
3457
|
+
query: zod.never().optional()
|
|
3458
|
+
}).parseAsync(data),
|
|
3459
|
+
responseValidator: async (data) => await require_zod_gen.zUsersAssignmentsResponse.parseAsync(data),
|
|
3460
|
+
security: [{
|
|
3461
|
+
scheme: "bearer",
|
|
3462
|
+
type: "http"
|
|
3463
|
+
}],
|
|
3464
|
+
url: "/api/users/{id}/assignments",
|
|
3465
|
+
...options
|
|
3466
|
+
});
|
|
3467
|
+
}
|
|
3468
|
+
/**
|
|
3469
|
+
* Replaces every role and personal permission a user holds.
|
|
3470
|
+
*
|
|
3471
|
+
* The caller must hold every role being given or taken away, on the scope
|
|
3472
|
+
* it applies to.
|
|
3473
|
+
*/
|
|
3474
|
+
setAssignments(options) {
|
|
3475
|
+
return (options.client ?? this.client).put({
|
|
3476
|
+
requestValidator: async (data) => await zod.object({
|
|
3477
|
+
body: require_zod_gen.zUsersSetAssignmentsBody,
|
|
3478
|
+
path: require_zod_gen.zUsersSetAssignmentsPath,
|
|
3479
|
+
query: zod.never().optional()
|
|
3480
|
+
}).parseAsync(data),
|
|
3481
|
+
responseValidator: async (data) => await require_zod_gen.zUsersSetAssignmentsResponse.parseAsync(data),
|
|
3482
|
+
security: [{
|
|
3483
|
+
scheme: "bearer",
|
|
3484
|
+
type: "http"
|
|
3485
|
+
}],
|
|
3486
|
+
url: "/api/users/{id}/assignments",
|
|
3487
|
+
...options,
|
|
3488
|
+
headers: {
|
|
3489
|
+
"Content-Type": "application/json",
|
|
3490
|
+
...options.headers
|
|
3491
|
+
}
|
|
3492
|
+
});
|
|
3493
|
+
}
|
|
3494
|
+
};
|
|
3308
3495
|
var Auth = class extends HeyApiClient {
|
|
3309
3496
|
/**
|
|
3310
|
-
* POST /auth/accept-invitation
|
|
3311
3497
|
* Accept a pending invitation: creates the user (with the invite's email + role) and logs in.
|
|
3312
3498
|
*/
|
|
3313
3499
|
acceptInvitation(options) {
|
|
@@ -3327,7 +3513,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3327
3513
|
});
|
|
3328
3514
|
}
|
|
3329
3515
|
/**
|
|
3330
|
-
* GET /auth/invitation/{token}
|
|
3331
3516
|
* Returns the invitation's details if it is still acceptable (for the accept page).
|
|
3332
3517
|
*/
|
|
3333
3518
|
getInvitation(options) {
|
|
@@ -3343,7 +3528,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3343
3528
|
});
|
|
3344
3529
|
}
|
|
3345
3530
|
/**
|
|
3346
|
-
* POST /auth/login
|
|
3347
3531
|
* Authenticate user and create session
|
|
3348
3532
|
*/
|
|
3349
3533
|
login(options) {
|
|
@@ -3363,7 +3547,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3363
3547
|
});
|
|
3364
3548
|
}
|
|
3365
3549
|
/**
|
|
3366
|
-
* POST /auth/logout
|
|
3367
3550
|
* Clear session
|
|
3368
3551
|
*/
|
|
3369
3552
|
logout(options) {
|
|
@@ -3376,7 +3559,7 @@ var Auth = class extends HeyApiClient {
|
|
|
3376
3559
|
responseValidator: async (data) => await require_zod_gen.zAuthLogoutResponse.parseAsync(data),
|
|
3377
3560
|
security: [{
|
|
3378
3561
|
in: "cookie",
|
|
3379
|
-
name: "
|
|
3562
|
+
name: "rustrak_session",
|
|
3380
3563
|
type: "apiKey"
|
|
3381
3564
|
}],
|
|
3382
3565
|
url: "/auth/logout",
|
|
@@ -3384,7 +3567,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3384
3567
|
});
|
|
3385
3568
|
}
|
|
3386
3569
|
/**
|
|
3387
|
-
* GET /auth/me
|
|
3388
3570
|
* Get current authenticated user
|
|
3389
3571
|
*/
|
|
3390
3572
|
getCurrentUser(options) {
|
|
@@ -3397,7 +3579,7 @@ var Auth = class extends HeyApiClient {
|
|
|
3397
3579
|
responseValidator: async (data) => await require_zod_gen.zAuthGetCurrentUserResponse.parseAsync(data),
|
|
3398
3580
|
security: [{
|
|
3399
3581
|
in: "cookie",
|
|
3400
|
-
name: "
|
|
3582
|
+
name: "rustrak_session",
|
|
3401
3583
|
type: "apiKey"
|
|
3402
3584
|
}],
|
|
3403
3585
|
url: "/auth/me",
|
|
@@ -3405,7 +3587,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3405
3587
|
});
|
|
3406
3588
|
}
|
|
3407
3589
|
/**
|
|
3408
|
-
* PATCH /auth/me
|
|
3409
3590
|
* Update the current user's presentation preferences
|
|
3410
3591
|
*/
|
|
3411
3592
|
updateCurrentUser(options) {
|
|
@@ -3418,7 +3599,7 @@ var Auth = class extends HeyApiClient {
|
|
|
3418
3599
|
responseValidator: async (data) => await require_zod_gen.zAuthUpdateCurrentUserResponse.parseAsync(data),
|
|
3419
3600
|
security: [{
|
|
3420
3601
|
in: "cookie",
|
|
3421
|
-
name: "
|
|
3602
|
+
name: "rustrak_session",
|
|
3422
3603
|
type: "apiKey"
|
|
3423
3604
|
}],
|
|
3424
3605
|
url: "/auth/me",
|
|
@@ -3430,8 +3611,8 @@ var Auth = class extends HeyApiClient {
|
|
|
3430
3611
|
});
|
|
3431
3612
|
}
|
|
3432
3613
|
/**
|
|
3433
|
-
*
|
|
3434
|
-
*
|
|
3614
|
+
* Change the current user's password. Every other session of the user ends;
|
|
3615
|
+
* this one continues under a new id.
|
|
3435
3616
|
*/
|
|
3436
3617
|
changePassword(options) {
|
|
3437
3618
|
return (options.client ?? this.client).post({
|
|
@@ -3443,7 +3624,7 @@ var Auth = class extends HeyApiClient {
|
|
|
3443
3624
|
responseValidator: async (data) => await require_zod_gen.zAuthChangePasswordResponse.parseAsync(data),
|
|
3444
3625
|
security: [{
|
|
3445
3626
|
in: "cookie",
|
|
3446
|
-
name: "
|
|
3627
|
+
name: "rustrak_session",
|
|
3447
3628
|
type: "apiKey"
|
|
3448
3629
|
}],
|
|
3449
3630
|
url: "/auth/me/password",
|
|
@@ -3455,26 +3636,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3455
3636
|
});
|
|
3456
3637
|
}
|
|
3457
3638
|
/**
|
|
3458
|
-
* POST /auth/register
|
|
3459
|
-
* Registration is invite-only — always rejected. Use `/auth/accept-invitation`.
|
|
3460
|
-
*/
|
|
3461
|
-
register(options) {
|
|
3462
|
-
return (options.client ?? this.client).post({
|
|
3463
|
-
requestValidator: async (data) => await zod.object({
|
|
3464
|
-
body: require_zod_gen.zAuthRegisterBody,
|
|
3465
|
-
path: zod.never().optional(),
|
|
3466
|
-
query: zod.never().optional()
|
|
3467
|
-
}).parseAsync(data),
|
|
3468
|
-
url: "/auth/register",
|
|
3469
|
-
...options,
|
|
3470
|
-
headers: {
|
|
3471
|
-
"Content-Type": "application/json",
|
|
3472
|
-
...options.headers
|
|
3473
|
-
}
|
|
3474
|
-
});
|
|
3475
|
-
}
|
|
3476
|
-
/**
|
|
3477
|
-
* GET /auth/sso/callback
|
|
3478
3639
|
* Validate the provider response, resolve or provision the local account, and
|
|
3479
3640
|
* establish the normal Rustrak session.
|
|
3480
3641
|
*/
|
|
@@ -3491,7 +3652,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3491
3652
|
});
|
|
3492
3653
|
}
|
|
3493
3654
|
/**
|
|
3494
|
-
* GET /auth/sso/config
|
|
3495
3655
|
* Public, non-sensitive information used to render the login page.
|
|
3496
3656
|
*/
|
|
3497
3657
|
ssoConfig(options) {
|
|
@@ -3507,7 +3667,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3507
3667
|
});
|
|
3508
3668
|
}
|
|
3509
3669
|
/**
|
|
3510
|
-
* GET /auth/sso/link
|
|
3511
3670
|
* The account an SSO login matched, shown while its owner confirms.
|
|
3512
3671
|
*/
|
|
3513
3672
|
ssoLink(options) {
|
|
@@ -3523,7 +3682,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3523
3682
|
});
|
|
3524
3683
|
}
|
|
3525
3684
|
/**
|
|
3526
|
-
* POST /auth/sso/link
|
|
3527
3685
|
* Link the pending SSO identity to its account once the account's password
|
|
3528
3686
|
* is given, and sign in. A wrong password keeps the link pending for a retry.
|
|
3529
3687
|
*/
|
|
@@ -3544,9 +3702,8 @@ var Auth = class extends HeyApiClient {
|
|
|
3544
3702
|
});
|
|
3545
3703
|
}
|
|
3546
3704
|
/**
|
|
3547
|
-
* POST /auth/sso/start
|
|
3548
3705
|
* Create a one-time OIDC authorization request and retain its protections in
|
|
3549
|
-
* the
|
|
3706
|
+
* the session.
|
|
3550
3707
|
*/
|
|
3551
3708
|
ssoStart(options) {
|
|
3552
3709
|
return (options?.client ?? this.client).post({
|
|
@@ -3616,7 +3773,7 @@ var Health = class extends HeyApiClient {
|
|
|
3616
3773
|
type: "http"
|
|
3617
3774
|
}, {
|
|
3618
3775
|
in: "cookie",
|
|
3619
|
-
name: "
|
|
3776
|
+
name: "rustrak_session",
|
|
3620
3777
|
type: "apiKey"
|
|
3621
3778
|
}],
|
|
3622
3779
|
url: "/health/version",
|
|
@@ -3646,6 +3803,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
3646
3803
|
get releases() {
|
|
3647
3804
|
return this._releases ??= new Releases({ client: this.client });
|
|
3648
3805
|
}
|
|
3806
|
+
_access;
|
|
3807
|
+
get access() {
|
|
3808
|
+
return this._access ??= new Access({ client: this.client });
|
|
3809
|
+
}
|
|
3649
3810
|
_github;
|
|
3650
3811
|
get github() {
|
|
3651
3812
|
return this._github ??= new Github({ client: this.client });
|
|
@@ -3718,6 +3879,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
3718
3879
|
get transactions() {
|
|
3719
3880
|
return this._transactions ??= new Transactions({ client: this.client });
|
|
3720
3881
|
}
|
|
3882
|
+
_roles;
|
|
3883
|
+
get roles() {
|
|
3884
|
+
return this._roles ??= new Roles({ client: this.client });
|
|
3885
|
+
}
|
|
3721
3886
|
_schedules;
|
|
3722
3887
|
get schedules() {
|
|
3723
3888
|
return this._schedules ??= new Schedules({ client: this.client });
|
|
@@ -3742,6 +3907,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
3742
3907
|
get tokens() {
|
|
3743
3908
|
return this._tokens ??= new Tokens({ client: this.client });
|
|
3744
3909
|
}
|
|
3910
|
+
_users;
|
|
3911
|
+
get users() {
|
|
3912
|
+
return this._users ??= new Users({ client: this.client });
|
|
3913
|
+
}
|
|
3745
3914
|
_auth;
|
|
3746
3915
|
get auth() {
|
|
3747
3916
|
return this._auth ??= new Auth({ client: this.client });
|
|
@@ -3751,6 +3920,7 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
3751
3920
|
return this._health ??= new Health({ client: this.client });
|
|
3752
3921
|
}
|
|
3753
3922
|
};
|
|
3923
|
+
exports.Access = Access;
|
|
3754
3924
|
exports.Agents = Agents;
|
|
3755
3925
|
exports.AlertChannels = AlertChannels;
|
|
3756
3926
|
exports.AlertRules = AlertRules;
|
|
@@ -3769,6 +3939,7 @@ exports.Monitors = Monitors;
|
|
|
3769
3939
|
exports.Oauth = Oauth;
|
|
3770
3940
|
exports.Projects = Projects;
|
|
3771
3941
|
exports.Releases = Releases;
|
|
3942
|
+
exports.Roles = Roles;
|
|
3772
3943
|
exports.Rustrak = Rustrak;
|
|
3773
3944
|
exports.Schedules = Schedules;
|
|
3774
3945
|
exports.Sentry = Sentry;
|
|
@@ -3782,5 +3953,6 @@ exports.Team = Team;
|
|
|
3782
3953
|
exports.Telemetry = Telemetry;
|
|
3783
3954
|
exports.Tokens = Tokens;
|
|
3784
3955
|
exports.Transactions = Transactions;
|
|
3956
|
+
exports.Users = Users;
|
|
3785
3957
|
|
|
3786
3958
|
//# sourceMappingURL=sdk.gen.cjs.map
|