@rustrak/client 0.25.0 → 0.27.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 +65 -48
- package/dist/client.cjs +5 -4
- 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 +6 -5
- 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/client/client.gen.d.cts +1 -0
- package/dist/generated/client/index.d.cts +10 -0
- package/dist/generated/client/types.gen.d.cts +1 -1
- package/dist/generated/client/types.gen.d.mts +1 -1
- package/dist/generated/client/utils.gen.cjs +1 -1
- package/dist/generated/client/utils.gen.d.cts +2 -0
- package/dist/generated/client/utils.gen.d.cts.map +1 -1
- package/dist/generated/client/utils.gen.mjs +1 -1
- package/dist/generated/client.gen.cjs +2 -1
- package/dist/generated/client.gen.cjs.map +1 -1
- package/dist/generated/client.gen.mjs +1 -1
- package/dist/generated/core/params.gen.d.cts +1 -0
- package/dist/generated/core/queryKeySerializer.gen.d.cts +1 -0
- package/dist/generated/sdk.gen.cjs +797 -599
- package/dist/generated/sdk.gen.cjs.map +1 -1
- package/dist/generated/sdk.gen.d.cts +49 -28
- package/dist/generated/sdk.gen.d.cts.map +1 -1
- package/dist/generated/sdk.gen.d.mts +49 -29
- package/dist/generated/sdk.gen.d.mts.map +1 -1
- package/dist/generated/sdk.gen.mjs +797 -601
- package/dist/generated/sdk.gen.mjs.map +1 -1
- package/dist/generated/types.gen.d.cts +349 -20
- package/dist/generated/types.gen.d.cts.map +1 -1
- package/dist/generated/types.gen.d.mts +349 -20
- package/dist/generated/types.gen.d.mts.map +1 -1
- package/dist/generated/zod.gen.cjs +253 -18
- package/dist/generated/zod.gen.cjs.map +1 -1
- package/dist/generated/zod.gen.mjs +216 -17
- package/dist/generated/zod.gen.mjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +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 +7 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { formDataBodySerializer } from "./core/bodySerializer.gen.mjs";
|
|
2
1
|
import { client } from "./client.gen.mjs";
|
|
3
|
-
import {
|
|
2
|
+
import { formDataBodySerializer } from "./core/bodySerializer.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, 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, zFeedbackListAllQuery, zFeedbackListAllResponse, 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, zIssuesListAllQuery, zIssuesListAllResponse, 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, zSavedViewsCreateBody, zSavedViewsCreatePath, zSavedViewsCreateResponse, zSavedViewsDeletePath, zSavedViewsDeleteResponse, zSavedViewsListPath, zSavedViewsListQuery, zSavedViewsListResponse, zSavedViewsSetDefaultBody, zSavedViewsSetDefaultPath, zSavedViewsSetDefaultResponse, zSavedViewsUpdateBody, zSavedViewsUpdatePath, zSavedViewsUpdateResponse, zSchedulesPreviewBody, zSchedulesPreviewResponse, zSentryGetIssuePath, zSentryGetIssueResponse, zSentryGetLatestEventPath, zSentryGetLatestEventResponse, zSentryListIssuesPath, zSentryListIssuesQuery, zSentryListIssuesResponse, zSentryListOrganizationIssuesPath, zSentryListOrganizationIssuesQuery, zSentryListOrganizationIssuesResponse, 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, zWorkspaceViewsCreateBody, zWorkspaceViewsCreateResponse, zWorkspaceViewsDeletePath, zWorkspaceViewsDeleteResponse, zWorkspaceViewsListQuery, zWorkspaceViewsListResponse, zWorkspaceViewsSetDefaultBody, zWorkspaceViewsSetDefaultResponse, zWorkspaceViewsUpdateBody, zWorkspaceViewsUpdatePath, zWorkspaceViewsUpdateResponse } 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,28 @@ var Sentry = class extends HeyApiClient {
|
|
|
117
109
|
});
|
|
118
110
|
}
|
|
119
111
|
/**
|
|
120
|
-
*
|
|
121
|
-
*
|
|
112
|
+
* Issues across projects, narrowed by `project`, filtered by `query`,
|
|
113
|
+
* sorted by `sort` and paginated by `cursor` (Sentry's
|
|
114
|
+
* `OrganizationGroupIndexEndpoint`,
|
|
115
|
+
* `issues/endpoints/organization_group_index.py`).
|
|
116
|
+
*/
|
|
117
|
+
listOrganizationIssues(options) {
|
|
118
|
+
return (options.client ?? this.client).get({
|
|
119
|
+
requestValidator: async (data) => await z.object({
|
|
120
|
+
body: z.never().optional(),
|
|
121
|
+
path: zSentryListOrganizationIssuesPath,
|
|
122
|
+
query: zSentryListOrganizationIssuesQuery.optional()
|
|
123
|
+
}).parseAsync(data),
|
|
124
|
+
responseValidator: async (data) => await zSentryListOrganizationIssuesResponse.parseAsync(data),
|
|
125
|
+
security: [{
|
|
126
|
+
scheme: "bearer",
|
|
127
|
+
type: "http"
|
|
128
|
+
}],
|
|
129
|
+
url: "/api/0/organizations/{org_slug}/issues/",
|
|
130
|
+
...options
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
122
134
|
* The code repositories connected to the organization (Sentry's
|
|
123
135
|
* `OrganizationRepositoriesEndpoint`). Rustrak connects none through
|
|
124
136
|
* Sentry's integrations, so the list is always empty.
|
|
@@ -140,8 +152,6 @@ var Sentry = class extends HeyApiClient {
|
|
|
140
152
|
});
|
|
141
153
|
}
|
|
142
154
|
/**
|
|
143
|
-
* GET /api/0/projects/
|
|
144
|
-
*
|
|
145
155
|
* The projects the token can see, newest first (Sentry's
|
|
146
156
|
* `ProjectIndexEndpoint`, `core/endpoints/project_index.py`).
|
|
147
157
|
*/
|
|
@@ -162,8 +172,6 @@ var Sentry = class extends HeyApiClient {
|
|
|
162
172
|
});
|
|
163
173
|
}
|
|
164
174
|
/**
|
|
165
|
-
* GET /api/0/projects/{org_slug}/{project_slug}/issues/
|
|
166
|
-
*
|
|
167
175
|
* A project's issues, filtered by `query`, sorted by `sort` and paginated
|
|
168
176
|
* by `cursor` (Sentry's `ProjectGroupIndexEndpoint`,
|
|
169
177
|
* `issues/endpoints/project_group_index.py`).
|
|
@@ -185,8 +193,6 @@ var Sentry = class extends HeyApiClient {
|
|
|
185
193
|
});
|
|
186
194
|
}
|
|
187
195
|
/**
|
|
188
|
-
* POST /api/0/projects/{org_slug}/{project_slug}/user-feedback/
|
|
189
|
-
*
|
|
190
196
|
* Submit a user report about an error event (Sentry's
|
|
191
197
|
* `ProjectUserReportsEndpoint`, `feedback/endpoints/project_user_reports.py`).
|
|
192
198
|
* Accepts `Authorization: DSN <dsn>` as well as a token; the report becomes a
|
|
@@ -213,8 +219,6 @@ var Sentry = class extends HeyApiClient {
|
|
|
213
219
|
});
|
|
214
220
|
}
|
|
215
221
|
/**
|
|
216
|
-
* GET /{org_slug}/{project_slug}/issues/{issue_id}/
|
|
217
|
-
*
|
|
218
222
|
* The issue page GitLab's "View in Sentry" opens: Sentry redirects this
|
|
219
223
|
* legacy path to the issue (`static/app/router/routes.tsx`), Rustrak to its
|
|
220
224
|
* dashboard. A visitor who is not signed in goes to the login page instead,
|
|
@@ -229,7 +233,7 @@ var Sentry = class extends HeyApiClient {
|
|
|
229
233
|
}).parseAsync(data),
|
|
230
234
|
security: [{
|
|
231
235
|
in: "cookie",
|
|
232
|
-
name: "
|
|
236
|
+
name: "rustrak_session",
|
|
233
237
|
type: "apiKey"
|
|
234
238
|
}, {
|
|
235
239
|
scheme: "bearer",
|
|
@@ -242,7 +246,6 @@ var Sentry = class extends HeyApiClient {
|
|
|
242
246
|
};
|
|
243
247
|
var SourceMaps = class extends HeyApiClient {
|
|
244
248
|
/**
|
|
245
|
-
* GET /api/0/organizations/{org_slug}/
|
|
246
249
|
* Always returns 200 with synthetic org data — sentry-cli validates this before uploading.
|
|
247
250
|
*/
|
|
248
251
|
orgDetails(options) {
|
|
@@ -258,7 +261,7 @@ var SourceMaps = class extends HeyApiClient {
|
|
|
258
261
|
});
|
|
259
262
|
}
|
|
260
263
|
/**
|
|
261
|
-
*
|
|
264
|
+
* Assembles uploaded chunks into an artifact bundle (sentry-cli `sourcemaps upload`).
|
|
262
265
|
*/
|
|
263
266
|
artifactBundleAssemble(options) {
|
|
264
267
|
return (options.client ?? this.client).post({
|
|
@@ -281,7 +284,7 @@ var SourceMaps = class extends HeyApiClient {
|
|
|
281
284
|
});
|
|
282
285
|
}
|
|
283
286
|
/**
|
|
284
|
-
*
|
|
287
|
+
* Describes how sentry-cli should upload chunks: size, concurrency and accepted kinds.
|
|
285
288
|
*/
|
|
286
289
|
chunkUploadCapability(options) {
|
|
287
290
|
return (options.client ?? this.client).get({
|
|
@@ -300,7 +303,7 @@ var SourceMaps = class extends HeyApiClient {
|
|
|
300
303
|
});
|
|
301
304
|
}
|
|
302
305
|
/**
|
|
303
|
-
*
|
|
306
|
+
* Receives chunks of a source map or debug file upload from sentry-cli.
|
|
304
307
|
*/
|
|
305
308
|
chunkUpload(options) {
|
|
306
309
|
return (options.client ?? this.client).post({
|
|
@@ -323,7 +326,7 @@ var SourceMaps = class extends HeyApiClient {
|
|
|
323
326
|
});
|
|
324
327
|
}
|
|
325
328
|
/**
|
|
326
|
-
*
|
|
329
|
+
* Lists a project's uploaded source map artifacts (sentry-cli).
|
|
327
330
|
*/
|
|
328
331
|
list(options) {
|
|
329
332
|
return (options.client ?? this.client).get({
|
|
@@ -401,8 +404,6 @@ var DebugFiles = class extends HeyApiClient {
|
|
|
401
404
|
};
|
|
402
405
|
var Releases = class extends HeyApiClient {
|
|
403
406
|
/**
|
|
404
|
-
* POST /api/0/projects/{org_slug}/{project_slug}/releases/
|
|
405
|
-
*
|
|
406
407
|
* Sentry-compatible release creation. Idempotent: repeating the same
|
|
407
408
|
* `(project, version)` returns 208 rather than erroring — sentry-cli and JS
|
|
408
409
|
* bundler plugins call this on every build. Triggers date-based regression
|
|
@@ -434,8 +435,6 @@ var Releases = class extends HeyApiClient {
|
|
|
434
435
|
});
|
|
435
436
|
}
|
|
436
437
|
/**
|
|
437
|
-
* PUT /api/0/projects/{org_slug}/{project_slug}/releases/{version}/
|
|
438
|
-
*
|
|
439
438
|
* Generic partial update (`ref`, `url`, `dateReleased`). Setting
|
|
440
439
|
* `dateReleased` IS "finalize" — there is no separate status flag.
|
|
441
440
|
*/
|
|
@@ -500,7 +499,7 @@ var Releases = class extends HeyApiClient {
|
|
|
500
499
|
});
|
|
501
500
|
}
|
|
502
501
|
/**
|
|
503
|
-
*
|
|
502
|
+
* Lists the issues first seen in a release.
|
|
504
503
|
*/
|
|
505
504
|
newIssues(options) {
|
|
506
505
|
return (options.client ?? this.client).get({
|
|
@@ -559,9 +558,50 @@ var Access = class extends HeyApiClient {
|
|
|
559
558
|
});
|
|
560
559
|
}
|
|
561
560
|
};
|
|
561
|
+
var Feedback = class extends HeyApiClient {
|
|
562
|
+
/**
|
|
563
|
+
* Lists user feedback across every project the reader can read issues on.
|
|
564
|
+
*/
|
|
565
|
+
listAll(options) {
|
|
566
|
+
return (options?.client ?? this.client).get({
|
|
567
|
+
requestValidator: async (data) => await z.object({
|
|
568
|
+
body: z.never().optional(),
|
|
569
|
+
path: z.never().optional(),
|
|
570
|
+
query: zFeedbackListAllQuery.optional()
|
|
571
|
+
}).parseAsync(data),
|
|
572
|
+
responseValidator: async (data) => await zFeedbackListAllResponse.parseAsync(data),
|
|
573
|
+
security: [{
|
|
574
|
+
scheme: "bearer",
|
|
575
|
+
type: "http"
|
|
576
|
+
}],
|
|
577
|
+
url: "/api/feedback",
|
|
578
|
+
...options
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* Lists user feedback with what each user submitted. Every feedback is an
|
|
583
|
+
* issue of category `feedback`; spam is a muted one.
|
|
584
|
+
*/
|
|
585
|
+
list(options) {
|
|
586
|
+
return (options.client ?? this.client).get({
|
|
587
|
+
requestValidator: async (data) => await z.object({
|
|
588
|
+
body: z.never().optional(),
|
|
589
|
+
path: zFeedbackListPath,
|
|
590
|
+
query: zFeedbackListQuery.optional()
|
|
591
|
+
}).parseAsync(data),
|
|
592
|
+
responseValidator: async (data) => await zFeedbackListResponse.parseAsync(data),
|
|
593
|
+
security: [{
|
|
594
|
+
scheme: "bearer",
|
|
595
|
+
type: "http"
|
|
596
|
+
}],
|
|
597
|
+
url: "/api/projects/{project_id}/feedback",
|
|
598
|
+
...options
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
};
|
|
562
602
|
var Github = class extends HeyApiClient {
|
|
563
603
|
/**
|
|
564
|
-
*
|
|
604
|
+
* Disconnects the GitHub App from this instance.
|
|
565
605
|
*/
|
|
566
606
|
disconnect(options) {
|
|
567
607
|
return (options?.client ?? this.client).delete({
|
|
@@ -580,7 +620,7 @@ var Github = class extends HeyApiClient {
|
|
|
580
620
|
});
|
|
581
621
|
}
|
|
582
622
|
/**
|
|
583
|
-
*
|
|
623
|
+
* Shows whether a GitHub App is connected, and how.
|
|
584
624
|
*/
|
|
585
625
|
status(options) {
|
|
586
626
|
return (options?.client ?? this.client).get({
|
|
@@ -599,7 +639,7 @@ var Github = class extends HeyApiClient {
|
|
|
599
639
|
});
|
|
600
640
|
}
|
|
601
641
|
/**
|
|
602
|
-
*
|
|
642
|
+
* GitHub sends the browser here after creating the
|
|
603
643
|
* app; the code trades for its credentials.
|
|
604
644
|
*/
|
|
605
645
|
callback(options) {
|
|
@@ -618,7 +658,7 @@ var Github = class extends HeyApiClient {
|
|
|
618
658
|
});
|
|
619
659
|
}
|
|
620
660
|
/**
|
|
621
|
-
*
|
|
661
|
+
* GitHub sends the browser here after the app is
|
|
622
662
|
* installed on an account.
|
|
623
663
|
*/
|
|
624
664
|
installed(options) {
|
|
@@ -637,7 +677,7 @@ var Github = class extends HeyApiClient {
|
|
|
637
677
|
});
|
|
638
678
|
}
|
|
639
679
|
/**
|
|
640
|
-
*
|
|
680
|
+
* The labels, title prefix and body footer
|
|
641
681
|
* every GitHub issue starts with, before a project's own.
|
|
642
682
|
*/
|
|
643
683
|
putIssueTemplate(options) {
|
|
@@ -661,7 +701,7 @@ var Github = class extends HeyApiClient {
|
|
|
661
701
|
});
|
|
662
702
|
}
|
|
663
703
|
/**
|
|
664
|
-
*
|
|
704
|
+
* What the dashboard posts to GitHub so GitHub
|
|
665
705
|
* creates an app already configured for this server.
|
|
666
706
|
*/
|
|
667
707
|
manifest(options) {
|
|
@@ -685,7 +725,7 @@ var Github = class extends HeyApiClient {
|
|
|
685
725
|
});
|
|
686
726
|
}
|
|
687
727
|
/**
|
|
688
|
-
*
|
|
728
|
+
* The GitHub username assignees sync through.
|
|
689
729
|
*/
|
|
690
730
|
getMyLogin(options) {
|
|
691
731
|
return (options?.client ?? this.client).get({
|
|
@@ -704,7 +744,7 @@ var Github = class extends HeyApiClient {
|
|
|
704
744
|
});
|
|
705
745
|
}
|
|
706
746
|
/**
|
|
707
|
-
*
|
|
747
|
+
* Sets or clears the caller's GitHub username, which assignees sync through.
|
|
708
748
|
*/
|
|
709
749
|
putMyLogin(options) {
|
|
710
750
|
return (options.client ?? this.client).put({
|
|
@@ -727,7 +767,7 @@ var Github = class extends HeyApiClient {
|
|
|
727
767
|
});
|
|
728
768
|
}
|
|
729
769
|
/**
|
|
730
|
-
*
|
|
770
|
+
* The repositories a project can
|
|
731
771
|
* point at, for whoever may change that project's settings.
|
|
732
772
|
*/
|
|
733
773
|
repositories(options) {
|
|
@@ -747,7 +787,7 @@ var Github = class extends HeyApiClient {
|
|
|
747
787
|
});
|
|
748
788
|
}
|
|
749
789
|
/**
|
|
750
|
-
*
|
|
790
|
+
* Public, and trusted only through the signature
|
|
751
791
|
* GitHub computes with the app's webhook secret.
|
|
752
792
|
*/
|
|
753
793
|
webhook(options) {
|
|
@@ -767,7 +807,7 @@ var Github = class extends HeyApiClient {
|
|
|
767
807
|
});
|
|
768
808
|
}
|
|
769
809
|
/**
|
|
770
|
-
*
|
|
810
|
+
* Unlinks a project from its GitHub repository.
|
|
771
811
|
*/
|
|
772
812
|
deleteProjectRepository(options) {
|
|
773
813
|
return (options.client ?? this.client).delete({
|
|
@@ -786,7 +826,7 @@ var Github = class extends HeyApiClient {
|
|
|
786
826
|
});
|
|
787
827
|
}
|
|
788
828
|
/**
|
|
789
|
-
*
|
|
829
|
+
* Gets the GitHub repository a project is linked to.
|
|
790
830
|
*/
|
|
791
831
|
getProjectRepository(options) {
|
|
792
832
|
return (options.client ?? this.client).get({
|
|
@@ -805,7 +845,7 @@ var Github = class extends HeyApiClient {
|
|
|
805
845
|
});
|
|
806
846
|
}
|
|
807
847
|
/**
|
|
808
|
-
*
|
|
848
|
+
* Links a project to a GitHub repository.
|
|
809
849
|
*/
|
|
810
850
|
putProjectRepository(options) {
|
|
811
851
|
return (options.client ?? this.client).put({
|
|
@@ -828,7 +868,7 @@ var Github = class extends HeyApiClient {
|
|
|
828
868
|
});
|
|
829
869
|
}
|
|
830
870
|
/**
|
|
831
|
-
*
|
|
871
|
+
* Copies the repository's
|
|
832
872
|
* CODEOWNERS so ownership can be answered without asking GitHub each time.
|
|
833
873
|
*/
|
|
834
874
|
syncCodeowners(options) {
|
|
@@ -848,7 +888,7 @@ var Github = class extends HeyApiClient {
|
|
|
848
888
|
});
|
|
849
889
|
}
|
|
850
890
|
/**
|
|
851
|
-
*
|
|
891
|
+
* The issue's links,
|
|
852
892
|
* the commits that may have caused it, and who owns its culprit file.
|
|
853
893
|
*/
|
|
854
894
|
issue(options) {
|
|
@@ -979,7 +1019,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
979
1019
|
});
|
|
980
1020
|
}
|
|
981
1021
|
/**
|
|
982
|
-
*
|
|
1022
|
+
* Creates a notification integration (webhook, Slack, email…).
|
|
983
1023
|
*/
|
|
984
1024
|
create(options) {
|
|
985
1025
|
return (options.client ?? this.client).post({
|
|
@@ -1002,8 +1042,6 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1002
1042
|
});
|
|
1003
1043
|
}
|
|
1004
1044
|
/**
|
|
1005
|
-
* POST /api/integrations/preview-template
|
|
1006
|
-
*
|
|
1007
1045
|
* Renders a Custom Webhook template against a sample payload and hands back
|
|
1008
1046
|
* the body that would be sent. The dashboard cannot run the template engine,
|
|
1009
1047
|
* so it asks while the reader types; going through the dispatcher's own
|
|
@@ -1030,7 +1068,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1030
1068
|
});
|
|
1031
1069
|
}
|
|
1032
1070
|
/**
|
|
1033
|
-
*
|
|
1071
|
+
* Deletes a notification integration.
|
|
1034
1072
|
*/
|
|
1035
1073
|
delete(options) {
|
|
1036
1074
|
return (options.client ?? this.client).delete({
|
|
@@ -1049,7 +1087,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1049
1087
|
});
|
|
1050
1088
|
}
|
|
1051
1089
|
/**
|
|
1052
|
-
*
|
|
1090
|
+
* Gets one notification integration.
|
|
1053
1091
|
*/
|
|
1054
1092
|
get(options) {
|
|
1055
1093
|
return (options.client ?? this.client).get({
|
|
@@ -1068,7 +1106,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1068
1106
|
});
|
|
1069
1107
|
}
|
|
1070
1108
|
/**
|
|
1071
|
-
*
|
|
1109
|
+
* Updates a notification integration.
|
|
1072
1110
|
*/
|
|
1073
1111
|
update(options) {
|
|
1074
1112
|
return (options.client ?? this.client).patch({
|
|
@@ -1091,7 +1129,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1091
1129
|
});
|
|
1092
1130
|
}
|
|
1093
1131
|
/**
|
|
1094
|
-
*
|
|
1132
|
+
* Sends a test notification through an integration.
|
|
1095
1133
|
*/
|
|
1096
1134
|
test(options) {
|
|
1097
1135
|
return (options.client ?? this.client).post({
|
|
@@ -1116,7 +1154,7 @@ var AlertChannels = class extends HeyApiClient {
|
|
|
1116
1154
|
};
|
|
1117
1155
|
var Invitations = class extends HeyApiClient {
|
|
1118
1156
|
/**
|
|
1119
|
-
*
|
|
1157
|
+
* List invitations (needs `invitations:read`)
|
|
1120
1158
|
*/
|
|
1121
1159
|
list(options) {
|
|
1122
1160
|
return (options?.client ?? this.client).get({
|
|
@@ -1135,7 +1173,7 @@ var Invitations = class extends HeyApiClient {
|
|
|
1135
1173
|
});
|
|
1136
1174
|
}
|
|
1137
1175
|
/**
|
|
1138
|
-
*
|
|
1176
|
+
* Create an invitation (needs `invitations:create`)
|
|
1139
1177
|
*
|
|
1140
1178
|
* With `send_email: true` the invite link is also emailed. A failed send
|
|
1141
1179
|
* still creates the invitation, with `email_sent_at: null`, so its link can
|
|
@@ -1162,7 +1200,7 @@ var Invitations = class extends HeyApiClient {
|
|
|
1162
1200
|
});
|
|
1163
1201
|
}
|
|
1164
1202
|
/**
|
|
1165
|
-
*
|
|
1203
|
+
* Whether invitation emails can be sent (needs `invitations:read`)
|
|
1166
1204
|
*/
|
|
1167
1205
|
emailStatus(options) {
|
|
1168
1206
|
return (options?.client ?? this.client).get({
|
|
@@ -1181,7 +1219,7 @@ var Invitations = class extends HeyApiClient {
|
|
|
1181
1219
|
});
|
|
1182
1220
|
}
|
|
1183
1221
|
/**
|
|
1184
|
-
*
|
|
1222
|
+
* Revoke a pending invitation (needs `invitations:delete`)
|
|
1185
1223
|
*/
|
|
1186
1224
|
revoke(options) {
|
|
1187
1225
|
return (options.client ?? this.client).delete({
|
|
@@ -1200,7 +1238,7 @@ var Invitations = class extends HeyApiClient {
|
|
|
1200
1238
|
});
|
|
1201
1239
|
}
|
|
1202
1240
|
/**
|
|
1203
|
-
*
|
|
1241
|
+
* Email the invite link again (needs `invitations:create`)
|
|
1204
1242
|
*/
|
|
1205
1243
|
resend(options) {
|
|
1206
1244
|
return (options.client ?? this.client).post({
|
|
@@ -1219,34 +1257,43 @@ var Invitations = class extends HeyApiClient {
|
|
|
1219
1257
|
});
|
|
1220
1258
|
}
|
|
1221
1259
|
};
|
|
1222
|
-
var
|
|
1260
|
+
var Issues = class extends HeyApiClient {
|
|
1223
1261
|
/**
|
|
1224
|
-
*
|
|
1262
|
+
* Lists issues across every project the reader can read issues on, in the
|
|
1263
|
+
* same shape and pages as a project's list.
|
|
1225
1264
|
*/
|
|
1226
|
-
|
|
1227
|
-
return (options
|
|
1265
|
+
listAll(options) {
|
|
1266
|
+
return (options?.client ?? this.client).get({
|
|
1228
1267
|
requestValidator: async (data) => await z.object({
|
|
1229
1268
|
body: z.never().optional(),
|
|
1230
1269
|
path: z.never().optional(),
|
|
1231
|
-
query:
|
|
1270
|
+
query: zIssuesListAllQuery.optional()
|
|
1232
1271
|
}).parseAsync(data),
|
|
1233
|
-
responseValidator: async (data) => await
|
|
1234
|
-
|
|
1272
|
+
responseValidator: async (data) => await zIssuesListAllResponse.parseAsync(data),
|
|
1273
|
+
security: [{
|
|
1274
|
+
scheme: "bearer",
|
|
1275
|
+
type: "http"
|
|
1276
|
+
}],
|
|
1277
|
+
url: "/api/issues",
|
|
1235
1278
|
...options
|
|
1236
1279
|
});
|
|
1237
1280
|
}
|
|
1238
1281
|
/**
|
|
1239
|
-
*
|
|
1282
|
+
* Deletes many issues at once, selected by id or by filter.
|
|
1240
1283
|
*/
|
|
1241
|
-
|
|
1242
|
-
return (options.client ?? this.client).
|
|
1284
|
+
bulkDelete(options) {
|
|
1285
|
+
return (options.client ?? this.client).delete({
|
|
1243
1286
|
requestValidator: async (data) => await z.object({
|
|
1244
|
-
body:
|
|
1245
|
-
path:
|
|
1287
|
+
body: zIssuesBulkDeleteBody,
|
|
1288
|
+
path: zIssuesBulkDeletePath,
|
|
1246
1289
|
query: z.never().optional()
|
|
1247
1290
|
}).parseAsync(data),
|
|
1248
|
-
responseValidator: async (data) => await
|
|
1249
|
-
|
|
1291
|
+
responseValidator: async (data) => await zIssuesBulkDeleteResponse.parseAsync(data),
|
|
1292
|
+
security: [{
|
|
1293
|
+
scheme: "bearer",
|
|
1294
|
+
type: "http"
|
|
1295
|
+
}],
|
|
1296
|
+
url: "/api/projects/{project_id}/issues",
|
|
1250
1297
|
...options,
|
|
1251
1298
|
headers: {
|
|
1252
1299
|
"Content-Type": "application/json",
|
|
@@ -1255,78 +1302,40 @@ var Oauth = class extends HeyApiClient {
|
|
|
1255
1302
|
});
|
|
1256
1303
|
}
|
|
1257
1304
|
/**
|
|
1258
|
-
* Lists
|
|
1259
|
-
*/
|
|
1260
|
-
listGrants(options) {
|
|
1261
|
-
return (options?.client ?? this.client).get({
|
|
1262
|
-
requestValidator: async (data) => await z.object({
|
|
1263
|
-
body: z.never().optional(),
|
|
1264
|
-
path: z.never().optional(),
|
|
1265
|
-
query: z.never().optional()
|
|
1266
|
-
}).parseAsync(data),
|
|
1267
|
-
responseValidator: async (data) => await zOauthListGrantsResponse.parseAsync(data),
|
|
1268
|
-
url: "/api/oauth/grants",
|
|
1269
|
-
...options
|
|
1270
|
-
});
|
|
1271
|
-
}
|
|
1272
|
-
/**
|
|
1273
|
-
* Disconnects an assistant: its tokens stop working at once.
|
|
1274
|
-
*/
|
|
1275
|
-
revokeGrant(options) {
|
|
1276
|
-
return (options.client ?? this.client).delete({
|
|
1277
|
-
requestValidator: async (data) => await z.object({
|
|
1278
|
-
body: z.never().optional(),
|
|
1279
|
-
path: zOauthRevokeGrantPath,
|
|
1280
|
-
query: z.never().optional()
|
|
1281
|
-
}).parseAsync(data),
|
|
1282
|
-
responseValidator: async (data) => await zOauthRevokeGrantResponse.parseAsync(data),
|
|
1283
|
-
url: "/api/oauth/grants/{id}",
|
|
1284
|
-
...options
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
};
|
|
1288
|
-
var Projects = class extends HeyApiClient {
|
|
1289
|
-
/**
|
|
1290
|
-
* GET /api/projects - List projects with pagination
|
|
1291
|
-
*
|
|
1292
|
-
* Only the projects the caller holds a permission on.
|
|
1305
|
+
* Lists issues for a project with offset-based pagination
|
|
1293
1306
|
*/
|
|
1294
1307
|
list(options) {
|
|
1295
|
-
return (options
|
|
1308
|
+
return (options.client ?? this.client).get({
|
|
1296
1309
|
requestValidator: async (data) => await z.object({
|
|
1297
1310
|
body: z.never().optional(),
|
|
1298
|
-
path:
|
|
1299
|
-
query:
|
|
1311
|
+
path: zIssuesListPath,
|
|
1312
|
+
query: zIssuesListQuery.optional()
|
|
1300
1313
|
}).parseAsync(data),
|
|
1301
|
-
responseValidator: async (data) => await
|
|
1314
|
+
responseValidator: async (data) => await zIssuesListResponse.parseAsync(data),
|
|
1302
1315
|
security: [{
|
|
1303
1316
|
scheme: "bearer",
|
|
1304
1317
|
type: "http"
|
|
1305
1318
|
}],
|
|
1306
|
-
url: "/api/projects",
|
|
1319
|
+
url: "/api/projects/{project_id}/issues",
|
|
1307
1320
|
...options
|
|
1308
1321
|
});
|
|
1309
1322
|
}
|
|
1310
1323
|
/**
|
|
1311
|
-
*
|
|
1312
|
-
*
|
|
1313
|
-
* Needs `projects:create` and a permission on at least one project, because
|
|
1314
|
-
* the creator's own roles extend to the new one. A token limited to chosen
|
|
1315
|
-
* projects can create one, but its list does not grow to reach it.
|
|
1324
|
+
* Sets the status or priority of many issues at once, by id.
|
|
1316
1325
|
*/
|
|
1317
|
-
|
|
1318
|
-
return (options.client ?? this.client).
|
|
1326
|
+
bulkUpdate(options) {
|
|
1327
|
+
return (options.client ?? this.client).put({
|
|
1319
1328
|
requestValidator: async (data) => await z.object({
|
|
1320
|
-
body:
|
|
1321
|
-
path:
|
|
1329
|
+
body: zIssuesBulkUpdateBody,
|
|
1330
|
+
path: zIssuesBulkUpdatePath,
|
|
1322
1331
|
query: z.never().optional()
|
|
1323
1332
|
}).parseAsync(data),
|
|
1324
|
-
responseValidator: async (data) => await
|
|
1333
|
+
responseValidator: async (data) => await zIssuesBulkUpdateResponse.parseAsync(data),
|
|
1325
1334
|
security: [{
|
|
1326
1335
|
scheme: "bearer",
|
|
1327
1336
|
type: "http"
|
|
1328
1337
|
}],
|
|
1329
|
-
url: "/api/projects",
|
|
1338
|
+
url: "/api/projects/{project_id}/issues",
|
|
1330
1339
|
...options,
|
|
1331
1340
|
headers: {
|
|
1332
1341
|
"Content-Type": "application/json",
|
|
@@ -1335,59 +1344,59 @@ var Projects = class extends HeyApiClient {
|
|
|
1335
1344
|
});
|
|
1336
1345
|
}
|
|
1337
1346
|
/**
|
|
1338
|
-
*
|
|
1347
|
+
* Hard-deletes an issue and all associated events
|
|
1339
1348
|
*/
|
|
1340
1349
|
delete(options) {
|
|
1341
1350
|
return (options.client ?? this.client).delete({
|
|
1342
1351
|
requestValidator: async (data) => await z.object({
|
|
1343
1352
|
body: z.never().optional(),
|
|
1344
|
-
path:
|
|
1353
|
+
path: zIssuesDeletePath,
|
|
1345
1354
|
query: z.never().optional()
|
|
1346
1355
|
}).parseAsync(data),
|
|
1347
|
-
responseValidator: async (data) => await
|
|
1356
|
+
responseValidator: async (data) => await zIssuesDeleteResponse.parseAsync(data),
|
|
1348
1357
|
security: [{
|
|
1349
1358
|
scheme: "bearer",
|
|
1350
1359
|
type: "http"
|
|
1351
1360
|
}],
|
|
1352
|
-
url: "/api/projects/{
|
|
1361
|
+
url: "/api/projects/{project_id}/issues/{issue_id}",
|
|
1353
1362
|
...options
|
|
1354
1363
|
});
|
|
1355
1364
|
}
|
|
1356
1365
|
/**
|
|
1357
|
-
*
|
|
1366
|
+
* Gets a single issue by ID
|
|
1358
1367
|
*/
|
|
1359
1368
|
get(options) {
|
|
1360
1369
|
return (options.client ?? this.client).get({
|
|
1361
1370
|
requestValidator: async (data) => await z.object({
|
|
1362
1371
|
body: z.never().optional(),
|
|
1363
|
-
path:
|
|
1372
|
+
path: zIssuesGetPath,
|
|
1364
1373
|
query: z.never().optional()
|
|
1365
1374
|
}).parseAsync(data),
|
|
1366
|
-
responseValidator: async (data) => await
|
|
1375
|
+
responseValidator: async (data) => await zIssuesGetResponse.parseAsync(data),
|
|
1367
1376
|
security: [{
|
|
1368
1377
|
scheme: "bearer",
|
|
1369
1378
|
type: "http"
|
|
1370
1379
|
}],
|
|
1371
|
-
url: "/api/projects/{
|
|
1380
|
+
url: "/api/projects/{project_id}/issues/{issue_id}",
|
|
1372
1381
|
...options
|
|
1373
1382
|
});
|
|
1374
1383
|
}
|
|
1375
1384
|
/**
|
|
1376
|
-
*
|
|
1385
|
+
* Updates issue state (resolve, mute, etc.)
|
|
1377
1386
|
*/
|
|
1378
1387
|
update(options) {
|
|
1379
1388
|
return (options.client ?? this.client).patch({
|
|
1380
1389
|
requestValidator: async (data) => await z.object({
|
|
1381
|
-
body:
|
|
1382
|
-
path:
|
|
1390
|
+
body: zIssuesUpdateBody,
|
|
1391
|
+
path: zIssuesUpdatePath,
|
|
1383
1392
|
query: z.never().optional()
|
|
1384
1393
|
}).parseAsync(data),
|
|
1385
|
-
responseValidator: async (data) => await
|
|
1394
|
+
responseValidator: async (data) => await zIssuesUpdateResponse.parseAsync(data),
|
|
1386
1395
|
security: [{
|
|
1387
1396
|
scheme: "bearer",
|
|
1388
1397
|
type: "http"
|
|
1389
1398
|
}],
|
|
1390
|
-
url: "/api/projects/{
|
|
1399
|
+
url: "/api/projects/{project_id}/issues/{issue_id}",
|
|
1391
1400
|
...options,
|
|
1392
1401
|
headers: {
|
|
1393
1402
|
"Content-Type": "application/json",
|
|
@@ -1396,342 +1405,339 @@ var Projects = class extends HeyApiClient {
|
|
|
1396
1405
|
});
|
|
1397
1406
|
}
|
|
1398
1407
|
/**
|
|
1399
|
-
*
|
|
1408
|
+
* Chronological activity log (incl. comments).
|
|
1400
1409
|
*/
|
|
1401
|
-
|
|
1402
|
-
return (options
|
|
1410
|
+
getActivity(options) {
|
|
1411
|
+
return (options.client ?? this.client).get({
|
|
1403
1412
|
requestValidator: async (data) => await z.object({
|
|
1404
1413
|
body: z.never().optional(),
|
|
1405
|
-
path:
|
|
1414
|
+
path: zIssuesGetActivityPath,
|
|
1406
1415
|
query: z.never().optional()
|
|
1407
1416
|
}).parseAsync(data),
|
|
1408
|
-
responseValidator: async (data) => await
|
|
1417
|
+
responseValidator: async (data) => await zIssuesGetActivityResponse.parseAsync(data),
|
|
1409
1418
|
security: [{
|
|
1410
1419
|
scheme: "bearer",
|
|
1411
1420
|
type: "http"
|
|
1412
1421
|
}],
|
|
1413
|
-
url: "/api/
|
|
1422
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/activity",
|
|
1414
1423
|
...options
|
|
1415
1424
|
});
|
|
1416
1425
|
}
|
|
1417
|
-
};
|
|
1418
|
-
var Agents = class extends HeyApiClient {
|
|
1419
1426
|
/**
|
|
1420
|
-
*
|
|
1421
|
-
* Lists conversations -- traces sharing a `gen_ai.conversation.id` -- the most recently active first.
|
|
1427
|
+
* Returns the unique user count and top tags for the issue.
|
|
1422
1428
|
*/
|
|
1423
|
-
|
|
1429
|
+
getAggregates(options) {
|
|
1424
1430
|
return (options.client ?? this.client).get({
|
|
1425
1431
|
requestValidator: async (data) => await z.object({
|
|
1426
1432
|
body: z.never().optional(),
|
|
1427
|
-
path:
|
|
1428
|
-
query:
|
|
1433
|
+
path: zIssuesGetAggregatesPath,
|
|
1434
|
+
query: z.never().optional()
|
|
1429
1435
|
}).parseAsync(data),
|
|
1430
|
-
responseValidator: async (data) => await
|
|
1436
|
+
responseValidator: async (data) => await zIssuesGetAggregatesResponse.parseAsync(data),
|
|
1431
1437
|
security: [{
|
|
1432
1438
|
scheme: "bearer",
|
|
1433
1439
|
type: "http"
|
|
1434
1440
|
}],
|
|
1435
|
-
url: "/api/projects/{project_id}/
|
|
1441
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/aggregates",
|
|
1436
1442
|
...options
|
|
1437
1443
|
});
|
|
1438
1444
|
}
|
|
1439
1445
|
/**
|
|
1440
|
-
*
|
|
1441
|
-
* Returns every AI span of a conversation's turns, oldest first, with its input and output.
|
|
1446
|
+
* Set/clear the per-user bookmark.
|
|
1442
1447
|
*/
|
|
1443
|
-
|
|
1444
|
-
return (options.client ?? this.client).
|
|
1448
|
+
setBookmark(options) {
|
|
1449
|
+
return (options.client ?? this.client).put({
|
|
1445
1450
|
requestValidator: async (data) => await z.object({
|
|
1446
|
-
body:
|
|
1447
|
-
path:
|
|
1451
|
+
body: zIssuesSetBookmarkBody,
|
|
1452
|
+
path: zIssuesSetBookmarkPath,
|
|
1448
1453
|
query: z.never().optional()
|
|
1449
1454
|
}).parseAsync(data),
|
|
1450
|
-
responseValidator: async (data) => await
|
|
1455
|
+
responseValidator: async (data) => await zIssuesSetBookmarkResponse.parseAsync(data),
|
|
1451
1456
|
security: [{
|
|
1452
1457
|
scheme: "bearer",
|
|
1453
1458
|
type: "http"
|
|
1454
1459
|
}],
|
|
1455
|
-
url: "/api/projects/{project_id}/
|
|
1456
|
-
...options
|
|
1460
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/bookmark",
|
|
1461
|
+
...options,
|
|
1462
|
+
headers: {
|
|
1463
|
+
"Content-Type": "application/json",
|
|
1464
|
+
...options.headers
|
|
1465
|
+
}
|
|
1457
1466
|
});
|
|
1458
1467
|
}
|
|
1459
1468
|
/**
|
|
1460
|
-
*
|
|
1461
|
-
* Time-bucketed avg/p95 duration for `agent`/`ai_client` spans.
|
|
1469
|
+
* Add a note.
|
|
1462
1470
|
*/
|
|
1463
|
-
|
|
1464
|
-
return (options.client ?? this.client).
|
|
1471
|
+
createComment(options) {
|
|
1472
|
+
return (options.client ?? this.client).post({
|
|
1465
1473
|
requestValidator: async (data) => await z.object({
|
|
1466
|
-
body:
|
|
1467
|
-
path:
|
|
1468
|
-
query:
|
|
1474
|
+
body: zIssuesCreateCommentBody,
|
|
1475
|
+
path: zIssuesCreateCommentPath,
|
|
1476
|
+
query: z.never().optional()
|
|
1469
1477
|
}).parseAsync(data),
|
|
1470
|
-
responseValidator: async (data) => await
|
|
1478
|
+
responseValidator: async (data) => await zIssuesCreateCommentResponse.parseAsync(data),
|
|
1471
1479
|
security: [{
|
|
1472
1480
|
scheme: "bearer",
|
|
1473
1481
|
type: "http"
|
|
1474
1482
|
}],
|
|
1475
|
-
url: "/api/projects/{project_id}/
|
|
1476
|
-
...options
|
|
1483
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/comments",
|
|
1484
|
+
...options,
|
|
1485
|
+
headers: {
|
|
1486
|
+
"Content-Type": "application/json",
|
|
1487
|
+
...options.headers
|
|
1488
|
+
}
|
|
1477
1489
|
});
|
|
1478
1490
|
}
|
|
1479
1491
|
/**
|
|
1480
|
-
*
|
|
1481
|
-
* The options the environment filter offers, read from the data rather than
|
|
1482
|
-
* hardcoded — an installation may name its environments anything.
|
|
1492
|
+
* Lists the grouping hashes that map to an issue.
|
|
1483
1493
|
*/
|
|
1484
|
-
|
|
1494
|
+
getHashes(options) {
|
|
1485
1495
|
return (options.client ?? this.client).get({
|
|
1486
1496
|
requestValidator: async (data) => await z.object({
|
|
1487
1497
|
body: z.never().optional(),
|
|
1488
|
-
path:
|
|
1498
|
+
path: zIssuesGetHashesPath,
|
|
1489
1499
|
query: z.never().optional()
|
|
1490
1500
|
}).parseAsync(data),
|
|
1491
|
-
responseValidator: async (data) => await
|
|
1501
|
+
responseValidator: async (data) => await zIssuesGetHashesResponse.parseAsync(data),
|
|
1492
1502
|
security: [{
|
|
1493
1503
|
scheme: "bearer",
|
|
1494
1504
|
type: "http"
|
|
1495
1505
|
}],
|
|
1496
|
-
url: "/api/projects/{project_id}/
|
|
1506
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/hashes",
|
|
1497
1507
|
...options
|
|
1498
1508
|
});
|
|
1499
1509
|
}
|
|
1500
1510
|
/**
|
|
1501
|
-
*
|
|
1511
|
+
* Mark the issue as seen by the current user.
|
|
1502
1512
|
*/
|
|
1503
|
-
|
|
1504
|
-
return (options.client ?? this.client).
|
|
1513
|
+
markSeen(options) {
|
|
1514
|
+
return (options.client ?? this.client).post({
|
|
1505
1515
|
requestValidator: async (data) => await z.object({
|
|
1506
1516
|
body: z.never().optional(),
|
|
1507
|
-
path:
|
|
1508
|
-
query:
|
|
1517
|
+
path: zIssuesMarkSeenPath,
|
|
1518
|
+
query: z.never().optional()
|
|
1509
1519
|
}).parseAsync(data),
|
|
1510
|
-
responseValidator: async (data) => await
|
|
1520
|
+
responseValidator: async (data) => await zIssuesMarkSeenResponse.parseAsync(data),
|
|
1511
1521
|
security: [{
|
|
1512
1522
|
scheme: "bearer",
|
|
1513
1523
|
type: "http"
|
|
1514
1524
|
}],
|
|
1515
|
-
url: "/api/projects/{project_id}/
|
|
1525
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/seen",
|
|
1516
1526
|
...options
|
|
1517
1527
|
});
|
|
1518
1528
|
}
|
|
1519
1529
|
/**
|
|
1520
|
-
*
|
|
1521
|
-
* Top models by LLM call count (`gen_ai.operation.type:ai_client`).
|
|
1530
|
+
* Zero-filled event-count timeseries.
|
|
1522
1531
|
*/
|
|
1523
|
-
|
|
1532
|
+
getStats(options) {
|
|
1524
1533
|
return (options.client ?? this.client).get({
|
|
1525
1534
|
requestValidator: async (data) => await z.object({
|
|
1526
1535
|
body: z.never().optional(),
|
|
1527
|
-
path:
|
|
1528
|
-
query:
|
|
1536
|
+
path: zIssuesGetStatsPath,
|
|
1537
|
+
query: zIssuesGetStatsQuery.optional()
|
|
1529
1538
|
}).parseAsync(data),
|
|
1530
|
-
responseValidator: async (data) => await
|
|
1539
|
+
responseValidator: async (data) => await zIssuesGetStatsResponse.parseAsync(data),
|
|
1531
1540
|
security: [{
|
|
1532
1541
|
scheme: "bearer",
|
|
1533
1542
|
type: "http"
|
|
1534
1543
|
}],
|
|
1535
|
-
url: "/api/projects/{project_id}/
|
|
1544
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/stats",
|
|
1536
1545
|
...options
|
|
1537
1546
|
});
|
|
1538
1547
|
}
|
|
1539
1548
|
/**
|
|
1540
|
-
*
|
|
1541
|
-
* Top models by total tokens used (`gen_ai.operation.type:ai_client`).
|
|
1549
|
+
* Set/clear the per-user subscription.
|
|
1542
1550
|
*/
|
|
1543
|
-
|
|
1544
|
-
return (options.client ?? this.client).
|
|
1551
|
+
setSubscription(options) {
|
|
1552
|
+
return (options.client ?? this.client).put({
|
|
1545
1553
|
requestValidator: async (data) => await z.object({
|
|
1546
|
-
body:
|
|
1547
|
-
path:
|
|
1548
|
-
query:
|
|
1554
|
+
body: zIssuesSetSubscriptionBody,
|
|
1555
|
+
path: zIssuesSetSubscriptionPath,
|
|
1556
|
+
query: z.never().optional()
|
|
1549
1557
|
}).parseAsync(data),
|
|
1550
|
-
responseValidator: async (data) => await
|
|
1558
|
+
responseValidator: async (data) => await zIssuesSetSubscriptionResponse.parseAsync(data),
|
|
1551
1559
|
security: [{
|
|
1552
1560
|
scheme: "bearer",
|
|
1553
1561
|
type: "http"
|
|
1554
1562
|
}],
|
|
1555
|
-
url: "/api/projects/{project_id}/
|
|
1556
|
-
...options
|
|
1563
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/subscription",
|
|
1564
|
+
...options,
|
|
1565
|
+
headers: {
|
|
1566
|
+
"Content-Type": "application/json",
|
|
1567
|
+
...options.headers
|
|
1568
|
+
}
|
|
1557
1569
|
});
|
|
1558
1570
|
}
|
|
1559
1571
|
/**
|
|
1560
|
-
*
|
|
1561
|
-
* Time-bucketed count of agent-run spans (`gen_ai.operation.type:agent`).
|
|
1572
|
+
* Lists the distinct values (with counts) for a tag key across the issue.
|
|
1562
1573
|
*/
|
|
1563
|
-
|
|
1574
|
+
getTagValues(options) {
|
|
1564
1575
|
return (options.client ?? this.client).get({
|
|
1565
1576
|
requestValidator: async (data) => await z.object({
|
|
1566
1577
|
body: z.never().optional(),
|
|
1567
|
-
path:
|
|
1568
|
-
query:
|
|
1578
|
+
path: zIssuesGetTagValuesPath,
|
|
1579
|
+
query: z.never().optional()
|
|
1569
1580
|
}).parseAsync(data),
|
|
1570
|
-
responseValidator: async (data) => await
|
|
1581
|
+
responseValidator: async (data) => await zIssuesGetTagValuesResponse.parseAsync(data),
|
|
1571
1582
|
security: [{
|
|
1572
1583
|
scheme: "bearer",
|
|
1573
1584
|
type: "http"
|
|
1574
1585
|
}],
|
|
1575
|
-
url: "/api/projects/{project_id}/
|
|
1586
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/tags/{key}",
|
|
1576
1587
|
...options
|
|
1577
1588
|
});
|
|
1578
1589
|
}
|
|
1579
1590
|
/**
|
|
1580
|
-
*
|
|
1581
|
-
* Agent runs, LLM calls, tool calls, errors, tokens and latency over the
|
|
1582
|
-
* selected window — the numbers the six charts cannot state outright.
|
|
1591
|
+
* List user feedback for an issue.
|
|
1583
1592
|
*/
|
|
1584
|
-
|
|
1593
|
+
listUserReports(options) {
|
|
1585
1594
|
return (options.client ?? this.client).get({
|
|
1586
1595
|
requestValidator: async (data) => await z.object({
|
|
1587
1596
|
body: z.never().optional(),
|
|
1588
|
-
path:
|
|
1589
|
-
query:
|
|
1597
|
+
path: zIssuesListUserReportsPath,
|
|
1598
|
+
query: zIssuesListUserReportsQuery.optional()
|
|
1590
1599
|
}).parseAsync(data),
|
|
1591
|
-
responseValidator: async (data) => await
|
|
1600
|
+
responseValidator: async (data) => await zIssuesListUserReportsResponse.parseAsync(data),
|
|
1592
1601
|
security: [{
|
|
1593
1602
|
scheme: "bearer",
|
|
1594
1603
|
type: "http"
|
|
1595
1604
|
}],
|
|
1596
|
-
url: "/api/projects/{project_id}/
|
|
1605
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/user-reports",
|
|
1597
1606
|
...options
|
|
1598
1607
|
});
|
|
1599
1608
|
}
|
|
1600
1609
|
/**
|
|
1601
|
-
*
|
|
1602
|
-
* Top tools by call count (`gen_ai.operation.type:tool`).
|
|
1610
|
+
* Attach user feedback to an issue.
|
|
1603
1611
|
*/
|
|
1604
|
-
|
|
1605
|
-
return (options.client ?? this.client).
|
|
1612
|
+
createUserReport(options) {
|
|
1613
|
+
return (options.client ?? this.client).post({
|
|
1606
1614
|
requestValidator: async (data) => await z.object({
|
|
1607
|
-
body:
|
|
1608
|
-
path:
|
|
1609
|
-
query:
|
|
1615
|
+
body: zIssuesCreateUserReportBody,
|
|
1616
|
+
path: zIssuesCreateUserReportPath,
|
|
1617
|
+
query: z.never().optional()
|
|
1610
1618
|
}).parseAsync(data),
|
|
1611
|
-
responseValidator: async (data) => await
|
|
1619
|
+
responseValidator: async (data) => await zIssuesCreateUserReportResponse.parseAsync(data),
|
|
1612
1620
|
security: [{
|
|
1613
1621
|
scheme: "bearer",
|
|
1614
1622
|
type: "http"
|
|
1615
1623
|
}],
|
|
1616
|
-
url: "/api/projects/{project_id}/
|
|
1617
|
-
...options
|
|
1624
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/user-reports",
|
|
1625
|
+
...options,
|
|
1626
|
+
headers: {
|
|
1627
|
+
"Content-Type": "application/json",
|
|
1628
|
+
...options.headers
|
|
1629
|
+
}
|
|
1618
1630
|
});
|
|
1619
1631
|
}
|
|
1632
|
+
};
|
|
1633
|
+
var Oauth = class extends HeyApiClient {
|
|
1620
1634
|
/**
|
|
1621
|
-
*
|
|
1635
|
+
* Verifies an authorization request and says who is asking.
|
|
1622
1636
|
*/
|
|
1623
|
-
|
|
1637
|
+
getAuthorization(options) {
|
|
1624
1638
|
return (options.client ?? this.client).get({
|
|
1625
1639
|
requestValidator: async (data) => await z.object({
|
|
1626
1640
|
body: z.never().optional(),
|
|
1627
|
-
path:
|
|
1628
|
-
query:
|
|
1641
|
+
path: z.never().optional(),
|
|
1642
|
+
query: zOauthGetAuthorizationQuery
|
|
1629
1643
|
}).parseAsync(data),
|
|
1630
|
-
responseValidator: async (data) => await
|
|
1631
|
-
|
|
1632
|
-
scheme: "bearer",
|
|
1633
|
-
type: "http"
|
|
1634
|
-
}],
|
|
1635
|
-
url: "/api/projects/{project_id}/agents/tools/stats",
|
|
1644
|
+
responseValidator: async (data) => await zOauthGetAuthorizationResponse.parseAsync(data),
|
|
1645
|
+
url: "/api/oauth/authorize",
|
|
1636
1646
|
...options
|
|
1637
1647
|
});
|
|
1638
1648
|
}
|
|
1639
1649
|
/**
|
|
1640
|
-
*
|
|
1641
|
-
* Paginated per-trace_id aggregate (duration, tokens, tool usage) across
|
|
1642
|
-
* all AI spans sharing that trace, regardless of origin.
|
|
1650
|
+
* Approves or denies an authorization request as the signed-in user.
|
|
1643
1651
|
*/
|
|
1644
|
-
|
|
1645
|
-
return (options.client ?? this.client).
|
|
1652
|
+
decideAuthorization(options) {
|
|
1653
|
+
return (options.client ?? this.client).post({
|
|
1646
1654
|
requestValidator: async (data) => await z.object({
|
|
1647
|
-
body:
|
|
1648
|
-
path:
|
|
1649
|
-
query:
|
|
1655
|
+
body: zOauthDecideAuthorizationBody,
|
|
1656
|
+
path: z.never().optional(),
|
|
1657
|
+
query: z.never().optional()
|
|
1650
1658
|
}).parseAsync(data),
|
|
1651
|
-
responseValidator: async (data) => await
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1659
|
+
responseValidator: async (data) => await zOauthDecideAuthorizationResponse.parseAsync(data),
|
|
1660
|
+
url: "/api/oauth/authorize",
|
|
1661
|
+
...options,
|
|
1662
|
+
headers: {
|
|
1663
|
+
"Content-Type": "application/json",
|
|
1664
|
+
...options.headers
|
|
1665
|
+
}
|
|
1658
1666
|
});
|
|
1659
1667
|
}
|
|
1660
|
-
};
|
|
1661
|
-
var AlertRules = class extends HeyApiClient {
|
|
1662
1668
|
/**
|
|
1663
|
-
*
|
|
1669
|
+
* Lists the assistants connected to the signed-in user's account.
|
|
1664
1670
|
*/
|
|
1665
|
-
|
|
1666
|
-
return (options
|
|
1671
|
+
listGrants(options) {
|
|
1672
|
+
return (options?.client ?? this.client).get({
|
|
1667
1673
|
requestValidator: async (data) => await z.object({
|
|
1668
1674
|
body: z.never().optional(),
|
|
1669
|
-
path:
|
|
1670
|
-
query:
|
|
1675
|
+
path: z.never().optional(),
|
|
1676
|
+
query: z.never().optional()
|
|
1671
1677
|
}).parseAsync(data),
|
|
1672
|
-
responseValidator: async (data) => await
|
|
1673
|
-
|
|
1674
|
-
scheme: "bearer",
|
|
1675
|
-
type: "http"
|
|
1676
|
-
}],
|
|
1677
|
-
url: "/api/projects/{project_id}/alert-history",
|
|
1678
|
+
responseValidator: async (data) => await zOauthListGrantsResponse.parseAsync(data),
|
|
1679
|
+
url: "/api/oauth/grants",
|
|
1678
1680
|
...options
|
|
1679
1681
|
});
|
|
1680
1682
|
}
|
|
1681
1683
|
/**
|
|
1682
|
-
*
|
|
1684
|
+
* Disconnects an assistant: its tokens stop working at once.
|
|
1683
1685
|
*/
|
|
1684
|
-
|
|
1685
|
-
return (options.client ?? this.client).
|
|
1686
|
+
revokeGrant(options) {
|
|
1687
|
+
return (options.client ?? this.client).delete({
|
|
1686
1688
|
requestValidator: async (data) => await z.object({
|
|
1687
1689
|
body: z.never().optional(),
|
|
1688
|
-
path:
|
|
1689
|
-
query:
|
|
1690
|
+
path: zOauthRevokeGrantPath,
|
|
1691
|
+
query: z.never().optional()
|
|
1690
1692
|
}).parseAsync(data),
|
|
1691
|
-
responseValidator: async (data) => await
|
|
1692
|
-
|
|
1693
|
-
scheme: "bearer",
|
|
1694
|
-
type: "http"
|
|
1695
|
-
}],
|
|
1696
|
-
url: "/api/projects/{project_id}/alert-history/daily",
|
|
1693
|
+
responseValidator: async (data) => await zOauthRevokeGrantResponse.parseAsync(data),
|
|
1694
|
+
url: "/api/oauth/grants/{id}",
|
|
1697
1695
|
...options
|
|
1698
1696
|
});
|
|
1699
1697
|
}
|
|
1698
|
+
};
|
|
1699
|
+
var Projects = class extends HeyApiClient {
|
|
1700
1700
|
/**
|
|
1701
|
-
*
|
|
1701
|
+
* List projects with pagination.
|
|
1702
|
+
*
|
|
1703
|
+
* Only the projects the caller holds a permission on.
|
|
1702
1704
|
*/
|
|
1703
1705
|
list(options) {
|
|
1704
|
-
return (options
|
|
1706
|
+
return (options?.client ?? this.client).get({
|
|
1705
1707
|
requestValidator: async (data) => await z.object({
|
|
1706
1708
|
body: z.never().optional(),
|
|
1707
|
-
path:
|
|
1708
|
-
query:
|
|
1709
|
+
path: z.never().optional(),
|
|
1710
|
+
query: zProjectsListQuery.optional()
|
|
1709
1711
|
}).parseAsync(data),
|
|
1710
|
-
responseValidator: async (data) => await
|
|
1712
|
+
responseValidator: async (data) => await zProjectsListResponse.parseAsync(data),
|
|
1711
1713
|
security: [{
|
|
1712
1714
|
scheme: "bearer",
|
|
1713
1715
|
type: "http"
|
|
1714
1716
|
}],
|
|
1715
|
-
url: "/api/projects
|
|
1717
|
+
url: "/api/projects",
|
|
1716
1718
|
...options
|
|
1717
1719
|
});
|
|
1718
1720
|
}
|
|
1719
1721
|
/**
|
|
1720
|
-
*
|
|
1722
|
+
* Create a new project
|
|
1723
|
+
*
|
|
1724
|
+
* Needs `projects:create` and a permission on at least one project, because
|
|
1725
|
+
* the creator's own roles extend to the new one. A token limited to chosen
|
|
1726
|
+
* projects can create one, but its list does not grow to reach it.
|
|
1721
1727
|
*/
|
|
1722
1728
|
create(options) {
|
|
1723
1729
|
return (options.client ?? this.client).post({
|
|
1724
1730
|
requestValidator: async (data) => await z.object({
|
|
1725
|
-
body:
|
|
1726
|
-
path:
|
|
1731
|
+
body: zProjectsCreateBody,
|
|
1732
|
+
path: z.never().optional(),
|
|
1727
1733
|
query: z.never().optional()
|
|
1728
1734
|
}).parseAsync(data),
|
|
1729
|
-
responseValidator: async (data) => await
|
|
1735
|
+
responseValidator: async (data) => await zProjectsCreateResponse.parseAsync(data),
|
|
1730
1736
|
security: [{
|
|
1731
1737
|
scheme: "bearer",
|
|
1732
1738
|
type: "http"
|
|
1733
1739
|
}],
|
|
1734
|
-
url: "/api/projects
|
|
1740
|
+
url: "/api/projects",
|
|
1735
1741
|
...options,
|
|
1736
1742
|
headers: {
|
|
1737
1743
|
"Content-Type": "application/json",
|
|
@@ -1740,59 +1746,59 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1740
1746
|
});
|
|
1741
1747
|
}
|
|
1742
1748
|
/**
|
|
1743
|
-
*
|
|
1749
|
+
* Delete a project
|
|
1744
1750
|
*/
|
|
1745
1751
|
delete(options) {
|
|
1746
1752
|
return (options.client ?? this.client).delete({
|
|
1747
1753
|
requestValidator: async (data) => await z.object({
|
|
1748
1754
|
body: z.never().optional(),
|
|
1749
|
-
path:
|
|
1755
|
+
path: zProjectsDeletePath,
|
|
1750
1756
|
query: z.never().optional()
|
|
1751
1757
|
}).parseAsync(data),
|
|
1752
|
-
responseValidator: async (data) => await
|
|
1758
|
+
responseValidator: async (data) => await zProjectsDeleteResponse.parseAsync(data),
|
|
1753
1759
|
security: [{
|
|
1754
1760
|
scheme: "bearer",
|
|
1755
1761
|
type: "http"
|
|
1756
1762
|
}],
|
|
1757
|
-
url: "/api/projects/{
|
|
1763
|
+
url: "/api/projects/{id}",
|
|
1758
1764
|
...options
|
|
1759
1765
|
});
|
|
1760
1766
|
}
|
|
1761
1767
|
/**
|
|
1762
|
-
*
|
|
1768
|
+
* Get a project by ID
|
|
1763
1769
|
*/
|
|
1764
1770
|
get(options) {
|
|
1765
1771
|
return (options.client ?? this.client).get({
|
|
1766
1772
|
requestValidator: async (data) => await z.object({
|
|
1767
1773
|
body: z.never().optional(),
|
|
1768
|
-
path:
|
|
1774
|
+
path: zProjectsGetPath,
|
|
1769
1775
|
query: z.never().optional()
|
|
1770
1776
|
}).parseAsync(data),
|
|
1771
|
-
responseValidator: async (data) => await
|
|
1777
|
+
responseValidator: async (data) => await zProjectsGetResponse.parseAsync(data),
|
|
1772
1778
|
security: [{
|
|
1773
1779
|
scheme: "bearer",
|
|
1774
1780
|
type: "http"
|
|
1775
1781
|
}],
|
|
1776
|
-
url: "/api/projects/{
|
|
1782
|
+
url: "/api/projects/{id}",
|
|
1777
1783
|
...options
|
|
1778
1784
|
});
|
|
1779
1785
|
}
|
|
1780
1786
|
/**
|
|
1781
|
-
*
|
|
1787
|
+
* Update a project
|
|
1782
1788
|
*/
|
|
1783
1789
|
update(options) {
|
|
1784
1790
|
return (options.client ?? this.client).patch({
|
|
1785
1791
|
requestValidator: async (data) => await z.object({
|
|
1786
|
-
body:
|
|
1787
|
-
path:
|
|
1792
|
+
body: zProjectsUpdateBody,
|
|
1793
|
+
path: zProjectsUpdatePath,
|
|
1788
1794
|
query: z.never().optional()
|
|
1789
1795
|
}).parseAsync(data),
|
|
1790
|
-
responseValidator: async (data) => await
|
|
1796
|
+
responseValidator: async (data) => await zProjectsUpdateResponse.parseAsync(data),
|
|
1791
1797
|
security: [{
|
|
1792
1798
|
scheme: "bearer",
|
|
1793
1799
|
type: "http"
|
|
1794
1800
|
}],
|
|
1795
|
-
url: "/api/projects/{
|
|
1801
|
+
url: "/api/projects/{id}",
|
|
1796
1802
|
...options,
|
|
1797
1803
|
headers: {
|
|
1798
1804
|
"Content-Type": "application/json",
|
|
@@ -1800,318 +1806,333 @@ var AlertRules = class extends HeyApiClient {
|
|
|
1800
1806
|
}
|
|
1801
1807
|
});
|
|
1802
1808
|
}
|
|
1809
|
+
/**
|
|
1810
|
+
* What a project without limits of its own follows
|
|
1811
|
+
*/
|
|
1812
|
+
getRateLimits(options) {
|
|
1813
|
+
return (options?.client ?? this.client).get({
|
|
1814
|
+
requestValidator: async (data) => await z.object({
|
|
1815
|
+
body: z.never().optional(),
|
|
1816
|
+
path: z.never().optional(),
|
|
1817
|
+
query: z.never().optional()
|
|
1818
|
+
}).parseAsync(data),
|
|
1819
|
+
responseValidator: async (data) => await zProjectsGetRateLimitsResponse.parseAsync(data),
|
|
1820
|
+
security: [{
|
|
1821
|
+
scheme: "bearer",
|
|
1822
|
+
type: "http"
|
|
1823
|
+
}],
|
|
1824
|
+
url: "/api/rate-limits",
|
|
1825
|
+
...options
|
|
1826
|
+
});
|
|
1827
|
+
}
|
|
1803
1828
|
};
|
|
1804
|
-
var
|
|
1829
|
+
var Agents = class extends HeyApiClient {
|
|
1805
1830
|
/**
|
|
1806
|
-
*
|
|
1807
|
-
* Downloads an attachment. Only a real image is served inline; anything
|
|
1808
|
-
* else, whatever type it claims, is a download that never runs.
|
|
1831
|
+
* Lists conversations -- traces sharing a `gen_ai.conversation.id` -- the most recently active first.
|
|
1809
1832
|
*/
|
|
1810
|
-
|
|
1833
|
+
conversations(options) {
|
|
1811
1834
|
return (options.client ?? this.client).get({
|
|
1812
1835
|
requestValidator: async (data) => await z.object({
|
|
1813
1836
|
body: z.never().optional(),
|
|
1814
|
-
path:
|
|
1815
|
-
query:
|
|
1837
|
+
path: zAgentsConversationsPath,
|
|
1838
|
+
query: zAgentsConversationsQuery.optional()
|
|
1816
1839
|
}).parseAsync(data),
|
|
1817
|
-
responseValidator: async (data) => await
|
|
1840
|
+
responseValidator: async (data) => await zAgentsConversationsResponse.parseAsync(data),
|
|
1818
1841
|
security: [{
|
|
1819
1842
|
scheme: "bearer",
|
|
1820
1843
|
type: "http"
|
|
1821
1844
|
}],
|
|
1822
|
-
url: "/api/projects/{project_id}/
|
|
1845
|
+
url: "/api/projects/{project_id}/agents/conversations",
|
|
1823
1846
|
...options
|
|
1824
1847
|
});
|
|
1825
1848
|
}
|
|
1826
1849
|
/**
|
|
1827
|
-
*
|
|
1850
|
+
* Returns every AI span of a conversation's turns, oldest first, with its input and output.
|
|
1828
1851
|
*/
|
|
1829
|
-
|
|
1852
|
+
conversation(options) {
|
|
1830
1853
|
return (options.client ?? this.client).get({
|
|
1831
1854
|
requestValidator: async (data) => await z.object({
|
|
1832
1855
|
body: z.never().optional(),
|
|
1833
|
-
path:
|
|
1856
|
+
path: zAgentsConversationPath,
|
|
1834
1857
|
query: z.never().optional()
|
|
1835
1858
|
}).parseAsync(data),
|
|
1836
|
-
responseValidator: async (data) => await
|
|
1859
|
+
responseValidator: async (data) => await zAgentsConversationResponse.parseAsync(data),
|
|
1837
1860
|
security: [{
|
|
1838
1861
|
scheme: "bearer",
|
|
1839
1862
|
type: "http"
|
|
1840
1863
|
}],
|
|
1841
|
-
url: "/api/projects/{project_id}/
|
|
1864
|
+
url: "/api/projects/{project_id}/agents/conversations/{conversation_id}",
|
|
1842
1865
|
...options
|
|
1843
1866
|
});
|
|
1844
1867
|
}
|
|
1845
1868
|
/**
|
|
1846
|
-
*
|
|
1847
|
-
* Lists events for an issue with cursor-based pagination
|
|
1869
|
+
* Time-bucketed avg/p95 duration for `agent`/`ai_client` spans.
|
|
1848
1870
|
*/
|
|
1849
|
-
|
|
1871
|
+
duration(options) {
|
|
1850
1872
|
return (options.client ?? this.client).get({
|
|
1851
1873
|
requestValidator: async (data) => await z.object({
|
|
1852
1874
|
body: z.never().optional(),
|
|
1853
|
-
path:
|
|
1854
|
-
query:
|
|
1875
|
+
path: zAgentsDurationPath,
|
|
1876
|
+
query: zAgentsDurationQuery.optional()
|
|
1855
1877
|
}).parseAsync(data),
|
|
1856
|
-
responseValidator: async (data) => await
|
|
1878
|
+
responseValidator: async (data) => await zAgentsDurationResponse.parseAsync(data),
|
|
1857
1879
|
security: [{
|
|
1858
1880
|
scheme: "bearer",
|
|
1859
1881
|
type: "http"
|
|
1860
1882
|
}],
|
|
1861
|
-
url: "/api/projects/{project_id}/
|
|
1883
|
+
url: "/api/projects/{project_id}/agents/duration",
|
|
1862
1884
|
...options
|
|
1863
1885
|
});
|
|
1864
1886
|
}
|
|
1865
1887
|
/**
|
|
1866
|
-
*
|
|
1867
|
-
*
|
|
1888
|
+
* The options the environment filter offers, read from the data rather than
|
|
1889
|
+
* hardcoded — an installation may name its environments anything.
|
|
1868
1890
|
*/
|
|
1869
|
-
|
|
1891
|
+
environments(options) {
|
|
1870
1892
|
return (options.client ?? this.client).get({
|
|
1871
1893
|
requestValidator: async (data) => await z.object({
|
|
1872
1894
|
body: z.never().optional(),
|
|
1873
|
-
path:
|
|
1895
|
+
path: zAgentsEnvironmentsPath,
|
|
1874
1896
|
query: z.never().optional()
|
|
1875
1897
|
}).parseAsync(data),
|
|
1876
|
-
responseValidator: async (data) => await
|
|
1898
|
+
responseValidator: async (data) => await zAgentsEnvironmentsResponse.parseAsync(data),
|
|
1877
1899
|
security: [{
|
|
1878
1900
|
scheme: "bearer",
|
|
1879
1901
|
type: "http"
|
|
1880
1902
|
}],
|
|
1881
|
-
url: "/api/projects/{project_id}/
|
|
1903
|
+
url: "/api/projects/{project_id}/agents/environments",
|
|
1904
|
+
...options
|
|
1905
|
+
});
|
|
1906
|
+
}
|
|
1907
|
+
/**
|
|
1908
|
+
* Lists the AI models a project's agents called, with requests, tokens and latency.
|
|
1909
|
+
*/
|
|
1910
|
+
modelsTable(options) {
|
|
1911
|
+
return (options.client ?? this.client).get({
|
|
1912
|
+
requestValidator: async (data) => await z.object({
|
|
1913
|
+
body: z.never().optional(),
|
|
1914
|
+
path: zAgentsModelsTablePath,
|
|
1915
|
+
query: zAgentsModelsTableQuery.optional()
|
|
1916
|
+
}).parseAsync(data),
|
|
1917
|
+
responseValidator: async (data) => await zAgentsModelsTableResponse.parseAsync(data),
|
|
1918
|
+
security: [{
|
|
1919
|
+
scheme: "bearer",
|
|
1920
|
+
type: "http"
|
|
1921
|
+
}],
|
|
1922
|
+
url: "/api/projects/{project_id}/agents/models",
|
|
1882
1923
|
...options
|
|
1883
1924
|
});
|
|
1884
1925
|
}
|
|
1885
1926
|
/**
|
|
1886
|
-
*
|
|
1887
|
-
* Lists the files sent with an event, such as a feedback's screenshot.
|
|
1927
|
+
* Top models by LLM call count (`gen_ai.operation.type:ai_client`).
|
|
1888
1928
|
*/
|
|
1889
|
-
|
|
1929
|
+
modelsCalls(options) {
|
|
1890
1930
|
return (options.client ?? this.client).get({
|
|
1891
1931
|
requestValidator: async (data) => await z.object({
|
|
1892
1932
|
body: z.never().optional(),
|
|
1893
|
-
path:
|
|
1894
|
-
query:
|
|
1933
|
+
path: zAgentsModelsCallsPath,
|
|
1934
|
+
query: zAgentsModelsCallsQuery.optional()
|
|
1895
1935
|
}).parseAsync(data),
|
|
1896
|
-
responseValidator: async (data) => await
|
|
1936
|
+
responseValidator: async (data) => await zAgentsModelsCallsResponse.parseAsync(data),
|
|
1897
1937
|
security: [{
|
|
1898
1938
|
scheme: "bearer",
|
|
1899
1939
|
type: "http"
|
|
1900
1940
|
}],
|
|
1901
|
-
url: "/api/projects/{project_id}/
|
|
1941
|
+
url: "/api/projects/{project_id}/agents/models/calls",
|
|
1902
1942
|
...options
|
|
1903
1943
|
});
|
|
1904
1944
|
}
|
|
1905
|
-
};
|
|
1906
|
-
var Environments = class extends HeyApiClient {
|
|
1907
1945
|
/**
|
|
1908
|
-
*
|
|
1909
|
-
* Lists the environments a project's issues have been seen in, by name.
|
|
1946
|
+
* Top models by total tokens used (`gen_ai.operation.type:ai_client`).
|
|
1910
1947
|
*/
|
|
1911
|
-
|
|
1948
|
+
modelsTokens(options) {
|
|
1912
1949
|
return (options.client ?? this.client).get({
|
|
1913
1950
|
requestValidator: async (data) => await z.object({
|
|
1914
1951
|
body: z.never().optional(),
|
|
1915
|
-
path:
|
|
1916
|
-
query:
|
|
1952
|
+
path: zAgentsModelsTokensPath,
|
|
1953
|
+
query: zAgentsModelsTokensQuery.optional()
|
|
1917
1954
|
}).parseAsync(data),
|
|
1918
|
-
responseValidator: async (data) => await
|
|
1955
|
+
responseValidator: async (data) => await zAgentsModelsTokensResponse.parseAsync(data),
|
|
1919
1956
|
security: [{
|
|
1920
1957
|
scheme: "bearer",
|
|
1921
1958
|
type: "http"
|
|
1922
1959
|
}],
|
|
1923
|
-
url: "/api/projects/{project_id}/
|
|
1960
|
+
url: "/api/projects/{project_id}/agents/models/tokens",
|
|
1924
1961
|
...options
|
|
1925
1962
|
});
|
|
1926
1963
|
}
|
|
1927
|
-
};
|
|
1928
|
-
var Stats = class extends HeyApiClient {
|
|
1929
1964
|
/**
|
|
1930
|
-
*
|
|
1965
|
+
* Time-bucketed count of agent-run spans (`gen_ai.operation.type:agent`).
|
|
1931
1966
|
*/
|
|
1932
|
-
|
|
1967
|
+
runs(options) {
|
|
1933
1968
|
return (options.client ?? this.client).get({
|
|
1934
1969
|
requestValidator: async (data) => await z.object({
|
|
1935
1970
|
body: z.never().optional(),
|
|
1936
|
-
path:
|
|
1937
|
-
query:
|
|
1971
|
+
path: zAgentsRunsPath,
|
|
1972
|
+
query: zAgentsRunsQuery.optional()
|
|
1938
1973
|
}).parseAsync(data),
|
|
1939
|
-
responseValidator: async (data) => await
|
|
1974
|
+
responseValidator: async (data) => await zAgentsRunsResponse.parseAsync(data),
|
|
1940
1975
|
security: [{
|
|
1941
1976
|
scheme: "bearer",
|
|
1942
1977
|
type: "http"
|
|
1943
1978
|
}],
|
|
1944
|
-
url: "/api/projects/{project_id}/
|
|
1979
|
+
url: "/api/projects/{project_id}/agents/runs",
|
|
1945
1980
|
...options
|
|
1946
1981
|
});
|
|
1947
1982
|
}
|
|
1948
1983
|
/**
|
|
1949
|
-
*
|
|
1984
|
+
* Agent runs, LLM calls, tool calls, errors, tokens and latency over the
|
|
1985
|
+
* selected window — the numbers the six charts cannot state outright.
|
|
1950
1986
|
*/
|
|
1951
|
-
|
|
1987
|
+
summary(options) {
|
|
1952
1988
|
return (options.client ?? this.client).get({
|
|
1953
1989
|
requestValidator: async (data) => await z.object({
|
|
1954
1990
|
body: z.never().optional(),
|
|
1955
|
-
path:
|
|
1956
|
-
query:
|
|
1991
|
+
path: zAgentsSummaryPath,
|
|
1992
|
+
query: zAgentsSummaryQuery.optional()
|
|
1957
1993
|
}).parseAsync(data),
|
|
1958
|
-
responseValidator: async (data) => await
|
|
1994
|
+
responseValidator: async (data) => await zAgentsSummaryResponse.parseAsync(data),
|
|
1959
1995
|
security: [{
|
|
1960
1996
|
scheme: "bearer",
|
|
1961
1997
|
type: "http"
|
|
1962
1998
|
}],
|
|
1963
|
-
url: "/api/projects/{project_id}/
|
|
1999
|
+
url: "/api/projects/{project_id}/agents/summary",
|
|
1964
2000
|
...options
|
|
1965
2001
|
});
|
|
1966
2002
|
}
|
|
1967
|
-
};
|
|
1968
|
-
var Feedback = class extends HeyApiClient {
|
|
1969
2003
|
/**
|
|
1970
|
-
*
|
|
1971
|
-
* Lists user feedback with what each user submitted. Every feedback is an
|
|
1972
|
-
* issue of category `feedback`; spam is a muted one.
|
|
2004
|
+
* Top tools by call count (`gen_ai.operation.type:tool`).
|
|
1973
2005
|
*/
|
|
1974
|
-
|
|
2006
|
+
tools(options) {
|
|
1975
2007
|
return (options.client ?? this.client).get({
|
|
1976
2008
|
requestValidator: async (data) => await z.object({
|
|
1977
2009
|
body: z.never().optional(),
|
|
1978
|
-
path:
|
|
1979
|
-
query:
|
|
2010
|
+
path: zAgentsToolsPath,
|
|
2011
|
+
query: zAgentsToolsQuery.optional()
|
|
1980
2012
|
}).parseAsync(data),
|
|
1981
|
-
responseValidator: async (data) => await
|
|
2013
|
+
responseValidator: async (data) => await zAgentsToolsResponse.parseAsync(data),
|
|
1982
2014
|
security: [{
|
|
1983
2015
|
scheme: "bearer",
|
|
1984
2016
|
type: "http"
|
|
1985
2017
|
}],
|
|
1986
|
-
url: "/api/projects/{project_id}/
|
|
2018
|
+
url: "/api/projects/{project_id}/agents/tools",
|
|
1987
2019
|
...options
|
|
1988
2020
|
});
|
|
1989
2021
|
}
|
|
1990
|
-
};
|
|
1991
|
-
var Issues = class extends HeyApiClient {
|
|
1992
2022
|
/**
|
|
1993
|
-
*
|
|
2023
|
+
* Lists the tools a project's agents called, with calls, errors and latency.
|
|
1994
2024
|
*/
|
|
1995
|
-
|
|
1996
|
-
return (options.client ?? this.client).
|
|
2025
|
+
toolsTable(options) {
|
|
2026
|
+
return (options.client ?? this.client).get({
|
|
1997
2027
|
requestValidator: async (data) => await z.object({
|
|
1998
|
-
body:
|
|
1999
|
-
path:
|
|
2000
|
-
query:
|
|
2028
|
+
body: z.never().optional(),
|
|
2029
|
+
path: zAgentsToolsTablePath,
|
|
2030
|
+
query: zAgentsToolsTableQuery.optional()
|
|
2001
2031
|
}).parseAsync(data),
|
|
2002
|
-
responseValidator: async (data) => await
|
|
2032
|
+
responseValidator: async (data) => await zAgentsToolsTableResponse.parseAsync(data),
|
|
2003
2033
|
security: [{
|
|
2004
2034
|
scheme: "bearer",
|
|
2005
2035
|
type: "http"
|
|
2006
2036
|
}],
|
|
2007
|
-
url: "/api/projects/{project_id}/
|
|
2008
|
-
...options
|
|
2009
|
-
headers: {
|
|
2010
|
-
"Content-Type": "application/json",
|
|
2011
|
-
...options.headers
|
|
2012
|
-
}
|
|
2037
|
+
url: "/api/projects/{project_id}/agents/tools/stats",
|
|
2038
|
+
...options
|
|
2013
2039
|
});
|
|
2014
2040
|
}
|
|
2015
2041
|
/**
|
|
2016
|
-
*
|
|
2017
|
-
*
|
|
2042
|
+
* Paginated per-trace_id aggregate (duration, tokens, tool usage) across
|
|
2043
|
+
* all AI spans sharing that trace, regardless of origin.
|
|
2018
2044
|
*/
|
|
2019
|
-
|
|
2045
|
+
traces(options) {
|
|
2020
2046
|
return (options.client ?? this.client).get({
|
|
2021
2047
|
requestValidator: async (data) => await z.object({
|
|
2022
2048
|
body: z.never().optional(),
|
|
2023
|
-
path:
|
|
2024
|
-
query:
|
|
2049
|
+
path: zAgentsTracesPath,
|
|
2050
|
+
query: zAgentsTracesQuery.optional()
|
|
2025
2051
|
}).parseAsync(data),
|
|
2026
|
-
responseValidator: async (data) => await
|
|
2052
|
+
responseValidator: async (data) => await zAgentsTracesResponse.parseAsync(data),
|
|
2027
2053
|
security: [{
|
|
2028
2054
|
scheme: "bearer",
|
|
2029
2055
|
type: "http"
|
|
2030
2056
|
}],
|
|
2031
|
-
url: "/api/projects/{project_id}/
|
|
2057
|
+
url: "/api/projects/{project_id}/agents/traces",
|
|
2032
2058
|
...options
|
|
2033
2059
|
});
|
|
2034
2060
|
}
|
|
2061
|
+
};
|
|
2062
|
+
var AlertRules = class extends HeyApiClient {
|
|
2035
2063
|
/**
|
|
2036
|
-
*
|
|
2064
|
+
* Lists the alerts a project sent, newest first.
|
|
2037
2065
|
*/
|
|
2038
|
-
|
|
2039
|
-
return (options.client ?? this.client).
|
|
2066
|
+
listHistory(options) {
|
|
2067
|
+
return (options.client ?? this.client).get({
|
|
2040
2068
|
requestValidator: async (data) => await z.object({
|
|
2041
|
-
body:
|
|
2042
|
-
path:
|
|
2043
|
-
query:
|
|
2069
|
+
body: z.never().optional(),
|
|
2070
|
+
path: zAlertRulesListHistoryPath,
|
|
2071
|
+
query: zAlertRulesListHistoryQuery.optional()
|
|
2044
2072
|
}).parseAsync(data),
|
|
2045
|
-
responseValidator: async (data) => await
|
|
2073
|
+
responseValidator: async (data) => await zAlertRulesListHistoryResponse.parseAsync(data),
|
|
2046
2074
|
security: [{
|
|
2047
2075
|
scheme: "bearer",
|
|
2048
2076
|
type: "http"
|
|
2049
2077
|
}],
|
|
2050
|
-
url: "/api/projects/{project_id}/
|
|
2051
|
-
...options
|
|
2052
|
-
headers: {
|
|
2053
|
-
"Content-Type": "application/json",
|
|
2054
|
-
...options.headers
|
|
2055
|
-
}
|
|
2078
|
+
url: "/api/projects/{project_id}/alert-history",
|
|
2079
|
+
...options
|
|
2056
2080
|
});
|
|
2057
2081
|
}
|
|
2058
2082
|
/**
|
|
2059
|
-
*
|
|
2060
|
-
* Hard-deletes an issue and all associated events
|
|
2083
|
+
* Count a project's alert deliveries per day, by outcome.
|
|
2061
2084
|
*/
|
|
2062
|
-
|
|
2063
|
-
return (options.client ?? this.client).
|
|
2085
|
+
historyByDay(options) {
|
|
2086
|
+
return (options.client ?? this.client).get({
|
|
2064
2087
|
requestValidator: async (data) => await z.object({
|
|
2065
2088
|
body: z.never().optional(),
|
|
2066
|
-
path:
|
|
2067
|
-
query:
|
|
2089
|
+
path: zAlertRulesHistoryByDayPath,
|
|
2090
|
+
query: zAlertRulesHistoryByDayQuery.optional()
|
|
2068
2091
|
}).parseAsync(data),
|
|
2069
|
-
responseValidator: async (data) => await
|
|
2092
|
+
responseValidator: async (data) => await zAlertRulesHistoryByDayResponse.parseAsync(data),
|
|
2070
2093
|
security: [{
|
|
2071
2094
|
scheme: "bearer",
|
|
2072
2095
|
type: "http"
|
|
2073
2096
|
}],
|
|
2074
|
-
url: "/api/projects/{project_id}/
|
|
2097
|
+
url: "/api/projects/{project_id}/alert-history/daily",
|
|
2075
2098
|
...options
|
|
2076
2099
|
});
|
|
2077
2100
|
}
|
|
2078
2101
|
/**
|
|
2079
|
-
*
|
|
2080
|
-
* Gets a single issue by ID
|
|
2102
|
+
* Lists a project's alert rules.
|
|
2081
2103
|
*/
|
|
2082
|
-
|
|
2104
|
+
list(options) {
|
|
2083
2105
|
return (options.client ?? this.client).get({
|
|
2084
2106
|
requestValidator: async (data) => await z.object({
|
|
2085
2107
|
body: z.never().optional(),
|
|
2086
|
-
path:
|
|
2108
|
+
path: zAlertRulesListPath,
|
|
2087
2109
|
query: z.never().optional()
|
|
2088
2110
|
}).parseAsync(data),
|
|
2089
|
-
responseValidator: async (data) => await
|
|
2111
|
+
responseValidator: async (data) => await zAlertRulesListResponse.parseAsync(data),
|
|
2090
2112
|
security: [{
|
|
2091
2113
|
scheme: "bearer",
|
|
2092
2114
|
type: "http"
|
|
2093
2115
|
}],
|
|
2094
|
-
url: "/api/projects/{project_id}/
|
|
2116
|
+
url: "/api/projects/{project_id}/alert-rules",
|
|
2095
2117
|
...options
|
|
2096
2118
|
});
|
|
2097
2119
|
}
|
|
2098
2120
|
/**
|
|
2099
|
-
*
|
|
2100
|
-
* Updates issue state (resolve, mute, etc.)
|
|
2121
|
+
* Creates an alert rule in a project.
|
|
2101
2122
|
*/
|
|
2102
|
-
|
|
2103
|
-
return (options.client ?? this.client).
|
|
2123
|
+
create(options) {
|
|
2124
|
+
return (options.client ?? this.client).post({
|
|
2104
2125
|
requestValidator: async (data) => await z.object({
|
|
2105
|
-
body:
|
|
2106
|
-
path:
|
|
2126
|
+
body: zAlertRulesCreateBody,
|
|
2127
|
+
path: zAlertRulesCreatePath,
|
|
2107
2128
|
query: z.never().optional()
|
|
2108
2129
|
}).parseAsync(data),
|
|
2109
|
-
responseValidator: async (data) => await
|
|
2130
|
+
responseValidator: async (data) => await zAlertRulesCreateResponse.parseAsync(data),
|
|
2110
2131
|
security: [{
|
|
2111
2132
|
scheme: "bearer",
|
|
2112
2133
|
type: "http"
|
|
2113
2134
|
}],
|
|
2114
|
-
url: "/api/projects/{project_id}/
|
|
2135
|
+
url: "/api/projects/{project_id}/alert-rules",
|
|
2115
2136
|
...options,
|
|
2116
2137
|
headers: {
|
|
2117
2138
|
"Content-Type": "application/json",
|
|
@@ -2120,60 +2141,59 @@ var Issues = class extends HeyApiClient {
|
|
|
2120
2141
|
});
|
|
2121
2142
|
}
|
|
2122
2143
|
/**
|
|
2123
|
-
*
|
|
2144
|
+
* Deletes an alert rule.
|
|
2124
2145
|
*/
|
|
2125
|
-
|
|
2126
|
-
return (options.client ?? this.client).
|
|
2146
|
+
delete(options) {
|
|
2147
|
+
return (options.client ?? this.client).delete({
|
|
2127
2148
|
requestValidator: async (data) => await z.object({
|
|
2128
2149
|
body: z.never().optional(),
|
|
2129
|
-
path:
|
|
2150
|
+
path: zAlertRulesDeletePath,
|
|
2130
2151
|
query: z.never().optional()
|
|
2131
2152
|
}).parseAsync(data),
|
|
2132
|
-
responseValidator: async (data) => await
|
|
2153
|
+
responseValidator: async (data) => await zAlertRulesDeleteResponse.parseAsync(data),
|
|
2133
2154
|
security: [{
|
|
2134
2155
|
scheme: "bearer",
|
|
2135
2156
|
type: "http"
|
|
2136
2157
|
}],
|
|
2137
|
-
url: "/api/projects/{project_id}/
|
|
2158
|
+
url: "/api/projects/{project_id}/alert-rules/{rule_id}",
|
|
2138
2159
|
...options
|
|
2139
2160
|
});
|
|
2140
2161
|
}
|
|
2141
2162
|
/**
|
|
2142
|
-
*
|
|
2143
|
-
* Returns the unique user count and top tags for the issue.
|
|
2163
|
+
* Gets one alert rule.
|
|
2144
2164
|
*/
|
|
2145
|
-
|
|
2165
|
+
get(options) {
|
|
2146
2166
|
return (options.client ?? this.client).get({
|
|
2147
2167
|
requestValidator: async (data) => await z.object({
|
|
2148
2168
|
body: z.never().optional(),
|
|
2149
|
-
path:
|
|
2169
|
+
path: zAlertRulesGetPath,
|
|
2150
2170
|
query: z.never().optional()
|
|
2151
2171
|
}).parseAsync(data),
|
|
2152
|
-
responseValidator: async (data) => await
|
|
2172
|
+
responseValidator: async (data) => await zAlertRulesGetResponse.parseAsync(data),
|
|
2153
2173
|
security: [{
|
|
2154
2174
|
scheme: "bearer",
|
|
2155
2175
|
type: "http"
|
|
2156
2176
|
}],
|
|
2157
|
-
url: "/api/projects/{project_id}/
|
|
2177
|
+
url: "/api/projects/{project_id}/alert-rules/{rule_id}",
|
|
2158
2178
|
...options
|
|
2159
2179
|
});
|
|
2160
2180
|
}
|
|
2161
2181
|
/**
|
|
2162
|
-
*
|
|
2182
|
+
* Updates an alert rule.
|
|
2163
2183
|
*/
|
|
2164
|
-
|
|
2165
|
-
return (options.client ?? this.client).
|
|
2184
|
+
update(options) {
|
|
2185
|
+
return (options.client ?? this.client).patch({
|
|
2166
2186
|
requestValidator: async (data) => await z.object({
|
|
2167
|
-
body:
|
|
2168
|
-
path:
|
|
2187
|
+
body: zAlertRulesUpdateBody,
|
|
2188
|
+
path: zAlertRulesUpdatePath,
|
|
2169
2189
|
query: z.never().optional()
|
|
2170
2190
|
}).parseAsync(data),
|
|
2171
|
-
responseValidator: async (data) => await
|
|
2191
|
+
responseValidator: async (data) => await zAlertRulesUpdateResponse.parseAsync(data),
|
|
2172
2192
|
security: [{
|
|
2173
2193
|
scheme: "bearer",
|
|
2174
2194
|
type: "http"
|
|
2175
2195
|
}],
|
|
2176
|
-
url: "/api/projects/{project_id}/
|
|
2196
|
+
url: "/api/projects/{project_id}/alert-rules/{rule_id}",
|
|
2177
2197
|
...options,
|
|
2178
2198
|
headers: {
|
|
2179
2199
|
"Content-Type": "application/json",
|
|
@@ -2181,176 +2201,168 @@ var Issues = class extends HeyApiClient {
|
|
|
2181
2201
|
}
|
|
2182
2202
|
});
|
|
2183
2203
|
}
|
|
2204
|
+
};
|
|
2205
|
+
var Events = class extends HeyApiClient {
|
|
2184
2206
|
/**
|
|
2185
|
-
*
|
|
2207
|
+
* Downloads an attachment. Only a real image is served inline; anything
|
|
2208
|
+
* else, whatever type it claims, is a download that never runs.
|
|
2186
2209
|
*/
|
|
2187
|
-
|
|
2188
|
-
return (options.client ?? this.client).
|
|
2210
|
+
downloadAttachment(options) {
|
|
2211
|
+
return (options.client ?? this.client).get({
|
|
2189
2212
|
requestValidator: async (data) => await z.object({
|
|
2190
|
-
body:
|
|
2191
|
-
path:
|
|
2213
|
+
body: z.never().optional(),
|
|
2214
|
+
path: zEventsDownloadAttachmentPath,
|
|
2192
2215
|
query: z.never().optional()
|
|
2193
2216
|
}).parseAsync(data),
|
|
2194
|
-
responseValidator: async (data) => await
|
|
2217
|
+
responseValidator: async (data) => await zEventsDownloadAttachmentResponse.parseAsync(data),
|
|
2195
2218
|
security: [{
|
|
2196
2219
|
scheme: "bearer",
|
|
2197
2220
|
type: "http"
|
|
2198
2221
|
}],
|
|
2199
|
-
url: "/api/projects/{project_id}/
|
|
2200
|
-
...options
|
|
2201
|
-
headers: {
|
|
2202
|
-
"Content-Type": "application/json",
|
|
2203
|
-
...options.headers
|
|
2204
|
-
}
|
|
2222
|
+
url: "/api/projects/{project_id}/attachments/{attachment_id}",
|
|
2223
|
+
...options
|
|
2205
2224
|
});
|
|
2206
2225
|
}
|
|
2207
2226
|
/**
|
|
2208
|
-
*
|
|
2209
|
-
* Lists the grouping hashes that map to an issue.
|
|
2227
|
+
* Resolve the ID returned by a Sentry SDK without already knowing the issue.
|
|
2210
2228
|
*/
|
|
2211
|
-
|
|
2229
|
+
getBySentryId(options) {
|
|
2212
2230
|
return (options.client ?? this.client).get({
|
|
2213
2231
|
requestValidator: async (data) => await z.object({
|
|
2214
2232
|
body: z.never().optional(),
|
|
2215
|
-
path:
|
|
2233
|
+
path: zEventsGetBySentryIdPath,
|
|
2216
2234
|
query: z.never().optional()
|
|
2217
2235
|
}).parseAsync(data),
|
|
2218
|
-
responseValidator: async (data) => await
|
|
2236
|
+
responseValidator: async (data) => await zEventsGetBySentryIdResponse.parseAsync(data),
|
|
2219
2237
|
security: [{
|
|
2220
2238
|
scheme: "bearer",
|
|
2221
2239
|
type: "http"
|
|
2222
2240
|
}],
|
|
2223
|
-
url: "/api/projects/{project_id}/
|
|
2241
|
+
url: "/api/projects/{project_id}/events/sentry/{event_id}",
|
|
2224
2242
|
...options
|
|
2225
2243
|
});
|
|
2226
2244
|
}
|
|
2227
2245
|
/**
|
|
2228
|
-
*
|
|
2246
|
+
* Lists events for an issue with cursor-based pagination
|
|
2229
2247
|
*/
|
|
2230
|
-
|
|
2231
|
-
return (options.client ?? this.client).
|
|
2248
|
+
list(options) {
|
|
2249
|
+
return (options.client ?? this.client).get({
|
|
2232
2250
|
requestValidator: async (data) => await z.object({
|
|
2233
2251
|
body: z.never().optional(),
|
|
2234
|
-
path:
|
|
2235
|
-
query:
|
|
2252
|
+
path: zEventsListPath,
|
|
2253
|
+
query: zEventsListQuery.optional()
|
|
2236
2254
|
}).parseAsync(data),
|
|
2237
|
-
responseValidator: async (data) => await
|
|
2255
|
+
responseValidator: async (data) => await zEventsListResponse.parseAsync(data),
|
|
2238
2256
|
security: [{
|
|
2239
2257
|
scheme: "bearer",
|
|
2240
2258
|
type: "http"
|
|
2241
2259
|
}],
|
|
2242
|
-
url: "/api/projects/{project_id}/issues/{issue_id}/
|
|
2260
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/events",
|
|
2243
2261
|
...options
|
|
2244
2262
|
});
|
|
2245
2263
|
}
|
|
2246
2264
|
/**
|
|
2247
|
-
*
|
|
2265
|
+
* Gets a single event with full data
|
|
2248
2266
|
*/
|
|
2249
|
-
|
|
2267
|
+
get(options) {
|
|
2250
2268
|
return (options.client ?? this.client).get({
|
|
2251
2269
|
requestValidator: async (data) => await z.object({
|
|
2252
2270
|
body: z.never().optional(),
|
|
2253
|
-
path:
|
|
2254
|
-
query:
|
|
2271
|
+
path: zEventsGetPath,
|
|
2272
|
+
query: z.never().optional()
|
|
2255
2273
|
}).parseAsync(data),
|
|
2256
|
-
responseValidator: async (data) => await
|
|
2274
|
+
responseValidator: async (data) => await zEventsGetResponse.parseAsync(data),
|
|
2257
2275
|
security: [{
|
|
2258
2276
|
scheme: "bearer",
|
|
2259
2277
|
type: "http"
|
|
2260
2278
|
}],
|
|
2261
|
-
url: "/api/projects/{project_id}/issues/{issue_id}/
|
|
2279
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/events/{event_id}",
|
|
2262
2280
|
...options
|
|
2263
2281
|
});
|
|
2264
2282
|
}
|
|
2265
2283
|
/**
|
|
2266
|
-
*
|
|
2284
|
+
* Lists the files sent with an event, such as a feedback's screenshot.
|
|
2267
2285
|
*/
|
|
2268
|
-
|
|
2269
|
-
return (options.client ?? this.client).
|
|
2286
|
+
listAttachments(options) {
|
|
2287
|
+
return (options.client ?? this.client).get({
|
|
2270
2288
|
requestValidator: async (data) => await z.object({
|
|
2271
|
-
body:
|
|
2272
|
-
path:
|
|
2289
|
+
body: z.never().optional(),
|
|
2290
|
+
path: zEventsListAttachmentsPath,
|
|
2273
2291
|
query: z.never().optional()
|
|
2274
2292
|
}).parseAsync(data),
|
|
2275
|
-
responseValidator: async (data) => await
|
|
2293
|
+
responseValidator: async (data) => await zEventsListAttachmentsResponse.parseAsync(data),
|
|
2276
2294
|
security: [{
|
|
2277
2295
|
scheme: "bearer",
|
|
2278
2296
|
type: "http"
|
|
2279
2297
|
}],
|
|
2280
|
-
url: "/api/projects/{project_id}/issues/{issue_id}/
|
|
2281
|
-
...options
|
|
2282
|
-
headers: {
|
|
2283
|
-
"Content-Type": "application/json",
|
|
2284
|
-
...options.headers
|
|
2285
|
-
}
|
|
2298
|
+
url: "/api/projects/{project_id}/issues/{issue_id}/events/{event_id}/attachments",
|
|
2299
|
+
...options
|
|
2286
2300
|
});
|
|
2287
2301
|
}
|
|
2302
|
+
};
|
|
2303
|
+
var Environments = class extends HeyApiClient {
|
|
2288
2304
|
/**
|
|
2289
|
-
*
|
|
2290
|
-
* Lists the distinct values (with counts) for a tag key across the issue.
|
|
2305
|
+
* Lists the environments a project's issues have been seen in, by name.
|
|
2291
2306
|
*/
|
|
2292
|
-
|
|
2307
|
+
list(options) {
|
|
2293
2308
|
return (options.client ?? this.client).get({
|
|
2294
2309
|
requestValidator: async (data) => await z.object({
|
|
2295
2310
|
body: z.never().optional(),
|
|
2296
|
-
path:
|
|
2311
|
+
path: zEnvironmentsListPath,
|
|
2297
2312
|
query: z.never().optional()
|
|
2298
2313
|
}).parseAsync(data),
|
|
2299
|
-
responseValidator: async (data) => await
|
|
2314
|
+
responseValidator: async (data) => await zEnvironmentsListResponse.parseAsync(data),
|
|
2300
2315
|
security: [{
|
|
2301
2316
|
scheme: "bearer",
|
|
2302
2317
|
type: "http"
|
|
2303
2318
|
}],
|
|
2304
|
-
url: "/api/projects/{project_id}/
|
|
2319
|
+
url: "/api/projects/{project_id}/environments",
|
|
2305
2320
|
...options
|
|
2306
2321
|
});
|
|
2307
2322
|
}
|
|
2323
|
+
};
|
|
2324
|
+
var Stats = class extends HeyApiClient {
|
|
2308
2325
|
/**
|
|
2309
|
-
*
|
|
2326
|
+
* Counts a project's events over time, bucketed for a chart.
|
|
2310
2327
|
*/
|
|
2311
|
-
|
|
2328
|
+
getEventTimeseries(options) {
|
|
2312
2329
|
return (options.client ?? this.client).get({
|
|
2313
2330
|
requestValidator: async (data) => await z.object({
|
|
2314
2331
|
body: z.never().optional(),
|
|
2315
|
-
path:
|
|
2316
|
-
query:
|
|
2332
|
+
path: zStatsGetEventTimeseriesPath,
|
|
2333
|
+
query: zStatsGetEventTimeseriesQuery.optional()
|
|
2317
2334
|
}).parseAsync(data),
|
|
2318
|
-
responseValidator: async (data) => await
|
|
2335
|
+
responseValidator: async (data) => await zStatsGetEventTimeseriesResponse.parseAsync(data),
|
|
2319
2336
|
security: [{
|
|
2320
2337
|
scheme: "bearer",
|
|
2321
2338
|
type: "http"
|
|
2322
2339
|
}],
|
|
2323
|
-
url: "/api/projects/{project_id}/
|
|
2340
|
+
url: "/api/projects/{project_id}/events/stats",
|
|
2324
2341
|
...options
|
|
2325
2342
|
});
|
|
2326
2343
|
}
|
|
2327
2344
|
/**
|
|
2328
|
-
*
|
|
2345
|
+
* Headline figures for a project's overview: events, new and open issues.
|
|
2329
2346
|
*/
|
|
2330
|
-
|
|
2331
|
-
return (options.client ?? this.client).
|
|
2347
|
+
getSummary(options) {
|
|
2348
|
+
return (options.client ?? this.client).get({
|
|
2332
2349
|
requestValidator: async (data) => await z.object({
|
|
2333
|
-
body:
|
|
2334
|
-
path:
|
|
2335
|
-
query:
|
|
2350
|
+
body: z.never().optional(),
|
|
2351
|
+
path: zStatsGetSummaryPath,
|
|
2352
|
+
query: zStatsGetSummaryQuery.optional()
|
|
2336
2353
|
}).parseAsync(data),
|
|
2337
|
-
responseValidator: async (data) => await
|
|
2354
|
+
responseValidator: async (data) => await zStatsGetSummaryResponse.parseAsync(data),
|
|
2338
2355
|
security: [{
|
|
2339
2356
|
scheme: "bearer",
|
|
2340
2357
|
type: "http"
|
|
2341
2358
|
}],
|
|
2342
|
-
url: "/api/projects/{project_id}/
|
|
2343
|
-
...options
|
|
2344
|
-
headers: {
|
|
2345
|
-
"Content-Type": "application/json",
|
|
2346
|
-
...options.headers
|
|
2347
|
-
}
|
|
2359
|
+
url: "/api/projects/{project_id}/stats/summary",
|
|
2360
|
+
...options
|
|
2348
2361
|
});
|
|
2349
2362
|
}
|
|
2350
2363
|
};
|
|
2351
2364
|
var Logs = class extends HeyApiClient {
|
|
2352
2365
|
/**
|
|
2353
|
-
* GET /api/projects/{project_id}/logs
|
|
2354
2366
|
* Lists logs for a project with offset-based pagination (newest first by
|
|
2355
2367
|
* log timestamp), optionally filtered by level, trace id, message and window.
|
|
2356
2368
|
*/
|
|
@@ -2371,7 +2383,6 @@ var Logs = class extends HeyApiClient {
|
|
|
2371
2383
|
});
|
|
2372
2384
|
}
|
|
2373
2385
|
/**
|
|
2374
|
-
* GET /api/projects/{project_id}/logs/volume
|
|
2375
2386
|
* Counts a project's logs per level over time, with the list's filters.
|
|
2376
2387
|
*/
|
|
2377
2388
|
volume(options) {
|
|
@@ -2391,7 +2402,6 @@ var Logs = class extends HeyApiClient {
|
|
|
2391
2402
|
});
|
|
2392
2403
|
}
|
|
2393
2404
|
/**
|
|
2394
|
-
* GET /api/projects/{project_id}/logs/{log_id}
|
|
2395
2405
|
* Returns one of a project's logs, wherever it falls in the list.
|
|
2396
2406
|
*/
|
|
2397
2407
|
get(options) {
|
|
@@ -2495,7 +2505,6 @@ var Members = class extends HeyApiClient {
|
|
|
2495
2505
|
};
|
|
2496
2506
|
var Monitors = class extends HeyApiClient {
|
|
2497
2507
|
/**
|
|
2498
|
-
* GET /api/projects/{project_id}/monitor-stats
|
|
2499
2508
|
* Counts the check-ins of a project's monitors by status over a window, bucket by bucket.
|
|
2500
2509
|
*/
|
|
2501
2510
|
stats(options) {
|
|
@@ -2515,7 +2524,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2515
2524
|
});
|
|
2516
2525
|
}
|
|
2517
2526
|
/**
|
|
2518
|
-
*
|
|
2527
|
+
* Lists a project's cron monitors.
|
|
2519
2528
|
*/
|
|
2520
2529
|
list(options) {
|
|
2521
2530
|
return (options.client ?? this.client).get({
|
|
@@ -2534,7 +2543,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2534
2543
|
});
|
|
2535
2544
|
}
|
|
2536
2545
|
/**
|
|
2537
|
-
*
|
|
2546
|
+
* Creates a cron monitor in a project.
|
|
2538
2547
|
*/
|
|
2539
2548
|
create(options) {
|
|
2540
2549
|
return (options.client ?? this.client).post({
|
|
@@ -2557,7 +2566,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2557
2566
|
});
|
|
2558
2567
|
}
|
|
2559
2568
|
/**
|
|
2560
|
-
*
|
|
2569
|
+
* Deletes a cron monitor and its check-ins.
|
|
2561
2570
|
*/
|
|
2562
2571
|
delete(options) {
|
|
2563
2572
|
return (options.client ?? this.client).delete({
|
|
@@ -2576,7 +2585,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2576
2585
|
});
|
|
2577
2586
|
}
|
|
2578
2587
|
/**
|
|
2579
|
-
*
|
|
2588
|
+
* Gets one cron monitor.
|
|
2580
2589
|
*/
|
|
2581
2590
|
get(options) {
|
|
2582
2591
|
return (options.client ?? this.client).get({
|
|
@@ -2595,7 +2604,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2595
2604
|
});
|
|
2596
2605
|
}
|
|
2597
2606
|
/**
|
|
2598
|
-
*
|
|
2607
|
+
* Updates a cron monitor.
|
|
2599
2608
|
*/
|
|
2600
2609
|
update(options) {
|
|
2601
2610
|
return (options.client ?? this.client).put({
|
|
@@ -2618,7 +2627,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2618
2627
|
});
|
|
2619
2628
|
}
|
|
2620
2629
|
/**
|
|
2621
|
-
*
|
|
2630
|
+
* Lists a cron monitor's check-ins, newest first.
|
|
2622
2631
|
*/
|
|
2623
2632
|
listCheckins(options) {
|
|
2624
2633
|
return (options.client ?? this.client).get({
|
|
@@ -2639,7 +2648,7 @@ var Monitors = class extends HeyApiClient {
|
|
|
2639
2648
|
};
|
|
2640
2649
|
var Sessions = class extends HeyApiClient {
|
|
2641
2650
|
/**
|
|
2642
|
-
*
|
|
2651
|
+
* Session counts by release, for release health.
|
|
2643
2652
|
*/
|
|
2644
2653
|
getStats(options) {
|
|
2645
2654
|
return (options.client ?? this.client).get({
|
|
@@ -2658,7 +2667,7 @@ var Sessions = class extends HeyApiClient {
|
|
|
2658
2667
|
});
|
|
2659
2668
|
}
|
|
2660
2669
|
/**
|
|
2661
|
-
*
|
|
2670
|
+
* Totals and crash-free rates for a project's sessions.
|
|
2662
2671
|
*/
|
|
2663
2672
|
getSummary(options) {
|
|
2664
2673
|
return (options.client ?? this.client).get({
|
|
@@ -2677,7 +2686,7 @@ var Sessions = class extends HeyApiClient {
|
|
|
2677
2686
|
});
|
|
2678
2687
|
}
|
|
2679
2688
|
/**
|
|
2680
|
-
*
|
|
2689
|
+
* Session counts over time, bucketed for a chart.
|
|
2681
2690
|
*/
|
|
2682
2691
|
getTimeseries(options) {
|
|
2683
2692
|
return (options.client ?? this.client).get({
|
|
@@ -2698,7 +2707,6 @@ var Sessions = class extends HeyApiClient {
|
|
|
2698
2707
|
};
|
|
2699
2708
|
var Spans = class extends HeyApiClient {
|
|
2700
2709
|
/**
|
|
2701
|
-
* GET /api/projects/{project_id}/spans
|
|
2702
2710
|
* Lists spans for a project with offset-based pagination (newest by
|
|
2703
2711
|
* start_timestamp first), optionally filtered by op/status/trace_id.
|
|
2704
2712
|
* Returns spans regardless of origin — standalone or extracted from a
|
|
@@ -2721,7 +2729,6 @@ var Spans = class extends HeyApiClient {
|
|
|
2721
2729
|
});
|
|
2722
2730
|
}
|
|
2723
2731
|
/**
|
|
2724
|
-
* GET /api/projects/{project_id}/spans/{span_id}
|
|
2725
2732
|
* Returns one span together with its attributes and tags — the `gen_ai.*`
|
|
2726
2733
|
* payload (prompts, responses, tool arguments and results) that the list
|
|
2727
2734
|
* response deliberately omits, since `spans.data` is untrimmed and a whole
|
|
@@ -2746,7 +2753,6 @@ var Spans = class extends HeyApiClient {
|
|
|
2746
2753
|
};
|
|
2747
2754
|
var Transactions = class extends HeyApiClient {
|
|
2748
2755
|
/**
|
|
2749
|
-
* GET /api/projects/{project_id}/transactions
|
|
2750
2756
|
* Lists transactions for a project with offset-based pagination (newest first).
|
|
2751
2757
|
*/
|
|
2752
2758
|
list(options) {
|
|
@@ -2766,7 +2772,6 @@ var Transactions = class extends HeyApiClient {
|
|
|
2766
2772
|
});
|
|
2767
2773
|
}
|
|
2768
2774
|
/**
|
|
2769
|
-
* GET /api/projects/{project_id}/transactions/stats
|
|
2770
2775
|
* Returns paginated aggregate performance stats (count, time spent, p50/p95/p99
|
|
2771
2776
|
* latency, failure rate) grouped by transaction name + op, the most time spent
|
|
2772
2777
|
* first unless `sort` asks otherwise.
|
|
@@ -2788,7 +2793,6 @@ var Transactions = class extends HeyApiClient {
|
|
|
2788
2793
|
});
|
|
2789
2794
|
}
|
|
2790
2795
|
/**
|
|
2791
|
-
* GET /api/projects/{project_id}/transactions/stats/group?name=&op=
|
|
2792
2796
|
* Returns the aggregate stats for a single transaction group — a direct lookup
|
|
2793
2797
|
* so the summary header works regardless of how many groups the project has.
|
|
2794
2798
|
*/
|
|
@@ -2831,7 +2835,6 @@ var Transactions = class extends HeyApiClient {
|
|
|
2831
2835
|
});
|
|
2832
2836
|
}
|
|
2833
2837
|
/**
|
|
2834
|
-
* GET /api/projects/{project_id}/transactions/{transaction_id}
|
|
2835
2838
|
* Returns a single transaction with its full Sentry payload (spans, contexts,
|
|
2836
2839
|
* measurements, tags) for the performance detail view.
|
|
2837
2840
|
*/
|
|
@@ -2852,7 +2855,6 @@ var Transactions = class extends HeyApiClient {
|
|
|
2852
2855
|
});
|
|
2853
2856
|
}
|
|
2854
2857
|
/**
|
|
2855
|
-
* GET /api/projects/{project_id}/transactions/{transaction_id}/spans
|
|
2856
2858
|
* Returns the indexed spans extracted from a transaction, ordered for the
|
|
2857
2859
|
* waterfall view (by start_timestamp ascending).
|
|
2858
2860
|
*/
|
|
@@ -2873,6 +2875,115 @@ var Transactions = class extends HeyApiClient {
|
|
|
2873
2875
|
});
|
|
2874
2876
|
}
|
|
2875
2877
|
};
|
|
2878
|
+
var SavedViews = class extends HeyApiClient {
|
|
2879
|
+
/**
|
|
2880
|
+
* Lists the views of one project page the caller sees: their own and the shared ones.
|
|
2881
|
+
*/
|
|
2882
|
+
list(options) {
|
|
2883
|
+
return (options.client ?? this.client).get({
|
|
2884
|
+
requestValidator: async (data) => await z.object({
|
|
2885
|
+
body: z.never().optional(),
|
|
2886
|
+
path: zSavedViewsListPath,
|
|
2887
|
+
query: zSavedViewsListQuery
|
|
2888
|
+
}).parseAsync(data),
|
|
2889
|
+
responseValidator: async (data) => await zSavedViewsListResponse.parseAsync(data),
|
|
2890
|
+
security: [{
|
|
2891
|
+
scheme: "bearer",
|
|
2892
|
+
type: "http"
|
|
2893
|
+
}],
|
|
2894
|
+
url: "/api/projects/{project_id}/views",
|
|
2895
|
+
...options
|
|
2896
|
+
});
|
|
2897
|
+
}
|
|
2898
|
+
/**
|
|
2899
|
+
* Saves a project page's address as a view, personal unless `visibility` is `project`.
|
|
2900
|
+
*/
|
|
2901
|
+
create(options) {
|
|
2902
|
+
return (options.client ?? this.client).post({
|
|
2903
|
+
requestValidator: async (data) => await z.object({
|
|
2904
|
+
body: zSavedViewsCreateBody,
|
|
2905
|
+
path: zSavedViewsCreatePath,
|
|
2906
|
+
query: z.never().optional()
|
|
2907
|
+
}).parseAsync(data),
|
|
2908
|
+
responseValidator: async (data) => await zSavedViewsCreateResponse.parseAsync(data),
|
|
2909
|
+
security: [{
|
|
2910
|
+
scheme: "bearer",
|
|
2911
|
+
type: "http"
|
|
2912
|
+
}],
|
|
2913
|
+
url: "/api/projects/{project_id}/views",
|
|
2914
|
+
...options,
|
|
2915
|
+
headers: {
|
|
2916
|
+
"Content-Type": "application/json",
|
|
2917
|
+
...options.headers
|
|
2918
|
+
}
|
|
2919
|
+
});
|
|
2920
|
+
}
|
|
2921
|
+
/**
|
|
2922
|
+
* Sets or clears the view a project page opens on, for the caller or the project.
|
|
2923
|
+
*/
|
|
2924
|
+
setDefault(options) {
|
|
2925
|
+
return (options.client ?? this.client).put({
|
|
2926
|
+
requestValidator: async (data) => await z.object({
|
|
2927
|
+
body: zSavedViewsSetDefaultBody,
|
|
2928
|
+
path: zSavedViewsSetDefaultPath,
|
|
2929
|
+
query: z.never().optional()
|
|
2930
|
+
}).parseAsync(data),
|
|
2931
|
+
responseValidator: async (data) => await zSavedViewsSetDefaultResponse.parseAsync(data),
|
|
2932
|
+
security: [{
|
|
2933
|
+
scheme: "bearer",
|
|
2934
|
+
type: "http"
|
|
2935
|
+
}],
|
|
2936
|
+
url: "/api/projects/{project_id}/views/default",
|
|
2937
|
+
...options,
|
|
2938
|
+
headers: {
|
|
2939
|
+
"Content-Type": "application/json",
|
|
2940
|
+
...options.headers
|
|
2941
|
+
}
|
|
2942
|
+
});
|
|
2943
|
+
}
|
|
2944
|
+
/**
|
|
2945
|
+
* Deletes a project view.
|
|
2946
|
+
*/
|
|
2947
|
+
delete(options) {
|
|
2948
|
+
return (options.client ?? this.client).delete({
|
|
2949
|
+
requestValidator: async (data) => await z.object({
|
|
2950
|
+
body: z.never().optional(),
|
|
2951
|
+
path: zSavedViewsDeletePath,
|
|
2952
|
+
query: z.never().optional()
|
|
2953
|
+
}).parseAsync(data),
|
|
2954
|
+
responseValidator: async (data) => await zSavedViewsDeleteResponse.parseAsync(data),
|
|
2955
|
+
security: [{
|
|
2956
|
+
scheme: "bearer",
|
|
2957
|
+
type: "http"
|
|
2958
|
+
}],
|
|
2959
|
+
url: "/api/projects/{project_id}/views/{view_id}",
|
|
2960
|
+
...options
|
|
2961
|
+
});
|
|
2962
|
+
}
|
|
2963
|
+
/**
|
|
2964
|
+
* Renames a project view, or changes its address or who sees it.
|
|
2965
|
+
*/
|
|
2966
|
+
update(options) {
|
|
2967
|
+
return (options.client ?? this.client).patch({
|
|
2968
|
+
requestValidator: async (data) => await z.object({
|
|
2969
|
+
body: zSavedViewsUpdateBody,
|
|
2970
|
+
path: zSavedViewsUpdatePath,
|
|
2971
|
+
query: z.never().optional()
|
|
2972
|
+
}).parseAsync(data),
|
|
2973
|
+
responseValidator: async (data) => await zSavedViewsUpdateResponse.parseAsync(data),
|
|
2974
|
+
security: [{
|
|
2975
|
+
scheme: "bearer",
|
|
2976
|
+
type: "http"
|
|
2977
|
+
}],
|
|
2978
|
+
url: "/api/projects/{project_id}/views/{view_id}",
|
|
2979
|
+
...options,
|
|
2980
|
+
headers: {
|
|
2981
|
+
"Content-Type": "application/json",
|
|
2982
|
+
...options.headers
|
|
2983
|
+
}
|
|
2984
|
+
});
|
|
2985
|
+
}
|
|
2986
|
+
};
|
|
2876
2987
|
var Roles = class extends HeyApiClient {
|
|
2877
2988
|
/**
|
|
2878
2989
|
* Lists every role with its permissions and how often it is assigned.
|
|
@@ -2964,8 +3075,6 @@ var Roles = class extends HeyApiClient {
|
|
|
2964
3075
|
};
|
|
2965
3076
|
var Schedules = class extends HeyApiClient {
|
|
2966
3077
|
/**
|
|
2967
|
-
* POST /api/schedules/preview
|
|
2968
|
-
*
|
|
2969
3078
|
* Validates a schedule and lists its next five runs from now, so no client
|
|
2970
3079
|
* ever parses a crontab itself.
|
|
2971
3080
|
*/
|
|
@@ -3037,7 +3146,7 @@ var Settings = class extends HeyApiClient {
|
|
|
3037
3146
|
};
|
|
3038
3147
|
var Storage = class extends HeyApiClient {
|
|
3039
3148
|
/**
|
|
3040
|
-
*
|
|
3149
|
+
* Rows per age bucket, per project and kind.
|
|
3041
3150
|
*/
|
|
3042
3151
|
getAge(options) {
|
|
3043
3152
|
return (options?.client ?? this.client).get({
|
|
@@ -3056,7 +3165,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3056
3165
|
});
|
|
3057
3166
|
}
|
|
3058
3167
|
/**
|
|
3059
|
-
*
|
|
3168
|
+
* Starts deleting old data and the issues it
|
|
3060
3169
|
* empties. Returns at once: the purge runs detached, in batches, and
|
|
3061
3170
|
* `GET /api/storage/cleanup/status` reports its progress.
|
|
3062
3171
|
*/
|
|
@@ -3081,7 +3190,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3081
3190
|
});
|
|
3082
3191
|
}
|
|
3083
3192
|
/**
|
|
3084
|
-
*
|
|
3193
|
+
* Dry-run count, mutates nothing.
|
|
3085
3194
|
*/
|
|
3086
3195
|
previewCleanup(options) {
|
|
3087
3196
|
return (options.client ?? this.client).post({
|
|
@@ -3104,7 +3213,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3104
3213
|
});
|
|
3105
3214
|
}
|
|
3106
3215
|
/**
|
|
3107
|
-
*
|
|
3216
|
+
* Progress of the running cleanup, or the
|
|
3108
3217
|
* outcome of the last one.
|
|
3109
3218
|
*/
|
|
3110
3219
|
getCleanupStatus(options) {
|
|
@@ -3124,7 +3233,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3124
3233
|
});
|
|
3125
3234
|
}
|
|
3126
3235
|
/**
|
|
3127
|
-
*
|
|
3236
|
+
* Whether the database file shrinks when data
|
|
3128
3237
|
* is deleted, and the disk a one-off compaction needs.
|
|
3129
3238
|
*/
|
|
3130
3239
|
getCompaction(options) {
|
|
@@ -3144,7 +3253,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3144
3253
|
});
|
|
3145
3254
|
}
|
|
3146
3255
|
/**
|
|
3147
|
-
*
|
|
3256
|
+
* Rewrites a SQLite file created before
|
|
3148
3257
|
* incremental mode, so it gives freed space back from then on. Writes wait
|
|
3149
3258
|
* while it runs; follow it with `GET /api/storage/cleanup/status`.
|
|
3150
3259
|
*/
|
|
@@ -3165,7 +3274,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3165
3274
|
});
|
|
3166
3275
|
}
|
|
3167
3276
|
/**
|
|
3168
|
-
*
|
|
3277
|
+
* Per-project counts and estimated weight.
|
|
3169
3278
|
*/
|
|
3170
3279
|
getProjects(options) {
|
|
3171
3280
|
return (options?.client ?? this.client).get({
|
|
@@ -3184,7 +3293,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3184
3293
|
});
|
|
3185
3294
|
}
|
|
3186
3295
|
/**
|
|
3187
|
-
*
|
|
3296
|
+
* Gets the retention settings and the cleanup schedule.
|
|
3188
3297
|
*/
|
|
3189
3298
|
getRetention(options) {
|
|
3190
3299
|
return (options?.client ?? this.client).get({
|
|
@@ -3203,7 +3312,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3203
3312
|
});
|
|
3204
3313
|
}
|
|
3205
3314
|
/**
|
|
3206
|
-
*
|
|
3315
|
+
* Updates the retention settings; the next cleanup is scheduled at once.
|
|
3207
3316
|
*/
|
|
3208
3317
|
updateRetention(options) {
|
|
3209
3318
|
return (options.client ?? this.client).put({
|
|
@@ -3226,7 +3335,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3226
3335
|
});
|
|
3227
3336
|
}
|
|
3228
3337
|
/**
|
|
3229
|
-
*
|
|
3338
|
+
* What saving these settings would
|
|
3230
3339
|
* delete on the next cleanup, without saving or deleting anything.
|
|
3231
3340
|
*/
|
|
3232
3341
|
previewRetention(options) {
|
|
@@ -3250,7 +3359,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3250
3359
|
});
|
|
3251
3360
|
}
|
|
3252
3361
|
/**
|
|
3253
|
-
*
|
|
3362
|
+
* Enforces the saved retention now,
|
|
3254
3363
|
* without waiting for the schedule. Follow it with the cleanup status.
|
|
3255
3364
|
*/
|
|
3256
3365
|
runRetention(options) {
|
|
@@ -3270,7 +3379,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3270
3379
|
});
|
|
3271
3380
|
}
|
|
3272
3381
|
/**
|
|
3273
|
-
*
|
|
3382
|
+
* Delete orphaned source maps (DB + disk).
|
|
3274
3383
|
*/
|
|
3275
3384
|
gcSourceMaps(options) {
|
|
3276
3385
|
return (options?.client ?? this.client).post({
|
|
@@ -3289,7 +3398,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3289
3398
|
});
|
|
3290
3399
|
}
|
|
3291
3400
|
/**
|
|
3292
|
-
*
|
|
3401
|
+
* Dry-run orphan count, deletes nothing.
|
|
3293
3402
|
*/
|
|
3294
3403
|
previewSourceMapGc(options) {
|
|
3295
3404
|
return (options?.client ?? this.client).post({
|
|
@@ -3308,7 +3417,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3308
3417
|
});
|
|
3309
3418
|
}
|
|
3310
3419
|
/**
|
|
3311
|
-
*
|
|
3420
|
+
* Row counts, DB size, and source-map weight.
|
|
3312
3421
|
*/
|
|
3313
3422
|
getSummary(options) {
|
|
3314
3423
|
return (options?.client ?? this.client).get({
|
|
@@ -3329,7 +3438,7 @@ var Storage = class extends HeyApiClient {
|
|
|
3329
3438
|
};
|
|
3330
3439
|
var Team = class extends HeyApiClient {
|
|
3331
3440
|
/**
|
|
3332
|
-
*
|
|
3441
|
+
* List all users (needs `users:read`)
|
|
3333
3442
|
*/
|
|
3334
3443
|
list(options) {
|
|
3335
3444
|
return (options?.client ?? this.client).get({
|
|
@@ -3348,7 +3457,7 @@ var Team = class extends HeyApiClient {
|
|
|
3348
3457
|
});
|
|
3349
3458
|
}
|
|
3350
3459
|
/**
|
|
3351
|
-
*
|
|
3460
|
+
* Remove a user from the instance (needs `users:delete`)
|
|
3352
3461
|
*/
|
|
3353
3462
|
deleteUser(options) {
|
|
3354
3463
|
return (options.client ?? this.client).delete({
|
|
@@ -3367,7 +3476,7 @@ var Team = class extends HeyApiClient {
|
|
|
3367
3476
|
});
|
|
3368
3477
|
}
|
|
3369
3478
|
/**
|
|
3370
|
-
*
|
|
3479
|
+
* Change a user's global role (needs `users:update`)
|
|
3371
3480
|
*/
|
|
3372
3481
|
updateRole(options) {
|
|
3373
3482
|
return (options.client ?? this.client).patch({
|
|
@@ -3392,7 +3501,7 @@ var Team = class extends HeyApiClient {
|
|
|
3392
3501
|
};
|
|
3393
3502
|
var Telemetry = class extends HeyApiClient {
|
|
3394
3503
|
/**
|
|
3395
|
-
*
|
|
3504
|
+
* Shows the exact anonymous telemetry report this instance would send.
|
|
3396
3505
|
*/
|
|
3397
3506
|
preview(options) {
|
|
3398
3507
|
return (options?.client ?? this.client).get({
|
|
@@ -3413,7 +3522,7 @@ var Telemetry = class extends HeyApiClient {
|
|
|
3413
3522
|
};
|
|
3414
3523
|
var Tokens = class extends HeyApiClient {
|
|
3415
3524
|
/**
|
|
3416
|
-
*
|
|
3525
|
+
* List tokens (masked)
|
|
3417
3526
|
*
|
|
3418
3527
|
* Everyone sees their own tokens; `api-tokens:read` sees every token. A token
|
|
3419
3528
|
* limited to other permissions sees none: it must not reach its owner's others.
|
|
@@ -3435,7 +3544,7 @@ var Tokens = class extends HeyApiClient {
|
|
|
3435
3544
|
});
|
|
3436
3545
|
}
|
|
3437
3546
|
/**
|
|
3438
|
-
*
|
|
3547
|
+
* Create a new token (from a signed-in session only)
|
|
3439
3548
|
*
|
|
3440
3549
|
* A token cannot create tokens: a limited or expiring one could otherwise
|
|
3441
3550
|
* mint itself a way out of its limits.
|
|
@@ -3461,7 +3570,7 @@ var Tokens = class extends HeyApiClient {
|
|
|
3461
3570
|
});
|
|
3462
3571
|
}
|
|
3463
3572
|
/**
|
|
3464
|
-
*
|
|
3573
|
+
* Revoke a token
|
|
3465
3574
|
*
|
|
3466
3575
|
* Everyone may revoke their own; `api-tokens:delete` revokes any.
|
|
3467
3576
|
*/
|
|
@@ -3482,7 +3591,7 @@ var Tokens = class extends HeyApiClient {
|
|
|
3482
3591
|
});
|
|
3483
3592
|
}
|
|
3484
3593
|
/**
|
|
3485
|
-
*
|
|
3594
|
+
* Token details, masked
|
|
3486
3595
|
*
|
|
3487
3596
|
* Tokens are stored hashed, so the full value is only ever shown on
|
|
3488
3597
|
* creation. Everyone may view their own; `api-tokens:read` views any.
|
|
@@ -3551,9 +3660,117 @@ var Users = class extends HeyApiClient {
|
|
|
3551
3660
|
});
|
|
3552
3661
|
}
|
|
3553
3662
|
};
|
|
3663
|
+
var WorkspaceViews = class extends HeyApiClient {
|
|
3664
|
+
/**
|
|
3665
|
+
* Lists the views of one workspace page (one that spans every project).
|
|
3666
|
+
*/
|
|
3667
|
+
list(options) {
|
|
3668
|
+
return (options.client ?? this.client).get({
|
|
3669
|
+
requestValidator: async (data) => await z.object({
|
|
3670
|
+
body: z.never().optional(),
|
|
3671
|
+
path: z.never().optional(),
|
|
3672
|
+
query: zWorkspaceViewsListQuery
|
|
3673
|
+
}).parseAsync(data),
|
|
3674
|
+
responseValidator: async (data) => await zWorkspaceViewsListResponse.parseAsync(data),
|
|
3675
|
+
security: [{
|
|
3676
|
+
scheme: "bearer",
|
|
3677
|
+
type: "http"
|
|
3678
|
+
}],
|
|
3679
|
+
url: "/api/views",
|
|
3680
|
+
...options
|
|
3681
|
+
});
|
|
3682
|
+
}
|
|
3683
|
+
/**
|
|
3684
|
+
* Saves a workspace page's address as a view, personal unless `visibility` is `project`.
|
|
3685
|
+
*/
|
|
3686
|
+
create(options) {
|
|
3687
|
+
return (options.client ?? this.client).post({
|
|
3688
|
+
requestValidator: async (data) => await z.object({
|
|
3689
|
+
body: zWorkspaceViewsCreateBody,
|
|
3690
|
+
path: z.never().optional(),
|
|
3691
|
+
query: z.never().optional()
|
|
3692
|
+
}).parseAsync(data),
|
|
3693
|
+
responseValidator: async (data) => await zWorkspaceViewsCreateResponse.parseAsync(data),
|
|
3694
|
+
security: [{
|
|
3695
|
+
scheme: "bearer",
|
|
3696
|
+
type: "http"
|
|
3697
|
+
}],
|
|
3698
|
+
url: "/api/views",
|
|
3699
|
+
...options,
|
|
3700
|
+
headers: {
|
|
3701
|
+
"Content-Type": "application/json",
|
|
3702
|
+
...options.headers
|
|
3703
|
+
}
|
|
3704
|
+
});
|
|
3705
|
+
}
|
|
3706
|
+
/**
|
|
3707
|
+
* Sets or clears the view a workspace page opens on, for the caller or everyone.
|
|
3708
|
+
*/
|
|
3709
|
+
setDefault(options) {
|
|
3710
|
+
return (options.client ?? this.client).put({
|
|
3711
|
+
requestValidator: async (data) => await z.object({
|
|
3712
|
+
body: zWorkspaceViewsSetDefaultBody,
|
|
3713
|
+
path: z.never().optional(),
|
|
3714
|
+
query: z.never().optional()
|
|
3715
|
+
}).parseAsync(data),
|
|
3716
|
+
responseValidator: async (data) => await zWorkspaceViewsSetDefaultResponse.parseAsync(data),
|
|
3717
|
+
security: [{
|
|
3718
|
+
scheme: "bearer",
|
|
3719
|
+
type: "http"
|
|
3720
|
+
}],
|
|
3721
|
+
url: "/api/views/default",
|
|
3722
|
+
...options,
|
|
3723
|
+
headers: {
|
|
3724
|
+
"Content-Type": "application/json",
|
|
3725
|
+
...options.headers
|
|
3726
|
+
}
|
|
3727
|
+
});
|
|
3728
|
+
}
|
|
3729
|
+
/**
|
|
3730
|
+
* Deletes a workspace view.
|
|
3731
|
+
*/
|
|
3732
|
+
delete(options) {
|
|
3733
|
+
return (options.client ?? this.client).delete({
|
|
3734
|
+
requestValidator: async (data) => await z.object({
|
|
3735
|
+
body: z.never().optional(),
|
|
3736
|
+
path: zWorkspaceViewsDeletePath,
|
|
3737
|
+
query: z.never().optional()
|
|
3738
|
+
}).parseAsync(data),
|
|
3739
|
+
responseValidator: async (data) => await zWorkspaceViewsDeleteResponse.parseAsync(data),
|
|
3740
|
+
security: [{
|
|
3741
|
+
scheme: "bearer",
|
|
3742
|
+
type: "http"
|
|
3743
|
+
}],
|
|
3744
|
+
url: "/api/views/{view_id}",
|
|
3745
|
+
...options
|
|
3746
|
+
});
|
|
3747
|
+
}
|
|
3748
|
+
/**
|
|
3749
|
+
* Renames a workspace view, or changes its address or who sees it.
|
|
3750
|
+
*/
|
|
3751
|
+
update(options) {
|
|
3752
|
+
return (options.client ?? this.client).patch({
|
|
3753
|
+
requestValidator: async (data) => await z.object({
|
|
3754
|
+
body: zWorkspaceViewsUpdateBody,
|
|
3755
|
+
path: zWorkspaceViewsUpdatePath,
|
|
3756
|
+
query: z.never().optional()
|
|
3757
|
+
}).parseAsync(data),
|
|
3758
|
+
responseValidator: async (data) => await zWorkspaceViewsUpdateResponse.parseAsync(data),
|
|
3759
|
+
security: [{
|
|
3760
|
+
scheme: "bearer",
|
|
3761
|
+
type: "http"
|
|
3762
|
+
}],
|
|
3763
|
+
url: "/api/views/{view_id}",
|
|
3764
|
+
...options,
|
|
3765
|
+
headers: {
|
|
3766
|
+
"Content-Type": "application/json",
|
|
3767
|
+
...options.headers
|
|
3768
|
+
}
|
|
3769
|
+
});
|
|
3770
|
+
}
|
|
3771
|
+
};
|
|
3554
3772
|
var Auth = class extends HeyApiClient {
|
|
3555
3773
|
/**
|
|
3556
|
-
* POST /auth/accept-invitation
|
|
3557
3774
|
* Accept a pending invitation: creates the user (with the invite's email + role) and logs in.
|
|
3558
3775
|
*/
|
|
3559
3776
|
acceptInvitation(options) {
|
|
@@ -3573,7 +3790,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3573
3790
|
});
|
|
3574
3791
|
}
|
|
3575
3792
|
/**
|
|
3576
|
-
* GET /auth/invitation/{token}
|
|
3577
3793
|
* Returns the invitation's details if it is still acceptable (for the accept page).
|
|
3578
3794
|
*/
|
|
3579
3795
|
getInvitation(options) {
|
|
@@ -3589,7 +3805,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3589
3805
|
});
|
|
3590
3806
|
}
|
|
3591
3807
|
/**
|
|
3592
|
-
* POST /auth/login
|
|
3593
3808
|
* Authenticate user and create session
|
|
3594
3809
|
*/
|
|
3595
3810
|
login(options) {
|
|
@@ -3609,7 +3824,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3609
3824
|
});
|
|
3610
3825
|
}
|
|
3611
3826
|
/**
|
|
3612
|
-
* POST /auth/logout
|
|
3613
3827
|
* Clear session
|
|
3614
3828
|
*/
|
|
3615
3829
|
logout(options) {
|
|
@@ -3622,7 +3836,7 @@ var Auth = class extends HeyApiClient {
|
|
|
3622
3836
|
responseValidator: async (data) => await zAuthLogoutResponse.parseAsync(data),
|
|
3623
3837
|
security: [{
|
|
3624
3838
|
in: "cookie",
|
|
3625
|
-
name: "
|
|
3839
|
+
name: "rustrak_session",
|
|
3626
3840
|
type: "apiKey"
|
|
3627
3841
|
}],
|
|
3628
3842
|
url: "/auth/logout",
|
|
@@ -3630,7 +3844,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3630
3844
|
});
|
|
3631
3845
|
}
|
|
3632
3846
|
/**
|
|
3633
|
-
* GET /auth/me
|
|
3634
3847
|
* Get current authenticated user
|
|
3635
3848
|
*/
|
|
3636
3849
|
getCurrentUser(options) {
|
|
@@ -3643,7 +3856,7 @@ var Auth = class extends HeyApiClient {
|
|
|
3643
3856
|
responseValidator: async (data) => await zAuthGetCurrentUserResponse.parseAsync(data),
|
|
3644
3857
|
security: [{
|
|
3645
3858
|
in: "cookie",
|
|
3646
|
-
name: "
|
|
3859
|
+
name: "rustrak_session",
|
|
3647
3860
|
type: "apiKey"
|
|
3648
3861
|
}],
|
|
3649
3862
|
url: "/auth/me",
|
|
@@ -3651,7 +3864,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3651
3864
|
});
|
|
3652
3865
|
}
|
|
3653
3866
|
/**
|
|
3654
|
-
* PATCH /auth/me
|
|
3655
3867
|
* Update the current user's presentation preferences
|
|
3656
3868
|
*/
|
|
3657
3869
|
updateCurrentUser(options) {
|
|
@@ -3664,7 +3876,7 @@ var Auth = class extends HeyApiClient {
|
|
|
3664
3876
|
responseValidator: async (data) => await zAuthUpdateCurrentUserResponse.parseAsync(data),
|
|
3665
3877
|
security: [{
|
|
3666
3878
|
in: "cookie",
|
|
3667
|
-
name: "
|
|
3879
|
+
name: "rustrak_session",
|
|
3668
3880
|
type: "apiKey"
|
|
3669
3881
|
}],
|
|
3670
3882
|
url: "/auth/me",
|
|
@@ -3676,8 +3888,8 @@ var Auth = class extends HeyApiClient {
|
|
|
3676
3888
|
});
|
|
3677
3889
|
}
|
|
3678
3890
|
/**
|
|
3679
|
-
*
|
|
3680
|
-
*
|
|
3891
|
+
* Change the current user's password. Every other session of the user ends;
|
|
3892
|
+
* this one continues under a new id.
|
|
3681
3893
|
*/
|
|
3682
3894
|
changePassword(options) {
|
|
3683
3895
|
return (options.client ?? this.client).post({
|
|
@@ -3689,7 +3901,7 @@ var Auth = class extends HeyApiClient {
|
|
|
3689
3901
|
responseValidator: async (data) => await zAuthChangePasswordResponse.parseAsync(data),
|
|
3690
3902
|
security: [{
|
|
3691
3903
|
in: "cookie",
|
|
3692
|
-
name: "
|
|
3904
|
+
name: "rustrak_session",
|
|
3693
3905
|
type: "apiKey"
|
|
3694
3906
|
}],
|
|
3695
3907
|
url: "/auth/me/password",
|
|
@@ -3701,26 +3913,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3701
3913
|
});
|
|
3702
3914
|
}
|
|
3703
3915
|
/**
|
|
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
3916
|
* Validate the provider response, resolve or provision the local account, and
|
|
3725
3917
|
* establish the normal Rustrak session.
|
|
3726
3918
|
*/
|
|
@@ -3737,7 +3929,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3737
3929
|
});
|
|
3738
3930
|
}
|
|
3739
3931
|
/**
|
|
3740
|
-
* GET /auth/sso/config
|
|
3741
3932
|
* Public, non-sensitive information used to render the login page.
|
|
3742
3933
|
*/
|
|
3743
3934
|
ssoConfig(options) {
|
|
@@ -3753,7 +3944,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3753
3944
|
});
|
|
3754
3945
|
}
|
|
3755
3946
|
/**
|
|
3756
|
-
* GET /auth/sso/link
|
|
3757
3947
|
* The account an SSO login matched, shown while its owner confirms.
|
|
3758
3948
|
*/
|
|
3759
3949
|
ssoLink(options) {
|
|
@@ -3769,7 +3959,6 @@ var Auth = class extends HeyApiClient {
|
|
|
3769
3959
|
});
|
|
3770
3960
|
}
|
|
3771
3961
|
/**
|
|
3772
|
-
* POST /auth/sso/link
|
|
3773
3962
|
* Link the pending SSO identity to its account once the account's password
|
|
3774
3963
|
* is given, and sign in. A wrong password keeps the link pending for a retry.
|
|
3775
3964
|
*/
|
|
@@ -3790,9 +3979,8 @@ var Auth = class extends HeyApiClient {
|
|
|
3790
3979
|
});
|
|
3791
3980
|
}
|
|
3792
3981
|
/**
|
|
3793
|
-
* POST /auth/sso/start
|
|
3794
3982
|
* Create a one-time OIDC authorization request and retain its protections in
|
|
3795
|
-
* the
|
|
3983
|
+
* the session.
|
|
3796
3984
|
*/
|
|
3797
3985
|
ssoStart(options) {
|
|
3798
3986
|
return (options?.client ?? this.client).post({
|
|
@@ -3862,7 +4050,7 @@ var Health = class extends HeyApiClient {
|
|
|
3862
4050
|
type: "http"
|
|
3863
4051
|
}, {
|
|
3864
4052
|
in: "cookie",
|
|
3865
|
-
name: "
|
|
4053
|
+
name: "rustrak_session",
|
|
3866
4054
|
type: "apiKey"
|
|
3867
4055
|
}],
|
|
3868
4056
|
url: "/health/version",
|
|
@@ -3896,6 +4084,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
3896
4084
|
get access() {
|
|
3897
4085
|
return this._access ??= new Access({ client: this.client });
|
|
3898
4086
|
}
|
|
4087
|
+
_feedback;
|
|
4088
|
+
get feedback() {
|
|
4089
|
+
return this._feedback ??= new Feedback({ client: this.client });
|
|
4090
|
+
}
|
|
3899
4091
|
_github;
|
|
3900
4092
|
get github() {
|
|
3901
4093
|
return this._github ??= new Github({ client: this.client });
|
|
@@ -3908,6 +4100,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
3908
4100
|
get invitations() {
|
|
3909
4101
|
return this._invitations ??= new Invitations({ client: this.client });
|
|
3910
4102
|
}
|
|
4103
|
+
_issues;
|
|
4104
|
+
get issues() {
|
|
4105
|
+
return this._issues ??= new Issues({ client: this.client });
|
|
4106
|
+
}
|
|
3911
4107
|
_oauth;
|
|
3912
4108
|
get oauth() {
|
|
3913
4109
|
return this._oauth ??= new Oauth({ client: this.client });
|
|
@@ -3936,14 +4132,6 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
3936
4132
|
get stats() {
|
|
3937
4133
|
return this._stats ??= new Stats({ client: this.client });
|
|
3938
4134
|
}
|
|
3939
|
-
_feedback;
|
|
3940
|
-
get feedback() {
|
|
3941
|
-
return this._feedback ??= new Feedback({ client: this.client });
|
|
3942
|
-
}
|
|
3943
|
-
_issues;
|
|
3944
|
-
get issues() {
|
|
3945
|
-
return this._issues ??= new Issues({ client: this.client });
|
|
3946
|
-
}
|
|
3947
4135
|
_logs;
|
|
3948
4136
|
get logs() {
|
|
3949
4137
|
return this._logs ??= new Logs({ client: this.client });
|
|
@@ -3968,6 +4156,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
3968
4156
|
get transactions() {
|
|
3969
4157
|
return this._transactions ??= new Transactions({ client: this.client });
|
|
3970
4158
|
}
|
|
4159
|
+
_savedViews;
|
|
4160
|
+
get savedViews() {
|
|
4161
|
+
return this._savedViews ??= new SavedViews({ client: this.client });
|
|
4162
|
+
}
|
|
3971
4163
|
_roles;
|
|
3972
4164
|
get roles() {
|
|
3973
4165
|
return this._roles ??= new Roles({ client: this.client });
|
|
@@ -4000,6 +4192,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
4000
4192
|
get users() {
|
|
4001
4193
|
return this._users ??= new Users({ client: this.client });
|
|
4002
4194
|
}
|
|
4195
|
+
_workspaceViews;
|
|
4196
|
+
get workspaceViews() {
|
|
4197
|
+
return this._workspaceViews ??= new WorkspaceViews({ client: this.client });
|
|
4198
|
+
}
|
|
4003
4199
|
_auth;
|
|
4004
4200
|
get auth() {
|
|
4005
4201
|
return this._auth ??= new Auth({ client: this.client });
|
|
@@ -4009,6 +4205,6 @@ var Rustrak = class Rustrak extends HeyApiClient {
|
|
|
4009
4205
|
return this._health ??= new Health({ client: this.client });
|
|
4010
4206
|
}
|
|
4011
4207
|
};
|
|
4012
|
-
export { Access, Agents, AlertChannels, AlertRules, Auth, DebugFiles, Environments, Events, Feedback, Github, Health, Invitations, Issues, Logs, Members, Monitors, Oauth, Projects, Releases, Roles, Rustrak, Schedules, Sentry, Sessions, Settings, SourceMaps, Spans, Stats, Storage, Team, Telemetry, Tokens, Transactions, Users };
|
|
4208
|
+
export { Access, Agents, AlertChannels, AlertRules, Auth, DebugFiles, Environments, Events, Feedback, Github, Health, Invitations, Issues, Logs, Members, Monitors, Oauth, Projects, Releases, Roles, Rustrak, SavedViews, Schedules, Sentry, Sessions, Settings, SourceMaps, Spans, Stats, Storage, Team, Telemetry, Tokens, Transactions, Users, WorkspaceViews };
|
|
4013
4209
|
|
|
4014
4210
|
//# sourceMappingURL=sdk.gen.mjs.map
|