@rustrak/client 0.19.0 → 0.20.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.
@@ -1,6 +1,6 @@
1
1
  import { formDataBodySerializer } from "./core/bodySerializer.gen.mjs";
2
2
  import { client } from "./client.gen.mjs";
3
- import { 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, zAlertRulesListHistoryPath, zAlertRulesListHistoryQuery, zAlertRulesListHistoryResponse, zAlertRulesListPath, zAlertRulesListResponse, zAlertRulesUpdateBody, zAlertRulesUpdatePath, zAlertRulesUpdateResponse, zAuthAcceptInvitationBody, zAuthAcceptInvitationResponse, zAuthChangePasswordBody, zAuthChangePasswordResponse, zAuthConfirmSsoLinkBody, zAuthConfirmSsoLinkResponse, zAuthGetCurrentUserResponse, zAuthGetInvitationPath, zAuthGetInvitationResponse, zAuthLoginBody, zAuthLoginResponse, zAuthLogoutResponse, zAuthRegisterBody, zAuthSsoCallbackQuery, zAuthSsoCallbackResponse, zAuthSsoConfigResponse, zAuthSsoLinkResponse, zAuthSsoStartResponse, zAuthUpdateCurrentUserBody, zAuthUpdateCurrentUserResponse, zEventsGetBySentryIdPath, zEventsGetBySentryIdResponse, zEventsGetPath, zEventsGetResponse, zEventsListPath, zEventsListQuery, zEventsListResponse, zGithubCallbackQuery, zGithubCreateIssueBody, zGithubCreateIssuePath, zGithubCreateIssueResponse, zGithubDeleteProjectRepositoryPath, zGithubDeleteProjectRepositoryResponse, zGithubDisconnectResponse, zGithubGetMyLoginResponse, zGithubGetProjectRepositoryPath, zGithubGetProjectRepositoryResponse, zGithubInstalledQuery, zGithubIssuePath, zGithubIssueResponse, zGithubLinkIssueBody, zGithubLinkIssuePath, zGithubLinkIssueResponse, zGithubManifestBody, zGithubManifestResponse, zGithubPutMyLoginBody, zGithubPutMyLoginResponse, zGithubPutProjectRepositoryBody, zGithubPutProjectRepositoryPath, zGithubPutProjectRepositoryResponse, zGithubRepositoriesQuery, zGithubRepositoriesResponse, zGithubStatusResponse, zGithubSyncCodeownersPath, zGithubSyncCodeownersResponse, zGithubUnlinkIssuePath, zGithubUnlinkIssueResponse, zGithubWebhookBody, zGithubWebhookResponse, zHealthLivenessResponse, zHealthReadinessResponse, zHealthVersionResponse, zInvitationsCreateBody, zInvitationsCreateResponse, zInvitationsListResponse, zInvitationsRevokePath, zInvitationsRevokeResponse, zIssuesBulkDeleteBody, zIssuesBulkDeletePath, zIssuesBulkDeleteResponse, zIssuesBulkUpdateBody, zIssuesBulkUpdatePath, zIssuesBulkUpdateResponse, zIssuesCreateCommentBody, zIssuesCreateCommentPath, zIssuesCreateCommentResponse, zIssuesCreateUserReportBody, zIssuesCreateUserReportPath, zIssuesCreateUserReportResponse, zIssuesDeletePath, zIssuesDeleteResponse, zIssuesGetActivityPath, zIssuesGetActivityResponse, zIssuesGetAggregatesPath, zIssuesGetAggregatesResponse, zIssuesGetHashesPath, zIssuesGetHashesResponse, zIssuesGetPath, zIssuesGetResponse, zIssuesGetStatsPath, zIssuesGetStatsQuery, zIssuesGetStatsResponse, zIssuesGetTagValuesPath, zIssuesGetTagValuesResponse, zIssuesListPath, zIssuesListQuery, zIssuesListResponse, zIssuesListUserReportsPath, zIssuesListUserReportsResponse, zIssuesMarkSeenPath, zIssuesMarkSeenResponse, zIssuesSetBookmarkBody, zIssuesSetBookmarkPath, zIssuesSetBookmarkResponse, zIssuesSetSubscriptionBody, zIssuesSetSubscriptionPath, zIssuesSetSubscriptionResponse, zIssuesUpdateBody, zIssuesUpdatePath, zIssuesUpdateResponse, zLogsListPath, zLogsListQuery, zLogsListResponse, zMembersListPath, zMembersListResponse, zMembersRemovePath, zMembersRemoveResponse, zMembersUpsertBody, zMembersUpsertPath, zMembersUpsertResponse, zMonitorsCreateBody, zMonitorsCreatePath, zMonitorsCreateResponse, zMonitorsDeletePath, zMonitorsDeleteResponse, zMonitorsGetPath, zMonitorsGetResponse, zMonitorsListCheckinsPath, zMonitorsListCheckinsQuery, zMonitorsListCheckinsResponse, zMonitorsListPath, zMonitorsListResponse, 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, zReleasesNewIssuesPath, zReleasesNewIssuesQuery, zReleasesNewIssuesResponse, zSchedulesPreviewBody, zSchedulesPreviewResponse, 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, zStorageExecuteCleanupBody, zStorageExecuteCleanupResponse, zStorageGcSourceMapsResponse, zStorageGetAgeResponse, zStorageGetCleanupStatusResponse, 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, zTransactionsGetStatsPath, zTransactionsGetStatsQuery, zTransactionsGetStatsResponse, zTransactionsListPath, zTransactionsListQuery, zTransactionsListResponse } from "./zod.gen.mjs";
3
+ import { 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, zAlertRulesListHistoryPath, zAlertRulesListHistoryQuery, zAlertRulesListHistoryResponse, zAlertRulesListPath, zAlertRulesListResponse, zAlertRulesUpdateBody, zAlertRulesUpdatePath, zAlertRulesUpdateResponse, zAuthAcceptInvitationBody, zAuthAcceptInvitationResponse, zAuthChangePasswordBody, zAuthChangePasswordResponse, zAuthConfirmSsoLinkBody, zAuthConfirmSsoLinkResponse, zAuthGetCurrentUserResponse, zAuthGetInvitationPath, zAuthGetInvitationResponse, zAuthLoginBody, zAuthLoginResponse, zAuthLogoutResponse, zAuthRegisterBody, zAuthSsoCallbackQuery, zAuthSsoCallbackResponse, zAuthSsoConfigResponse, zAuthSsoLinkResponse, zAuthSsoStartResponse, zAuthUpdateCurrentUserBody, zAuthUpdateCurrentUserResponse, zEventsDownloadAttachmentPath, zEventsDownloadAttachmentResponse, zEventsGetBySentryIdPath, zEventsGetBySentryIdResponse, zEventsGetPath, zEventsGetResponse, zEventsListAttachmentsPath, zEventsListAttachmentsResponse, zEventsListPath, zEventsListQuery, zEventsListResponse, zFeedbackListPath, zFeedbackListQuery, zFeedbackListResponse, zGithubCallbackQuery, zGithubCreateIssueBody, zGithubCreateIssuePath, zGithubCreateIssueResponse, zGithubDeleteProjectRepositoryPath, zGithubDeleteProjectRepositoryResponse, zGithubDisconnectResponse, zGithubGetMyLoginResponse, zGithubGetProjectRepositoryPath, zGithubGetProjectRepositoryResponse, zGithubInstalledQuery, zGithubIssuePath, zGithubIssueResponse, zGithubLinkIssueBody, zGithubLinkIssuePath, zGithubLinkIssueResponse, zGithubManifestBody, zGithubManifestResponse, zGithubPutMyLoginBody, zGithubPutMyLoginResponse, zGithubPutProjectRepositoryBody, zGithubPutProjectRepositoryPath, zGithubPutProjectRepositoryResponse, zGithubRepositoriesQuery, zGithubRepositoriesResponse, zGithubStatusResponse, zGithubSyncCodeownersPath, zGithubSyncCodeownersResponse, zGithubUnlinkIssuePath, zGithubUnlinkIssueResponse, zGithubWebhookBody, zGithubWebhookResponse, zHealthLivenessResponse, zHealthReadinessResponse, zHealthVersionResponse, zInvitationsCreateBody, zInvitationsCreateResponse, zInvitationsListResponse, zInvitationsRevokePath, zInvitationsRevokeResponse, zIssuesBulkDeleteBody, zIssuesBulkDeletePath, zIssuesBulkDeleteResponse, zIssuesBulkUpdateBody, zIssuesBulkUpdatePath, zIssuesBulkUpdateResponse, zIssuesCreateCommentBody, zIssuesCreateCommentPath, zIssuesCreateCommentResponse, zIssuesCreateUserReportBody, zIssuesCreateUserReportPath, zIssuesCreateUserReportResponse, zIssuesDeletePath, zIssuesDeleteResponse, zIssuesGetActivityPath, zIssuesGetActivityResponse, zIssuesGetAggregatesPath, zIssuesGetAggregatesResponse, zIssuesGetHashesPath, zIssuesGetHashesResponse, zIssuesGetPath, zIssuesGetResponse, zIssuesGetStatsPath, zIssuesGetStatsQuery, zIssuesGetStatsResponse, zIssuesGetTagValuesPath, zIssuesGetTagValuesResponse, zIssuesListPath, zIssuesListQuery, zIssuesListResponse, zIssuesListUserReportsPath, zIssuesListUserReportsQuery, zIssuesListUserReportsResponse, zIssuesMarkSeenPath, zIssuesMarkSeenResponse, zIssuesSetBookmarkBody, zIssuesSetBookmarkPath, zIssuesSetBookmarkResponse, zIssuesSetSubscriptionBody, zIssuesSetSubscriptionPath, zIssuesSetSubscriptionResponse, zIssuesUpdateBody, zIssuesUpdatePath, zIssuesUpdateResponse, zLogsListPath, zLogsListQuery, zLogsListResponse, zMembersListPath, zMembersListResponse, zMembersRemovePath, zMembersRemoveResponse, zMembersUpsertBody, zMembersUpsertPath, zMembersUpsertResponse, zMonitorsCreateBody, zMonitorsCreatePath, zMonitorsCreateResponse, zMonitorsDeletePath, zMonitorsDeleteResponse, zMonitorsGetPath, zMonitorsGetResponse, zMonitorsListCheckinsPath, zMonitorsListCheckinsQuery, zMonitorsListCheckinsResponse, zMonitorsListPath, zMonitorsListResponse, 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, zReleasesNewIssuesPath, zReleasesNewIssuesQuery, zReleasesNewIssuesResponse, zSchedulesPreviewBody, zSchedulesPreviewResponse, zSentryGetIssuePath, zSentryGetIssueResponse, zSentryGetLatestEventPath, zSentryGetLatestEventResponse, zSentryListIssuesPath, zSentryListIssuesQuery, zSentryListIssuesResponse, zSentryListOrganizationsResponse, zSentryListProjectsQuery, zSentryListProjectsResponse, zSentryListReposPath, zSentryListReposResponse, zSentryOpenIssuePath, zSentrySubmitUserFeedbackBody, zSentrySubmitUserFeedbackPath, zSentrySubmitUserFeedbackResponse, zSentryUpdateIssueBody, zSentryUpdateIssuePath, zSentryUpdateIssueResponse, zSessionsGetStatsPath, zSessionsGetStatsQuery, zSessionsGetStatsResponse, zSessionsGetSummaryPath, zSessionsGetSummaryQuery, zSessionsGetSummaryResponse, zSessionsGetTimeseriesPath, zSessionsGetTimeseriesQuery, zSessionsGetTimeseriesResponse, zSettingsGetMcpResponse, zSettingsUpdateMcpBody, zSettingsUpdateMcpResponse, zSourceMapsArtifactBundleAssembleBody, zSourceMapsArtifactBundleAssemblePath, zSourceMapsArtifactBundleAssembleResponse, zSourceMapsChunkUploadBody, zSourceMapsChunkUploadCapabilityPath, zSourceMapsChunkUploadCapabilityResponse, zSourceMapsChunkUploadPath, zSourceMapsListPath, zSourceMapsListResponse, zSourceMapsOrgDetailsPath, zSourceMapsOrgDetailsResponse, zSpansGetPath, zSpansGetResponse, zSpansListPath, zSpansListQuery, zSpansListResponse, zStatsGetEventTimeseriesPath, zStatsGetEventTimeseriesQuery, zStatsGetEventTimeseriesResponse, zStatsGetSummaryPath, zStatsGetSummaryQuery, zStatsGetSummaryResponse, zStorageExecuteCleanupBody, zStorageExecuteCleanupResponse, zStorageGcSourceMapsResponse, zStorageGetAgeResponse, zStorageGetCleanupStatusResponse, 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, zTransactionsGetStatsPath, zTransactionsGetStatsQuery, zTransactionsGetStatsResponse, zTransactionsListPath, zTransactionsListQuery, zTransactionsListResponse } from "./zod.gen.mjs";
4
4
  import * as z from "zod";
5
5
  //#region src/generated/sdk.gen.ts
6
6
  var HeyApiClient = class {
@@ -21,6 +21,225 @@ var HeyApiRegistry = class {
21
21
  this.instances.set(key ?? this.defaultKey, value);
22
22
  }
23
23
  };
24
+ var Sentry = class extends HeyApiClient {
25
+ /**
26
+ * GET /api/0/issues/{issue_id}/
27
+ *
28
+ * One issue with its releases and its 24h and 30d series (Sentry's
29
+ * `GroupDetailsEndpoint`). Also served under `/groups/` and the
30
+ * organization-scoped paths, as Sentry does.
31
+ */
32
+ getIssue(options) {
33
+ return (options.client ?? this.client).get({
34
+ requestValidator: async (data) => await z.object({
35
+ body: z.never().optional(),
36
+ path: zSentryGetIssuePath,
37
+ query: z.never().optional()
38
+ }).parseAsync(data),
39
+ responseValidator: async (data) => await zSentryGetIssueResponse.parseAsync(data),
40
+ security: [{
41
+ scheme: "bearer",
42
+ type: "http"
43
+ }],
44
+ url: "/api/0/issues/{issue_id}/",
45
+ ...options
46
+ });
47
+ }
48
+ /**
49
+ * PUT /api/0/issues/{issue_id}/
50
+ *
51
+ * Sets an issue's status and returns the issue (Sentry's
52
+ * `GroupDetailsEndpoint.put`). The change goes through Rustrak's own
53
+ * issue update, so it is recorded and mirrored like any other.
54
+ */
55
+ updateIssue(options) {
56
+ return (options.client ?? this.client).put({
57
+ requestValidator: async (data) => await z.object({
58
+ body: zSentryUpdateIssueBody,
59
+ path: zSentryUpdateIssuePath,
60
+ query: z.never().optional()
61
+ }).parseAsync(data),
62
+ responseValidator: async (data) => await zSentryUpdateIssueResponse.parseAsync(data),
63
+ security: [{
64
+ scheme: "bearer",
65
+ type: "http"
66
+ }],
67
+ url: "/api/0/issues/{issue_id}/",
68
+ ...options,
69
+ headers: {
70
+ "Content-Type": "application/json",
71
+ ...options.headers
72
+ }
73
+ });
74
+ }
75
+ /**
76
+ * GET /api/0/issues/{issue_id}/events/latest/
77
+ *
78
+ * The issue's most recent event (Sentry's `GroupEventDetailsEndpoint`,
79
+ * `issues/endpoints/group_event_details.py`).
80
+ */
81
+ getLatestEvent(options) {
82
+ return (options.client ?? this.client).get({
83
+ requestValidator: async (data) => await z.object({
84
+ body: z.never().optional(),
85
+ path: zSentryGetLatestEventPath,
86
+ query: z.never().optional()
87
+ }).parseAsync(data),
88
+ responseValidator: async (data) => await zSentryGetLatestEventResponse.parseAsync(data),
89
+ security: [{
90
+ scheme: "bearer",
91
+ type: "http"
92
+ }],
93
+ url: "/api/0/issues/{issue_id}/events/latest/",
94
+ ...options
95
+ });
96
+ }
97
+ /**
98
+ * GET /api/0/organizations/
99
+ *
100
+ * The organizations the token belongs to (Sentry's
101
+ * `OrganizationIndexEndpoint`): always the one synthetic org.
102
+ */
103
+ listOrganizations(options) {
104
+ return (options?.client ?? this.client).get({
105
+ requestValidator: async (data) => await z.object({
106
+ body: z.never().optional(),
107
+ path: z.never().optional(),
108
+ query: z.never().optional()
109
+ }).parseAsync(data),
110
+ responseValidator: async (data) => await zSentryListOrganizationsResponse.parseAsync(data),
111
+ security: [{
112
+ scheme: "bearer",
113
+ type: "http"
114
+ }],
115
+ url: "/api/0/organizations/",
116
+ ...options
117
+ });
118
+ }
119
+ /**
120
+ * GET /api/0/organizations/{org_slug}/repos/
121
+ *
122
+ * The code repositories connected to the organization (Sentry's
123
+ * `OrganizationRepositoriesEndpoint`). Rustrak connects none through
124
+ * Sentry's integrations, so the list is always empty.
125
+ */
126
+ listRepos(options) {
127
+ return (options.client ?? this.client).get({
128
+ requestValidator: async (data) => await z.object({
129
+ body: z.never().optional(),
130
+ path: zSentryListReposPath,
131
+ query: z.never().optional()
132
+ }).parseAsync(data),
133
+ responseValidator: async (data) => await zSentryListReposResponse.parseAsync(data),
134
+ security: [{
135
+ scheme: "bearer",
136
+ type: "http"
137
+ }],
138
+ url: "/api/0/organizations/{org_slug}/repos/",
139
+ ...options
140
+ });
141
+ }
142
+ /**
143
+ * GET /api/0/projects/
144
+ *
145
+ * The projects the token can see, newest first (Sentry's
146
+ * `ProjectIndexEndpoint`, `core/endpoints/project_index.py`).
147
+ */
148
+ listProjects(options) {
149
+ return (options?.client ?? this.client).get({
150
+ requestValidator: async (data) => await z.object({
151
+ body: z.never().optional(),
152
+ path: z.never().optional(),
153
+ query: zSentryListProjectsQuery.optional()
154
+ }).parseAsync(data),
155
+ responseValidator: async (data) => await zSentryListProjectsResponse.parseAsync(data),
156
+ security: [{
157
+ scheme: "bearer",
158
+ type: "http"
159
+ }],
160
+ url: "/api/0/projects/",
161
+ ...options
162
+ });
163
+ }
164
+ /**
165
+ * GET /api/0/projects/{org_slug}/{project_slug}/issues/
166
+ *
167
+ * A project's issues, filtered by `query`, sorted by `sort` and paginated
168
+ * by `cursor` (Sentry's `ProjectGroupIndexEndpoint`,
169
+ * `issues/endpoints/project_group_index.py`).
170
+ */
171
+ listIssues(options) {
172
+ return (options.client ?? this.client).get({
173
+ requestValidator: async (data) => await z.object({
174
+ body: z.never().optional(),
175
+ path: zSentryListIssuesPath,
176
+ query: zSentryListIssuesQuery.optional()
177
+ }).parseAsync(data),
178
+ responseValidator: async (data) => await zSentryListIssuesResponse.parseAsync(data),
179
+ security: [{
180
+ scheme: "bearer",
181
+ type: "http"
182
+ }],
183
+ url: "/api/0/projects/{org_slug}/{project_slug}/issues/",
184
+ ...options
185
+ });
186
+ }
187
+ /**
188
+ * POST /api/0/projects/{org_slug}/{project_slug}/user-feedback/
189
+ *
190
+ * Submit a user report about an error event (Sentry's
191
+ * `ProjectUserReportsEndpoint`, `feedback/endpoints/project_user_reports.py`).
192
+ * Accepts `Authorization: DSN <dsn>` as well as a token; the report becomes a
193
+ * feedback, as the `user_report` envelope item does.
194
+ */
195
+ submitUserFeedback(options) {
196
+ return (options.client ?? this.client).post({
197
+ requestValidator: async (data) => await z.object({
198
+ body: zSentrySubmitUserFeedbackBody,
199
+ path: zSentrySubmitUserFeedbackPath,
200
+ query: z.never().optional()
201
+ }).parseAsync(data),
202
+ responseValidator: async (data) => await zSentrySubmitUserFeedbackResponse.parseAsync(data),
203
+ security: [{
204
+ scheme: "bearer",
205
+ type: "http"
206
+ }],
207
+ url: "/api/0/projects/{org_slug}/{project_slug}/user-feedback/",
208
+ ...options,
209
+ headers: {
210
+ "Content-Type": "application/json",
211
+ ...options.headers
212
+ }
213
+ });
214
+ }
215
+ /**
216
+ * GET /{org_slug}/{project_slug}/issues/{issue_id}/
217
+ *
218
+ * The issue page GitLab's "View in Sentry" opens: Sentry redirects this
219
+ * legacy path to the issue (`static/app/router/routes.tsx`), Rustrak to its
220
+ * dashboard. A visitor who is not signed in goes to the login page instead,
221
+ * so a stranger learns nothing about which issues exist.
222
+ */
223
+ openIssue(options) {
224
+ return (options.client ?? this.client).get({
225
+ requestValidator: async (data) => await z.object({
226
+ body: z.never().optional(),
227
+ path: zSentryOpenIssuePath,
228
+ query: z.never().optional()
229
+ }).parseAsync(data),
230
+ security: [{
231
+ in: "cookie",
232
+ name: "session",
233
+ type: "apiKey"
234
+ }, {
235
+ scheme: "bearer",
236
+ type: "http"
237
+ }],
238
+ url: "/{org_slug}/{project_slug}/issues/{issue_id}",
239
+ ...options
240
+ });
241
+ }
242
+ };
24
243
  var SourceMaps = class extends HeyApiClient {
25
244
  /**
26
245
  * GET /api/0/organizations/{org_slug}/
@@ -1295,6 +1514,27 @@ var AlertRules = class extends HeyApiClient {
1295
1514
  }
1296
1515
  };
1297
1516
  var Events = class extends HeyApiClient {
1517
+ /**
1518
+ * GET /api/projects/{project_id}/attachments/{attachment_id}
1519
+ * Downloads an attachment. Only a real image is served inline; anything
1520
+ * else, whatever type it claims, is a download that never runs.
1521
+ */
1522
+ downloadAttachment(options) {
1523
+ return (options.client ?? this.client).get({
1524
+ requestValidator: async (data) => await z.object({
1525
+ body: z.never().optional(),
1526
+ path: zEventsDownloadAttachmentPath,
1527
+ query: z.never().optional()
1528
+ }).parseAsync(data),
1529
+ responseValidator: async (data) => await zEventsDownloadAttachmentResponse.parseAsync(data),
1530
+ security: [{
1531
+ scheme: "bearer",
1532
+ type: "http"
1533
+ }],
1534
+ url: "/api/projects/{project_id}/attachments/{attachment_id}",
1535
+ ...options
1536
+ });
1537
+ }
1298
1538
  /**
1299
1539
  * Resolve the ID returned by a Sentry SDK without already knowing the issue.
1300
1540
  */
@@ -1354,6 +1594,26 @@ var Events = class extends HeyApiClient {
1354
1594
  ...options
1355
1595
  });
1356
1596
  }
1597
+ /**
1598
+ * GET /api/projects/{project_id}/issues/{issue_id}/events/{event_id}/attachments
1599
+ * Lists the files sent with an event, such as a feedback's screenshot.
1600
+ */
1601
+ listAttachments(options) {
1602
+ return (options.client ?? this.client).get({
1603
+ requestValidator: async (data) => await z.object({
1604
+ body: z.never().optional(),
1605
+ path: zEventsListAttachmentsPath,
1606
+ query: z.never().optional()
1607
+ }).parseAsync(data),
1608
+ responseValidator: async (data) => await zEventsListAttachmentsResponse.parseAsync(data),
1609
+ security: [{
1610
+ scheme: "bearer",
1611
+ type: "http"
1612
+ }],
1613
+ url: "/api/projects/{project_id}/issues/{issue_id}/events/{event_id}/attachments",
1614
+ ...options
1615
+ });
1616
+ }
1357
1617
  };
1358
1618
  var Stats = class extends HeyApiClient {
1359
1619
  /**
@@ -1395,6 +1655,29 @@ var Stats = class extends HeyApiClient {
1395
1655
  });
1396
1656
  }
1397
1657
  };
1658
+ var Feedback = class extends HeyApiClient {
1659
+ /**
1660
+ * GET /api/projects/{project_id}/feedback
1661
+ * Lists user feedback with what each user submitted. Every feedback is an
1662
+ * issue of category `feedback`; spam is a muted one.
1663
+ */
1664
+ list(options) {
1665
+ return (options.client ?? this.client).get({
1666
+ requestValidator: async (data) => await z.object({
1667
+ body: z.never().optional(),
1668
+ path: zFeedbackListPath,
1669
+ query: zFeedbackListQuery.optional()
1670
+ }).parseAsync(data),
1671
+ responseValidator: async (data) => await zFeedbackListResponse.parseAsync(data),
1672
+ security: [{
1673
+ scheme: "bearer",
1674
+ type: "http"
1675
+ }],
1676
+ url: "/api/projects/{project_id}/feedback",
1677
+ ...options
1678
+ });
1679
+ }
1680
+ };
1398
1681
  var Issues = class extends HeyApiClient {
1399
1682
  /**
1400
1683
  * DELETE /api/projects/{project_id}/issues (bulk delete by ids or filter)
@@ -1720,7 +2003,7 @@ var Issues = class extends HeyApiClient {
1720
2003
  requestValidator: async (data) => await z.object({
1721
2004
  body: z.never().optional(),
1722
2005
  path: zIssuesListUserReportsPath,
1723
- query: z.never().optional()
2006
+ query: zIssuesListUserReportsQuery.optional()
1724
2007
  }).parseAsync(data),
1725
2008
  responseValidator: async (data) => await zIssuesListUserReportsResponse.parseAsync(data),
1726
2009
  security: [{
@@ -2999,6 +3282,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
2999
3282
  super(args);
3000
3283
  Rustrak.__registry.set(this, args?.key);
3001
3284
  }
3285
+ _sentry;
3286
+ get sentry() {
3287
+ return this._sentry ??= new Sentry({ client: this.client });
3288
+ }
3002
3289
  _sourceMaps;
3003
3290
  get sourceMaps() {
3004
3291
  return this._sourceMaps ??= new SourceMaps({ client: this.client });
@@ -3043,6 +3330,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
3043
3330
  get stats() {
3044
3331
  return this._stats ??= new Stats({ client: this.client });
3045
3332
  }
3333
+ _feedback;
3334
+ get feedback() {
3335
+ return this._feedback ??= new Feedback({ client: this.client });
3336
+ }
3046
3337
  _issues;
3047
3338
  get issues() {
3048
3339
  return this._issues ??= new Issues({ client: this.client });
@@ -3105,6 +3396,6 @@ var Rustrak = class Rustrak extends HeyApiClient {
3105
3396
  }
3106
3397
  };
3107
3398
  //#endregion
3108
- export { Agents, AlertChannels, AlertRules, Auth, Events, Github, Health, Invitations, Issues, Logs, Members, Monitors, Oauth, Projects, Releases, Rustrak, Schedules, Sessions, Settings, SourceMaps, Spans, Stats, Storage, Team, Telemetry, Tokens, Transactions };
3399
+ export { Agents, AlertChannels, AlertRules, Auth, Events, Feedback, Github, Health, Invitations, Issues, Logs, Members, Monitors, Oauth, Projects, Releases, Rustrak, Schedules, Sentry, Sessions, Settings, SourceMaps, Spans, Stats, Storage, Team, Telemetry, Tokens, Transactions };
3109
3400
 
3110
3401
  //# sourceMappingURL=sdk.gen.mjs.map