@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.
- package/README.md +47 -48
- 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 +96 -187
- package/dist/generated/sdk.gen.cjs.map +1 -1
- package/dist/generated/sdk.gen.d.cts +1 -2
- package/dist/generated/sdk.gen.d.cts.map +1 -1
- package/dist/generated/sdk.gen.d.mts +1 -2
- package/dist/generated/sdk.gen.d.mts.map +1 -1
- package/dist/generated/sdk.gen.mjs +97 -188
- package/dist/generated/sdk.gen.mjs.map +1 -1
- package/dist/generated/types.gen.d.cts +3 -21
- package/dist/generated/types.gen.d.cts.map +1 -1
- package/dist/generated/types.gen.d.mts +3 -21
- package/dist/generated/types.gen.d.mts.map +1 -1
- package/dist/generated/zod.gen.cjs +2 -17
- package/dist/generated/zod.gen.cjs.map +1 -1
- package/dist/generated/zod.gen.mjs +3 -16
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { formDataBodySerializer } from "./core/bodySerializer.gen.mjs";
|
|
2
2
|
import { client } from "./client.gen.mjs";
|
|
3
|
-
import { zAccessCatalogResponse, zAccessMeResponse, zAgentsConversationPath, zAgentsConversationResponse, zAgentsConversationsPath, zAgentsConversationsQuery, zAgentsConversationsResponse, zAgentsDurationPath, zAgentsDurationQuery, zAgentsDurationResponse, zAgentsEnvironmentsPath, zAgentsEnvironmentsResponse, zAgentsModelsCallsPath, zAgentsModelsCallsQuery, zAgentsModelsCallsResponse, zAgentsModelsTablePath, zAgentsModelsTableQuery, zAgentsModelsTableResponse, zAgentsModelsTokensPath, zAgentsModelsTokensQuery, zAgentsModelsTokensResponse, zAgentsRunsPath, zAgentsRunsQuery, zAgentsRunsResponse, zAgentsSummaryPath, zAgentsSummaryQuery, zAgentsSummaryResponse, zAgentsToolsPath, zAgentsToolsQuery, zAgentsToolsResponse, zAgentsToolsTablePath, zAgentsToolsTableQuery, zAgentsToolsTableResponse, zAgentsTracesPath, zAgentsTracesQuery, zAgentsTracesResponse, zAlertChannelsCreateBody, zAlertChannelsCreateResponse, zAlertChannelsDeletePath, zAlertChannelsDeleteResponse, zAlertChannelsGetPath, zAlertChannelsGetResponse, zAlertChannelsListResponse, zAlertChannelsPreviewTemplateBody, zAlertChannelsPreviewTemplateResponse, zAlertChannelsTestBody, zAlertChannelsTestPath, zAlertChannelsTestResponse, zAlertChannelsUpdateBody, zAlertChannelsUpdatePath, zAlertChannelsUpdateResponse, zAlertRulesCreateBody, zAlertRulesCreatePath, zAlertRulesCreateResponse, zAlertRulesDeletePath, zAlertRulesDeleteResponse, zAlertRulesGetPath, zAlertRulesGetResponse, zAlertRulesHistoryByDayPath, zAlertRulesHistoryByDayQuery, zAlertRulesHistoryByDayResponse, zAlertRulesListHistoryPath, zAlertRulesListHistoryQuery, zAlertRulesListHistoryResponse, zAlertRulesListPath, zAlertRulesListResponse, zAlertRulesUpdateBody, zAlertRulesUpdatePath, zAlertRulesUpdateResponse, zAuthAcceptInvitationBody, zAuthAcceptInvitationResponse, zAuthChangePasswordBody, zAuthChangePasswordResponse, zAuthConfirmSsoLinkBody, zAuthConfirmSsoLinkResponse, zAuthGetCurrentUserResponse, zAuthGetInvitationPath, zAuthGetInvitationResponse, zAuthLoginBody, zAuthLoginResponse, zAuthLogoutResponse,
|
|
3
|
+
import { zAccessCatalogResponse, zAccessMeResponse, zAgentsConversationPath, zAgentsConversationResponse, zAgentsConversationsPath, zAgentsConversationsQuery, zAgentsConversationsResponse, zAgentsDurationPath, zAgentsDurationQuery, zAgentsDurationResponse, zAgentsEnvironmentsPath, zAgentsEnvironmentsResponse, zAgentsModelsCallsPath, zAgentsModelsCallsQuery, zAgentsModelsCallsResponse, zAgentsModelsTablePath, zAgentsModelsTableQuery, zAgentsModelsTableResponse, zAgentsModelsTokensPath, zAgentsModelsTokensQuery, zAgentsModelsTokensResponse, zAgentsRunsPath, zAgentsRunsQuery, zAgentsRunsResponse, zAgentsSummaryPath, zAgentsSummaryQuery, zAgentsSummaryResponse, zAgentsToolsPath, zAgentsToolsQuery, zAgentsToolsResponse, zAgentsToolsTablePath, zAgentsToolsTableQuery, zAgentsToolsTableResponse, zAgentsTracesPath, zAgentsTracesQuery, zAgentsTracesResponse, zAlertChannelsCreateBody, zAlertChannelsCreateResponse, zAlertChannelsDeletePath, zAlertChannelsDeleteResponse, zAlertChannelsGetPath, zAlertChannelsGetResponse, zAlertChannelsListResponse, zAlertChannelsPreviewTemplateBody, zAlertChannelsPreviewTemplateResponse, zAlertChannelsTestBody, zAlertChannelsTestPath, zAlertChannelsTestResponse, zAlertChannelsUpdateBody, zAlertChannelsUpdatePath, zAlertChannelsUpdateResponse, zAlertRulesCreateBody, zAlertRulesCreatePath, zAlertRulesCreateResponse, zAlertRulesDeletePath, zAlertRulesDeleteResponse, zAlertRulesGetPath, zAlertRulesGetResponse, zAlertRulesHistoryByDayPath, zAlertRulesHistoryByDayQuery, zAlertRulesHistoryByDayResponse, zAlertRulesListHistoryPath, zAlertRulesListHistoryQuery, zAlertRulesListHistoryResponse, zAlertRulesListPath, zAlertRulesListResponse, zAlertRulesUpdateBody, zAlertRulesUpdatePath, zAlertRulesUpdateResponse, zAuthAcceptInvitationBody, zAuthAcceptInvitationResponse, zAuthChangePasswordBody, zAuthChangePasswordResponse, zAuthConfirmSsoLinkBody, zAuthConfirmSsoLinkResponse, zAuthGetCurrentUserResponse, zAuthGetInvitationPath, zAuthGetInvitationResponse, zAuthLoginBody, zAuthLoginResponse, zAuthLogoutResponse, zAuthSsoCallbackQuery, zAuthSsoCallbackResponse, zAuthSsoConfigResponse, zAuthSsoLinkResponse, zAuthSsoStartResponse, zAuthUpdateCurrentUserBody, zAuthUpdateCurrentUserResponse, zDebugFilesAssembleBody, zDebugFilesAssemblePath, zDebugFilesAssembleResponse, zDebugFilesUploadBody, zDebugFilesUploadPath, zDebugFilesUploadResponse, zEnvironmentsListPath, zEnvironmentsListResponse, zEventsDownloadAttachmentPath, zEventsDownloadAttachmentResponse, zEventsGetBySentryIdPath, zEventsGetBySentryIdResponse, zEventsGetPath, zEventsGetResponse, zEventsListAttachmentsPath, zEventsListAttachmentsResponse, zEventsListPath, zEventsListQuery, zEventsListResponse, zFeedbackListPath, zFeedbackListQuery, zFeedbackListResponse, zGithubCallbackQuery, zGithubCreateIssueBody, zGithubCreateIssuePath, zGithubCreateIssueResponse, zGithubDeleteProjectRepositoryPath, zGithubDeleteProjectRepositoryResponse, zGithubDisconnectResponse, zGithubGetMyLoginResponse, zGithubGetProjectRepositoryPath, zGithubGetProjectRepositoryResponse, zGithubInstalledQuery, zGithubIssueDraftPath, zGithubIssueDraftResponse, zGithubIssuePath, zGithubIssueResponse, zGithubLinkIssueBody, zGithubLinkIssuePath, zGithubLinkIssueResponse, zGithubManifestBody, zGithubManifestResponse, zGithubPutIssueTemplateBody, zGithubPutIssueTemplateResponse, zGithubPutMyLoginBody, zGithubPutMyLoginResponse, zGithubPutProjectRepositoryBody, zGithubPutProjectRepositoryPath, zGithubPutProjectRepositoryResponse, zGithubRepositoriesQuery, zGithubRepositoriesResponse, zGithubStatusResponse, zGithubSyncCodeownersPath, zGithubSyncCodeownersResponse, zGithubUnlinkIssuePath, zGithubUnlinkIssueResponse, zGithubWebhookBody, zGithubWebhookResponse, zHealthLivenessResponse, zHealthReadinessResponse, zHealthVersionResponse, zInvitationsCreateBody, zInvitationsCreateResponse, zInvitationsEmailStatusResponse, zInvitationsListResponse, zInvitationsResendPath, zInvitationsResendResponse, zInvitationsRevokePath, zInvitationsRevokeResponse, zIssuesBulkDeleteBody, zIssuesBulkDeletePath, zIssuesBulkDeleteResponse, zIssuesBulkUpdateBody, zIssuesBulkUpdatePath, zIssuesBulkUpdateResponse, zIssuesCreateCommentBody, zIssuesCreateCommentPath, zIssuesCreateCommentResponse, zIssuesCreateUserReportBody, zIssuesCreateUserReportPath, zIssuesCreateUserReportResponse, zIssuesDeletePath, zIssuesDeleteResponse, zIssuesGetActivityPath, zIssuesGetActivityResponse, zIssuesGetAggregatesPath, zIssuesGetAggregatesResponse, zIssuesGetHashesPath, zIssuesGetHashesResponse, zIssuesGetPath, zIssuesGetResponse, zIssuesGetStatsPath, zIssuesGetStatsQuery, zIssuesGetStatsResponse, zIssuesGetTagValuesPath, zIssuesGetTagValuesResponse, zIssuesListPath, zIssuesListQuery, zIssuesListResponse, zIssuesListUserReportsPath, zIssuesListUserReportsQuery, zIssuesListUserReportsResponse, zIssuesMarkSeenPath, zIssuesMarkSeenResponse, zIssuesSetBookmarkBody, zIssuesSetBookmarkPath, zIssuesSetBookmarkResponse, zIssuesSetSubscriptionBody, zIssuesSetSubscriptionPath, zIssuesSetSubscriptionResponse, zIssuesUpdateBody, zIssuesUpdatePath, zIssuesUpdateResponse, zLogsGetPath, zLogsGetResponse, zLogsListPath, zLogsListQuery, zLogsListResponse, zLogsVolumePath, zLogsVolumeQuery, zLogsVolumeResponse, zMembersCandidatesPath, zMembersCandidatesResponse, zMembersListPath, zMembersListResponse, zMembersRemovePath, zMembersRemoveResponse, zMembersUpsertBody, zMembersUpsertPath, zMembersUpsertResponse, zMonitorsCreateBody, zMonitorsCreatePath, zMonitorsCreateResponse, zMonitorsDeletePath, zMonitorsDeleteResponse, zMonitorsGetPath, zMonitorsGetResponse, zMonitorsListCheckinsPath, zMonitorsListCheckinsQuery, zMonitorsListCheckinsResponse, zMonitorsListPath, zMonitorsListResponse, zMonitorsStatsPath, zMonitorsStatsQuery, zMonitorsStatsResponse, zMonitorsUpdateBody, zMonitorsUpdatePath, zMonitorsUpdateResponse, zOauthDecideAuthorizationBody, zOauthDecideAuthorizationResponse, zOauthGetAuthorizationQuery, zOauthGetAuthorizationResponse, zOauthListGrantsResponse, zOauthRevokeGrantPath, zOauthRevokeGrantResponse, zProjectsCreateBody, zProjectsCreateResponse, zProjectsDeletePath, zProjectsDeleteResponse, zProjectsGetPath, zProjectsGetRateLimitsResponse, zProjectsGetResponse, zProjectsListQuery, zProjectsListResponse, zProjectsUpdateBody, zProjectsUpdatePath, zProjectsUpdateResponse, zReleasesCreateBody, zReleasesCreatePath, zReleasesCreateResponse, zReleasesFinalizeBody, zReleasesFinalizePath, zReleasesFinalizeResponse, zReleasesGetPath, zReleasesGetQuery, zReleasesGetResponse, zReleasesListPath, zReleasesListQuery, zReleasesListResponse, zReleasesNewIssuesPath, zReleasesNewIssuesQuery, zReleasesNewIssuesResponse, zRolesCreateBody, zRolesCreateResponse, zRolesDeletePath, zRolesDeleteResponse, zRolesListResponse, zRolesUpdateBody, zRolesUpdatePath, zRolesUpdateResponse, zSchedulesPreviewBody, zSchedulesPreviewResponse, zSentryGetIssuePath, zSentryGetIssueResponse, zSentryGetLatestEventPath, zSentryGetLatestEventResponse, zSentryListIssuesPath, zSentryListIssuesQuery, zSentryListIssuesResponse, zSentryListOrganizationsResponse, zSentryListProjectsQuery, zSentryListProjectsResponse, zSentryListReposPath, zSentryListReposResponse, zSentryOpenIssuePath, zSentrySubmitUserFeedbackBody, zSentrySubmitUserFeedbackPath, zSentrySubmitUserFeedbackResponse, zSentryUpdateIssueBody, zSentryUpdateIssuePath, zSentryUpdateIssueResponse, zSessionsGetStatsPath, zSessionsGetStatsQuery, zSessionsGetStatsResponse, zSessionsGetSummaryPath, zSessionsGetSummaryQuery, zSessionsGetSummaryResponse, zSessionsGetTimeseriesPath, zSessionsGetTimeseriesQuery, zSessionsGetTimeseriesResponse, zSettingsGetMcpResponse, zSettingsUpdateMcpBody, zSettingsUpdateMcpResponse, zSourceMapsArtifactBundleAssembleBody, zSourceMapsArtifactBundleAssemblePath, zSourceMapsArtifactBundleAssembleResponse, zSourceMapsChunkUploadBody, zSourceMapsChunkUploadCapabilityPath, zSourceMapsChunkUploadCapabilityResponse, zSourceMapsChunkUploadPath, zSourceMapsListPath, zSourceMapsListResponse, zSourceMapsOrgDetailsPath, zSourceMapsOrgDetailsResponse, zSpansGetPath, zSpansGetResponse, zSpansListPath, zSpansListQuery, zSpansListResponse, zStatsGetEventTimeseriesPath, zStatsGetEventTimeseriesQuery, zStatsGetEventTimeseriesResponse, zStatsGetSummaryPath, zStatsGetSummaryQuery, zStatsGetSummaryResponse, zStorageCompactResponse, zStorageExecuteCleanupBody, zStorageExecuteCleanupResponse, zStorageGcSourceMapsResponse, zStorageGetAgeResponse, zStorageGetCleanupStatusResponse, zStorageGetCompactionResponse, zStorageGetProjectsResponse, zStorageGetRetentionResponse, zStorageGetSummaryResponse, zStoragePreviewCleanupBody, zStoragePreviewCleanupResponse, zStoragePreviewRetentionBody, zStoragePreviewRetentionResponse, zStoragePreviewSourceMapGcResponse, zStorageRunRetentionResponse, zStorageUpdateRetentionBody, zStorageUpdateRetentionResponse, zTeamDeleteUserPath, zTeamDeleteUserResponse, zTeamListResponse, zTeamUpdateRoleBody, zTeamUpdateRolePath, zTeamUpdateRoleResponse, zTelemetryPreviewResponse, zTokensCreateBody, zTokensCreateResponse, zTokensDeletePath, zTokensDeleteResponse, zTokensGetPath, zTokensGetResponse, zTokensListResponse, zTransactionsGetPath, zTransactionsGetResponse, zTransactionsGetSpansPath, zTransactionsGetSpansResponse, zTransactionsGetStatGroupPath, zTransactionsGetStatGroupQuery, zTransactionsGetStatGroupResponse, zTransactionsGetStatGroupTimeseriesPath, zTransactionsGetStatGroupTimeseriesQuery, zTransactionsGetStatGroupTimeseriesResponse, zTransactionsGetStatsPath, zTransactionsGetStatsQuery, zTransactionsGetStatsResponse, zTransactionsListPath, zTransactionsListQuery, zTransactionsListResponse, zUsersAssignmentsPath, zUsersAssignmentsResponse, zUsersSetAssignmentsBody, zUsersSetAssignmentsPath, zUsersSetAssignmentsResponse } from "./zod.gen.mjs";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
// src/generated/sdk.gen.ts
|
|
6
6
|
var HeyApiClient = class {
|
|
@@ -23,8 +23,6 @@ var HeyApiRegistry = class {
|
|
|
23
23
|
};
|
|
24
24
|
var Sentry = class extends HeyApiClient {
|
|
25
25
|
/**
|
|
26
|
-
* GET /api/0/issues/{issue_id}/
|
|
27
|
-
*
|
|
28
26
|
* One issue with its releases and its 24h and 30d series (Sentry's
|
|
29
27
|
* `GroupDetailsEndpoint`). Also served under `/groups/` and the
|
|
30
28
|
* organization-scoped paths, as Sentry does.
|
|
@@ -46,8 +44,6 @@ var Sentry = class extends HeyApiClient {
|
|
|
46
44
|
});
|
|
47
45
|
}
|
|
48
46
|
/**
|
|
49
|
-
* PUT /api/0/issues/{issue_id}/
|
|
50
|
-
*
|
|
51
47
|
* Sets an issue's status and returns the issue (Sentry's
|
|
52
48
|
* `GroupDetailsEndpoint.put`). The change goes through Rustrak's own
|
|
53
49
|
* issue update, so it is recorded and mirrored like any other.
|
|
@@ -73,8 +69,6 @@ var Sentry = class extends HeyApiClient {
|
|
|
73
69
|
});
|
|
74
70
|
}
|
|
75
71
|
/**
|
|
76
|
-
* GET /api/0/issues/{issue_id}/events/latest/
|
|
77
|
-
*
|
|
78
72
|
* The issue's most recent event (Sentry's `GroupEventDetailsEndpoint`,
|
|
79
73
|
* `issues/endpoints/group_event_details.py`).
|
|
80
74
|
*/
|
|
@@ -95,8 +89,6 @@ var Sentry = class extends HeyApiClient {
|
|
|
95
89
|
});
|
|
96
90
|
}
|
|
97
91
|
/**
|
|
98
|
-
* GET /api/0/organizations/
|
|
99
|
-
*
|
|
100
92
|
* The organizations the token belongs to (Sentry's
|
|
101
93
|
* `OrganizationIndexEndpoint`): always the one synthetic org.
|
|
102
94
|
*/
|
|
@@ -117,8 +109,6 @@ var Sentry = class extends HeyApiClient {
|
|
|
117
109
|
});
|
|
118
110
|
}
|
|
119
111
|
/**
|
|
120
|
-
* GET /api/0/organizations/{org_slug}/repos/
|
|
121
|
-
*
|
|
122
112
|
* The code repositories connected to the organization (Sentry's
|
|
123
113
|
* `OrganizationRepositoriesEndpoint`). Rustrak connects none through
|
|
124
114
|
* Sentry's integrations, so the list is always empty.
|
|
@@ -140,8 +130,6 @@ var Sentry = class extends HeyApiClient {
|
|
|
140
130
|
});
|
|
141
131
|
}
|
|
142
132
|
/**
|
|
143
|
-
* GET /api/0/projects/
|
|
144
|
-
*
|
|
145
133
|
* The projects the token can see, newest first (Sentry's
|
|
146
134
|
* `ProjectIndexEndpoint`, `core/endpoints/project_index.py`).
|
|
147
135
|
*/
|
|
@@ -162,8 +150,6 @@ var Sentry = class extends HeyApiClient {
|
|
|
162
150
|
});
|
|
163
151
|
}
|
|
164
152
|
/**
|
|
165
|
-
* GET /api/0/projects/{org_slug}/{project_slug}/issues/
|
|
166
|
-
*
|
|
167
153
|
* A project's issues, filtered by `query`, sorted by `sort` and paginated
|
|
168
154
|
* by `cursor` (Sentry's `ProjectGroupIndexEndpoint`,
|
|
169
155
|
* `issues/endpoints/project_group_index.py`).
|
|
@@ -185,8 +171,6 @@ var Sentry = class extends HeyApiClient {
|
|
|
185
171
|
});
|
|
186
172
|
}
|
|
187
173
|
/**
|
|
188
|
-
* POST /api/0/projects/{org_slug}/{project_slug}/user-feedback/
|
|
189
|
-
*
|
|
190
174
|
* Submit a user report about an error event (Sentry's
|
|
191
175
|
* `ProjectUserReportsEndpoint`, `feedback/endpoints/project_user_reports.py`).
|
|
192
176
|
* Accepts `Authorization: DSN <dsn>` as well as a token; the report becomes a
|
|
@@ -213,8 +197,6 @@ var Sentry = class extends HeyApiClient {
|
|
|
213
197
|
});
|
|
214
198
|
}
|
|
215
199
|
/**
|
|
216
|
-
* GET /{org_slug}/{project_slug}/issues/{issue_id}/
|
|
217
|
-
*
|
|
218
200
|
* The issue page GitLab's "View in Sentry" opens: Sentry redirects this
|
|
219
201
|
* legacy path to the issue (`static/app/router/routes.tsx`), Rustrak to its
|
|
220
202
|
* dashboard. A visitor who is not signed in goes to the login page instead,
|
|
@@ -229,7 +211,7 @@ var Sentry = class extends HeyApiClient {
|
|
|
229
211
|
}).parseAsync(data),
|
|
230
212
|
security: [{
|
|
231
213
|
in: "cookie",
|
|
232
|
-
name: "
|
|
214
|
+
name: "rustrak_session",
|
|
233
215
|
type: "apiKey"
|
|
234
216
|
}, {
|
|
235
217
|
scheme: "bearer",
|
|
@@ -242,7 +224,6 @@ var Sentry = class extends HeyApiClient {
|
|
|
242
224
|
};
|
|
243
225
|
var SourceMaps = class extends HeyApiClient {
|
|
244
226
|
/**
|
|
245
|
-
* GET /api/0/organizations/{org_slug}/
|
|
246
227
|
* Always returns 200 with synthetic org data — sentry-cli validates this before uploading.
|
|
247
228
|
*/
|
|
248
229
|
orgDetails(options) {
|
|
@@ -258,7 +239,7 @@ var SourceMaps = class extends HeyApiClient {
|
|
|
258
239
|
});
|
|
259
240
|
}
|
|
260
241
|
/**
|
|
261
|
-
*
|
|
242
|
+
* Assembles uploaded chunks into an artifact bundle (sentry-cli `sourcemaps upload`).
|
|
262
243
|
*/
|
|
263
244
|
artifactBundleAssemble(options) {
|
|
264
245
|
return (options.client ?? this.client).post({
|
|
@@ -281,7 +262,7 @@ var SourceMaps = class extends HeyApiClient {
|
|
|
281
262
|
});
|
|
282
263
|
}
|
|
283
264
|
/**
|
|
284
|
-
*
|
|
265
|
+
* Describes how sentry-cli should upload chunks: size, concurrency and accepted kinds.
|
|
285
266
|
*/
|
|
286
267
|
chunkUploadCapability(options) {
|
|
287
268
|
return (options.client ?? this.client).get({
|
|
@@ -300,7 +281,7 @@ var SourceMaps = class extends HeyApiClient {
|
|
|
300
281
|
});
|
|
301
282
|
}
|
|
302
283
|
/**
|
|
303
|
-
*
|
|
284
|
+
* Receives chunks of a source map or debug file upload from sentry-cli.
|
|
304
285
|
*/
|
|
305
286
|
chunkUpload(options) {
|
|
306
287
|
return (options.client ?? this.client).post({
|
|
@@ -323,7 +304,7 @@ var SourceMaps = class extends HeyApiClient {
|
|
|
323
304
|
});
|
|
324
305
|
}
|
|
325
306
|
/**
|
|
326
|
-
*
|
|
307
|
+
* Lists a project's uploaded source map artifacts (sentry-cli).
|
|
327
308
|
*/
|
|
328
309
|
list(options) {
|
|
329
310
|
return (options.client ?? this.client).get({
|
|
@@ -401,8 +382,6 @@ var DebugFiles = class extends HeyApiClient {
|
|
|
401
382
|
};
|
|
402
383
|
var Releases = class extends HeyApiClient {
|
|
403
384
|
/**
|
|
404
|
-
* POST /api/0/projects/{org_slug}/{project_slug}/releases/
|
|
405
|
-
*
|
|
406
385
|
* Sentry-compatible release creation. Idempotent: repeating the same
|
|
407
386
|
* `(project, version)` returns 208 rather than erroring — sentry-cli and JS
|
|
408
387
|
* bundler plugins call this on every build. Triggers date-based regression
|
|
@@ -434,8 +413,6 @@ var Releases = class extends HeyApiClient {
|
|
|
434
413
|
});
|
|
435
414
|
}
|
|
436
415
|
/**
|
|
437
|
-
* PUT /api/0/projects/{org_slug}/{project_slug}/releases/{version}/
|
|
438
|
-
*
|
|
439
416
|
* Generic partial update (`ref`, `url`, `dateReleased`). Setting
|
|
440
417
|
* `dateReleased` IS "finalize" — there is no separate status flag.
|
|
441
418
|
*/
|
|
@@ -500,7 +477,7 @@ var Releases = class extends HeyApiClient {
|
|
|
500
477
|
});
|
|
501
478
|
}
|
|
502
479
|
/**
|
|
503
|
-
*
|
|
480
|
+
* Lists the issues first seen in a release.
|
|
504
481
|
*/
|
|
505
482
|
newIssues(options) {
|
|
506
483
|
return (options.client ?? this.client).get({
|
|
@@ -561,7 +538,7 @@ var Access = class extends HeyApiClient {
|
|
|
561
538
|
};
|
|
562
539
|
var Github = class extends HeyApiClient {
|
|
563
540
|
/**
|
|
564
|
-
*
|
|
541
|
+
* Disconnects the GitHub App from this instance.
|
|
565
542
|
*/
|
|
566
543
|
disconnect(options) {
|
|
567
544
|
return (options?.client ?? this.client).delete({
|
|
@@ -580,7 +557,7 @@ var Github = class extends HeyApiClient {
|
|
|
580
557
|
});
|
|
581
558
|
}
|
|
582
559
|
/**
|
|
583
|
-
*
|
|
560
|
+
* Shows whether a GitHub App is connected, and how.
|
|
584
561
|
*/
|
|
585
562
|
status(options) {
|
|
586
563
|
return (options?.client ?? this.client).get({
|
|
@@ -599,7 +576,7 @@ var Github = class extends HeyApiClient {
|
|
|
599
576
|
});
|
|
600
577
|
}
|
|
601
578
|
/**
|
|
602
|
-
*
|
|
579
|
+
* GitHub sends the browser here after creating the
|
|
603
580
|
* app; the code trades for its credentials.
|
|
604
581
|
*/
|
|
605
582
|
callback(options) {
|
|
@@ -618,7 +595,7 @@ var Github = class extends HeyApiClient {
|
|
|
618
595
|
});
|
|
619
596
|
}
|
|
620
597
|
/**
|
|
621
|
-
*
|
|
598
|
+
* GitHub sends the browser here after the app is
|
|
622
599
|
* installed on an account.
|
|
623
600
|
*/
|
|
624
601
|
installed(options) {
|
|
@@ -637,7 +614,7 @@ var Github = class extends HeyApiClient {
|
|
|
637
614
|
});
|
|
638
615
|
}
|
|
639
616
|
/**
|
|
640
|
-
*
|
|
617
|
+
* The labels, title prefix and body footer
|
|
641
618
|
* every GitHub issue starts with, before a project's own.
|
|
642
619
|
*/
|
|
643
620
|
putIssueTemplate(options) {
|
|
@@ -661,7 +638,7 @@ var Github = class extends HeyApiClient {
|
|
|
661
638
|
});
|
|
662
639
|
}
|
|
663
640
|
/**
|
|
664
|
-
*
|
|
641
|
+
* What the dashboard posts to GitHub so GitHub
|
|
665
642
|
* creates an app already configured for this server.
|
|
666
643
|
*/
|
|
667
644
|
manifest(options) {
|
|
@@ -685,7 +662,7 @@ var Github = class extends HeyApiClient {
|
|
|
685
662
|
});
|
|
686
663
|
}
|
|
687
664
|
/**
|
|
688
|
-
*
|
|
665
|
+
* The GitHub username assignees sync through.
|
|
689
666
|
*/
|
|
690
667
|
getMyLogin(options) {
|
|
691
668
|
return (options?.client ?? this.client).get({
|
|
@@ -704,7 +681,7 @@ var Github = class extends HeyApiClient {
|
|
|
704
681
|
});
|
|
705
682
|
}
|
|
706
683
|
/**
|
|
707
|
-
*
|
|
684
|
+
* Sets or clears the caller's GitHub username, which assignees sync through.
|
|
708
685
|
*/
|
|
709
686
|
putMyLogin(options) {
|
|
710
687
|
return (options.client ?? this.client).put({
|
|
@@ -727,7 +704,7 @@ var Github = class extends HeyApiClient {
|
|
|
727
704
|
});
|
|
728
705
|
}
|
|
729
706
|
/**
|
|
730
|
-
*
|
|
707
|
+
* The repositories a project can
|
|
731
708
|
* point at, for whoever may change that project's settings.
|
|
732
709
|
*/
|
|
733
710
|
repositories(options) {
|
|
@@ -747,7 +724,7 @@ var Github = class extends HeyApiClient {
|
|
|
747
724
|
});
|
|
748
725
|
}
|
|
749
726
|
/**
|
|
750
|
-
*
|
|
727
|
+
* Public, and trusted only through the signature
|
|
751
728
|
* GitHub computes with the app's webhook secret.
|
|
752
729
|
*/
|
|
753
730
|
webhook(options) {
|
|
@@ -767,7 +744,7 @@ var Github = class extends HeyApiClient {
|
|
|
767
744
|
});
|
|
768
745
|
}
|
|
769
746
|
/**
|
|
770
|
-
*
|
|
747
|
+
* Unlinks a project from its GitHub repository.
|
|
771
748
|
*/
|
|
772
749
|
deleteProjectRepository(options) {
|
|
773
750
|
return (options.client ?? this.client).delete({
|
|
@@ -786,7 +763,7 @@ var Github = class extends HeyApiClient {
|
|
|
786
763
|
});
|
|
787
764
|
}
|
|
788
765
|
/**
|
|
789
|
-
*
|
|
766
|
+
* Gets the GitHub repository a project is linked to.
|
|
790
767
|
*/
|
|
791
768
|
getProjectRepository(options) {
|
|
792
769
|
return (options.client ?? this.client).get({
|
|
@@ -805,7 +782,7 @@ var Github = class extends HeyApiClient {
|
|
|
805
782
|
});
|
|
806
783
|
}
|
|
807
784
|
/**
|
|
808
|
-
*
|
|
785
|
+
* Links a project to a GitHub repository.
|
|
809
786
|
*/
|
|
810
787
|
putProjectRepository(options) {
|
|
811
788
|
return (options.client ?? this.client).put({
|
|
@@ -828,7 +805,7 @@ var Github = class extends HeyApiClient {
|
|
|
828
805
|
});
|
|
829
806
|
}
|
|
830
807
|
/**
|
|
831
|
-
*
|
|
808
|
+
* Copies the repository's
|
|
832
809
|
* CODEOWNERS so ownership can be answered without asking GitHub each time.
|
|
833
810
|
*/
|
|
834
811
|
syncCodeowners(options) {
|
|
@@ -848,7 +825,7 @@ var Github = class extends HeyApiClient {
|
|
|
848
825
|
});
|
|
849
826
|
}
|
|
850
827
|
/**
|
|
851
|
-
*
|
|
828
|
+
* The issue's links,
|
|
852
829
|
* the commits that may have caused it, and who owns its culprit file.
|
|
853
830
|
*/
|
|
854
831
|
issue(options) {
|
|
@@ -979,7 +956,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
979
956
|
});
|
|
980
957
|
}
|
|
981
958
|
/**
|
|
982
|
-
*
|
|
959
|
+
* Creates a notification integration (webhook, Slack, email…).
|
|
983
960
|
*/
|
|
984
961
|
create(options) {
|
|
985
962
|
return (options.client ?? this.client).post({
|
|
@@ -1002,8 +979,6 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1002
979
|
});
|
|
1003
980
|
}
|
|
1004
981
|
/**
|
|
1005
|
-
* POST /api/integrations/preview-template
|
|
1006
|
-
*
|
|
1007
982
|
* Renders a Custom Webhook template against a sample payload and hands back
|
|
1008
983
|
* the body that would be sent. The dashboard cannot run the template engine,
|
|
1009
984
|
* so it asks while the reader types; going through the dispatcher's own
|
|
@@ -1030,7 +1005,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1030
1005
|
});
|
|
1031
1006
|
}
|
|
1032
1007
|
/**
|
|
1033
|
-
*
|
|
1008
|
+
* Deletes a notification integration.
|
|
1034
1009
|
*/
|
|
1035
1010
|
delete(options) {
|
|
1036
1011
|
return (options.client ?? this.client).delete({
|
|
@@ -1049,7 +1024,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1049
1024
|
});
|
|
1050
1025
|
}
|
|
1051
1026
|
/**
|
|
1052
|
-
*
|
|
1027
|
+
* Gets one notification integration.
|
|
1053
1028
|
*/
|
|
1054
1029
|
get(options) {
|
|
1055
1030
|
return (options.client ?? this.client).get({
|
|
@@ -1068,7 +1043,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1068
1043
|
});
|
|
1069
1044
|
}
|
|
1070
1045
|
/**
|
|
1071
|
-
*
|
|
1046
|
+
* Updates a notification integration.
|
|
1072
1047
|
*/
|
|
1073
1048
|
update(options) {
|
|
1074
1049
|
return (options.client ?? this.client).patch({
|
|
@@ -1091,7 +1066,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1091
1066
|
});
|
|
1092
1067
|
}
|
|
1093
1068
|
/**
|
|
1094
|
-
*
|
|
1069
|
+
* Sends a test notification through an integration.
|
|
1095
1070
|
*/
|
|
1096
1071
|
test(options) {
|
|
1097
1072
|
return (options.client ?? this.client).post({
|
|
@@ -1116,7 +1091,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1116
1091
|
};
|
|
1117
1092
|
var Invitations = class extends HeyApiClient {
|
|
1118
1093
|
/**
|
|
1119
|
-
*
|
|
1094
|
+
* List invitations (needs `invitations:read`)
|
|
1120
1095
|
*/
|
|
1121
1096
|
list(options) {
|
|
1122
1097
|
return (options?.client ?? this.client).get({
|
|
@@ -1135,7 +1110,7 @@ var Invitations = class extends HeyApiClient {
|
|
|
1135
1110
|
});
|
|
1136
1111
|
}
|
|
1137
1112
|
/**
|
|
1138
|
-
*
|
|
1113
|
+
* Create an invitation (needs `invitations:create`)
|
|
1139
1114
|
*
|
|
1140
1115
|
* With `send_email: true` the invite link is also emailed. A failed send
|
|
1141
1116
|
* still creates the invitation, with `email_sent_at: null`, so its link can
|
|
@@ -1162,7 +1137,7 @@ var Invitations = class extends HeyApiClient {
|
|
|
1162
1137
|
});
|
|
1163
1138
|
}
|
|
1164
1139
|
/**
|
|
1165
|
-
*
|
|
1140
|
+
* Whether invitation emails can be sent (needs `invitations:read`)
|
|
1166
1141
|
*/
|
|
1167
1142
|
emailStatus(options) {
|
|
1168
1143
|
return (options?.client ?? this.client).get({
|
|
@@ -1181,7 +1156,7 @@ var Invitations = class extends HeyApiClient {
|
|
|
1181
1156
|
});
|
|
1182
1157
|
}
|
|
1183
1158
|
/**
|
|
1184
|
-
*
|
|
1159
|
+
* Revoke a pending invitation (needs `invitations:delete`)
|
|
1185
1160
|
*/
|
|
1186
1161
|
revoke(options) {
|
|
1187
1162
|
return (options.client ?? this.client).delete({
|
|
@@ -1200,7 +1175,7 @@ var Invitations = class extends HeyApiClient {
|
|
|
1200
1175
|
});
|
|
1201
1176
|
}
|
|
1202
1177
|
/**
|
|
1203
|
-
*
|
|
1178
|
+
* Email the invite link again (needs `invitations:create`)
|
|
1204
1179
|
*/
|
|
1205
1180
|
resend(options) {
|
|
1206
1181
|
return (options.client ?? this.client).post({
|
|
@@ -1287,7 +1262,7 @@ var Oauth = class extends HeyApiClient {
|
|
|
1287
1262
|
};
|
|
1288
1263
|
var Projects = class extends HeyApiClient {
|
|
1289
1264
|
/**
|
|
1290
|
-
*
|
|
1265
|
+
* List projects with pagination.
|
|
1291
1266
|
*
|
|
1292
1267
|
* Only the projects the caller holds a permission on.
|
|
1293
1268
|
*/
|
|
@@ -1308,7 +1283,7 @@ var Projects = class extends HeyApiClient {
|
|
|
1308
1283
|
});
|
|
1309
1284
|
}
|
|
1310
1285
|
/**
|
|
1311
|
-
*
|
|
1286
|
+
* Create a new project
|
|
1312
1287
|
*
|
|
1313
1288
|
* Needs `projects:create` and a permission on at least one project, because
|
|
1314
1289
|
* the creator's own roles extend to the new one. A token limited to chosen
|
|
@@ -1335,7 +1310,7 @@ var Projects = class extends HeyApiClient {
|
|
|
1335
1310
|
});
|
|
1336
1311
|
}
|
|
1337
1312
|
/**
|
|
1338
|
-
*
|
|
1313
|
+
* Delete a project
|
|
1339
1314
|
*/
|
|
1340
1315
|
delete(options) {
|
|
1341
1316
|
return (options.client ?? this.client).delete({
|
|
@@ -1354,7 +1329,7 @@ var Projects = class extends HeyApiClient {
|
|
|
1354
1329
|
});
|
|
1355
1330
|
}
|
|
1356
1331
|
/**
|
|
1357
|
-
*
|
|
1332
|
+
* Get a project by ID
|
|
1358
1333
|
*/
|
|
1359
1334
|
get(options) {
|
|
1360
1335
|
return (options.client ?? this.client).get({
|
|
@@ -1373,7 +1348,7 @@ var Projects = class extends HeyApiClient {
|
|
|
1373
1348
|
});
|
|
1374
1349
|
}
|
|
1375
1350
|
/**
|
|
1376
|
-
*
|
|
1351
|
+
* Update a project
|
|
1377
1352
|
*/
|
|
1378
1353
|
update(options) {
|
|
1379
1354
|
return (options.client ?? this.client).patch({
|
|
@@ -1396,7 +1371,7 @@ var Projects = class extends HeyApiClient {
|
|
|
1396
1371
|
});
|
|
1397
1372
|
}
|
|
1398
1373
|
/**
|
|
1399
|
-
*
|
|
1374
|
+
* What a project without limits of its own follows
|
|
1400
1375
|
*/
|
|
1401
1376
|
getRateLimits(options) {
|
|
1402
1377
|
return (options?.client ?? this.client).get({
|
|
@@ -1417,7 +1392,6 @@ var Projects = class extends HeyApiClient {
|
|
|
1417
1392
|
};
|
|
1418
1393
|
var Agents = class extends HeyApiClient {
|
|
1419
1394
|
/**
|
|
1420
|
-
* GET /api/projects/{project_id}/agents/conversations
|
|
1421
1395
|
* Lists conversations -- traces sharing a `gen_ai.conversation.id` -- the most recently active first.
|
|
1422
1396
|
*/
|
|
1423
1397
|
conversations(options) {
|
|
@@ -1437,7 +1411,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1437
1411
|
});
|
|
1438
1412
|
}
|
|
1439
1413
|
/**
|
|
1440
|
-
* GET /api/projects/{project_id}/agents/conversations/{conversation_id}
|
|
1441
1414
|
* Returns every AI span of a conversation's turns, oldest first, with its input and output.
|
|
1442
1415
|
*/
|
|
1443
1416
|
conversation(options) {
|
|
@@ -1457,7 +1430,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1457
1430
|
});
|
|
1458
1431
|
}
|
|
1459
1432
|
/**
|
|
1460
|
-
* GET /api/projects/{project_id}/agents/duration
|
|
1461
1433
|
* Time-bucketed avg/p95 duration for `agent`/`ai_client` spans.
|
|
1462
1434
|
*/
|
|
1463
1435
|
duration(options) {
|
|
@@ -1477,7 +1449,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1477
1449
|
});
|
|
1478
1450
|
}
|
|
1479
1451
|
/**
|
|
1480
|
-
* GET /api/projects/{project_id}/agents/environments
|
|
1481
1452
|
* The options the environment filter offers, read from the data rather than
|
|
1482
1453
|
* hardcoded — an installation may name its environments anything.
|
|
1483
1454
|
*/
|
|
@@ -1498,7 +1469,7 @@ var Agents = class extends HeyApiClient {
|
|
|
1498
1469
|
});
|
|
1499
1470
|
}
|
|
1500
1471
|
/**
|
|
1501
|
-
*
|
|
1472
|
+
* Lists the AI models a project's agents called, with requests, tokens and latency.
|
|
1502
1473
|
*/
|
|
1503
1474
|
modelsTable(options) {
|
|
1504
1475
|
return (options.client ?? this.client).get({
|
|
@@ -1517,7 +1488,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1517
1488
|
});
|
|
1518
1489
|
}
|
|
1519
1490
|
/**
|
|
1520
|
-
* GET /api/projects/{project_id}/agents/models/calls
|
|
1521
1491
|
* Top models by LLM call count (`gen_ai.operation.type:ai_client`).
|
|
1522
1492
|
*/
|
|
1523
1493
|
modelsCalls(options) {
|
|
@@ -1537,7 +1507,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1537
1507
|
});
|
|
1538
1508
|
}
|
|
1539
1509
|
/**
|
|
1540
|
-
* GET /api/projects/{project_id}/agents/models/tokens
|
|
1541
1510
|
* Top models by total tokens used (`gen_ai.operation.type:ai_client`).
|
|
1542
1511
|
*/
|
|
1543
1512
|
modelsTokens(options) {
|
|
@@ -1557,7 +1526,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1557
1526
|
});
|
|
1558
1527
|
}
|
|
1559
1528
|
/**
|
|
1560
|
-
* GET /api/projects/{project_id}/agents/runs
|
|
1561
1529
|
* Time-bucketed count of agent-run spans (`gen_ai.operation.type:agent`).
|
|
1562
1530
|
*/
|
|
1563
1531
|
runs(options) {
|
|
@@ -1577,7 +1545,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1577
1545
|
});
|
|
1578
1546
|
}
|
|
1579
1547
|
/**
|
|
1580
|
-
* GET /api/projects/{project_id}/agents/summary
|
|
1581
1548
|
* Agent runs, LLM calls, tool calls, errors, tokens and latency over the
|
|
1582
1549
|
* selected window — the numbers the six charts cannot state outright.
|
|
1583
1550
|
*/
|
|
@@ -1598,7 +1565,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1598
1565
|
});
|
|
1599
1566
|
}
|
|
1600
1567
|
/**
|
|
1601
|
-
* GET /api/projects/{project_id}/agents/tools
|
|
1602
1568
|
* Top tools by call count (`gen_ai.operation.type:tool`).
|
|
1603
1569
|
*/
|
|
1604
1570
|
tools(options) {
|
|
@@ -1618,7 +1584,7 @@ var Agents = class extends HeyApiClient {
|
|
|
1618
1584
|
});
|
|
1619
1585
|
}
|
|
1620
1586
|
/**
|
|
1621
|
-
*
|
|
1587
|
+
* Lists the tools a project's agents called, with calls, errors and latency.
|
|
1622
1588
|
*/
|
|
1623
1589
|
toolsTable(options) {
|
|
1624
1590
|
return (options.client ?? this.client).get({
|
|
@@ -1637,7 +1603,6 @@ var Agents = class extends HeyApiClient {
|
|
|
1637
1603
|
});
|
|
1638
1604
|
}
|
|
1639
1605
|
/**
|
|
1640
|
-
* GET /api/projects/{project_id}/agents/traces
|
|
1641
1606
|
* Paginated per-trace_id aggregate (duration, tokens, tool usage) across
|
|
1642
1607
|
* all AI spans sharing that trace, regardless of origin.
|
|
1643
1608
|
*/
|
|
@@ -1660,7 +1625,7 @@ var Agents = class extends HeyApiClient {
|
|
|
1660
1625
|
};
|
|
1661
1626
|
var AlertRules = class extends HeyApiClient {
|
|
1662
1627
|
/**
|
|
1663
|
-
*
|
|
1628
|
+
* Lists the alerts a project sent, newest first.
|
|
1664
1629
|
*/
|
|
1665
1630
|
listHistory(options) {
|
|
1666
1631
|
return (options.client ?? this.client).get({
|
|
@@ -1698,7 +1663,7 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1698
1663
|
});
|
|
1699
1664
|
}
|
|
1700
1665
|
/**
|
|
1701
|
-
*
|
|
1666
|
+
* Lists a project's alert rules.
|
|
1702
1667
|
*/
|
|
1703
1668
|
list(options) {
|
|
1704
1669
|
return (options.client ?? this.client).get({
|
|
@@ -1717,7 +1682,7 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1717
1682
|
});
|
|
1718
1683
|
}
|
|
1719
1684
|
/**
|
|
1720
|
-
*
|
|
1685
|
+
* Creates an alert rule in a project.
|
|
1721
1686
|
*/
|
|
1722
1687
|
create(options) {
|
|
1723
1688
|
return (options.client ?? this.client).post({
|
|
@@ -1740,7 +1705,7 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1740
1705
|
});
|
|
1741
1706
|
}
|
|
1742
1707
|
/**
|
|
1743
|
-
*
|
|
1708
|
+
* Deletes an alert rule.
|
|
1744
1709
|
*/
|
|
1745
1710
|
delete(options) {
|
|
1746
1711
|
return (options.client ?? this.client).delete({
|
|
@@ -1759,7 +1724,7 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1759
1724
|
});
|
|
1760
1725
|
}
|
|
1761
1726
|
/**
|
|
1762
|
-
*
|
|
1727
|
+
* Gets one alert rule.
|
|
1763
1728
|
*/
|
|
1764
1729
|
get(options) {
|
|
1765
1730
|
return (options.client ?? this.client).get({
|
|
@@ -1778,7 +1743,7 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1778
1743
|
});
|
|
1779
1744
|
}
|
|
1780
1745
|
/**
|
|
1781
|
-
*
|
|
1746
|
+
* Updates an alert rule.
|
|
1782
1747
|
*/
|
|
1783
1748
|
update(options) {
|
|
1784
1749
|
return (options.client ?? this.client).patch({
|
|
@@ -1803,7 +1768,6 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1803
1768
|
};
|
|
1804
1769
|
var Events = class extends HeyApiClient {
|
|
1805
1770
|
/**
|
|
1806
|
-
* GET /api/projects/{project_id}/attachments/{attachment_id}
|
|
1807
1771
|
* Downloads an attachment. Only a real image is served inline; anything
|
|
1808
1772
|
* else, whatever type it claims, is a download that never runs.
|
|
1809
1773
|
*/
|
|
@@ -1843,7 +1807,6 @@ var Events = class extends HeyApiClient {
|
|
|
1843
1807
|
});
|
|
1844
1808
|
}
|
|
1845
1809
|
/**
|
|
1846
|
-
* GET /api/projects/{project_id}/issues/{issue_id}/events
|
|
1847
1810
|
* Lists events for an issue with cursor-based pagination
|
|
1848
1811
|
*/
|
|
1849
1812
|
list(options) {
|
|
@@ -1863,7 +1826,6 @@ var Events = class extends HeyApiClient {
|
|
|
1863
1826
|
});
|
|
1864
1827
|
}
|
|
1865
1828
|
/**
|
|
1866
|
-
* GET /api/projects/{project_id}/issues/{issue_id}/events/{event_id}
|
|
1867
1829
|
* Gets a single event with full data
|
|
1868
1830
|
*/
|
|
1869
1831
|
get(options) {
|
|
@@ -1883,7 +1845,6 @@ var Events = class extends HeyApiClient {
|
|
|
1883
1845
|
});
|
|
1884
1846
|
}
|
|
1885
1847
|
/**
|
|
1886
|
-
* GET /api/projects/{project_id}/issues/{issue_id}/events/{event_id}/attachments
|
|
1887
1848
|
* Lists the files sent with an event, such as a feedback's screenshot.
|
|
1888
1849
|
*/
|
|
1889
1850
|
listAttachments(options) {
|
|
@@ -1905,7 +1866,6 @@ var Events = class extends HeyApiClient {
|
|
|
1905
1866
|
};
|
|
1906
1867
|
var Environments = class extends HeyApiClient {
|
|
1907
1868
|
/**
|
|
1908
|
-
* GET /api/projects/{project_id}/environments
|
|
1909
1869
|
* Lists the environments a project's issues have been seen in, by name.
|
|
1910
1870
|
*/
|
|
1911
1871
|
list(options) {
|
|
@@ -1927,7 +1887,7 @@ var Environments = class extends HeyApiClient {
|
|
|
1927
1887
|
};
|
|
1928
1888
|
var Stats = class extends HeyApiClient {
|
|
1929
1889
|
/**
|
|
1930
|
-
*
|
|
1890
|
+
* Counts a project's events over time, bucketed for a chart.
|
|
1931
1891
|
*/
|
|
1932
1892
|
getEventTimeseries(options) {
|
|
1933
1893
|
return (options.client ?? this.client).get({
|
|
@@ -1946,7 +1906,7 @@ var Stats = class extends HeyApiClient {
|
|
|
1946
1906
|
});
|
|
1947
1907
|
}
|
|
1948
1908
|
/**
|
|
1949
|
-
*
|
|
1909
|
+
* Headline figures for a project's overview: events, new and open issues.
|
|
1950
1910
|
*/
|
|
1951
1911
|
getSummary(options) {
|
|
1952
1912
|
return (options.client ?? this.client).get({
|
|
@@ -1967,7 +1927,6 @@ var Stats = class extends HeyApiClient {
|
|
|
1967
1927
|
};
|
|
1968
1928
|
var Feedback = class extends HeyApiClient {
|
|
1969
1929
|
/**
|
|
1970
|
-
* GET /api/projects/{project_id}/feedback
|
|
1971
1930
|
* Lists user feedback with what each user submitted. Every feedback is an
|
|
1972
1931
|
* issue of category `feedback`; spam is a muted one.
|
|
1973
1932
|
*/
|
|
@@ -1990,7 +1949,7 @@ var Feedback = class extends HeyApiClient {
|
|
|
1990
1949
|
};
|
|
1991
1950
|
var Issues = class extends HeyApiClient {
|
|
1992
1951
|
/**
|
|
1993
|
-
*
|
|
1952
|
+
* Deletes many issues at once, selected by id or by filter.
|
|
1994
1953
|
*/
|
|
1995
1954
|
bulkDelete(options) {
|
|
1996
1955
|
return (options.client ?? this.client).delete({
|
|
@@ -2013,7 +1972,6 @@ var Issues = class extends HeyApiClient {
|
|
|
2013
1972
|
});
|
|
2014
1973
|
}
|
|
2015
1974
|
/**
|
|
2016
|
-
* GET /api/projects/{project_id}/issues
|
|
2017
1975
|
* Lists issues for a project with offset-based pagination
|
|
2018
1976
|
*/
|
|
2019
1977
|
list(options) {
|
|
@@ -2033,7 +1991,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2033
1991
|
});
|
|
2034
1992
|
}
|
|
2035
1993
|
/**
|
|
2036
|
-
*
|
|
1994
|
+
* Sets the status or priority of many issues at once, by id.
|
|
2037
1995
|
*/
|
|
2038
1996
|
bulkUpdate(options) {
|
|
2039
1997
|
return (options.client ?? this.client).put({
|
|
@@ -2056,7 +2014,6 @@ var Issues = class extends HeyApiClient {
|
|
|
2056
2014
|
});
|
|
2057
2015
|
}
|
|
2058
2016
|
/**
|
|
2059
|
-
* DELETE /api/projects/{project_id}/issues/{issue_id}
|
|
2060
2017
|
* Hard-deletes an issue and all associated events
|
|
2061
2018
|
*/
|
|
2062
2019
|
delete(options) {
|
|
@@ -2076,7 +2033,6 @@ var Issues = class extends HeyApiClient {
|
|
|
2076
2033
|
});
|
|
2077
2034
|
}
|
|
2078
2035
|
/**
|
|
2079
|
-
* GET /api/projects/{project_id}/issues/{issue_id}
|
|
2080
2036
|
* Gets a single issue by ID
|
|
2081
2037
|
*/
|
|
2082
2038
|
get(options) {
|
|
@@ -2096,7 +2052,6 @@ var Issues = class extends HeyApiClient {
|
|
|
2096
2052
|
});
|
|
2097
2053
|
}
|
|
2098
2054
|
/**
|
|
2099
|
-
* PATCH /api/projects/{project_id}/issues/{issue_id}
|
|
2100
2055
|
* Updates issue state (resolve, mute, etc.)
|
|
2101
2056
|
*/
|
|
2102
2057
|
update(options) {
|
|
@@ -2120,7 +2075,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2120
2075
|
});
|
|
2121
2076
|
}
|
|
2122
2077
|
/**
|
|
2123
|
-
*
|
|
2078
|
+
* Chronological activity log (incl. comments).
|
|
2124
2079
|
*/
|
|
2125
2080
|
getActivity(options) {
|
|
2126
2081
|
return (options.client ?? this.client).get({
|
|
@@ -2139,7 +2094,6 @@ var Issues = class extends HeyApiClient {
|
|
|
2139
2094
|
});
|
|
2140
2095
|
}
|
|
2141
2096
|
/**
|
|
2142
|
-
* GET /api/projects/{project_id}/issues/{issue_id}/aggregates
|
|
2143
2097
|
* Returns the unique user count and top tags for the issue.
|
|
2144
2098
|
*/
|
|
2145
2099
|
getAggregates(options) {
|
|
@@ -2159,7 +2113,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2159
2113
|
});
|
|
2160
2114
|
}
|
|
2161
2115
|
/**
|
|
2162
|
-
*
|
|
2116
|
+
* Set/clear the per-user bookmark.
|
|
2163
2117
|
*/
|
|
2164
2118
|
setBookmark(options) {
|
|
2165
2119
|
return (options.client ?? this.client).put({
|
|
@@ -2182,7 +2136,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2182
2136
|
});
|
|
2183
2137
|
}
|
|
2184
2138
|
/**
|
|
2185
|
-
*
|
|
2139
|
+
* Add a note.
|
|
2186
2140
|
*/
|
|
2187
2141
|
createComment(options) {
|
|
2188
2142
|
return (options.client ?? this.client).post({
|
|
@@ -2205,7 +2159,6 @@ var Issues = class extends HeyApiClient {
|
|
|
2205
2159
|
});
|
|
2206
2160
|
}
|
|
2207
2161
|
/**
|
|
2208
|
-
* GET /api/projects/{project_id}/issues/{issue_id}/hashes
|
|
2209
2162
|
* Lists the grouping hashes that map to an issue.
|
|
2210
2163
|
*/
|
|
2211
2164
|
getHashes(options) {
|
|
@@ -2225,7 +2178,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2225
2178
|
});
|
|
2226
2179
|
}
|
|
2227
2180
|
/**
|
|
2228
|
-
*
|
|
2181
|
+
* Mark the issue as seen by the current user.
|
|
2229
2182
|
*/
|
|
2230
2183
|
markSeen(options) {
|
|
2231
2184
|
return (options.client ?? this.client).post({
|
|
@@ -2244,7 +2197,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2244
2197
|
});
|
|
2245
2198
|
}
|
|
2246
2199
|
/**
|
|
2247
|
-
*
|
|
2200
|
+
* Zero-filled event-count timeseries.
|
|
2248
2201
|
*/
|
|
2249
2202
|
getStats(options) {
|
|
2250
2203
|
return (options.client ?? this.client).get({
|
|
@@ -2263,7 +2216,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2263
2216
|
});
|
|
2264
2217
|
}
|
|
2265
2218
|
/**
|
|
2266
|
-
*
|
|
2219
|
+
* Set/clear the per-user subscription.
|
|
2267
2220
|
*/
|
|
2268
2221
|
setSubscription(options) {
|
|
2269
2222
|
return (options.client ?? this.client).put({
|
|
@@ -2286,7 +2239,6 @@ var Issues = class extends HeyApiClient {
|
|
|
2286
2239
|
});
|
|
2287
2240
|
}
|
|
2288
2241
|
/**
|
|
2289
|
-
* GET /api/projects/{project_id}/issues/{issue_id}/tags/{key}
|
|
2290
2242
|
* Lists the distinct values (with counts) for a tag key across the issue.
|
|
2291
2243
|
*/
|
|
2292
2244
|
getTagValues(options) {
|
|
@@ -2306,7 +2258,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2306
2258
|
});
|
|
2307
2259
|
}
|
|
2308
2260
|
/**
|
|
2309
|
-
*
|
|
2261
|
+
* List user feedback for an issue.
|
|
2310
2262
|
*/
|
|
2311
2263
|
listUserReports(options) {
|
|
2312
2264
|
return (options.client ?? this.client).get({
|
|
@@ -2325,7 +2277,7 @@ var Issues = class extends HeyApiClient {
|
|
|
2325
2277
|
});
|
|
2326
2278
|
}
|
|
2327
2279
|
/**
|
|
2328
|
-
*
|
|
2280
|
+
* Attach user feedback to an issue.
|
|
2329
2281
|
*/
|
|
2330
2282
|
createUserReport(options) {
|
|
2331
2283
|
return (options.client ?? this.client).post({
|
|
@@ -2350,7 +2302,6 @@ var Issues = class extends HeyApiClient {
|
|
|
2350
2302
|
};
|
|
2351
2303
|
var Logs = class extends HeyApiClient {
|
|
2352
2304
|
/**
|
|
2353
|
-
* GET /api/projects/{project_id}/logs
|
|
2354
2305
|
* Lists logs for a project with offset-based pagination (newest first by
|
|
2355
2306
|
* log timestamp), optionally filtered by level, trace id, message and window.
|
|
2356
2307
|
*/
|
|
@@ -2371,7 +2322,6 @@ var Logs = class extends HeyApiClient {
|
|
|
2371
2322
|
});
|
|
2372
2323
|
}
|
|
2373
2324
|
/**
|
|
2374
|
-
* GET /api/projects/{project_id}/logs/volume
|
|
2375
2325
|
* Counts a project's logs per level over time, with the list's filters.
|
|
2376
2326
|
*/
|
|
2377
2327
|
volume(options) {
|
|
@@ -2391,7 +2341,6 @@ var Logs = class extends HeyApiClient {
|
|
|
2391
2341
|
});
|
|
2392
2342
|
}
|
|
2393
2343
|
/**
|
|
2394
|
-
* GET /api/projects/{project_id}/logs/{log_id}
|
|
2395
2344
|
* Returns one of a project's logs, wherever it falls in the list.
|
|
2396
2345
|
*/
|
|
2397
2346
|
get(options) {
|
|
@@ -2495,7 +2444,6 @@ var Members = class extends HeyApiClient {
|
|
|
2495
2444
|
};
|
|
2496
2445
|
var Monitors = class extends HeyApiClient {
|
|
2497
2446
|
/**
|
|
2498
|
-
* GET /api/projects/{project_id}/monitor-stats
|
|
2499
2447
|
* Counts the check-ins of a project's monitors by status over a window, bucket by bucket.
|
|
2500
2448
|
*/
|
|
2501
2449
|
stats(options) {
|
|
@@ -2515,7 +2463,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2515
2463
|
});
|
|
2516
2464
|
}
|
|
2517
2465
|
/**
|
|
2518
|
-
*
|
|
2466
|
+
* Lists a project's cron monitors.
|
|
2519
2467
|
*/
|
|
2520
2468
|
list(options) {
|
|
2521
2469
|
return (options.client ?? this.client).get({
|
|
@@ -2534,7 +2482,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2534
2482
|
});
|
|
2535
2483
|
}
|
|
2536
2484
|
/**
|
|
2537
|
-
*
|
|
2485
|
+
* Creates a cron monitor in a project.
|
|
2538
2486
|
*/
|
|
2539
2487
|
create(options) {
|
|
2540
2488
|
return (options.client ?? this.client).post({
|
|
@@ -2557,7 +2505,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2557
2505
|
});
|
|
2558
2506
|
}
|
|
2559
2507
|
/**
|
|
2560
|
-
*
|
|
2508
|
+
* Deletes a cron monitor and its check-ins.
|
|
2561
2509
|
*/
|
|
2562
2510
|
delete(options) {
|
|
2563
2511
|
return (options.client ?? this.client).delete({
|
|
@@ -2576,7 +2524,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2576
2524
|
});
|
|
2577
2525
|
}
|
|
2578
2526
|
/**
|
|
2579
|
-
*
|
|
2527
|
+
* Gets one cron monitor.
|
|
2580
2528
|
*/
|
|
2581
2529
|
get(options) {
|
|
2582
2530
|
return (options.client ?? this.client).get({
|
|
@@ -2595,7 +2543,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2595
2543
|
});
|
|
2596
2544
|
}
|
|
2597
2545
|
/**
|
|
2598
|
-
*
|
|
2546
|
+
* Updates a cron monitor.
|
|
2599
2547
|
*/
|
|
2600
2548
|
update(options) {
|
|
2601
2549
|
return (options.client ?? this.client).put({
|
|
@@ -2618,7 +2566,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2618
2566
|
});
|
|
2619
2567
|
}
|
|
2620
2568
|
/**
|
|
2621
|
-
*
|
|
2569
|
+
* Lists a cron monitor's check-ins, newest first.
|
|
2622
2570
|
*/
|
|
2623
2571
|
listCheckins(options) {
|
|
2624
2572
|
return (options.client ?? this.client).get({
|
|
@@ -2639,7 +2587,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2639
2587
|
};
|
|
2640
2588
|
var Sessions = class extends HeyApiClient {
|
|
2641
2589
|
/**
|
|
2642
|
-
*
|
|
2590
|
+
* Session counts by release, for release health.
|
|
2643
2591
|
*/
|
|
2644
2592
|
getStats(options) {
|
|
2645
2593
|
return (options.client ?? this.client).get({
|
|
@@ -2658,7 +2606,7 @@ var Sessions = class extends HeyApiClient {
|
|
|
2658
2606
|
});
|
|
2659
2607
|
}
|
|
2660
2608
|
/**
|
|
2661
|
-
*
|
|
2609
|
+
* Totals and crash-free rates for a project's sessions.
|
|
2662
2610
|
*/
|
|
2663
2611
|
getSummary(options) {
|
|
2664
2612
|
return (options.client ?? this.client).get({
|
|
@@ -2677,7 +2625,7 @@ var Sessions = class extends HeyApiClient {
|
|
|
2677
2625
|
});
|
|
2678
2626
|
}
|
|
2679
2627
|
/**
|
|
2680
|
-
*
|
|
2628
|
+
* Session counts over time, bucketed for a chart.
|
|
2681
2629
|
*/
|
|
2682
2630
|
getTimeseries(options) {
|
|
2683
2631
|
return (options.client ?? this.client).get({
|
|
@@ -2698,7 +2646,6 @@ var Sessions = class extends HeyApiClient {
|
|
|
2698
2646
|
};
|
|
2699
2647
|
var Spans = class extends HeyApiClient {
|
|
2700
2648
|
/**
|
|
2701
|
-
* GET /api/projects/{project_id}/spans
|
|
2702
2649
|
* Lists spans for a project with offset-based pagination (newest by
|
|
2703
2650
|
* start_timestamp first), optionally filtered by op/status/trace_id.
|
|
2704
2651
|
* Returns spans regardless of origin — standalone or extracted from a
|
|
@@ -2721,7 +2668,6 @@ var Spans = class extends HeyApiClient {
|
|
|
2721
2668
|
});
|
|
2722
2669
|
}
|
|
2723
2670
|
/**
|
|
2724
|
-
* GET /api/projects/{project_id}/spans/{span_id}
|
|
2725
2671
|
* Returns one span together with its attributes and tags — the `gen_ai.*`
|
|
2726
2672
|
* payload (prompts, responses, tool arguments and results) that the list
|
|
2727
2673
|
* response deliberately omits, since `spans.data` is untrimmed and a whole
|
|
@@ -2746,7 +2692,6 @@ var Spans = class extends HeyApiClient {
|
|
|
2746
2692
|
};
|
|
2747
2693
|
var Transactions = class extends HeyApiClient {
|
|
2748
2694
|
/**
|
|
2749
|
-
* GET /api/projects/{project_id}/transactions
|
|
2750
2695
|
* Lists transactions for a project with offset-based pagination (newest first).
|
|
2751
2696
|
*/
|
|
2752
2697
|
list(options) {
|
|
@@ -2766,7 +2711,6 @@ var Transactions = class extends HeyApiClient {
|
|
|
2766
2711
|
});
|
|
2767
2712
|
}
|
|
2768
2713
|
/**
|
|
2769
|
-
* GET /api/projects/{project_id}/transactions/stats
|
|
2770
2714
|
* Returns paginated aggregate performance stats (count, time spent, p50/p95/p99
|
|
2771
2715
|
* latency, failure rate) grouped by transaction name + op, the most time spent
|
|
2772
2716
|
* first unless `sort` asks otherwise.
|
|
@@ -2788,7 +2732,6 @@ var Transactions = class extends HeyApiClient {
|
|
|
2788
2732
|
});
|
|
2789
2733
|
}
|
|
2790
2734
|
/**
|
|
2791
|
-
* GET /api/projects/{project_id}/transactions/stats/group?name=&op=
|
|
2792
2735
|
* Returns the aggregate stats for a single transaction group — a direct lookup
|
|
2793
2736
|
* so the summary header works regardless of how many groups the project has.
|
|
2794
2737
|
*/
|
|
@@ -2831,7 +2774,6 @@ var Transactions = class extends HeyApiClient {
|
|
|
2831
2774
|
});
|
|
2832
2775
|
}
|
|
2833
2776
|
/**
|
|
2834
|
-
* GET /api/projects/{project_id}/transactions/{transaction_id}
|
|
2835
2777
|
* Returns a single transaction with its full Sentry payload (spans, contexts,
|
|
2836
2778
|
* measurements, tags) for the performance detail view.
|
|
2837
2779
|
*/
|
|
@@ -2852,7 +2794,6 @@ var Transactions = class extends HeyApiClient {
|
|
|
2852
2794
|
});
|
|
2853
2795
|
}
|
|
2854
2796
|
/**
|
|
2855
|
-
* GET /api/projects/{project_id}/transactions/{transaction_id}/spans
|
|
2856
2797
|
* Returns the indexed spans extracted from a transaction, ordered for the
|
|
2857
2798
|
* waterfall view (by start_timestamp ascending).
|
|
2858
2799
|
*/
|
|
@@ -2964,8 +2905,6 @@ var Roles = class extends HeyApiClient {
|
|
|
2964
2905
|
};
|
|
2965
2906
|
var Schedules = class extends HeyApiClient {
|
|
2966
2907
|
/**
|
|
2967
|
-
* POST /api/schedules/preview
|
|
2968
|
-
*
|
|
2969
2908
|
* Validates a schedule and lists its next five runs from now, so no client
|
|
2970
2909
|
* ever parses a crontab itself.
|
|
2971
2910
|
*/
|
|
@@ -3037,7 +2976,7 @@ var Settings = class extends HeyApiClient {
|
|
|
3037
2976
|
};
|
|
3038
2977
|
var Storage = class extends HeyApiClient {
|
|
3039
2978
|
/**
|
|
3040
|
-
*
|
|
2979
|
+
* Rows per age bucket, per project and kind.
|
|
3041
2980
|
*/
|
|
3042
2981
|
getAge(options) {
|
|
3043
2982
|
return (options?.client ?? this.client).get({
|
|
@@ -3056,7 +2995,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3056
2995
|
});
|
|
3057
2996
|
}
|
|
3058
2997
|
/**
|
|
3059
|
-
*
|
|
2998
|
+
* Starts deleting old data and the issues it
|
|
3060
2999
|
* empties. Returns at once: the purge runs detached, in batches, and
|
|
3061
3000
|
* `GET /api/storage/cleanup/status` reports its progress.
|
|
3062
3001
|
*/
|
|
@@ -3081,7 +3020,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3081
3020
|
});
|
|
3082
3021
|
}
|
|
3083
3022
|
/**
|
|
3084
|
-
*
|
|
3023
|
+
* Dry-run count, mutates nothing.
|
|
3085
3024
|
*/
|
|
3086
3025
|
previewCleanup(options) {
|
|
3087
3026
|
return (options.client ?? this.client).post({
|
|
@@ -3104,7 +3043,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3104
3043
|
});
|
|
3105
3044
|
}
|
|
3106
3045
|
/**
|
|
3107
|
-
*
|
|
3046
|
+
* Progress of the running cleanup, or the
|
|
3108
3047
|
* outcome of the last one.
|
|
3109
3048
|
*/
|
|
3110
3049
|
getCleanupStatus(options) {
|
|
@@ -3124,7 +3063,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3124
3063
|
});
|
|
3125
3064
|
}
|
|
3126
3065
|
/**
|
|
3127
|
-
*
|
|
3066
|
+
* Whether the database file shrinks when data
|
|
3128
3067
|
* is deleted, and the disk a one-off compaction needs.
|
|
3129
3068
|
*/
|
|
3130
3069
|
getCompaction(options) {
|
|
@@ -3144,7 +3083,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3144
3083
|
});
|
|
3145
3084
|
}
|
|
3146
3085
|
/**
|
|
3147
|
-
*
|
|
3086
|
+
* Rewrites a SQLite file created before
|
|
3148
3087
|
* incremental mode, so it gives freed space back from then on. Writes wait
|
|
3149
3088
|
* while it runs; follow it with `GET /api/storage/cleanup/status`.
|
|
3150
3089
|
*/
|
|
@@ -3165,7 +3104,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3165
3104
|
});
|
|
3166
3105
|
}
|
|
3167
3106
|
/**
|
|
3168
|
-
*
|
|
3107
|
+
* Per-project counts and estimated weight.
|
|
3169
3108
|
*/
|
|
3170
3109
|
getProjects(options) {
|
|
3171
3110
|
return (options?.client ?? this.client).get({
|
|
@@ -3184,7 +3123,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3184
3123
|
});
|
|
3185
3124
|
}
|
|
3186
3125
|
/**
|
|
3187
|
-
*
|
|
3126
|
+
* Gets the retention settings and the cleanup schedule.
|
|
3188
3127
|
*/
|
|
3189
3128
|
getRetention(options) {
|
|
3190
3129
|
return (options?.client ?? this.client).get({
|
|
@@ -3203,7 +3142,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3203
3142
|
});
|
|
3204
3143
|
}
|
|
3205
3144
|
/**
|
|
3206
|
-
*
|
|
3145
|
+
* Updates the retention settings; the next cleanup is scheduled at once.
|
|
3207
3146
|
*/
|
|
3208
3147
|
updateRetention(options) {
|
|
3209
3148
|
return (options.client ?? this.client).put({
|
|
@@ -3226,7 +3165,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3226
3165
|
});
|
|
3227
3166
|
}
|
|
3228
3167
|
/**
|
|
3229
|
-
*
|
|
3168
|
+
* What saving these settings would
|
|
3230
3169
|
* delete on the next cleanup, without saving or deleting anything.
|
|
3231
3170
|
*/
|
|
3232
3171
|
previewRetention(options) {
|
|
@@ -3250,7 +3189,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3250
3189
|
});
|
|
3251
3190
|
}
|
|
3252
3191
|
/**
|
|
3253
|
-
*
|
|
3192
|
+
* Enforces the saved retention now,
|
|
3254
3193
|
* without waiting for the schedule. Follow it with the cleanup status.
|
|
3255
3194
|
*/
|
|
3256
3195
|
runRetention(options) {
|
|
@@ -3270,7 +3209,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3270
3209
|
});
|
|
3271
3210
|
}
|
|
3272
3211
|
/**
|
|
3273
|
-
*
|
|
3212
|
+
* Delete orphaned source maps (DB + disk).
|
|
3274
3213
|
*/
|
|
3275
3214
|
gcSourceMaps(options) {
|
|
3276
3215
|
return (options?.client ?? this.client).post({
|
|
@@ -3289,7 +3228,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3289
3228
|
});
|
|
3290
3229
|
}
|
|
3291
3230
|
/**
|
|
3292
|
-
*
|
|
3231
|
+
* Dry-run orphan count, deletes nothing.
|
|
3293
3232
|
*/
|
|
3294
3233
|
previewSourceMapGc(options) {
|
|
3295
3234
|
return (options?.client ?? this.client).post({
|
|
@@ -3308,7 +3247,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3308
3247
|
});
|
|
3309
3248
|
}
|
|
3310
3249
|
/**
|
|
3311
|
-
*
|
|
3250
|
+
* Row counts, DB size, and source-map weight.
|
|
3312
3251
|
*/
|
|
3313
3252
|
getSummary(options) {
|
|
3314
3253
|
return (options?.client ?? this.client).get({
|
|
@@ -3329,7 +3268,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3329
3268
|
};
|
|
3330
3269
|
var Team = class extends HeyApiClient {
|
|
3331
3270
|
/**
|
|
3332
|
-
*
|
|
3271
|
+
* List all users (needs `users:read`)
|
|
3333
3272
|
*/
|
|
3334
3273
|
list(options) {
|
|
3335
3274
|
return (options?.client ?? this.client).get({
|
|
@@ -3348,7 +3287,7 @@ var Team = class extends HeyApiClient {
|
|
|
3348
3287
|
});
|
|
3349
3288
|
}
|
|
3350
3289
|
/**
|
|
3351
|
-
*
|
|
3290
|
+
* Remove a user from the instance (needs `users:delete`)
|
|
3352
3291
|
*/
|
|
3353
3292
|
deleteUser(options) {
|
|
3354
3293
|
return (options.client ?? this.client).delete({
|
|
@@ -3367,7 +3306,7 @@ var Team = class extends HeyApiClient {
|
|
|
3367
3306
|
});
|
|
3368
3307
|
}
|
|
3369
3308
|
/**
|
|
3370
|
-
*
|
|
3309
|
+
* Change a user's global role (needs `users:update`)
|
|
3371
3310
|
*/
|
|
3372
3311
|
updateRole(options) {
|
|
3373
3312
|
return (options.client ?? this.client).patch({
|
|
@@ -3392,7 +3331,7 @@ var Team = class extends HeyApiClient {
|
|
|
3392
3331
|
};
|
|
3393
3332
|
var Telemetry = class extends HeyApiClient {
|
|
3394
3333
|
/**
|
|
3395
|
-
*
|
|
3334
|
+
* Shows the exact anonymous telemetry report this instance would send.
|
|
3396
3335
|
*/
|
|
3397
3336
|
preview(options) {
|
|
3398
3337
|
return (options?.client ?? this.client).get({
|
|
@@ -3413,7 +3352,7 @@ var Telemetry = class extends HeyApiClient {
|
|
|
3413
3352
|
};
|
|
3414
3353
|
var Tokens = class extends HeyApiClient {
|
|
3415
3354
|
/**
|
|
3416
|
-
*
|
|
3355
|
+
* List tokens (masked)
|
|
3417
3356
|
*
|
|
3418
3357
|
* Everyone sees their own tokens; `api-tokens:read` sees every token. A token
|
|
3419
3358
|
* limited to other permissions sees none: it must not reach its owner's others.
|
|
@@ -3435,7 +3374,7 @@ var Tokens = class extends HeyApiClient {
|
|
|
3435
3374
|
});
|
|
3436
3375
|
}
|
|
3437
3376
|
/**
|
|
3438
|
-
*
|
|
3377
|
+
* Create a new token (from a signed-in session only)
|
|
3439
3378
|
*
|
|
3440
3379
|
* A token cannot create tokens: a limited or expiring one could otherwise
|
|
3441
3380
|
* mint itself a way out of its limits.
|
|
@@ -3461,7 +3400,7 @@ var Tokens = class extends HeyApiClient {
|
|
|
3461
3400
|
});
|
|
3462
3401
|
}
|
|
3463
3402
|
/**
|
|
3464
|
-
*
|
|
3403
|
+
* Revoke a token
|
|
3465
3404
|
*
|
|
3466
3405
|
* Everyone may revoke their own; `api-tokens:delete` revokes any.
|
|
3467
3406
|
*/
|
|
@@ -3482,7 +3421,7 @@ var Tokens = class extends HeyApiClient {
|
|
|
3482
3421
|
});
|
|
3483
3422
|
}
|
|
3484
3423
|
/**
|
|
3485
|
-
*
|
|
3424
|
+
* Token details, masked
|
|
3486
3425
|
*
|
|
3487
3426
|
* Tokens are stored hashed, so the full value is only ever shown on
|
|
3488
3427
|
* creation. Everyone may view their own; `api-tokens:read` views any.
|
|
@@ -3553,7 +3492,6 @@ var Users = class extends HeyApiClient {
|
|
|
3553
3492
|
};
|
|
3554
3493
|
var Auth = class extends HeyApiClient {
|
|
3555
3494
|
/**
|
|
3556
|
-
* POST /auth/accept-invitation
|
|
3557
3495
|
* Accept a pending invitation: creates the user (with the invite's email + role) and logs in.
|
|
3558
3496
|
*/
|
|
3559
3497
|
acceptInvitation(options) {
|
|
@@ -3573,7 +3511,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3573
3511
|
});
|
|
3574
3512
|
}
|
|
3575
3513
|
/**
|
|
3576
|
-
* GET /auth/invitation/{token}
|
|
3577
3514
|
* Returns the invitation's details if it is still acceptable (for the accept page).
|
|
3578
3515
|
*/
|
|
3579
3516
|
getInvitation(options) {
|
|
@@ -3589,7 +3526,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3589
3526
|
});
|
|
3590
3527
|
}
|
|
3591
3528
|
/**
|
|
3592
|
-
* POST /auth/login
|
|
3593
3529
|
* Authenticate user and create session
|
|
3594
3530
|
*/
|
|
3595
3531
|
login(options) {
|
|
@@ -3609,7 +3545,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3609
3545
|
});
|
|
3610
3546
|
}
|
|
3611
3547
|
/**
|
|
3612
|
-
* POST /auth/logout
|
|
3613
3548
|
* Clear session
|
|
3614
3549
|
*/
|
|
3615
3550
|
logout(options) {
|
|
@@ -3622,7 +3557,7 @@ var Auth = class extends HeyApiClient {
|
|
|
3622
3557
|
responseValidator: async (data) => await zAuthLogoutResponse.parseAsync(data),
|
|
3623
3558
|
security: [{
|
|
3624
3559
|
in: "cookie",
|
|
3625
|
-
name: "
|
|
3560
|
+
name: "rustrak_session",
|
|
3626
3561
|
type: "apiKey"
|
|
3627
3562
|
}],
|
|
3628
3563
|
url: "/auth/logout",
|
|
@@ -3630,7 +3565,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3630
3565
|
});
|
|
3631
3566
|
}
|
|
3632
3567
|
/**
|
|
3633
|
-
* GET /auth/me
|
|
3634
3568
|
* Get current authenticated user
|
|
3635
3569
|
*/
|
|
3636
3570
|
getCurrentUser(options) {
|
|
@@ -3643,7 +3577,7 @@ var Auth = class extends HeyApiClient {
|
|
|
3643
3577
|
responseValidator: async (data) => await zAuthGetCurrentUserResponse.parseAsync(data),
|
|
3644
3578
|
security: [{
|
|
3645
3579
|
in: "cookie",
|
|
3646
|
-
name: "
|
|
3580
|
+
name: "rustrak_session",
|
|
3647
3581
|
type: "apiKey"
|
|
3648
3582
|
}],
|
|
3649
3583
|
url: "/auth/me",
|
|
@@ -3651,7 +3585,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3651
3585
|
});
|
|
3652
3586
|
}
|
|
3653
3587
|
/**
|
|
3654
|
-
* PATCH /auth/me
|
|
3655
3588
|
* Update the current user's presentation preferences
|
|
3656
3589
|
*/
|
|
3657
3590
|
updateCurrentUser(options) {
|
|
@@ -3664,7 +3597,7 @@ var Auth = class extends HeyApiClient {
|
|
|
3664
3597
|
responseValidator: async (data) => await zAuthUpdateCurrentUserResponse.parseAsync(data),
|
|
3665
3598
|
security: [{
|
|
3666
3599
|
in: "cookie",
|
|
3667
|
-
name: "
|
|
3600
|
+
name: "rustrak_session",
|
|
3668
3601
|
type: "apiKey"
|
|
3669
3602
|
}],
|
|
3670
3603
|
url: "/auth/me",
|
|
@@ -3676,8 +3609,8 @@ var Auth = class extends HeyApiClient {
|
|
|
3676
3609
|
});
|
|
3677
3610
|
}
|
|
3678
3611
|
/**
|
|
3679
|
-
*
|
|
3680
|
-
*
|
|
3612
|
+
* Change the current user's password. Every other session of the user ends;
|
|
3613
|
+
* this one continues under a new id.
|
|
3681
3614
|
*/
|
|
3682
3615
|
changePassword(options) {
|
|
3683
3616
|
return (options.client ?? this.client).post({
|
|
@@ -3689,7 +3622,7 @@ var Auth = class extends HeyApiClient {
|
|
|
3689
3622
|
responseValidator: async (data) => await zAuthChangePasswordResponse.parseAsync(data),
|
|
3690
3623
|
security: [{
|
|
3691
3624
|
in: "cookie",
|
|
3692
|
-
name: "
|
|
3625
|
+
name: "rustrak_session",
|
|
3693
3626
|
type: "apiKey"
|
|
3694
3627
|
}],
|
|
3695
3628
|
url: "/auth/me/password",
|
|
@@ -3701,26 +3634,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3701
3634
|
});
|
|
3702
3635
|
}
|
|
3703
3636
|
/**
|
|
3704
|
-
* POST /auth/register
|
|
3705
|
-
* Registration is invite-only — always rejected. Use `/auth/accept-invitation`.
|
|
3706
|
-
*/
|
|
3707
|
-
register(options) {
|
|
3708
|
-
return (options.client ?? this.client).post({
|
|
3709
|
-
requestValidator: async (data) => await z.object({
|
|
3710
|
-
body: zAuthRegisterBody,
|
|
3711
|
-
path: z.never().optional(),
|
|
3712
|
-
query: z.never().optional()
|
|
3713
|
-
}).parseAsync(data),
|
|
3714
|
-
url: "/auth/register",
|
|
3715
|
-
...options,
|
|
3716
|
-
headers: {
|
|
3717
|
-
"Content-Type": "application/json",
|
|
3718
|
-
...options.headers
|
|
3719
|
-
}
|
|
3720
|
-
});
|
|
3721
|
-
}
|
|
3722
|
-
/**
|
|
3723
|
-
* GET /auth/sso/callback
|
|
3724
3637
|
* Validate the provider response, resolve or provision the local account, and
|
|
3725
3638
|
* establish the normal Rustrak session.
|
|
3726
3639
|
*/
|
|
@@ -3737,7 +3650,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3737
3650
|
});
|
|
3738
3651
|
}
|
|
3739
3652
|
/**
|
|
3740
|
-
* GET /auth/sso/config
|
|
3741
3653
|
* Public, non-sensitive information used to render the login page.
|
|
3742
3654
|
*/
|
|
3743
3655
|
ssoConfig(options) {
|
|
@@ -3753,7 +3665,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3753
3665
|
});
|
|
3754
3666
|
}
|
|
3755
3667
|
/**
|
|
3756
|
-
* GET /auth/sso/link
|
|
3757
3668
|
* The account an SSO login matched, shown while its owner confirms.
|
|
3758
3669
|
*/
|
|
3759
3670
|
ssoLink(options) {
|
|
@@ -3769,7 +3680,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3769
3680
|
});
|
|
3770
3681
|
}
|
|
3771
3682
|
/**
|
|
3772
|
-
* POST /auth/sso/link
|
|
3773
3683
|
* Link the pending SSO identity to its account once the account's password
|
|
3774
3684
|
* is given, and sign in. A wrong password keeps the link pending for a retry.
|
|
3775
3685
|
*/
|
|
@@ -3790,9 +3700,8 @@ var Auth = class extends HeyApiClient {
|
|
|
3790
3700
|
});
|
|
3791
3701
|
}
|
|
3792
3702
|
/**
|
|
3793
|
-
* POST /auth/sso/start
|
|
3794
3703
|
* Create a one-time OIDC authorization request and retain its protections in
|
|
3795
|
-
* the
|
|
3704
|
+
* the session.
|
|
3796
3705
|
*/
|
|
3797
3706
|
ssoStart(options) {
|
|
3798
3707
|
return (options?.client ?? this.client).post({
|
|
@@ -3862,7 +3771,7 @@ var Health = class extends HeyApiClient {
|
|
|
3862
3771
|
type: "http"
|
|
3863
3772
|
}, {
|
|
3864
3773
|
in: "cookie",
|
|
3865
|
-
name: "
|
|
3774
|
+
name: "rustrak_session",
|
|
3866
3775
|
type: "apiKey"
|
|
3867
3776
|
}],
|
|
3868
3777
|
url: "/health/version",
|