@rustrak/client 0.26.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.
Files changed (39) hide show
  1. package/README.md +18 -0
  2. package/dist/client.cjs +1 -1
  3. package/dist/client.mjs +1 -1
  4. package/dist/generated/client/client.gen.d.cts +1 -0
  5. package/dist/generated/client/index.d.cts +10 -0
  6. package/dist/generated/client/types.gen.d.cts +1 -1
  7. package/dist/generated/client/types.gen.d.mts +1 -1
  8. package/dist/generated/client/utils.gen.cjs +1 -1
  9. package/dist/generated/client/utils.gen.d.cts +2 -0
  10. package/dist/generated/client/utils.gen.d.cts.map +1 -1
  11. package/dist/generated/client/utils.gen.mjs +1 -1
  12. package/dist/generated/client.gen.cjs +2 -1
  13. package/dist/generated/client.gen.cjs.map +1 -1
  14. package/dist/generated/client.gen.mjs +1 -1
  15. package/dist/generated/core/params.gen.d.cts +1 -0
  16. package/dist/generated/core/queryKeySerializer.gen.d.cts +1 -0
  17. package/dist/generated/sdk.gen.cjs +728 -439
  18. package/dist/generated/sdk.gen.cjs.map +1 -1
  19. package/dist/generated/sdk.gen.d.cts +49 -27
  20. package/dist/generated/sdk.gen.d.cts.map +1 -1
  21. package/dist/generated/sdk.gen.d.mts +49 -28
  22. package/dist/generated/sdk.gen.d.mts.map +1 -1
  23. package/dist/generated/sdk.gen.mjs +728 -441
  24. package/dist/generated/sdk.gen.mjs.map +1 -1
  25. package/dist/generated/types.gen.d.cts +347 -0
  26. package/dist/generated/types.gen.d.cts.map +1 -1
  27. package/dist/generated/types.gen.d.mts +347 -0
  28. package/dist/generated/types.gen.d.mts.map +1 -1
  29. package/dist/generated/zod.gen.cjs +251 -1
  30. package/dist/generated/zod.gen.cjs.map +1 -1
  31. package/dist/generated/zod.gen.mjs +214 -2
  32. package/dist/generated/zod.gen.mjs.map +1 -1
  33. package/dist/index.cjs +2 -2
  34. package/dist/index.d.cts +3 -3
  35. package/dist/index.d.mts +3 -3
  36. package/dist/index.mjs +2 -2
  37. package/dist/utils/http.cjs.map +1 -1
  38. package/dist/utils/http.mjs.map +1 -1
  39. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
- import { formDataBodySerializer } from "./core/bodySerializer.gen.mjs";
2
1
  import { client } from "./client.gen.mjs";
3
- import { zAccessCatalogResponse, zAccessMeResponse, zAgentsConversationPath, zAgentsConversationResponse, zAgentsConversationsPath, zAgentsConversationsQuery, zAgentsConversationsResponse, zAgentsDurationPath, zAgentsDurationQuery, zAgentsDurationResponse, zAgentsEnvironmentsPath, zAgentsEnvironmentsResponse, zAgentsModelsCallsPath, zAgentsModelsCallsQuery, zAgentsModelsCallsResponse, zAgentsModelsTablePath, zAgentsModelsTableQuery, zAgentsModelsTableResponse, zAgentsModelsTokensPath, zAgentsModelsTokensQuery, zAgentsModelsTokensResponse, zAgentsRunsPath, zAgentsRunsQuery, zAgentsRunsResponse, zAgentsSummaryPath, zAgentsSummaryQuery, zAgentsSummaryResponse, zAgentsToolsPath, zAgentsToolsQuery, zAgentsToolsResponse, zAgentsToolsTablePath, zAgentsToolsTableQuery, zAgentsToolsTableResponse, zAgentsTracesPath, zAgentsTracesQuery, zAgentsTracesResponse, zAlertChannelsCreateBody, zAlertChannelsCreateResponse, zAlertChannelsDeletePath, zAlertChannelsDeleteResponse, zAlertChannelsGetPath, zAlertChannelsGetResponse, zAlertChannelsListResponse, zAlertChannelsPreviewTemplateBody, zAlertChannelsPreviewTemplateResponse, zAlertChannelsTestBody, zAlertChannelsTestPath, zAlertChannelsTestResponse, zAlertChannelsUpdateBody, zAlertChannelsUpdatePath, zAlertChannelsUpdateResponse, zAlertRulesCreateBody, zAlertRulesCreatePath, zAlertRulesCreateResponse, zAlertRulesDeletePath, zAlertRulesDeleteResponse, zAlertRulesGetPath, zAlertRulesGetResponse, zAlertRulesHistoryByDayPath, zAlertRulesHistoryByDayQuery, zAlertRulesHistoryByDayResponse, zAlertRulesListHistoryPath, zAlertRulesListHistoryQuery, zAlertRulesListHistoryResponse, zAlertRulesListPath, zAlertRulesListResponse, zAlertRulesUpdateBody, zAlertRulesUpdatePath, zAlertRulesUpdateResponse, zAuthAcceptInvitationBody, zAuthAcceptInvitationResponse, zAuthChangePasswordBody, zAuthChangePasswordResponse, zAuthConfirmSsoLinkBody, zAuthConfirmSsoLinkResponse, zAuthGetCurrentUserResponse, zAuthGetInvitationPath, zAuthGetInvitationResponse, zAuthLoginBody, zAuthLoginResponse, zAuthLogoutResponse, zAuthSsoCallbackQuery, zAuthSsoCallbackResponse, zAuthSsoConfigResponse, zAuthSsoLinkResponse, zAuthSsoStartResponse, zAuthUpdateCurrentUserBody, zAuthUpdateCurrentUserResponse, zDebugFilesAssembleBody, zDebugFilesAssemblePath, zDebugFilesAssembleResponse, zDebugFilesUploadBody, zDebugFilesUploadPath, zDebugFilesUploadResponse, zEnvironmentsListPath, zEnvironmentsListResponse, zEventsDownloadAttachmentPath, zEventsDownloadAttachmentResponse, zEventsGetBySentryIdPath, zEventsGetBySentryIdResponse, zEventsGetPath, zEventsGetResponse, zEventsListAttachmentsPath, zEventsListAttachmentsResponse, zEventsListPath, zEventsListQuery, zEventsListResponse, zFeedbackListPath, zFeedbackListQuery, zFeedbackListResponse, zGithubCallbackQuery, zGithubCreateIssueBody, zGithubCreateIssuePath, zGithubCreateIssueResponse, zGithubDeleteProjectRepositoryPath, zGithubDeleteProjectRepositoryResponse, zGithubDisconnectResponse, zGithubGetMyLoginResponse, zGithubGetProjectRepositoryPath, zGithubGetProjectRepositoryResponse, zGithubInstalledQuery, zGithubIssueDraftPath, zGithubIssueDraftResponse, zGithubIssuePath, zGithubIssueResponse, zGithubLinkIssueBody, zGithubLinkIssuePath, zGithubLinkIssueResponse, zGithubManifestBody, zGithubManifestResponse, zGithubPutIssueTemplateBody, zGithubPutIssueTemplateResponse, zGithubPutMyLoginBody, zGithubPutMyLoginResponse, zGithubPutProjectRepositoryBody, zGithubPutProjectRepositoryPath, zGithubPutProjectRepositoryResponse, zGithubRepositoriesQuery, zGithubRepositoriesResponse, zGithubStatusResponse, zGithubSyncCodeownersPath, zGithubSyncCodeownersResponse, zGithubUnlinkIssuePath, zGithubUnlinkIssueResponse, zGithubWebhookBody, zGithubWebhookResponse, zHealthLivenessResponse, zHealthReadinessResponse, zHealthVersionResponse, zInvitationsCreateBody, zInvitationsCreateResponse, zInvitationsEmailStatusResponse, zInvitationsListResponse, zInvitationsResendPath, zInvitationsResendResponse, zInvitationsRevokePath, zInvitationsRevokeResponse, zIssuesBulkDeleteBody, zIssuesBulkDeletePath, zIssuesBulkDeleteResponse, zIssuesBulkUpdateBody, zIssuesBulkUpdatePath, zIssuesBulkUpdateResponse, zIssuesCreateCommentBody, zIssuesCreateCommentPath, zIssuesCreateCommentResponse, zIssuesCreateUserReportBody, zIssuesCreateUserReportPath, zIssuesCreateUserReportResponse, zIssuesDeletePath, zIssuesDeleteResponse, zIssuesGetActivityPath, zIssuesGetActivityResponse, zIssuesGetAggregatesPath, zIssuesGetAggregatesResponse, zIssuesGetHashesPath, zIssuesGetHashesResponse, zIssuesGetPath, zIssuesGetResponse, zIssuesGetStatsPath, zIssuesGetStatsQuery, zIssuesGetStatsResponse, zIssuesGetTagValuesPath, zIssuesGetTagValuesResponse, zIssuesListPath, zIssuesListQuery, zIssuesListResponse, zIssuesListUserReportsPath, zIssuesListUserReportsQuery, zIssuesListUserReportsResponse, zIssuesMarkSeenPath, zIssuesMarkSeenResponse, zIssuesSetBookmarkBody, zIssuesSetBookmarkPath, zIssuesSetBookmarkResponse, zIssuesSetSubscriptionBody, zIssuesSetSubscriptionPath, zIssuesSetSubscriptionResponse, zIssuesUpdateBody, zIssuesUpdatePath, zIssuesUpdateResponse, zLogsGetPath, zLogsGetResponse, zLogsListPath, zLogsListQuery, zLogsListResponse, zLogsVolumePath, zLogsVolumeQuery, zLogsVolumeResponse, zMembersCandidatesPath, zMembersCandidatesResponse, zMembersListPath, zMembersListResponse, zMembersRemovePath, zMembersRemoveResponse, zMembersUpsertBody, zMembersUpsertPath, zMembersUpsertResponse, zMonitorsCreateBody, zMonitorsCreatePath, zMonitorsCreateResponse, zMonitorsDeletePath, zMonitorsDeleteResponse, zMonitorsGetPath, zMonitorsGetResponse, zMonitorsListCheckinsPath, zMonitorsListCheckinsQuery, zMonitorsListCheckinsResponse, zMonitorsListPath, zMonitorsListResponse, zMonitorsStatsPath, zMonitorsStatsQuery, zMonitorsStatsResponse, zMonitorsUpdateBody, zMonitorsUpdatePath, zMonitorsUpdateResponse, zOauthDecideAuthorizationBody, zOauthDecideAuthorizationResponse, zOauthGetAuthorizationQuery, zOauthGetAuthorizationResponse, zOauthListGrantsResponse, zOauthRevokeGrantPath, zOauthRevokeGrantResponse, zProjectsCreateBody, zProjectsCreateResponse, zProjectsDeletePath, zProjectsDeleteResponse, zProjectsGetPath, zProjectsGetRateLimitsResponse, zProjectsGetResponse, zProjectsListQuery, zProjectsListResponse, zProjectsUpdateBody, zProjectsUpdatePath, zProjectsUpdateResponse, zReleasesCreateBody, zReleasesCreatePath, zReleasesCreateResponse, zReleasesFinalizeBody, zReleasesFinalizePath, zReleasesFinalizeResponse, zReleasesGetPath, zReleasesGetQuery, zReleasesGetResponse, zReleasesListPath, zReleasesListQuery, zReleasesListResponse, zReleasesNewIssuesPath, zReleasesNewIssuesQuery, zReleasesNewIssuesResponse, zRolesCreateBody, zRolesCreateResponse, zRolesDeletePath, zRolesDeleteResponse, zRolesListResponse, zRolesUpdateBody, zRolesUpdatePath, zRolesUpdateResponse, zSchedulesPreviewBody, zSchedulesPreviewResponse, zSentryGetIssuePath, zSentryGetIssueResponse, zSentryGetLatestEventPath, zSentryGetLatestEventResponse, zSentryListIssuesPath, zSentryListIssuesQuery, zSentryListIssuesResponse, zSentryListOrganizationsResponse, zSentryListProjectsQuery, zSentryListProjectsResponse, zSentryListReposPath, zSentryListReposResponse, zSentryOpenIssuePath, zSentrySubmitUserFeedbackBody, zSentrySubmitUserFeedbackPath, zSentrySubmitUserFeedbackResponse, zSentryUpdateIssueBody, zSentryUpdateIssuePath, zSentryUpdateIssueResponse, zSessionsGetStatsPath, zSessionsGetStatsQuery, zSessionsGetStatsResponse, zSessionsGetSummaryPath, zSessionsGetSummaryQuery, zSessionsGetSummaryResponse, zSessionsGetTimeseriesPath, zSessionsGetTimeseriesQuery, zSessionsGetTimeseriesResponse, zSettingsGetMcpResponse, zSettingsUpdateMcpBody, zSettingsUpdateMcpResponse, zSourceMapsArtifactBundleAssembleBody, zSourceMapsArtifactBundleAssemblePath, zSourceMapsArtifactBundleAssembleResponse, zSourceMapsChunkUploadBody, zSourceMapsChunkUploadCapabilityPath, zSourceMapsChunkUploadCapabilityResponse, zSourceMapsChunkUploadPath, zSourceMapsListPath, zSourceMapsListResponse, zSourceMapsOrgDetailsPath, zSourceMapsOrgDetailsResponse, zSpansGetPath, zSpansGetResponse, zSpansListPath, zSpansListQuery, zSpansListResponse, zStatsGetEventTimeseriesPath, zStatsGetEventTimeseriesQuery, zStatsGetEventTimeseriesResponse, zStatsGetSummaryPath, zStatsGetSummaryQuery, zStatsGetSummaryResponse, zStorageCompactResponse, zStorageExecuteCleanupBody, zStorageExecuteCleanupResponse, zStorageGcSourceMapsResponse, zStorageGetAgeResponse, zStorageGetCleanupStatusResponse, zStorageGetCompactionResponse, zStorageGetProjectsResponse, zStorageGetRetentionResponse, zStorageGetSummaryResponse, zStoragePreviewCleanupBody, zStoragePreviewCleanupResponse, zStoragePreviewRetentionBody, zStoragePreviewRetentionResponse, zStoragePreviewSourceMapGcResponse, zStorageRunRetentionResponse, zStorageUpdateRetentionBody, zStorageUpdateRetentionResponse, zTeamDeleteUserPath, zTeamDeleteUserResponse, zTeamListResponse, zTeamUpdateRoleBody, zTeamUpdateRolePath, zTeamUpdateRoleResponse, zTelemetryPreviewResponse, zTokensCreateBody, zTokensCreateResponse, zTokensDeletePath, zTokensDeleteResponse, zTokensGetPath, zTokensGetResponse, zTokensListResponse, zTransactionsGetPath, zTransactionsGetResponse, zTransactionsGetSpansPath, zTransactionsGetSpansResponse, zTransactionsGetStatGroupPath, zTransactionsGetStatGroupQuery, zTransactionsGetStatGroupResponse, zTransactionsGetStatGroupTimeseriesPath, zTransactionsGetStatGroupTimeseriesQuery, zTransactionsGetStatGroupTimeseriesResponse, zTransactionsGetStatsPath, zTransactionsGetStatsQuery, zTransactionsGetStatsResponse, zTransactionsListPath, zTransactionsListQuery, zTransactionsListResponse, zUsersAssignmentsPath, zUsersAssignmentsResponse, zUsersSetAssignmentsBody, zUsersSetAssignmentsPath, zUsersSetAssignmentsResponse } from "./zod.gen.mjs";
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 {
@@ -109,6 +109,28 @@ var Sentry = class extends HeyApiClient {
109
109
  });
110
110
  }
111
111
  /**
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
+ /**
112
134
  * The code repositories connected to the organization (Sentry's
113
135
  * `OrganizationRepositoriesEndpoint`). Rustrak connects none through
114
136
  * Sentry's integrations, so the list is always empty.
@@ -536,6 +558,47 @@ var Access = class extends HeyApiClient {
536
558
  });
537
559
  }
538
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
+ };
539
602
  var Github = class extends HeyApiClient {
540
603
  /**
541
604
  * Disconnects the GitHub App from this instance.
@@ -1194,34 +1257,43 @@ var Invitations = class extends HeyApiClient {
1194
1257
  });
1195
1258
  }
1196
1259
  };
1197
- var Oauth = class extends HeyApiClient {
1260
+ var Issues = class extends HeyApiClient {
1198
1261
  /**
1199
- * Verifies an authorization request and says who is asking.
1262
+ * Lists issues across every project the reader can read issues on, in the
1263
+ * same shape and pages as a project's list.
1200
1264
  */
1201
- getAuthorization(options) {
1202
- return (options.client ?? this.client).get({
1265
+ listAll(options) {
1266
+ return (options?.client ?? this.client).get({
1203
1267
  requestValidator: async (data) => await z.object({
1204
1268
  body: z.never().optional(),
1205
1269
  path: z.never().optional(),
1206
- query: zOauthGetAuthorizationQuery
1270
+ query: zIssuesListAllQuery.optional()
1207
1271
  }).parseAsync(data),
1208
- responseValidator: async (data) => await zOauthGetAuthorizationResponse.parseAsync(data),
1209
- url: "/api/oauth/authorize",
1272
+ responseValidator: async (data) => await zIssuesListAllResponse.parseAsync(data),
1273
+ security: [{
1274
+ scheme: "bearer",
1275
+ type: "http"
1276
+ }],
1277
+ url: "/api/issues",
1210
1278
  ...options
1211
1279
  });
1212
1280
  }
1213
1281
  /**
1214
- * Approves or denies an authorization request as the signed-in user.
1282
+ * Deletes many issues at once, selected by id or by filter.
1215
1283
  */
1216
- decideAuthorization(options) {
1217
- return (options.client ?? this.client).post({
1284
+ bulkDelete(options) {
1285
+ return (options.client ?? this.client).delete({
1218
1286
  requestValidator: async (data) => await z.object({
1219
- body: zOauthDecideAuthorizationBody,
1220
- path: z.never().optional(),
1287
+ body: zIssuesBulkDeleteBody,
1288
+ path: zIssuesBulkDeletePath,
1221
1289
  query: z.never().optional()
1222
1290
  }).parseAsync(data),
1223
- responseValidator: async (data) => await zOauthDecideAuthorizationResponse.parseAsync(data),
1224
- url: "/api/oauth/authorize",
1291
+ responseValidator: async (data) => await zIssuesBulkDeleteResponse.parseAsync(data),
1292
+ security: [{
1293
+ scheme: "bearer",
1294
+ type: "http"
1295
+ }],
1296
+ url: "/api/projects/{project_id}/issues",
1225
1297
  ...options,
1226
1298
  headers: {
1227
1299
  "Content-Type": "application/json",
@@ -1230,78 +1302,40 @@ var Oauth = class extends HeyApiClient {
1230
1302
  });
1231
1303
  }
1232
1304
  /**
1233
- * Lists the assistants connected to the signed-in user's account.
1234
- */
1235
- listGrants(options) {
1236
- return (options?.client ?? this.client).get({
1237
- requestValidator: async (data) => await z.object({
1238
- body: z.never().optional(),
1239
- path: z.never().optional(),
1240
- query: z.never().optional()
1241
- }).parseAsync(data),
1242
- responseValidator: async (data) => await zOauthListGrantsResponse.parseAsync(data),
1243
- url: "/api/oauth/grants",
1244
- ...options
1245
- });
1246
- }
1247
- /**
1248
- * Disconnects an assistant: its tokens stop working at once.
1249
- */
1250
- revokeGrant(options) {
1251
- return (options.client ?? this.client).delete({
1252
- requestValidator: async (data) => await z.object({
1253
- body: z.never().optional(),
1254
- path: zOauthRevokeGrantPath,
1255
- query: z.never().optional()
1256
- }).parseAsync(data),
1257
- responseValidator: async (data) => await zOauthRevokeGrantResponse.parseAsync(data),
1258
- url: "/api/oauth/grants/{id}",
1259
- ...options
1260
- });
1261
- }
1262
- };
1263
- var Projects = class extends HeyApiClient {
1264
- /**
1265
- * List projects with pagination.
1266
- *
1267
- * Only the projects the caller holds a permission on.
1305
+ * Lists issues for a project with offset-based pagination
1268
1306
  */
1269
1307
  list(options) {
1270
- return (options?.client ?? this.client).get({
1308
+ return (options.client ?? this.client).get({
1271
1309
  requestValidator: async (data) => await z.object({
1272
1310
  body: z.never().optional(),
1273
- path: z.never().optional(),
1274
- query: zProjectsListQuery.optional()
1311
+ path: zIssuesListPath,
1312
+ query: zIssuesListQuery.optional()
1275
1313
  }).parseAsync(data),
1276
- responseValidator: async (data) => await zProjectsListResponse.parseAsync(data),
1314
+ responseValidator: async (data) => await zIssuesListResponse.parseAsync(data),
1277
1315
  security: [{
1278
1316
  scheme: "bearer",
1279
1317
  type: "http"
1280
1318
  }],
1281
- url: "/api/projects",
1319
+ url: "/api/projects/{project_id}/issues",
1282
1320
  ...options
1283
1321
  });
1284
1322
  }
1285
1323
  /**
1286
- * Create a new project
1287
- *
1288
- * Needs `projects:create` and a permission on at least one project, because
1289
- * the creator's own roles extend to the new one. A token limited to chosen
1290
- * 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.
1291
1325
  */
1292
- create(options) {
1293
- return (options.client ?? this.client).post({
1326
+ bulkUpdate(options) {
1327
+ return (options.client ?? this.client).put({
1294
1328
  requestValidator: async (data) => await z.object({
1295
- body: zProjectsCreateBody,
1296
- path: z.never().optional(),
1329
+ body: zIssuesBulkUpdateBody,
1330
+ path: zIssuesBulkUpdatePath,
1297
1331
  query: z.never().optional()
1298
1332
  }).parseAsync(data),
1299
- responseValidator: async (data) => await zProjectsCreateResponse.parseAsync(data),
1333
+ responseValidator: async (data) => await zIssuesBulkUpdateResponse.parseAsync(data),
1300
1334
  security: [{
1301
1335
  scheme: "bearer",
1302
1336
  type: "http"
1303
1337
  }],
1304
- url: "/api/projects",
1338
+ url: "/api/projects/{project_id}/issues",
1305
1339
  ...options,
1306
1340
  headers: {
1307
1341
  "Content-Type": "application/json",
@@ -1310,59 +1344,59 @@ var Projects = class extends HeyApiClient {
1310
1344
  });
1311
1345
  }
1312
1346
  /**
1313
- * Delete a project
1347
+ * Hard-deletes an issue and all associated events
1314
1348
  */
1315
1349
  delete(options) {
1316
1350
  return (options.client ?? this.client).delete({
1317
1351
  requestValidator: async (data) => await z.object({
1318
1352
  body: z.never().optional(),
1319
- path: zProjectsDeletePath,
1353
+ path: zIssuesDeletePath,
1320
1354
  query: z.never().optional()
1321
1355
  }).parseAsync(data),
1322
- responseValidator: async (data) => await zProjectsDeleteResponse.parseAsync(data),
1356
+ responseValidator: async (data) => await zIssuesDeleteResponse.parseAsync(data),
1323
1357
  security: [{
1324
1358
  scheme: "bearer",
1325
1359
  type: "http"
1326
1360
  }],
1327
- url: "/api/projects/{id}",
1361
+ url: "/api/projects/{project_id}/issues/{issue_id}",
1328
1362
  ...options
1329
1363
  });
1330
1364
  }
1331
1365
  /**
1332
- * Get a project by ID
1366
+ * Gets a single issue by ID
1333
1367
  */
1334
1368
  get(options) {
1335
1369
  return (options.client ?? this.client).get({
1336
1370
  requestValidator: async (data) => await z.object({
1337
1371
  body: z.never().optional(),
1338
- path: zProjectsGetPath,
1372
+ path: zIssuesGetPath,
1339
1373
  query: z.never().optional()
1340
1374
  }).parseAsync(data),
1341
- responseValidator: async (data) => await zProjectsGetResponse.parseAsync(data),
1375
+ responseValidator: async (data) => await zIssuesGetResponse.parseAsync(data),
1342
1376
  security: [{
1343
1377
  scheme: "bearer",
1344
1378
  type: "http"
1345
1379
  }],
1346
- url: "/api/projects/{id}",
1380
+ url: "/api/projects/{project_id}/issues/{issue_id}",
1347
1381
  ...options
1348
1382
  });
1349
1383
  }
1350
1384
  /**
1351
- * Update a project
1385
+ * Updates issue state (resolve, mute, etc.)
1352
1386
  */
1353
1387
  update(options) {
1354
1388
  return (options.client ?? this.client).patch({
1355
1389
  requestValidator: async (data) => await z.object({
1356
- body: zProjectsUpdateBody,
1357
- path: zProjectsUpdatePath,
1390
+ body: zIssuesUpdateBody,
1391
+ path: zIssuesUpdatePath,
1358
1392
  query: z.never().optional()
1359
1393
  }).parseAsync(data),
1360
- responseValidator: async (data) => await zProjectsUpdateResponse.parseAsync(data),
1394
+ responseValidator: async (data) => await zIssuesUpdateResponse.parseAsync(data),
1361
1395
  security: [{
1362
1396
  scheme: "bearer",
1363
1397
  type: "http"
1364
1398
  }],
1365
- url: "/api/projects/{id}",
1399
+ url: "/api/projects/{project_id}/issues/{issue_id}",
1366
1400
  ...options,
1367
1401
  headers: {
1368
1402
  "Content-Type": "application/json",
@@ -1371,332 +1405,339 @@ var Projects = class extends HeyApiClient {
1371
1405
  });
1372
1406
  }
1373
1407
  /**
1374
- * What a project without limits of its own follows
1408
+ * Chronological activity log (incl. comments).
1375
1409
  */
1376
- getRateLimits(options) {
1377
- return (options?.client ?? this.client).get({
1410
+ getActivity(options) {
1411
+ return (options.client ?? this.client).get({
1378
1412
  requestValidator: async (data) => await z.object({
1379
1413
  body: z.never().optional(),
1380
- path: z.never().optional(),
1414
+ path: zIssuesGetActivityPath,
1381
1415
  query: z.never().optional()
1382
1416
  }).parseAsync(data),
1383
- responseValidator: async (data) => await zProjectsGetRateLimitsResponse.parseAsync(data),
1417
+ responseValidator: async (data) => await zIssuesGetActivityResponse.parseAsync(data),
1384
1418
  security: [{
1385
1419
  scheme: "bearer",
1386
1420
  type: "http"
1387
1421
  }],
1388
- url: "/api/rate-limits",
1422
+ url: "/api/projects/{project_id}/issues/{issue_id}/activity",
1389
1423
  ...options
1390
1424
  });
1391
1425
  }
1392
- };
1393
- var Agents = class extends HeyApiClient {
1394
1426
  /**
1395
- * 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.
1396
1428
  */
1397
- conversations(options) {
1429
+ getAggregates(options) {
1398
1430
  return (options.client ?? this.client).get({
1399
1431
  requestValidator: async (data) => await z.object({
1400
1432
  body: z.never().optional(),
1401
- path: zAgentsConversationsPath,
1402
- query: zAgentsConversationsQuery.optional()
1433
+ path: zIssuesGetAggregatesPath,
1434
+ query: z.never().optional()
1403
1435
  }).parseAsync(data),
1404
- responseValidator: async (data) => await zAgentsConversationsResponse.parseAsync(data),
1436
+ responseValidator: async (data) => await zIssuesGetAggregatesResponse.parseAsync(data),
1405
1437
  security: [{
1406
1438
  scheme: "bearer",
1407
1439
  type: "http"
1408
1440
  }],
1409
- url: "/api/projects/{project_id}/agents/conversations",
1441
+ url: "/api/projects/{project_id}/issues/{issue_id}/aggregates",
1410
1442
  ...options
1411
1443
  });
1412
1444
  }
1413
1445
  /**
1414
- * Returns every AI span of a conversation's turns, oldest first, with its input and output.
1446
+ * Set/clear the per-user bookmark.
1415
1447
  */
1416
- conversation(options) {
1417
- return (options.client ?? this.client).get({
1448
+ setBookmark(options) {
1449
+ return (options.client ?? this.client).put({
1418
1450
  requestValidator: async (data) => await z.object({
1419
- body: z.never().optional(),
1420
- path: zAgentsConversationPath,
1451
+ body: zIssuesSetBookmarkBody,
1452
+ path: zIssuesSetBookmarkPath,
1421
1453
  query: z.never().optional()
1422
1454
  }).parseAsync(data),
1423
- responseValidator: async (data) => await zAgentsConversationResponse.parseAsync(data),
1455
+ responseValidator: async (data) => await zIssuesSetBookmarkResponse.parseAsync(data),
1424
1456
  security: [{
1425
1457
  scheme: "bearer",
1426
1458
  type: "http"
1427
1459
  }],
1428
- url: "/api/projects/{project_id}/agents/conversations/{conversation_id}",
1429
- ...options
1460
+ url: "/api/projects/{project_id}/issues/{issue_id}/bookmark",
1461
+ ...options,
1462
+ headers: {
1463
+ "Content-Type": "application/json",
1464
+ ...options.headers
1465
+ }
1430
1466
  });
1431
1467
  }
1432
1468
  /**
1433
- * Time-bucketed avg/p95 duration for `agent`/`ai_client` spans.
1469
+ * Add a note.
1434
1470
  */
1435
- duration(options) {
1436
- return (options.client ?? this.client).get({
1471
+ createComment(options) {
1472
+ return (options.client ?? this.client).post({
1437
1473
  requestValidator: async (data) => await z.object({
1438
- body: z.never().optional(),
1439
- path: zAgentsDurationPath,
1440
- query: zAgentsDurationQuery.optional()
1474
+ body: zIssuesCreateCommentBody,
1475
+ path: zIssuesCreateCommentPath,
1476
+ query: z.never().optional()
1441
1477
  }).parseAsync(data),
1442
- responseValidator: async (data) => await zAgentsDurationResponse.parseAsync(data),
1478
+ responseValidator: async (data) => await zIssuesCreateCommentResponse.parseAsync(data),
1443
1479
  security: [{
1444
1480
  scheme: "bearer",
1445
1481
  type: "http"
1446
1482
  }],
1447
- url: "/api/projects/{project_id}/agents/duration",
1448
- ...options
1483
+ url: "/api/projects/{project_id}/issues/{issue_id}/comments",
1484
+ ...options,
1485
+ headers: {
1486
+ "Content-Type": "application/json",
1487
+ ...options.headers
1488
+ }
1449
1489
  });
1450
1490
  }
1451
1491
  /**
1452
- * The options the environment filter offers, read from the data rather than
1453
- * hardcoded — an installation may name its environments anything.
1492
+ * Lists the grouping hashes that map to an issue.
1454
1493
  */
1455
- environments(options) {
1494
+ getHashes(options) {
1456
1495
  return (options.client ?? this.client).get({
1457
1496
  requestValidator: async (data) => await z.object({
1458
1497
  body: z.never().optional(),
1459
- path: zAgentsEnvironmentsPath,
1498
+ path: zIssuesGetHashesPath,
1460
1499
  query: z.never().optional()
1461
1500
  }).parseAsync(data),
1462
- responseValidator: async (data) => await zAgentsEnvironmentsResponse.parseAsync(data),
1501
+ responseValidator: async (data) => await zIssuesGetHashesResponse.parseAsync(data),
1463
1502
  security: [{
1464
1503
  scheme: "bearer",
1465
1504
  type: "http"
1466
1505
  }],
1467
- url: "/api/projects/{project_id}/agents/environments",
1506
+ url: "/api/projects/{project_id}/issues/{issue_id}/hashes",
1468
1507
  ...options
1469
1508
  });
1470
1509
  }
1471
1510
  /**
1472
- * Lists the AI models a project's agents called, with requests, tokens and latency.
1511
+ * Mark the issue as seen by the current user.
1473
1512
  */
1474
- modelsTable(options) {
1475
- return (options.client ?? this.client).get({
1476
- requestValidator: async (data) => await z.object({
1513
+ markSeen(options) {
1514
+ return (options.client ?? this.client).post({
1515
+ requestValidator: async (data) => await z.object({
1477
1516
  body: z.never().optional(),
1478
- path: zAgentsModelsTablePath,
1479
- query: zAgentsModelsTableQuery.optional()
1517
+ path: zIssuesMarkSeenPath,
1518
+ query: z.never().optional()
1480
1519
  }).parseAsync(data),
1481
- responseValidator: async (data) => await zAgentsModelsTableResponse.parseAsync(data),
1520
+ responseValidator: async (data) => await zIssuesMarkSeenResponse.parseAsync(data),
1482
1521
  security: [{
1483
1522
  scheme: "bearer",
1484
1523
  type: "http"
1485
1524
  }],
1486
- url: "/api/projects/{project_id}/agents/models",
1525
+ url: "/api/projects/{project_id}/issues/{issue_id}/seen",
1487
1526
  ...options
1488
1527
  });
1489
1528
  }
1490
1529
  /**
1491
- * Top models by LLM call count (`gen_ai.operation.type:ai_client`).
1530
+ * Zero-filled event-count timeseries.
1492
1531
  */
1493
- modelsCalls(options) {
1532
+ getStats(options) {
1494
1533
  return (options.client ?? this.client).get({
1495
1534
  requestValidator: async (data) => await z.object({
1496
1535
  body: z.never().optional(),
1497
- path: zAgentsModelsCallsPath,
1498
- query: zAgentsModelsCallsQuery.optional()
1536
+ path: zIssuesGetStatsPath,
1537
+ query: zIssuesGetStatsQuery.optional()
1499
1538
  }).parseAsync(data),
1500
- responseValidator: async (data) => await zAgentsModelsCallsResponse.parseAsync(data),
1539
+ responseValidator: async (data) => await zIssuesGetStatsResponse.parseAsync(data),
1501
1540
  security: [{
1502
1541
  scheme: "bearer",
1503
1542
  type: "http"
1504
1543
  }],
1505
- url: "/api/projects/{project_id}/agents/models/calls",
1544
+ url: "/api/projects/{project_id}/issues/{issue_id}/stats",
1506
1545
  ...options
1507
1546
  });
1508
1547
  }
1509
1548
  /**
1510
- * Top models by total tokens used (`gen_ai.operation.type:ai_client`).
1549
+ * Set/clear the per-user subscription.
1511
1550
  */
1512
- modelsTokens(options) {
1513
- return (options.client ?? this.client).get({
1551
+ setSubscription(options) {
1552
+ return (options.client ?? this.client).put({
1514
1553
  requestValidator: async (data) => await z.object({
1515
- body: z.never().optional(),
1516
- path: zAgentsModelsTokensPath,
1517
- query: zAgentsModelsTokensQuery.optional()
1554
+ body: zIssuesSetSubscriptionBody,
1555
+ path: zIssuesSetSubscriptionPath,
1556
+ query: z.never().optional()
1518
1557
  }).parseAsync(data),
1519
- responseValidator: async (data) => await zAgentsModelsTokensResponse.parseAsync(data),
1558
+ responseValidator: async (data) => await zIssuesSetSubscriptionResponse.parseAsync(data),
1520
1559
  security: [{
1521
1560
  scheme: "bearer",
1522
1561
  type: "http"
1523
1562
  }],
1524
- url: "/api/projects/{project_id}/agents/models/tokens",
1525
- ...options
1563
+ url: "/api/projects/{project_id}/issues/{issue_id}/subscription",
1564
+ ...options,
1565
+ headers: {
1566
+ "Content-Type": "application/json",
1567
+ ...options.headers
1568
+ }
1526
1569
  });
1527
1570
  }
1528
1571
  /**
1529
- * 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.
1530
1573
  */
1531
- runs(options) {
1574
+ getTagValues(options) {
1532
1575
  return (options.client ?? this.client).get({
1533
1576
  requestValidator: async (data) => await z.object({
1534
1577
  body: z.never().optional(),
1535
- path: zAgentsRunsPath,
1536
- query: zAgentsRunsQuery.optional()
1578
+ path: zIssuesGetTagValuesPath,
1579
+ query: z.never().optional()
1537
1580
  }).parseAsync(data),
1538
- responseValidator: async (data) => await zAgentsRunsResponse.parseAsync(data),
1581
+ responseValidator: async (data) => await zIssuesGetTagValuesResponse.parseAsync(data),
1539
1582
  security: [{
1540
1583
  scheme: "bearer",
1541
1584
  type: "http"
1542
1585
  }],
1543
- url: "/api/projects/{project_id}/agents/runs",
1586
+ url: "/api/projects/{project_id}/issues/{issue_id}/tags/{key}",
1544
1587
  ...options
1545
1588
  });
1546
1589
  }
1547
1590
  /**
1548
- * Agent runs, LLM calls, tool calls, errors, tokens and latency over the
1549
- * selected window — the numbers the six charts cannot state outright.
1591
+ * List user feedback for an issue.
1550
1592
  */
1551
- summary(options) {
1593
+ listUserReports(options) {
1552
1594
  return (options.client ?? this.client).get({
1553
1595
  requestValidator: async (data) => await z.object({
1554
1596
  body: z.never().optional(),
1555
- path: zAgentsSummaryPath,
1556
- query: zAgentsSummaryQuery.optional()
1597
+ path: zIssuesListUserReportsPath,
1598
+ query: zIssuesListUserReportsQuery.optional()
1557
1599
  }).parseAsync(data),
1558
- responseValidator: async (data) => await zAgentsSummaryResponse.parseAsync(data),
1600
+ responseValidator: async (data) => await zIssuesListUserReportsResponse.parseAsync(data),
1559
1601
  security: [{
1560
1602
  scheme: "bearer",
1561
1603
  type: "http"
1562
1604
  }],
1563
- url: "/api/projects/{project_id}/agents/summary",
1605
+ url: "/api/projects/{project_id}/issues/{issue_id}/user-reports",
1564
1606
  ...options
1565
1607
  });
1566
1608
  }
1567
1609
  /**
1568
- * Top tools by call count (`gen_ai.operation.type:tool`).
1610
+ * Attach user feedback to an issue.
1569
1611
  */
1570
- tools(options) {
1571
- return (options.client ?? this.client).get({
1612
+ createUserReport(options) {
1613
+ return (options.client ?? this.client).post({
1572
1614
  requestValidator: async (data) => await z.object({
1573
- body: z.never().optional(),
1574
- path: zAgentsToolsPath,
1575
- query: zAgentsToolsQuery.optional()
1615
+ body: zIssuesCreateUserReportBody,
1616
+ path: zIssuesCreateUserReportPath,
1617
+ query: z.never().optional()
1576
1618
  }).parseAsync(data),
1577
- responseValidator: async (data) => await zAgentsToolsResponse.parseAsync(data),
1619
+ responseValidator: async (data) => await zIssuesCreateUserReportResponse.parseAsync(data),
1578
1620
  security: [{
1579
1621
  scheme: "bearer",
1580
1622
  type: "http"
1581
1623
  }],
1582
- url: "/api/projects/{project_id}/agents/tools",
1583
- ...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
+ }
1584
1630
  });
1585
1631
  }
1632
+ };
1633
+ var Oauth = class extends HeyApiClient {
1586
1634
  /**
1587
- * Lists the tools a project's agents called, with calls, errors and latency.
1635
+ * Verifies an authorization request and says who is asking.
1588
1636
  */
1589
- toolsTable(options) {
1637
+ getAuthorization(options) {
1590
1638
  return (options.client ?? this.client).get({
1591
1639
  requestValidator: async (data) => await z.object({
1592
1640
  body: z.never().optional(),
1593
- path: zAgentsToolsTablePath,
1594
- query: zAgentsToolsTableQuery.optional()
1641
+ path: z.never().optional(),
1642
+ query: zOauthGetAuthorizationQuery
1595
1643
  }).parseAsync(data),
1596
- responseValidator: async (data) => await zAgentsToolsTableResponse.parseAsync(data),
1597
- security: [{
1598
- scheme: "bearer",
1599
- type: "http"
1600
- }],
1601
- url: "/api/projects/{project_id}/agents/tools/stats",
1644
+ responseValidator: async (data) => await zOauthGetAuthorizationResponse.parseAsync(data),
1645
+ url: "/api/oauth/authorize",
1602
1646
  ...options
1603
1647
  });
1604
1648
  }
1605
1649
  /**
1606
- * Paginated per-trace_id aggregate (duration, tokens, tool usage) across
1607
- * all AI spans sharing that trace, regardless of origin.
1650
+ * Approves or denies an authorization request as the signed-in user.
1608
1651
  */
1609
- traces(options) {
1610
- return (options.client ?? this.client).get({
1652
+ decideAuthorization(options) {
1653
+ return (options.client ?? this.client).post({
1611
1654
  requestValidator: async (data) => await z.object({
1612
- body: z.never().optional(),
1613
- path: zAgentsTracesPath,
1614
- query: zAgentsTracesQuery.optional()
1655
+ body: zOauthDecideAuthorizationBody,
1656
+ path: z.never().optional(),
1657
+ query: z.never().optional()
1615
1658
  }).parseAsync(data),
1616
- responseValidator: async (data) => await zAgentsTracesResponse.parseAsync(data),
1617
- security: [{
1618
- scheme: "bearer",
1619
- type: "http"
1620
- }],
1621
- url: "/api/projects/{project_id}/agents/traces",
1622
- ...options
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
+ }
1623
1666
  });
1624
1667
  }
1625
- };
1626
- var AlertRules = class extends HeyApiClient {
1627
1668
  /**
1628
- * Lists the alerts a project sent, newest first.
1669
+ * Lists the assistants connected to the signed-in user's account.
1629
1670
  */
1630
- listHistory(options) {
1631
- return (options.client ?? this.client).get({
1671
+ listGrants(options) {
1672
+ return (options?.client ?? this.client).get({
1632
1673
  requestValidator: async (data) => await z.object({
1633
1674
  body: z.never().optional(),
1634
- path: zAlertRulesListHistoryPath,
1635
- query: zAlertRulesListHistoryQuery.optional()
1675
+ path: z.never().optional(),
1676
+ query: z.never().optional()
1636
1677
  }).parseAsync(data),
1637
- responseValidator: async (data) => await zAlertRulesListHistoryResponse.parseAsync(data),
1638
- security: [{
1639
- scheme: "bearer",
1640
- type: "http"
1641
- }],
1642
- url: "/api/projects/{project_id}/alert-history",
1678
+ responseValidator: async (data) => await zOauthListGrantsResponse.parseAsync(data),
1679
+ url: "/api/oauth/grants",
1643
1680
  ...options
1644
1681
  });
1645
1682
  }
1646
1683
  /**
1647
- * Count a project's alert deliveries per day, by outcome.
1684
+ * Disconnects an assistant: its tokens stop working at once.
1648
1685
  */
1649
- historyByDay(options) {
1650
- return (options.client ?? this.client).get({
1686
+ revokeGrant(options) {
1687
+ return (options.client ?? this.client).delete({
1651
1688
  requestValidator: async (data) => await z.object({
1652
1689
  body: z.never().optional(),
1653
- path: zAlertRulesHistoryByDayPath,
1654
- query: zAlertRulesHistoryByDayQuery.optional()
1690
+ path: zOauthRevokeGrantPath,
1691
+ query: z.never().optional()
1655
1692
  }).parseAsync(data),
1656
- responseValidator: async (data) => await zAlertRulesHistoryByDayResponse.parseAsync(data),
1657
- security: [{
1658
- scheme: "bearer",
1659
- type: "http"
1660
- }],
1661
- url: "/api/projects/{project_id}/alert-history/daily",
1693
+ responseValidator: async (data) => await zOauthRevokeGrantResponse.parseAsync(data),
1694
+ url: "/api/oauth/grants/{id}",
1662
1695
  ...options
1663
1696
  });
1664
1697
  }
1698
+ };
1699
+ var Projects = class extends HeyApiClient {
1665
1700
  /**
1666
- * Lists a project's alert rules.
1701
+ * List projects with pagination.
1702
+ *
1703
+ * Only the projects the caller holds a permission on.
1667
1704
  */
1668
1705
  list(options) {
1669
- return (options.client ?? this.client).get({
1706
+ return (options?.client ?? this.client).get({
1670
1707
  requestValidator: async (data) => await z.object({
1671
1708
  body: z.never().optional(),
1672
- path: zAlertRulesListPath,
1673
- query: z.never().optional()
1709
+ path: z.never().optional(),
1710
+ query: zProjectsListQuery.optional()
1674
1711
  }).parseAsync(data),
1675
- responseValidator: async (data) => await zAlertRulesListResponse.parseAsync(data),
1712
+ responseValidator: async (data) => await zProjectsListResponse.parseAsync(data),
1676
1713
  security: [{
1677
1714
  scheme: "bearer",
1678
1715
  type: "http"
1679
1716
  }],
1680
- url: "/api/projects/{project_id}/alert-rules",
1717
+ url: "/api/projects",
1681
1718
  ...options
1682
1719
  });
1683
1720
  }
1684
1721
  /**
1685
- * Creates an alert rule in a project.
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.
1686
1727
  */
1687
1728
  create(options) {
1688
1729
  return (options.client ?? this.client).post({
1689
1730
  requestValidator: async (data) => await z.object({
1690
- body: zAlertRulesCreateBody,
1691
- path: zAlertRulesCreatePath,
1731
+ body: zProjectsCreateBody,
1732
+ path: z.never().optional(),
1692
1733
  query: z.never().optional()
1693
1734
  }).parseAsync(data),
1694
- responseValidator: async (data) => await zAlertRulesCreateResponse.parseAsync(data),
1735
+ responseValidator: async (data) => await zProjectsCreateResponse.parseAsync(data),
1695
1736
  security: [{
1696
1737
  scheme: "bearer",
1697
1738
  type: "http"
1698
1739
  }],
1699
- url: "/api/projects/{project_id}/alert-rules",
1740
+ url: "/api/projects",
1700
1741
  ...options,
1701
1742
  headers: {
1702
1743
  "Content-Type": "application/json",
@@ -1705,59 +1746,59 @@ var AlertRules = class extends HeyApiClient {
1705
1746
  });
1706
1747
  }
1707
1748
  /**
1708
- * Deletes an alert rule.
1749
+ * Delete a project
1709
1750
  */
1710
1751
  delete(options) {
1711
1752
  return (options.client ?? this.client).delete({
1712
1753
  requestValidator: async (data) => await z.object({
1713
1754
  body: z.never().optional(),
1714
- path: zAlertRulesDeletePath,
1755
+ path: zProjectsDeletePath,
1715
1756
  query: z.never().optional()
1716
1757
  }).parseAsync(data),
1717
- responseValidator: async (data) => await zAlertRulesDeleteResponse.parseAsync(data),
1758
+ responseValidator: async (data) => await zProjectsDeleteResponse.parseAsync(data),
1718
1759
  security: [{
1719
1760
  scheme: "bearer",
1720
1761
  type: "http"
1721
1762
  }],
1722
- url: "/api/projects/{project_id}/alert-rules/{rule_id}",
1763
+ url: "/api/projects/{id}",
1723
1764
  ...options
1724
1765
  });
1725
1766
  }
1726
1767
  /**
1727
- * Gets one alert rule.
1768
+ * Get a project by ID
1728
1769
  */
1729
1770
  get(options) {
1730
1771
  return (options.client ?? this.client).get({
1731
1772
  requestValidator: async (data) => await z.object({
1732
1773
  body: z.never().optional(),
1733
- path: zAlertRulesGetPath,
1774
+ path: zProjectsGetPath,
1734
1775
  query: z.never().optional()
1735
1776
  }).parseAsync(data),
1736
- responseValidator: async (data) => await zAlertRulesGetResponse.parseAsync(data),
1777
+ responseValidator: async (data) => await zProjectsGetResponse.parseAsync(data),
1737
1778
  security: [{
1738
1779
  scheme: "bearer",
1739
1780
  type: "http"
1740
1781
  }],
1741
- url: "/api/projects/{project_id}/alert-rules/{rule_id}",
1782
+ url: "/api/projects/{id}",
1742
1783
  ...options
1743
1784
  });
1744
1785
  }
1745
1786
  /**
1746
- * Updates an alert rule.
1787
+ * Update a project
1747
1788
  */
1748
1789
  update(options) {
1749
1790
  return (options.client ?? this.client).patch({
1750
1791
  requestValidator: async (data) => await z.object({
1751
- body: zAlertRulesUpdateBody,
1752
- path: zAlertRulesUpdatePath,
1792
+ body: zProjectsUpdateBody,
1793
+ path: zProjectsUpdatePath,
1753
1794
  query: z.never().optional()
1754
1795
  }).parseAsync(data),
1755
- responseValidator: async (data) => await zAlertRulesUpdateResponse.parseAsync(data),
1796
+ responseValidator: async (data) => await zProjectsUpdateResponse.parseAsync(data),
1756
1797
  security: [{
1757
1798
  scheme: "bearer",
1758
1799
  type: "http"
1759
1800
  }],
1760
- url: "/api/projects/{project_id}/alert-rules/{rule_id}",
1801
+ url: "/api/projects/{id}",
1761
1802
  ...options,
1762
1803
  headers: {
1763
1804
  "Content-Type": "application/json",
@@ -1765,308 +1806,333 @@ var AlertRules = class extends HeyApiClient {
1765
1806
  }
1766
1807
  });
1767
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
+ }
1768
1828
  };
1769
- var Events = class extends HeyApiClient {
1829
+ var Agents = class extends HeyApiClient {
1770
1830
  /**
1771
- * Downloads an attachment. Only a real image is served inline; anything
1772
- * 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.
1773
1832
  */
1774
- downloadAttachment(options) {
1833
+ conversations(options) {
1775
1834
  return (options.client ?? this.client).get({
1776
1835
  requestValidator: async (data) => await z.object({
1777
1836
  body: z.never().optional(),
1778
- path: zEventsDownloadAttachmentPath,
1779
- query: z.never().optional()
1837
+ path: zAgentsConversationsPath,
1838
+ query: zAgentsConversationsQuery.optional()
1780
1839
  }).parseAsync(data),
1781
- responseValidator: async (data) => await zEventsDownloadAttachmentResponse.parseAsync(data),
1840
+ responseValidator: async (data) => await zAgentsConversationsResponse.parseAsync(data),
1782
1841
  security: [{
1783
1842
  scheme: "bearer",
1784
1843
  type: "http"
1785
1844
  }],
1786
- url: "/api/projects/{project_id}/attachments/{attachment_id}",
1845
+ url: "/api/projects/{project_id}/agents/conversations",
1787
1846
  ...options
1788
1847
  });
1789
1848
  }
1790
1849
  /**
1791
- * Resolve the ID returned by a Sentry SDK without already knowing the issue.
1850
+ * Returns every AI span of a conversation's turns, oldest first, with its input and output.
1792
1851
  */
1793
- getBySentryId(options) {
1852
+ conversation(options) {
1794
1853
  return (options.client ?? this.client).get({
1795
1854
  requestValidator: async (data) => await z.object({
1796
1855
  body: z.never().optional(),
1797
- path: zEventsGetBySentryIdPath,
1856
+ path: zAgentsConversationPath,
1798
1857
  query: z.never().optional()
1799
1858
  }).parseAsync(data),
1800
- responseValidator: async (data) => await zEventsGetBySentryIdResponse.parseAsync(data),
1859
+ responseValidator: async (data) => await zAgentsConversationResponse.parseAsync(data),
1801
1860
  security: [{
1802
1861
  scheme: "bearer",
1803
1862
  type: "http"
1804
1863
  }],
1805
- url: "/api/projects/{project_id}/events/sentry/{event_id}",
1864
+ url: "/api/projects/{project_id}/agents/conversations/{conversation_id}",
1806
1865
  ...options
1807
1866
  });
1808
1867
  }
1809
1868
  /**
1810
- * Lists events for an issue with cursor-based pagination
1869
+ * Time-bucketed avg/p95 duration for `agent`/`ai_client` spans.
1811
1870
  */
1812
- list(options) {
1871
+ duration(options) {
1813
1872
  return (options.client ?? this.client).get({
1814
1873
  requestValidator: async (data) => await z.object({
1815
1874
  body: z.never().optional(),
1816
- path: zEventsListPath,
1817
- query: zEventsListQuery.optional()
1875
+ path: zAgentsDurationPath,
1876
+ query: zAgentsDurationQuery.optional()
1818
1877
  }).parseAsync(data),
1819
- responseValidator: async (data) => await zEventsListResponse.parseAsync(data),
1878
+ responseValidator: async (data) => await zAgentsDurationResponse.parseAsync(data),
1820
1879
  security: [{
1821
1880
  scheme: "bearer",
1822
1881
  type: "http"
1823
1882
  }],
1824
- url: "/api/projects/{project_id}/issues/{issue_id}/events",
1883
+ url: "/api/projects/{project_id}/agents/duration",
1825
1884
  ...options
1826
1885
  });
1827
1886
  }
1828
1887
  /**
1829
- * Gets a single event with full data
1888
+ * The options the environment filter offers, read from the data rather than
1889
+ * hardcoded — an installation may name its environments anything.
1830
1890
  */
1831
- get(options) {
1891
+ environments(options) {
1832
1892
  return (options.client ?? this.client).get({
1833
1893
  requestValidator: async (data) => await z.object({
1834
1894
  body: z.never().optional(),
1835
- path: zEventsGetPath,
1895
+ path: zAgentsEnvironmentsPath,
1836
1896
  query: z.never().optional()
1837
1897
  }).parseAsync(data),
1838
- responseValidator: async (data) => await zEventsGetResponse.parseAsync(data),
1898
+ responseValidator: async (data) => await zAgentsEnvironmentsResponse.parseAsync(data),
1839
1899
  security: [{
1840
1900
  scheme: "bearer",
1841
1901
  type: "http"
1842
1902
  }],
1843
- url: "/api/projects/{project_id}/issues/{issue_id}/events/{event_id}",
1903
+ url: "/api/projects/{project_id}/agents/environments",
1844
1904
  ...options
1845
1905
  });
1846
1906
  }
1847
1907
  /**
1848
- * Lists the files sent with an event, such as a feedback's screenshot.
1908
+ * Lists the AI models a project's agents called, with requests, tokens and latency.
1849
1909
  */
1850
- listAttachments(options) {
1910
+ modelsTable(options) {
1851
1911
  return (options.client ?? this.client).get({
1852
1912
  requestValidator: async (data) => await z.object({
1853
1913
  body: z.never().optional(),
1854
- path: zEventsListAttachmentsPath,
1855
- query: 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",
1923
+ ...options
1924
+ });
1925
+ }
1926
+ /**
1927
+ * Top models by LLM call count (`gen_ai.operation.type:ai_client`).
1928
+ */
1929
+ modelsCalls(options) {
1930
+ return (options.client ?? this.client).get({
1931
+ requestValidator: async (data) => await z.object({
1932
+ body: z.never().optional(),
1933
+ path: zAgentsModelsCallsPath,
1934
+ query: zAgentsModelsCallsQuery.optional()
1856
1935
  }).parseAsync(data),
1857
- responseValidator: async (data) => await zEventsListAttachmentsResponse.parseAsync(data),
1936
+ responseValidator: async (data) => await zAgentsModelsCallsResponse.parseAsync(data),
1858
1937
  security: [{
1859
1938
  scheme: "bearer",
1860
1939
  type: "http"
1861
1940
  }],
1862
- url: "/api/projects/{project_id}/issues/{issue_id}/events/{event_id}/attachments",
1941
+ url: "/api/projects/{project_id}/agents/models/calls",
1863
1942
  ...options
1864
1943
  });
1865
1944
  }
1866
- };
1867
- var Environments = class extends HeyApiClient {
1868
1945
  /**
1869
- * 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`).
1870
1947
  */
1871
- list(options) {
1948
+ modelsTokens(options) {
1872
1949
  return (options.client ?? this.client).get({
1873
1950
  requestValidator: async (data) => await z.object({
1874
1951
  body: z.never().optional(),
1875
- path: zEnvironmentsListPath,
1876
- query: z.never().optional()
1952
+ path: zAgentsModelsTokensPath,
1953
+ query: zAgentsModelsTokensQuery.optional()
1877
1954
  }).parseAsync(data),
1878
- responseValidator: async (data) => await zEnvironmentsListResponse.parseAsync(data),
1955
+ responseValidator: async (data) => await zAgentsModelsTokensResponse.parseAsync(data),
1879
1956
  security: [{
1880
1957
  scheme: "bearer",
1881
1958
  type: "http"
1882
1959
  }],
1883
- url: "/api/projects/{project_id}/environments",
1960
+ url: "/api/projects/{project_id}/agents/models/tokens",
1884
1961
  ...options
1885
1962
  });
1886
1963
  }
1887
- };
1888
- var Stats = class extends HeyApiClient {
1889
1964
  /**
1890
- * Counts a project's events over time, bucketed for a chart.
1965
+ * Time-bucketed count of agent-run spans (`gen_ai.operation.type:agent`).
1891
1966
  */
1892
- getEventTimeseries(options) {
1967
+ runs(options) {
1893
1968
  return (options.client ?? this.client).get({
1894
1969
  requestValidator: async (data) => await z.object({
1895
1970
  body: z.never().optional(),
1896
- path: zStatsGetEventTimeseriesPath,
1897
- query: zStatsGetEventTimeseriesQuery.optional()
1971
+ path: zAgentsRunsPath,
1972
+ query: zAgentsRunsQuery.optional()
1898
1973
  }).parseAsync(data),
1899
- responseValidator: async (data) => await zStatsGetEventTimeseriesResponse.parseAsync(data),
1974
+ responseValidator: async (data) => await zAgentsRunsResponse.parseAsync(data),
1900
1975
  security: [{
1901
1976
  scheme: "bearer",
1902
1977
  type: "http"
1903
1978
  }],
1904
- url: "/api/projects/{project_id}/events/stats",
1979
+ url: "/api/projects/{project_id}/agents/runs",
1905
1980
  ...options
1906
1981
  });
1907
1982
  }
1908
1983
  /**
1909
- * Headline figures for a project's overview: events, new and open issues.
1984
+ * Agent runs, LLM calls, tool calls, errors, tokens and latency over the
1985
+ * selected window — the numbers the six charts cannot state outright.
1910
1986
  */
1911
- getSummary(options) {
1987
+ summary(options) {
1912
1988
  return (options.client ?? this.client).get({
1913
1989
  requestValidator: async (data) => await z.object({
1914
1990
  body: z.never().optional(),
1915
- path: zStatsGetSummaryPath,
1916
- query: zStatsGetSummaryQuery.optional()
1991
+ path: zAgentsSummaryPath,
1992
+ query: zAgentsSummaryQuery.optional()
1917
1993
  }).parseAsync(data),
1918
- responseValidator: async (data) => await zStatsGetSummaryResponse.parseAsync(data),
1994
+ responseValidator: async (data) => await zAgentsSummaryResponse.parseAsync(data),
1919
1995
  security: [{
1920
1996
  scheme: "bearer",
1921
1997
  type: "http"
1922
1998
  }],
1923
- url: "/api/projects/{project_id}/stats/summary",
1999
+ url: "/api/projects/{project_id}/agents/summary",
1924
2000
  ...options
1925
2001
  });
1926
2002
  }
1927
- };
1928
- var Feedback = class extends HeyApiClient {
1929
2003
  /**
1930
- * Lists user feedback with what each user submitted. Every feedback is an
1931
- * issue of category `feedback`; spam is a muted one.
2004
+ * Top tools by call count (`gen_ai.operation.type:tool`).
1932
2005
  */
1933
- list(options) {
2006
+ tools(options) {
1934
2007
  return (options.client ?? this.client).get({
1935
2008
  requestValidator: async (data) => await z.object({
1936
2009
  body: z.never().optional(),
1937
- path: zFeedbackListPath,
1938
- query: zFeedbackListQuery.optional()
2010
+ path: zAgentsToolsPath,
2011
+ query: zAgentsToolsQuery.optional()
1939
2012
  }).parseAsync(data),
1940
- responseValidator: async (data) => await zFeedbackListResponse.parseAsync(data),
2013
+ responseValidator: async (data) => await zAgentsToolsResponse.parseAsync(data),
1941
2014
  security: [{
1942
2015
  scheme: "bearer",
1943
2016
  type: "http"
1944
2017
  }],
1945
- url: "/api/projects/{project_id}/feedback",
2018
+ url: "/api/projects/{project_id}/agents/tools",
1946
2019
  ...options
1947
2020
  });
1948
2021
  }
1949
- };
1950
- var Issues = class extends HeyApiClient {
1951
2022
  /**
1952
- * Deletes many issues at once, selected by id or by filter.
2023
+ * Lists the tools a project's agents called, with calls, errors and latency.
1953
2024
  */
1954
- bulkDelete(options) {
1955
- return (options.client ?? this.client).delete({
2025
+ toolsTable(options) {
2026
+ return (options.client ?? this.client).get({
1956
2027
  requestValidator: async (data) => await z.object({
1957
- body: zIssuesBulkDeleteBody,
1958
- path: zIssuesBulkDeletePath,
1959
- query: z.never().optional()
2028
+ body: z.never().optional(),
2029
+ path: zAgentsToolsTablePath,
2030
+ query: zAgentsToolsTableQuery.optional()
1960
2031
  }).parseAsync(data),
1961
- responseValidator: async (data) => await zIssuesBulkDeleteResponse.parseAsync(data),
2032
+ responseValidator: async (data) => await zAgentsToolsTableResponse.parseAsync(data),
1962
2033
  security: [{
1963
2034
  scheme: "bearer",
1964
2035
  type: "http"
1965
2036
  }],
1966
- url: "/api/projects/{project_id}/issues",
1967
- ...options,
1968
- headers: {
1969
- "Content-Type": "application/json",
1970
- ...options.headers
1971
- }
2037
+ url: "/api/projects/{project_id}/agents/tools/stats",
2038
+ ...options
1972
2039
  });
1973
2040
  }
1974
2041
  /**
1975
- * Lists issues for a project with offset-based pagination
2042
+ * Paginated per-trace_id aggregate (duration, tokens, tool usage) across
2043
+ * all AI spans sharing that trace, regardless of origin.
1976
2044
  */
1977
- list(options) {
2045
+ traces(options) {
1978
2046
  return (options.client ?? this.client).get({
1979
2047
  requestValidator: async (data) => await z.object({
1980
2048
  body: z.never().optional(),
1981
- path: zIssuesListPath,
1982
- query: zIssuesListQuery.optional()
2049
+ path: zAgentsTracesPath,
2050
+ query: zAgentsTracesQuery.optional()
1983
2051
  }).parseAsync(data),
1984
- responseValidator: async (data) => await zIssuesListResponse.parseAsync(data),
2052
+ responseValidator: async (data) => await zAgentsTracesResponse.parseAsync(data),
1985
2053
  security: [{
1986
2054
  scheme: "bearer",
1987
2055
  type: "http"
1988
2056
  }],
1989
- url: "/api/projects/{project_id}/issues",
2057
+ url: "/api/projects/{project_id}/agents/traces",
1990
2058
  ...options
1991
2059
  });
1992
2060
  }
2061
+ };
2062
+ var AlertRules = class extends HeyApiClient {
1993
2063
  /**
1994
- * Sets the status or priority of many issues at once, by id.
2064
+ * Lists the alerts a project sent, newest first.
1995
2065
  */
1996
- bulkUpdate(options) {
1997
- return (options.client ?? this.client).put({
2066
+ listHistory(options) {
2067
+ return (options.client ?? this.client).get({
1998
2068
  requestValidator: async (data) => await z.object({
1999
- body: zIssuesBulkUpdateBody,
2000
- path: zIssuesBulkUpdatePath,
2001
- query: z.never().optional()
2069
+ body: z.never().optional(),
2070
+ path: zAlertRulesListHistoryPath,
2071
+ query: zAlertRulesListHistoryQuery.optional()
2002
2072
  }).parseAsync(data),
2003
- responseValidator: async (data) => await zIssuesBulkUpdateResponse.parseAsync(data),
2073
+ responseValidator: async (data) => await zAlertRulesListHistoryResponse.parseAsync(data),
2004
2074
  security: [{
2005
2075
  scheme: "bearer",
2006
2076
  type: "http"
2007
2077
  }],
2008
- url: "/api/projects/{project_id}/issues",
2009
- ...options,
2010
- headers: {
2011
- "Content-Type": "application/json",
2012
- ...options.headers
2013
- }
2078
+ url: "/api/projects/{project_id}/alert-history",
2079
+ ...options
2014
2080
  });
2015
2081
  }
2016
2082
  /**
2017
- * Hard-deletes an issue and all associated events
2083
+ * Count a project's alert deliveries per day, by outcome.
2018
2084
  */
2019
- delete(options) {
2020
- return (options.client ?? this.client).delete({
2085
+ historyByDay(options) {
2086
+ return (options.client ?? this.client).get({
2021
2087
  requestValidator: async (data) => await z.object({
2022
2088
  body: z.never().optional(),
2023
- path: zIssuesDeletePath,
2024
- query: z.never().optional()
2089
+ path: zAlertRulesHistoryByDayPath,
2090
+ query: zAlertRulesHistoryByDayQuery.optional()
2025
2091
  }).parseAsync(data),
2026
- responseValidator: async (data) => await zIssuesDeleteResponse.parseAsync(data),
2092
+ responseValidator: async (data) => await zAlertRulesHistoryByDayResponse.parseAsync(data),
2027
2093
  security: [{
2028
2094
  scheme: "bearer",
2029
2095
  type: "http"
2030
2096
  }],
2031
- url: "/api/projects/{project_id}/issues/{issue_id}",
2097
+ url: "/api/projects/{project_id}/alert-history/daily",
2032
2098
  ...options
2033
2099
  });
2034
2100
  }
2035
2101
  /**
2036
- * Gets a single issue by ID
2102
+ * Lists a project's alert rules.
2037
2103
  */
2038
- get(options) {
2104
+ list(options) {
2039
2105
  return (options.client ?? this.client).get({
2040
2106
  requestValidator: async (data) => await z.object({
2041
2107
  body: z.never().optional(),
2042
- path: zIssuesGetPath,
2108
+ path: zAlertRulesListPath,
2043
2109
  query: z.never().optional()
2044
2110
  }).parseAsync(data),
2045
- responseValidator: async (data) => await zIssuesGetResponse.parseAsync(data),
2111
+ responseValidator: async (data) => await zAlertRulesListResponse.parseAsync(data),
2046
2112
  security: [{
2047
2113
  scheme: "bearer",
2048
2114
  type: "http"
2049
2115
  }],
2050
- url: "/api/projects/{project_id}/issues/{issue_id}",
2116
+ url: "/api/projects/{project_id}/alert-rules",
2051
2117
  ...options
2052
2118
  });
2053
2119
  }
2054
2120
  /**
2055
- * Updates issue state (resolve, mute, etc.)
2121
+ * Creates an alert rule in a project.
2056
2122
  */
2057
- update(options) {
2058
- return (options.client ?? this.client).patch({
2123
+ create(options) {
2124
+ return (options.client ?? this.client).post({
2059
2125
  requestValidator: async (data) => await z.object({
2060
- body: zIssuesUpdateBody,
2061
- path: zIssuesUpdatePath,
2126
+ body: zAlertRulesCreateBody,
2127
+ path: zAlertRulesCreatePath,
2062
2128
  query: z.never().optional()
2063
2129
  }).parseAsync(data),
2064
- responseValidator: async (data) => await zIssuesUpdateResponse.parseAsync(data),
2130
+ responseValidator: async (data) => await zAlertRulesCreateResponse.parseAsync(data),
2065
2131
  security: [{
2066
2132
  scheme: "bearer",
2067
2133
  type: "http"
2068
2134
  }],
2069
- url: "/api/projects/{project_id}/issues/{issue_id}",
2135
+ url: "/api/projects/{project_id}/alert-rules",
2070
2136
  ...options,
2071
2137
  headers: {
2072
2138
  "Content-Type": "application/json",
@@ -2075,59 +2141,59 @@ var Issues = class extends HeyApiClient {
2075
2141
  });
2076
2142
  }
2077
2143
  /**
2078
- * Chronological activity log (incl. comments).
2144
+ * Deletes an alert rule.
2079
2145
  */
2080
- getActivity(options) {
2081
- return (options.client ?? this.client).get({
2146
+ delete(options) {
2147
+ return (options.client ?? this.client).delete({
2082
2148
  requestValidator: async (data) => await z.object({
2083
2149
  body: z.never().optional(),
2084
- path: zIssuesGetActivityPath,
2150
+ path: zAlertRulesDeletePath,
2085
2151
  query: z.never().optional()
2086
2152
  }).parseAsync(data),
2087
- responseValidator: async (data) => await zIssuesGetActivityResponse.parseAsync(data),
2153
+ responseValidator: async (data) => await zAlertRulesDeleteResponse.parseAsync(data),
2088
2154
  security: [{
2089
2155
  scheme: "bearer",
2090
2156
  type: "http"
2091
2157
  }],
2092
- url: "/api/projects/{project_id}/issues/{issue_id}/activity",
2158
+ url: "/api/projects/{project_id}/alert-rules/{rule_id}",
2093
2159
  ...options
2094
2160
  });
2095
2161
  }
2096
2162
  /**
2097
- * Returns the unique user count and top tags for the issue.
2163
+ * Gets one alert rule.
2098
2164
  */
2099
- getAggregates(options) {
2165
+ get(options) {
2100
2166
  return (options.client ?? this.client).get({
2101
2167
  requestValidator: async (data) => await z.object({
2102
2168
  body: z.never().optional(),
2103
- path: zIssuesGetAggregatesPath,
2169
+ path: zAlertRulesGetPath,
2104
2170
  query: z.never().optional()
2105
2171
  }).parseAsync(data),
2106
- responseValidator: async (data) => await zIssuesGetAggregatesResponse.parseAsync(data),
2172
+ responseValidator: async (data) => await zAlertRulesGetResponse.parseAsync(data),
2107
2173
  security: [{
2108
2174
  scheme: "bearer",
2109
2175
  type: "http"
2110
2176
  }],
2111
- url: "/api/projects/{project_id}/issues/{issue_id}/aggregates",
2177
+ url: "/api/projects/{project_id}/alert-rules/{rule_id}",
2112
2178
  ...options
2113
2179
  });
2114
2180
  }
2115
2181
  /**
2116
- * Set/clear the per-user bookmark.
2182
+ * Updates an alert rule.
2117
2183
  */
2118
- setBookmark(options) {
2119
- return (options.client ?? this.client).put({
2184
+ update(options) {
2185
+ return (options.client ?? this.client).patch({
2120
2186
  requestValidator: async (data) => await z.object({
2121
- body: zIssuesSetBookmarkBody,
2122
- path: zIssuesSetBookmarkPath,
2187
+ body: zAlertRulesUpdateBody,
2188
+ path: zAlertRulesUpdatePath,
2123
2189
  query: z.never().optional()
2124
2190
  }).parseAsync(data),
2125
- responseValidator: async (data) => await zIssuesSetBookmarkResponse.parseAsync(data),
2191
+ responseValidator: async (data) => await zAlertRulesUpdateResponse.parseAsync(data),
2126
2192
  security: [{
2127
2193
  scheme: "bearer",
2128
2194
  type: "http"
2129
2195
  }],
2130
- url: "/api/projects/{project_id}/issues/{issue_id}/bookmark",
2196
+ url: "/api/projects/{project_id}/alert-rules/{rule_id}",
2131
2197
  ...options,
2132
2198
  headers: {
2133
2199
  "Content-Type": "application/json",
@@ -2135,168 +2201,163 @@ var Issues = class extends HeyApiClient {
2135
2201
  }
2136
2202
  });
2137
2203
  }
2204
+ };
2205
+ var Events = class extends HeyApiClient {
2138
2206
  /**
2139
- * Add a note.
2207
+ * Downloads an attachment. Only a real image is served inline; anything
2208
+ * else, whatever type it claims, is a download that never runs.
2140
2209
  */
2141
- createComment(options) {
2142
- return (options.client ?? this.client).post({
2210
+ downloadAttachment(options) {
2211
+ return (options.client ?? this.client).get({
2143
2212
  requestValidator: async (data) => await z.object({
2144
- body: zIssuesCreateCommentBody,
2145
- path: zIssuesCreateCommentPath,
2213
+ body: z.never().optional(),
2214
+ path: zEventsDownloadAttachmentPath,
2146
2215
  query: z.never().optional()
2147
2216
  }).parseAsync(data),
2148
- responseValidator: async (data) => await zIssuesCreateCommentResponse.parseAsync(data),
2217
+ responseValidator: async (data) => await zEventsDownloadAttachmentResponse.parseAsync(data),
2149
2218
  security: [{
2150
2219
  scheme: "bearer",
2151
2220
  type: "http"
2152
2221
  }],
2153
- url: "/api/projects/{project_id}/issues/{issue_id}/comments",
2154
- ...options,
2155
- headers: {
2156
- "Content-Type": "application/json",
2157
- ...options.headers
2158
- }
2222
+ url: "/api/projects/{project_id}/attachments/{attachment_id}",
2223
+ ...options
2159
2224
  });
2160
2225
  }
2161
2226
  /**
2162
- * Lists the grouping hashes that map to an issue.
2227
+ * Resolve the ID returned by a Sentry SDK without already knowing the issue.
2163
2228
  */
2164
- getHashes(options) {
2229
+ getBySentryId(options) {
2165
2230
  return (options.client ?? this.client).get({
2166
2231
  requestValidator: async (data) => await z.object({
2167
2232
  body: z.never().optional(),
2168
- path: zIssuesGetHashesPath,
2233
+ path: zEventsGetBySentryIdPath,
2169
2234
  query: z.never().optional()
2170
2235
  }).parseAsync(data),
2171
- responseValidator: async (data) => await zIssuesGetHashesResponse.parseAsync(data),
2236
+ responseValidator: async (data) => await zEventsGetBySentryIdResponse.parseAsync(data),
2172
2237
  security: [{
2173
2238
  scheme: "bearer",
2174
2239
  type: "http"
2175
2240
  }],
2176
- url: "/api/projects/{project_id}/issues/{issue_id}/hashes",
2241
+ url: "/api/projects/{project_id}/events/sentry/{event_id}",
2177
2242
  ...options
2178
2243
  });
2179
2244
  }
2180
2245
  /**
2181
- * Mark the issue as seen by the current user.
2246
+ * Lists events for an issue with cursor-based pagination
2182
2247
  */
2183
- markSeen(options) {
2184
- return (options.client ?? this.client).post({
2248
+ list(options) {
2249
+ return (options.client ?? this.client).get({
2185
2250
  requestValidator: async (data) => await z.object({
2186
2251
  body: z.never().optional(),
2187
- path: zIssuesMarkSeenPath,
2188
- query: z.never().optional()
2252
+ path: zEventsListPath,
2253
+ query: zEventsListQuery.optional()
2189
2254
  }).parseAsync(data),
2190
- responseValidator: async (data) => await zIssuesMarkSeenResponse.parseAsync(data),
2255
+ responseValidator: async (data) => await zEventsListResponse.parseAsync(data),
2191
2256
  security: [{
2192
2257
  scheme: "bearer",
2193
2258
  type: "http"
2194
2259
  }],
2195
- url: "/api/projects/{project_id}/issues/{issue_id}/seen",
2260
+ url: "/api/projects/{project_id}/issues/{issue_id}/events",
2196
2261
  ...options
2197
2262
  });
2198
2263
  }
2199
2264
  /**
2200
- * Zero-filled event-count timeseries.
2265
+ * Gets a single event with full data
2201
2266
  */
2202
- getStats(options) {
2267
+ get(options) {
2203
2268
  return (options.client ?? this.client).get({
2204
2269
  requestValidator: async (data) => await z.object({
2205
2270
  body: z.never().optional(),
2206
- path: zIssuesGetStatsPath,
2207
- query: zIssuesGetStatsQuery.optional()
2271
+ path: zEventsGetPath,
2272
+ query: z.never().optional()
2208
2273
  }).parseAsync(data),
2209
- responseValidator: async (data) => await zIssuesGetStatsResponse.parseAsync(data),
2274
+ responseValidator: async (data) => await zEventsGetResponse.parseAsync(data),
2210
2275
  security: [{
2211
2276
  scheme: "bearer",
2212
2277
  type: "http"
2213
2278
  }],
2214
- url: "/api/projects/{project_id}/issues/{issue_id}/stats",
2279
+ url: "/api/projects/{project_id}/issues/{issue_id}/events/{event_id}",
2215
2280
  ...options
2216
2281
  });
2217
2282
  }
2218
2283
  /**
2219
- * Set/clear the per-user subscription.
2284
+ * Lists the files sent with an event, such as a feedback's screenshot.
2220
2285
  */
2221
- setSubscription(options) {
2222
- return (options.client ?? this.client).put({
2286
+ listAttachments(options) {
2287
+ return (options.client ?? this.client).get({
2223
2288
  requestValidator: async (data) => await z.object({
2224
- body: zIssuesSetSubscriptionBody,
2225
- path: zIssuesSetSubscriptionPath,
2289
+ body: z.never().optional(),
2290
+ path: zEventsListAttachmentsPath,
2226
2291
  query: z.never().optional()
2227
2292
  }).parseAsync(data),
2228
- responseValidator: async (data) => await zIssuesSetSubscriptionResponse.parseAsync(data),
2293
+ responseValidator: async (data) => await zEventsListAttachmentsResponse.parseAsync(data),
2229
2294
  security: [{
2230
2295
  scheme: "bearer",
2231
2296
  type: "http"
2232
2297
  }],
2233
- url: "/api/projects/{project_id}/issues/{issue_id}/subscription",
2234
- ...options,
2235
- headers: {
2236
- "Content-Type": "application/json",
2237
- ...options.headers
2238
- }
2298
+ url: "/api/projects/{project_id}/issues/{issue_id}/events/{event_id}/attachments",
2299
+ ...options
2239
2300
  });
2240
2301
  }
2302
+ };
2303
+ var Environments = class extends HeyApiClient {
2241
2304
  /**
2242
- * 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.
2243
2306
  */
2244
- getTagValues(options) {
2307
+ list(options) {
2245
2308
  return (options.client ?? this.client).get({
2246
2309
  requestValidator: async (data) => await z.object({
2247
2310
  body: z.never().optional(),
2248
- path: zIssuesGetTagValuesPath,
2311
+ path: zEnvironmentsListPath,
2249
2312
  query: z.never().optional()
2250
2313
  }).parseAsync(data),
2251
- responseValidator: async (data) => await zIssuesGetTagValuesResponse.parseAsync(data),
2314
+ responseValidator: async (data) => await zEnvironmentsListResponse.parseAsync(data),
2252
2315
  security: [{
2253
2316
  scheme: "bearer",
2254
2317
  type: "http"
2255
2318
  }],
2256
- url: "/api/projects/{project_id}/issues/{issue_id}/tags/{key}",
2319
+ url: "/api/projects/{project_id}/environments",
2257
2320
  ...options
2258
2321
  });
2259
2322
  }
2323
+ };
2324
+ var Stats = class extends HeyApiClient {
2260
2325
  /**
2261
- * List user feedback for an issue.
2326
+ * Counts a project's events over time, bucketed for a chart.
2262
2327
  */
2263
- listUserReports(options) {
2328
+ getEventTimeseries(options) {
2264
2329
  return (options.client ?? this.client).get({
2265
2330
  requestValidator: async (data) => await z.object({
2266
2331
  body: z.never().optional(),
2267
- path: zIssuesListUserReportsPath,
2268
- query: zIssuesListUserReportsQuery.optional()
2332
+ path: zStatsGetEventTimeseriesPath,
2333
+ query: zStatsGetEventTimeseriesQuery.optional()
2269
2334
  }).parseAsync(data),
2270
- responseValidator: async (data) => await zIssuesListUserReportsResponse.parseAsync(data),
2335
+ responseValidator: async (data) => await zStatsGetEventTimeseriesResponse.parseAsync(data),
2271
2336
  security: [{
2272
2337
  scheme: "bearer",
2273
2338
  type: "http"
2274
2339
  }],
2275
- url: "/api/projects/{project_id}/issues/{issue_id}/user-reports",
2340
+ url: "/api/projects/{project_id}/events/stats",
2276
2341
  ...options
2277
2342
  });
2278
2343
  }
2279
2344
  /**
2280
- * Attach user feedback to an issue.
2345
+ * Headline figures for a project's overview: events, new and open issues.
2281
2346
  */
2282
- createUserReport(options) {
2283
- return (options.client ?? this.client).post({
2347
+ getSummary(options) {
2348
+ return (options.client ?? this.client).get({
2284
2349
  requestValidator: async (data) => await z.object({
2285
- body: zIssuesCreateUserReportBody,
2286
- path: zIssuesCreateUserReportPath,
2287
- query: z.never().optional()
2350
+ body: z.never().optional(),
2351
+ path: zStatsGetSummaryPath,
2352
+ query: zStatsGetSummaryQuery.optional()
2288
2353
  }).parseAsync(data),
2289
- responseValidator: async (data) => await zIssuesCreateUserReportResponse.parseAsync(data),
2354
+ responseValidator: async (data) => await zStatsGetSummaryResponse.parseAsync(data),
2290
2355
  security: [{
2291
2356
  scheme: "bearer",
2292
2357
  type: "http"
2293
2358
  }],
2294
- url: "/api/projects/{project_id}/issues/{issue_id}/user-reports",
2295
- ...options,
2296
- headers: {
2297
- "Content-Type": "application/json",
2298
- ...options.headers
2299
- }
2359
+ url: "/api/projects/{project_id}/stats/summary",
2360
+ ...options
2300
2361
  });
2301
2362
  }
2302
2363
  };
@@ -2814,6 +2875,115 @@ var Transactions = class extends HeyApiClient {
2814
2875
  });
2815
2876
  }
2816
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
+ };
2817
2987
  var Roles = class extends HeyApiClient {
2818
2988
  /**
2819
2989
  * Lists every role with its permissions and how often it is assigned.
@@ -3490,6 +3660,115 @@ var Users = class extends HeyApiClient {
3490
3660
  });
3491
3661
  }
3492
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
+ };
3493
3772
  var Auth = class extends HeyApiClient {
3494
3773
  /**
3495
3774
  * Accept a pending invitation: creates the user (with the invite's email + role) and logs in.
@@ -3805,6 +4084,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
3805
4084
  get access() {
3806
4085
  return this._access ??= new Access({ client: this.client });
3807
4086
  }
4087
+ _feedback;
4088
+ get feedback() {
4089
+ return this._feedback ??= new Feedback({ client: this.client });
4090
+ }
3808
4091
  _github;
3809
4092
  get github() {
3810
4093
  return this._github ??= new Github({ client: this.client });
@@ -3817,6 +4100,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
3817
4100
  get invitations() {
3818
4101
  return this._invitations ??= new Invitations({ client: this.client });
3819
4102
  }
4103
+ _issues;
4104
+ get issues() {
4105
+ return this._issues ??= new Issues({ client: this.client });
4106
+ }
3820
4107
  _oauth;
3821
4108
  get oauth() {
3822
4109
  return this._oauth ??= new Oauth({ client: this.client });
@@ -3845,14 +4132,6 @@ var Rustrak = class Rustrak extends HeyApiClient {
3845
4132
  get stats() {
3846
4133
  return this._stats ??= new Stats({ client: this.client });
3847
4134
  }
3848
- _feedback;
3849
- get feedback() {
3850
- return this._feedback ??= new Feedback({ client: this.client });
3851
- }
3852
- _issues;
3853
- get issues() {
3854
- return this._issues ??= new Issues({ client: this.client });
3855
- }
3856
4135
  _logs;
3857
4136
  get logs() {
3858
4137
  return this._logs ??= new Logs({ client: this.client });
@@ -3877,6 +4156,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
3877
4156
  get transactions() {
3878
4157
  return this._transactions ??= new Transactions({ client: this.client });
3879
4158
  }
4159
+ _savedViews;
4160
+ get savedViews() {
4161
+ return this._savedViews ??= new SavedViews({ client: this.client });
4162
+ }
3880
4163
  _roles;
3881
4164
  get roles() {
3882
4165
  return this._roles ??= new Roles({ client: this.client });
@@ -3909,6 +4192,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
3909
4192
  get users() {
3910
4193
  return this._users ??= new Users({ client: this.client });
3911
4194
  }
4195
+ _workspaceViews;
4196
+ get workspaceViews() {
4197
+ return this._workspaceViews ??= new WorkspaceViews({ client: this.client });
4198
+ }
3912
4199
  _auth;
3913
4200
  get auth() {
3914
4201
  return this._auth ??= new Auth({ client: this.client });
@@ -3918,6 +4205,6 @@ var Rustrak = class Rustrak extends HeyApiClient {
3918
4205
  return this._health ??= new Health({ client: this.client });
3919
4206
  }
3920
4207
  };
3921
- 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 };
3922
4209
 
3923
4210
  //# sourceMappingURL=sdk.gen.mjs.map