@rustrak/client 0.26.0 → 0.27.1

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 (43) hide show
  1. package/README.md +18 -0
  2. package/dist/client.cjs +4 -4
  3. package/dist/client.cjs.map +1 -1
  4. package/dist/client.d.cts.map +1 -1
  5. package/dist/client.d.mts.map +1 -1
  6. package/dist/client.mjs +4 -4
  7. package/dist/client.mjs.map +1 -1
  8. package/dist/generated/client/client.gen.d.cts +1 -0
  9. package/dist/generated/client/index.d.cts +10 -0
  10. package/dist/generated/client/types.gen.d.cts +1 -1
  11. package/dist/generated/client/types.gen.d.mts +1 -1
  12. package/dist/generated/client/utils.gen.cjs +1 -1
  13. package/dist/generated/client/utils.gen.d.cts +2 -0
  14. package/dist/generated/client/utils.gen.d.cts.map +1 -1
  15. package/dist/generated/client/utils.gen.mjs +1 -1
  16. package/dist/generated/client.gen.cjs +2 -1
  17. package/dist/generated/client.gen.cjs.map +1 -1
  18. package/dist/generated/client.gen.mjs +1 -1
  19. package/dist/generated/core/params.gen.d.cts +1 -0
  20. package/dist/generated/core/queryKeySerializer.gen.d.cts +1 -0
  21. package/dist/generated/sdk.gen.cjs +1231 -942
  22. package/dist/generated/sdk.gen.cjs.map +1 -1
  23. package/dist/generated/sdk.gen.d.cts +49 -27
  24. package/dist/generated/sdk.gen.d.cts.map +1 -1
  25. package/dist/generated/sdk.gen.d.mts +49 -28
  26. package/dist/generated/sdk.gen.d.mts.map +1 -1
  27. package/dist/generated/sdk.gen.mjs +1053 -766
  28. package/dist/generated/sdk.gen.mjs.map +1 -1
  29. package/dist/generated/types.gen.d.cts +349 -0
  30. package/dist/generated/types.gen.d.cts.map +1 -1
  31. package/dist/generated/types.gen.d.mts +349 -0
  32. package/dist/generated/types.gen.d.mts.map +1 -1
  33. package/dist/generated/zod.gen.cjs +2076 -1824
  34. package/dist/generated/zod.gen.cjs.map +1 -1
  35. package/dist/generated/zod.gen.mjs +895 -681
  36. package/dist/generated/zod.gen.mjs.map +1 -1
  37. package/dist/index.cjs +2 -2
  38. package/dist/index.d.cts +3 -3
  39. package/dist/index.d.mts +3 -3
  40. package/dist/index.mjs +2 -2
  41. package/dist/utils/http.cjs.map +1 -1
  42. package/dist/utils/http.mjs.map +1 -1
  43. package/package.json +5 -5
@@ -1,7 +1,7 @@
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";
4
- import * as z from "zod";
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
+ import * as z from "zod/mini";
5
5
  // src/generated/sdk.gen.ts
6
6
  var HeyApiClient = class {
7
7
  client;
@@ -30,9 +30,9 @@ var Sentry = class extends HeyApiClient {
30
30
  getIssue(options) {
31
31
  return (options.client ?? this.client).get({
32
32
  requestValidator: async (data) => await z.object({
33
- body: z.never().optional(),
33
+ body: z.optional(z.never()),
34
34
  path: zSentryGetIssuePath,
35
- query: z.never().optional()
35
+ query: z.optional(z.never())
36
36
  }).parseAsync(data),
37
37
  responseValidator: async (data) => await zSentryGetIssueResponse.parseAsync(data),
38
38
  security: [{
@@ -53,7 +53,7 @@ var Sentry = class extends HeyApiClient {
53
53
  requestValidator: async (data) => await z.object({
54
54
  body: zSentryUpdateIssueBody,
55
55
  path: zSentryUpdateIssuePath,
56
- query: z.never().optional()
56
+ query: z.optional(z.never())
57
57
  }).parseAsync(data),
58
58
  responseValidator: async (data) => await zSentryUpdateIssueResponse.parseAsync(data),
59
59
  security: [{
@@ -75,9 +75,9 @@ var Sentry = class extends HeyApiClient {
75
75
  getLatestEvent(options) {
76
76
  return (options.client ?? this.client).get({
77
77
  requestValidator: async (data) => await z.object({
78
- body: z.never().optional(),
78
+ body: z.optional(z.never()),
79
79
  path: zSentryGetLatestEventPath,
80
- query: z.never().optional()
80
+ query: z.optional(z.never())
81
81
  }).parseAsync(data),
82
82
  responseValidator: async (data) => await zSentryGetLatestEventResponse.parseAsync(data),
83
83
  security: [{
@@ -95,9 +95,9 @@ var Sentry = class extends HeyApiClient {
95
95
  listOrganizations(options) {
96
96
  return (options?.client ?? this.client).get({
97
97
  requestValidator: async (data) => await z.object({
98
- body: z.never().optional(),
99
- path: z.never().optional(),
100
- query: z.never().optional()
98
+ body: z.optional(z.never()),
99
+ path: z.optional(z.never()),
100
+ query: z.optional(z.never())
101
101
  }).parseAsync(data),
102
102
  responseValidator: async (data) => await zSentryListOrganizationsResponse.parseAsync(data),
103
103
  security: [{
@@ -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.optional(z.never()),
121
+ path: zSentryListOrganizationIssuesPath,
122
+ query: z.optional(zSentryListOrganizationIssuesQuery)
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.
@@ -116,9 +138,9 @@ var Sentry = class extends HeyApiClient {
116
138
  listRepos(options) {
117
139
  return (options.client ?? this.client).get({
118
140
  requestValidator: async (data) => await z.object({
119
- body: z.never().optional(),
141
+ body: z.optional(z.never()),
120
142
  path: zSentryListReposPath,
121
- query: z.never().optional()
143
+ query: z.optional(z.never())
122
144
  }).parseAsync(data),
123
145
  responseValidator: async (data) => await zSentryListReposResponse.parseAsync(data),
124
146
  security: [{
@@ -136,9 +158,9 @@ var Sentry = class extends HeyApiClient {
136
158
  listProjects(options) {
137
159
  return (options?.client ?? this.client).get({
138
160
  requestValidator: async (data) => await z.object({
139
- body: z.never().optional(),
140
- path: z.never().optional(),
141
- query: zSentryListProjectsQuery.optional()
161
+ body: z.optional(z.never()),
162
+ path: z.optional(z.never()),
163
+ query: z.optional(zSentryListProjectsQuery)
142
164
  }).parseAsync(data),
143
165
  responseValidator: async (data) => await zSentryListProjectsResponse.parseAsync(data),
144
166
  security: [{
@@ -157,9 +179,9 @@ var Sentry = class extends HeyApiClient {
157
179
  listIssues(options) {
158
180
  return (options.client ?? this.client).get({
159
181
  requestValidator: async (data) => await z.object({
160
- body: z.never().optional(),
182
+ body: z.optional(z.never()),
161
183
  path: zSentryListIssuesPath,
162
- query: zSentryListIssuesQuery.optional()
184
+ query: z.optional(zSentryListIssuesQuery)
163
185
  }).parseAsync(data),
164
186
  responseValidator: async (data) => await zSentryListIssuesResponse.parseAsync(data),
165
187
  security: [{
@@ -181,7 +203,7 @@ var Sentry = class extends HeyApiClient {
181
203
  requestValidator: async (data) => await z.object({
182
204
  body: zSentrySubmitUserFeedbackBody,
183
205
  path: zSentrySubmitUserFeedbackPath,
184
- query: z.never().optional()
206
+ query: z.optional(z.never())
185
207
  }).parseAsync(data),
186
208
  responseValidator: async (data) => await zSentrySubmitUserFeedbackResponse.parseAsync(data),
187
209
  security: [{
@@ -205,9 +227,9 @@ var Sentry = class extends HeyApiClient {
205
227
  openIssue(options) {
206
228
  return (options.client ?? this.client).get({
207
229
  requestValidator: async (data) => await z.object({
208
- body: z.never().optional(),
230
+ body: z.optional(z.never()),
209
231
  path: zSentryOpenIssuePath,
210
- query: z.never().optional()
232
+ query: z.optional(z.never())
211
233
  }).parseAsync(data),
212
234
  security: [{
213
235
  in: "cookie",
@@ -229,9 +251,9 @@ var SourceMaps = class extends HeyApiClient {
229
251
  orgDetails(options) {
230
252
  return (options.client ?? this.client).get({
231
253
  requestValidator: async (data) => await z.object({
232
- body: z.never().optional(),
254
+ body: z.optional(z.never()),
233
255
  path: zSourceMapsOrgDetailsPath,
234
- query: z.never().optional()
256
+ query: z.optional(z.never())
235
257
  }).parseAsync(data),
236
258
  responseValidator: async (data) => await zSourceMapsOrgDetailsResponse.parseAsync(data),
237
259
  url: "/api/0/organizations/{org_slug}/",
@@ -246,7 +268,7 @@ var SourceMaps = class extends HeyApiClient {
246
268
  requestValidator: async (data) => await z.object({
247
269
  body: zSourceMapsArtifactBundleAssembleBody,
248
270
  path: zSourceMapsArtifactBundleAssemblePath,
249
- query: z.never().optional()
271
+ query: z.optional(z.never())
250
272
  }).parseAsync(data),
251
273
  responseValidator: async (data) => await zSourceMapsArtifactBundleAssembleResponse.parseAsync(data),
252
274
  security: [{
@@ -267,9 +289,9 @@ var SourceMaps = class extends HeyApiClient {
267
289
  chunkUploadCapability(options) {
268
290
  return (options.client ?? this.client).get({
269
291
  requestValidator: async (data) => await z.object({
270
- body: z.never().optional(),
292
+ body: z.optional(z.never()),
271
293
  path: zSourceMapsChunkUploadCapabilityPath,
272
- query: z.never().optional()
294
+ query: z.optional(z.never())
273
295
  }).parseAsync(data),
274
296
  responseValidator: async (data) => await zSourceMapsChunkUploadCapabilityResponse.parseAsync(data),
275
297
  security: [{
@@ -289,7 +311,7 @@ var SourceMaps = class extends HeyApiClient {
289
311
  requestValidator: async (data) => await z.object({
290
312
  body: zSourceMapsChunkUploadBody,
291
313
  path: zSourceMapsChunkUploadPath,
292
- query: z.never().optional()
314
+ query: z.optional(z.never())
293
315
  }).parseAsync(data),
294
316
  security: [{
295
317
  scheme: "bearer",
@@ -309,9 +331,9 @@ var SourceMaps = class extends HeyApiClient {
309
331
  list(options) {
310
332
  return (options.client ?? this.client).get({
311
333
  requestValidator: async (data) => await z.object({
312
- body: z.never().optional(),
334
+ body: z.optional(z.never()),
313
335
  path: zSourceMapsListPath,
314
- query: z.never().optional()
336
+ query: z.optional(z.never())
315
337
  }).parseAsync(data),
316
338
  responseValidator: async (data) => await zSourceMapsListResponse.parseAsync(data),
317
339
  security: [{
@@ -335,7 +357,7 @@ var DebugFiles = class extends HeyApiClient {
335
357
  requestValidator: async (data) => await z.object({
336
358
  body: zDebugFilesAssembleBody,
337
359
  path: zDebugFilesAssemblePath,
338
- query: z.never().optional()
360
+ query: z.optional(z.never())
339
361
  }).parseAsync(data),
340
362
  responseValidator: async (data) => await zDebugFilesAssembleResponse.parseAsync(data),
341
363
  security: [{
@@ -364,7 +386,7 @@ var DebugFiles = class extends HeyApiClient {
364
386
  requestValidator: async (data) => await z.object({
365
387
  body: zDebugFilesUploadBody,
366
388
  path: zDebugFilesUploadPath,
367
- query: z.never().optional()
389
+ query: z.optional(z.never())
368
390
  }).parseAsync(data),
369
391
  responseValidator: async (data) => await zDebugFilesUploadResponse.parseAsync(data),
370
392
  security: [{
@@ -397,7 +419,7 @@ var Releases = class extends HeyApiClient {
397
419
  requestValidator: async (data) => await z.object({
398
420
  body: zReleasesCreateBody,
399
421
  path: zReleasesCreatePath,
400
- query: z.never().optional()
422
+ query: z.optional(z.never())
401
423
  }).parseAsync(data),
402
424
  responseValidator: async (data) => await zReleasesCreateResponse.parseAsync(data),
403
425
  security: [{
@@ -421,7 +443,7 @@ var Releases = class extends HeyApiClient {
421
443
  requestValidator: async (data) => await z.object({
422
444
  body: zReleasesFinalizeBody,
423
445
  path: zReleasesFinalizePath,
424
- query: z.never().optional()
446
+ query: z.optional(z.never())
425
447
  }).parseAsync(data),
426
448
  responseValidator: async (data) => await zReleasesFinalizeResponse.parseAsync(data),
427
449
  security: [{
@@ -443,9 +465,9 @@ var Releases = class extends HeyApiClient {
443
465
  list(options) {
444
466
  return (options.client ?? this.client).get({
445
467
  requestValidator: async (data) => await z.object({
446
- body: z.never().optional(),
468
+ body: z.optional(z.never()),
447
469
  path: zReleasesListPath,
448
- query: zReleasesListQuery.optional()
470
+ query: z.optional(zReleasesListQuery)
449
471
  }).parseAsync(data),
450
472
  responseValidator: async (data) => await zReleasesListResponse.parseAsync(data),
451
473
  security: [{
@@ -463,9 +485,9 @@ var Releases = class extends HeyApiClient {
463
485
  get(options) {
464
486
  return (options.client ?? this.client).get({
465
487
  requestValidator: async (data) => await z.object({
466
- body: z.never().optional(),
488
+ body: z.optional(z.never()),
467
489
  path: zReleasesGetPath,
468
- query: zReleasesGetQuery.optional()
490
+ query: z.optional(zReleasesGetQuery)
469
491
  }).parseAsync(data),
470
492
  responseValidator: async (data) => await zReleasesGetResponse.parseAsync(data),
471
493
  security: [{
@@ -482,9 +504,9 @@ var Releases = class extends HeyApiClient {
482
504
  newIssues(options) {
483
505
  return (options.client ?? this.client).get({
484
506
  requestValidator: async (data) => await z.object({
485
- body: z.never().optional(),
507
+ body: z.optional(z.never()),
486
508
  path: zReleasesNewIssuesPath,
487
- query: zReleasesNewIssuesQuery.optional()
509
+ query: z.optional(zReleasesNewIssuesQuery)
488
510
  }).parseAsync(data),
489
511
  responseValidator: async (data) => await zReleasesNewIssuesResponse.parseAsync(data),
490
512
  security: [{
@@ -503,9 +525,9 @@ var Access = class extends HeyApiClient {
503
525
  catalog(options) {
504
526
  return (options?.client ?? this.client).get({
505
527
  requestValidator: async (data) => await z.object({
506
- body: z.never().optional(),
507
- path: z.never().optional(),
508
- query: z.never().optional()
528
+ body: z.optional(z.never()),
529
+ path: z.optional(z.never()),
530
+ query: z.optional(z.never())
509
531
  }).parseAsync(data),
510
532
  responseValidator: async (data) => await zAccessCatalogResponse.parseAsync(data),
511
533
  security: [{
@@ -522,9 +544,9 @@ var Access = class extends HeyApiClient {
522
544
  me(options) {
523
545
  return (options?.client ?? this.client).get({
524
546
  requestValidator: async (data) => await z.object({
525
- body: z.never().optional(),
526
- path: z.never().optional(),
527
- query: z.never().optional()
547
+ body: z.optional(z.never()),
548
+ path: z.optional(z.never()),
549
+ query: z.optional(z.never())
528
550
  }).parseAsync(data),
529
551
  responseValidator: async (data) => await zAccessMeResponse.parseAsync(data),
530
552
  security: [{
@@ -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.optional(z.never()),
569
+ path: z.optional(z.never()),
570
+ query: z.optional(zFeedbackListAllQuery)
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.optional(z.never()),
589
+ path: zFeedbackListPath,
590
+ query: z.optional(zFeedbackListQuery)
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.
@@ -543,9 +606,9 @@ var Github = class extends HeyApiClient {
543
606
  disconnect(options) {
544
607
  return (options?.client ?? this.client).delete({
545
608
  requestValidator: async (data) => await z.object({
546
- body: z.never().optional(),
547
- path: z.never().optional(),
548
- query: z.never().optional()
609
+ body: z.optional(z.never()),
610
+ path: z.optional(z.never()),
611
+ query: z.optional(z.never())
549
612
  }).parseAsync(data),
550
613
  responseValidator: async (data) => await zGithubDisconnectResponse.parseAsync(data),
551
614
  security: [{
@@ -562,9 +625,9 @@ var Github = class extends HeyApiClient {
562
625
  status(options) {
563
626
  return (options?.client ?? this.client).get({
564
627
  requestValidator: async (data) => await z.object({
565
- body: z.never().optional(),
566
- path: z.never().optional(),
567
- query: z.never().optional()
628
+ body: z.optional(z.never()),
629
+ path: z.optional(z.never()),
630
+ query: z.optional(z.never())
568
631
  }).parseAsync(data),
569
632
  responseValidator: async (data) => await zGithubStatusResponse.parseAsync(data),
570
633
  security: [{
@@ -582,8 +645,8 @@ var Github = class extends HeyApiClient {
582
645
  callback(options) {
583
646
  return (options.client ?? this.client).get({
584
647
  requestValidator: async (data) => await z.object({
585
- body: z.never().optional(),
586
- path: z.never().optional(),
648
+ body: z.optional(z.never()),
649
+ path: z.optional(z.never()),
587
650
  query: zGithubCallbackQuery
588
651
  }).parseAsync(data),
589
652
  security: [{
@@ -601,8 +664,8 @@ var Github = class extends HeyApiClient {
601
664
  installed(options) {
602
665
  return (options.client ?? this.client).get({
603
666
  requestValidator: async (data) => await z.object({
604
- body: z.never().optional(),
605
- path: z.never().optional(),
667
+ body: z.optional(z.never()),
668
+ path: z.optional(z.never()),
606
669
  query: zGithubInstalledQuery
607
670
  }).parseAsync(data),
608
671
  security: [{
@@ -621,8 +684,8 @@ var Github = class extends HeyApiClient {
621
684
  return (options.client ?? this.client).put({
622
685
  requestValidator: async (data) => await z.object({
623
686
  body: zGithubPutIssueTemplateBody,
624
- path: z.never().optional(),
625
- query: z.never().optional()
687
+ path: z.optional(z.never()),
688
+ query: z.optional(z.never())
626
689
  }).parseAsync(data),
627
690
  responseValidator: async (data) => await zGithubPutIssueTemplateResponse.parseAsync(data),
628
691
  security: [{
@@ -645,8 +708,8 @@ var Github = class extends HeyApiClient {
645
708
  return (options.client ?? this.client).post({
646
709
  requestValidator: async (data) => await z.object({
647
710
  body: zGithubManifestBody,
648
- path: z.never().optional(),
649
- query: z.never().optional()
711
+ path: z.optional(z.never()),
712
+ query: z.optional(z.never())
650
713
  }).parseAsync(data),
651
714
  responseValidator: async (data) => await zGithubManifestResponse.parseAsync(data),
652
715
  security: [{
@@ -667,9 +730,9 @@ var Github = class extends HeyApiClient {
667
730
  getMyLogin(options) {
668
731
  return (options?.client ?? this.client).get({
669
732
  requestValidator: async (data) => await z.object({
670
- body: z.never().optional(),
671
- path: z.never().optional(),
672
- query: z.never().optional()
733
+ body: z.optional(z.never()),
734
+ path: z.optional(z.never()),
735
+ query: z.optional(z.never())
673
736
  }).parseAsync(data),
674
737
  responseValidator: async (data) => await zGithubGetMyLoginResponse.parseAsync(data),
675
738
  security: [{
@@ -687,8 +750,8 @@ var Github = class extends HeyApiClient {
687
750
  return (options.client ?? this.client).put({
688
751
  requestValidator: async (data) => await z.object({
689
752
  body: zGithubPutMyLoginBody,
690
- path: z.never().optional(),
691
- query: z.never().optional()
753
+ path: z.optional(z.never()),
754
+ query: z.optional(z.never())
692
755
  }).parseAsync(data),
693
756
  responseValidator: async (data) => await zGithubPutMyLoginResponse.parseAsync(data),
694
757
  security: [{
@@ -710,8 +773,8 @@ var Github = class extends HeyApiClient {
710
773
  repositories(options) {
711
774
  return (options.client ?? this.client).get({
712
775
  requestValidator: async (data) => await z.object({
713
- body: z.never().optional(),
714
- path: z.never().optional(),
776
+ body: z.optional(z.never()),
777
+ path: z.optional(z.never()),
715
778
  query: zGithubRepositoriesQuery
716
779
  }).parseAsync(data),
717
780
  responseValidator: async (data) => await zGithubRepositoriesResponse.parseAsync(data),
@@ -731,8 +794,8 @@ var Github = class extends HeyApiClient {
731
794
  return (options.client ?? this.client).post({
732
795
  requestValidator: async (data) => await z.object({
733
796
  body: zGithubWebhookBody,
734
- path: z.never().optional(),
735
- query: z.never().optional()
797
+ path: z.optional(z.never()),
798
+ query: z.optional(z.never())
736
799
  }).parseAsync(data),
737
800
  responseValidator: async (data) => await zGithubWebhookResponse.parseAsync(data),
738
801
  url: "/api/github/webhook",
@@ -749,9 +812,9 @@ var Github = class extends HeyApiClient {
749
812
  deleteProjectRepository(options) {
750
813
  return (options.client ?? this.client).delete({
751
814
  requestValidator: async (data) => await z.object({
752
- body: z.never().optional(),
815
+ body: z.optional(z.never()),
753
816
  path: zGithubDeleteProjectRepositoryPath,
754
- query: z.never().optional()
817
+ query: z.optional(z.never())
755
818
  }).parseAsync(data),
756
819
  responseValidator: async (data) => await zGithubDeleteProjectRepositoryResponse.parseAsync(data),
757
820
  security: [{
@@ -768,9 +831,9 @@ var Github = class extends HeyApiClient {
768
831
  getProjectRepository(options) {
769
832
  return (options.client ?? this.client).get({
770
833
  requestValidator: async (data) => await z.object({
771
- body: z.never().optional(),
834
+ body: z.optional(z.never()),
772
835
  path: zGithubGetProjectRepositoryPath,
773
- query: z.never().optional()
836
+ query: z.optional(z.never())
774
837
  }).parseAsync(data),
775
838
  responseValidator: async (data) => await zGithubGetProjectRepositoryResponse.parseAsync(data),
776
839
  security: [{
@@ -789,7 +852,7 @@ var Github = class extends HeyApiClient {
789
852
  requestValidator: async (data) => await z.object({
790
853
  body: zGithubPutProjectRepositoryBody,
791
854
  path: zGithubPutProjectRepositoryPath,
792
- query: z.never().optional()
855
+ query: z.optional(z.never())
793
856
  }).parseAsync(data),
794
857
  responseValidator: async (data) => await zGithubPutProjectRepositoryResponse.parseAsync(data),
795
858
  security: [{
@@ -811,9 +874,9 @@ var Github = class extends HeyApiClient {
811
874
  syncCodeowners(options) {
812
875
  return (options.client ?? this.client).post({
813
876
  requestValidator: async (data) => await z.object({
814
- body: z.never().optional(),
877
+ body: z.optional(z.never()),
815
878
  path: zGithubSyncCodeownersPath,
816
- query: z.never().optional()
879
+ query: z.optional(z.never())
817
880
  }).parseAsync(data),
818
881
  responseValidator: async (data) => await zGithubSyncCodeownersResponse.parseAsync(data),
819
882
  security: [{
@@ -831,9 +894,9 @@ var Github = class extends HeyApiClient {
831
894
  issue(options) {
832
895
  return (options.client ?? this.client).get({
833
896
  requestValidator: async (data) => await z.object({
834
- body: z.never().optional(),
897
+ body: z.optional(z.never()),
835
898
  path: zGithubIssuePath,
836
- query: z.never().optional()
899
+ query: z.optional(z.never())
837
900
  }).parseAsync(data),
838
901
  responseValidator: async (data) => await zGithubIssueResponse.parseAsync(data),
839
902
  security: [{
@@ -851,9 +914,9 @@ var Github = class extends HeyApiClient {
851
914
  issueDraft(options) {
852
915
  return (options.client ?? this.client).get({
853
916
  requestValidator: async (data) => await z.object({
854
- body: z.never().optional(),
917
+ body: z.optional(z.never()),
855
918
  path: zGithubIssueDraftPath,
856
- query: z.never().optional()
919
+ query: z.optional(z.never())
857
920
  }).parseAsync(data),
858
921
  responseValidator: async (data) => await zGithubIssueDraftResponse.parseAsync(data),
859
922
  security: [{
@@ -872,7 +935,7 @@ var Github = class extends HeyApiClient {
872
935
  requestValidator: async (data) => await z.object({
873
936
  body: zGithubCreateIssueBody,
874
937
  path: zGithubCreateIssuePath,
875
- query: z.never().optional()
938
+ query: z.optional(z.never())
876
939
  }).parseAsync(data),
877
940
  responseValidator: async (data) => await zGithubCreateIssueResponse.parseAsync(data),
878
941
  security: [{
@@ -895,7 +958,7 @@ var Github = class extends HeyApiClient {
895
958
  requestValidator: async (data) => await z.object({
896
959
  body: zGithubLinkIssueBody,
897
960
  path: zGithubLinkIssuePath,
898
- query: z.never().optional()
961
+ query: z.optional(z.never())
899
962
  }).parseAsync(data),
900
963
  responseValidator: async (data) => await zGithubLinkIssueResponse.parseAsync(data),
901
964
  security: [{
@@ -916,9 +979,9 @@ var Github = class extends HeyApiClient {
916
979
  unlinkIssue(options) {
917
980
  return (options.client ?? this.client).delete({
918
981
  requestValidator: async (data) => await z.object({
919
- body: z.never().optional(),
982
+ body: z.optional(z.never()),
920
983
  path: zGithubUnlinkIssuePath,
921
- query: z.never().optional()
984
+ query: z.optional(z.never())
922
985
  }).parseAsync(data),
923
986
  responseValidator: async (data) => await zGithubUnlinkIssueResponse.parseAsync(data),
924
987
  security: [{
@@ -942,9 +1005,9 @@ var AlertChannels = class extends HeyApiClient {
942
1005
  list(options) {
943
1006
  return (options?.client ?? this.client).get({
944
1007
  requestValidator: async (data) => await z.object({
945
- body: z.never().optional(),
946
- path: z.never().optional(),
947
- query: z.never().optional()
1008
+ body: z.optional(z.never()),
1009
+ path: z.optional(z.never()),
1010
+ query: z.optional(z.never())
948
1011
  }).parseAsync(data),
949
1012
  responseValidator: async (data) => await zAlertChannelsListResponse.parseAsync(data),
950
1013
  security: [{
@@ -962,8 +1025,8 @@ var AlertChannels = class extends HeyApiClient {
962
1025
  return (options.client ?? this.client).post({
963
1026
  requestValidator: async (data) => await z.object({
964
1027
  body: zAlertChannelsCreateBody,
965
- path: z.never().optional(),
966
- query: z.never().optional()
1028
+ path: z.optional(z.never()),
1029
+ query: z.optional(z.never())
967
1030
  }).parseAsync(data),
968
1031
  responseValidator: async (data) => await zAlertChannelsCreateResponse.parseAsync(data),
969
1032
  security: [{
@@ -988,8 +1051,8 @@ var AlertChannels = class extends HeyApiClient {
988
1051
  return (options.client ?? this.client).post({
989
1052
  requestValidator: async (data) => await z.object({
990
1053
  body: zAlertChannelsPreviewTemplateBody,
991
- path: z.never().optional(),
992
- query: z.never().optional()
1054
+ path: z.optional(z.never()),
1055
+ query: z.optional(z.never())
993
1056
  }).parseAsync(data),
994
1057
  responseValidator: async (data) => await zAlertChannelsPreviewTemplateResponse.parseAsync(data),
995
1058
  security: [{
@@ -1010,9 +1073,9 @@ var AlertChannels = class extends HeyApiClient {
1010
1073
  delete(options) {
1011
1074
  return (options.client ?? this.client).delete({
1012
1075
  requestValidator: async (data) => await z.object({
1013
- body: z.never().optional(),
1076
+ body: z.optional(z.never()),
1014
1077
  path: zAlertChannelsDeletePath,
1015
- query: z.never().optional()
1078
+ query: z.optional(z.never())
1016
1079
  }).parseAsync(data),
1017
1080
  responseValidator: async (data) => await zAlertChannelsDeleteResponse.parseAsync(data),
1018
1081
  security: [{
@@ -1029,9 +1092,9 @@ var AlertChannels = class extends HeyApiClient {
1029
1092
  get(options) {
1030
1093
  return (options.client ?? this.client).get({
1031
1094
  requestValidator: async (data) => await z.object({
1032
- body: z.never().optional(),
1095
+ body: z.optional(z.never()),
1033
1096
  path: zAlertChannelsGetPath,
1034
- query: z.never().optional()
1097
+ query: z.optional(z.never())
1035
1098
  }).parseAsync(data),
1036
1099
  responseValidator: async (data) => await zAlertChannelsGetResponse.parseAsync(data),
1037
1100
  security: [{
@@ -1050,7 +1113,7 @@ var AlertChannels = class extends HeyApiClient {
1050
1113
  requestValidator: async (data) => await z.object({
1051
1114
  body: zAlertChannelsUpdateBody,
1052
1115
  path: zAlertChannelsUpdatePath,
1053
- query: z.never().optional()
1116
+ query: z.optional(z.never())
1054
1117
  }).parseAsync(data),
1055
1118
  responseValidator: async (data) => await zAlertChannelsUpdateResponse.parseAsync(data),
1056
1119
  security: [{
@@ -1071,9 +1134,9 @@ var AlertChannels = class extends HeyApiClient {
1071
1134
  test(options) {
1072
1135
  return (options.client ?? this.client).post({
1073
1136
  requestValidator: async (data) => await z.object({
1074
- body: zAlertChannelsTestBody.optional(),
1137
+ body: z.optional(zAlertChannelsTestBody),
1075
1138
  path: zAlertChannelsTestPath,
1076
- query: z.never().optional()
1139
+ query: z.optional(z.never())
1077
1140
  }).parseAsync(data),
1078
1141
  responseValidator: async (data) => await zAlertChannelsTestResponse.parseAsync(data),
1079
1142
  security: [{
@@ -1096,9 +1159,9 @@ var Invitations = class extends HeyApiClient {
1096
1159
  list(options) {
1097
1160
  return (options?.client ?? this.client).get({
1098
1161
  requestValidator: async (data) => await z.object({
1099
- body: z.never().optional(),
1100
- path: z.never().optional(),
1101
- query: z.never().optional()
1162
+ body: z.optional(z.never()),
1163
+ path: z.optional(z.never()),
1164
+ query: z.optional(z.never())
1102
1165
  }).parseAsync(data),
1103
1166
  responseValidator: async (data) => await zInvitationsListResponse.parseAsync(data),
1104
1167
  security: [{
@@ -1120,8 +1183,8 @@ var Invitations = class extends HeyApiClient {
1120
1183
  return (options.client ?? this.client).post({
1121
1184
  requestValidator: async (data) => await z.object({
1122
1185
  body: zInvitationsCreateBody,
1123
- path: z.never().optional(),
1124
- query: z.never().optional()
1186
+ path: z.optional(z.never()),
1187
+ query: z.optional(z.never())
1125
1188
  }).parseAsync(data),
1126
1189
  responseValidator: async (data) => await zInvitationsCreateResponse.parseAsync(data),
1127
1190
  security: [{
@@ -1142,9 +1205,9 @@ var Invitations = class extends HeyApiClient {
1142
1205
  emailStatus(options) {
1143
1206
  return (options?.client ?? this.client).get({
1144
1207
  requestValidator: async (data) => await z.object({
1145
- body: z.never().optional(),
1146
- path: z.never().optional(),
1147
- query: z.never().optional()
1208
+ body: z.optional(z.never()),
1209
+ path: z.optional(z.never()),
1210
+ query: z.optional(z.never())
1148
1211
  }).parseAsync(data),
1149
1212
  responseValidator: async (data) => await zInvitationsEmailStatusResponse.parseAsync(data),
1150
1213
  security: [{
@@ -1161,9 +1224,9 @@ var Invitations = class extends HeyApiClient {
1161
1224
  revoke(options) {
1162
1225
  return (options.client ?? this.client).delete({
1163
1226
  requestValidator: async (data) => await z.object({
1164
- body: z.never().optional(),
1227
+ body: z.optional(z.never()),
1165
1228
  path: zInvitationsRevokePath,
1166
- query: z.never().optional()
1229
+ query: z.optional(z.never())
1167
1230
  }).parseAsync(data),
1168
1231
  responseValidator: async (data) => await zInvitationsRevokeResponse.parseAsync(data),
1169
1232
  security: [{
@@ -1180,9 +1243,9 @@ var Invitations = class extends HeyApiClient {
1180
1243
  resend(options) {
1181
1244
  return (options.client ?? this.client).post({
1182
1245
  requestValidator: async (data) => await z.object({
1183
- body: z.never().optional(),
1246
+ body: z.optional(z.never()),
1184
1247
  path: zInvitationsResendPath,
1185
- query: z.never().optional()
1248
+ query: z.optional(z.never())
1186
1249
  }).parseAsync(data),
1187
1250
  responseValidator: async (data) => await zInvitationsResendResponse.parseAsync(data),
1188
1251
  security: [{
@@ -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
- body: z.never().optional(),
1205
- path: z.never().optional(),
1206
- query: zOauthGetAuthorizationQuery
1268
+ body: z.optional(z.never()),
1269
+ path: z.optional(z.never()),
1270
+ query: z.optional(zIssuesListAllQuery)
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(),
1221
- query: z.never().optional()
1287
+ body: zIssuesBulkDeleteBody,
1288
+ path: zIssuesBulkDeletePath,
1289
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1273
- path: z.never().optional(),
1274
- query: zProjectsListQuery.optional()
1310
+ body: z.optional(z.never()),
1311
+ path: zIssuesListPath,
1312
+ query: z.optional(zIssuesListQuery)
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(),
1297
- query: z.never().optional()
1329
+ body: zIssuesBulkUpdateBody,
1330
+ path: zIssuesBulkUpdatePath,
1331
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1319
- path: zProjectsDeletePath,
1320
- query: z.never().optional()
1352
+ body: z.optional(z.never()),
1353
+ path: zIssuesDeletePath,
1354
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1338
- path: zProjectsGetPath,
1339
- query: z.never().optional()
1371
+ body: z.optional(z.never()),
1372
+ path: zIssuesGetPath,
1373
+ query: z.optional(z.never())
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,
1358
- query: z.never().optional()
1390
+ body: zIssuesUpdateBody,
1391
+ path: zIssuesUpdatePath,
1392
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1380
- path: z.never().optional(),
1381
- query: z.never().optional()
1413
+ body: z.optional(z.never()),
1414
+ path: zIssuesGetActivityPath,
1415
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1401
- path: zAgentsConversationsPath,
1402
- query: zAgentsConversationsQuery.optional()
1432
+ body: z.optional(z.never()),
1433
+ path: zIssuesGetAggregatesPath,
1434
+ query: z.optional(z.never())
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,
1421
- query: z.never().optional()
1451
+ body: zIssuesSetBookmarkBody,
1452
+ path: zIssuesSetBookmarkPath,
1453
+ query: z.optional(z.never())
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.optional(z.never())
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
- body: z.never().optional(),
1459
- path: zAgentsEnvironmentsPath,
1460
- query: z.never().optional()
1497
+ body: z.optional(z.never()),
1498
+ path: zIssuesGetHashesPath,
1499
+ query: z.optional(z.never())
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({
1513
+ markSeen(options) {
1514
+ return (options.client ?? this.client).post({
1476
1515
  requestValidator: async (data) => await z.object({
1477
- body: z.never().optional(),
1478
- path: zAgentsModelsTablePath,
1479
- query: zAgentsModelsTableQuery.optional()
1516
+ body: z.optional(z.never()),
1517
+ path: zIssuesMarkSeenPath,
1518
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1497
- path: zAgentsModelsCallsPath,
1498
- query: zAgentsModelsCallsQuery.optional()
1535
+ body: z.optional(z.never()),
1536
+ path: zIssuesGetStatsPath,
1537
+ query: z.optional(zIssuesGetStatsQuery)
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({
1514
- requestValidator: async (data) => await z.object({
1515
- body: z.never().optional(),
1516
- path: zAgentsModelsTokensPath,
1517
- query: zAgentsModelsTokensQuery.optional()
1551
+ setSubscription(options) {
1552
+ return (options.client ?? this.client).put({
1553
+ requestValidator: async (data) => await z.object({
1554
+ body: zIssuesSetSubscriptionBody,
1555
+ path: zIssuesSetSubscriptionPath,
1556
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1535
- path: zAgentsRunsPath,
1536
- query: zAgentsRunsQuery.optional()
1577
+ body: z.optional(z.never()),
1578
+ path: zIssuesGetTagValuesPath,
1579
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1555
- path: zAgentsSummaryPath,
1556
- query: zAgentsSummaryQuery.optional()
1596
+ body: z.optional(z.never()),
1597
+ path: zIssuesListUserReportsPath,
1598
+ query: z.optional(zIssuesListUserReportsQuery)
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.optional(z.never())
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
- body: z.never().optional(),
1593
- path: zAgentsToolsTablePath,
1594
- query: zAgentsToolsTableQuery.optional()
1640
+ body: z.optional(z.never()),
1641
+ path: z.optional(z.never()),
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.optional(z.never()),
1657
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1634
- path: zAlertRulesListHistoryPath,
1635
- query: zAlertRulesListHistoryQuery.optional()
1674
+ body: z.optional(z.never()),
1675
+ path: z.optional(z.never()),
1676
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1653
- path: zAlertRulesHistoryByDayPath,
1654
- query: zAlertRulesHistoryByDayQuery.optional()
1689
+ body: z.optional(z.never()),
1690
+ path: zOauthRevokeGrantPath,
1691
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1672
- path: zAlertRulesListPath,
1673
- query: z.never().optional()
1708
+ body: z.optional(z.never()),
1709
+ path: z.optional(z.never()),
1710
+ query: z.optional(zProjectsListQuery)
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,
1692
- query: z.never().optional()
1731
+ body: zProjectsCreateBody,
1732
+ path: z.optional(z.never()),
1733
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1714
- path: zAlertRulesDeletePath,
1715
- query: z.never().optional()
1754
+ body: z.optional(z.never()),
1755
+ path: zProjectsDeletePath,
1756
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1733
- path: zAlertRulesGetPath,
1734
- query: z.never().optional()
1773
+ body: z.optional(z.never()),
1774
+ path: zProjectsGetPath,
1775
+ query: z.optional(z.never())
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,
1753
- query: z.never().optional()
1792
+ body: zProjectsUpdateBody,
1793
+ path: zProjectsUpdatePath,
1794
+ query: z.optional(z.never())
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.optional(z.never()),
1816
+ path: z.optional(z.never()),
1817
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1778
- path: zEventsDownloadAttachmentPath,
1779
- query: z.never().optional()
1836
+ body: z.optional(z.never()),
1837
+ path: zAgentsConversationsPath,
1838
+ query: z.optional(zAgentsConversationsQuery)
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
- body: z.never().optional(),
1797
- path: zEventsGetBySentryIdPath,
1798
- query: z.never().optional()
1855
+ body: z.optional(z.never()),
1856
+ path: zAgentsConversationPath,
1857
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1816
- path: zEventsListPath,
1817
- query: zEventsListQuery.optional()
1874
+ body: z.optional(z.never()),
1875
+ path: zAgentsDurationPath,
1876
+ query: z.optional(zAgentsDurationQuery)
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
- body: z.never().optional(),
1835
- path: zEventsGetPath,
1836
- query: z.never().optional()
1894
+ body: z.optional(z.never()),
1895
+ path: zAgentsEnvironmentsPath,
1896
+ query: z.optional(z.never())
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
- body: z.never().optional(),
1854
- path: zEventsListAttachmentsPath,
1855
- query: z.never().optional()
1913
+ body: z.optional(z.never()),
1914
+ path: zAgentsModelsTablePath,
1915
+ query: z.optional(zAgentsModelsTableQuery)
1856
1916
  }).parseAsync(data),
1857
- responseValidator: async (data) => await zEventsListAttachmentsResponse.parseAsync(data),
1917
+ responseValidator: async (data) => await zAgentsModelsTableResponse.parseAsync(data),
1858
1918
  security: [{
1859
1919
  scheme: "bearer",
1860
1920
  type: "http"
1861
1921
  }],
1862
- url: "/api/projects/{project_id}/issues/{issue_id}/events/{event_id}/attachments",
1922
+ url: "/api/projects/{project_id}/agents/models",
1863
1923
  ...options
1864
1924
  });
1865
1925
  }
1866
- };
1867
- var Environments = class extends HeyApiClient {
1868
1926
  /**
1869
- * Lists the environments a project's issues have been seen in, by name.
1927
+ * Top models by LLM call count (`gen_ai.operation.type:ai_client`).
1870
1928
  */
1871
- list(options) {
1929
+ modelsCalls(options) {
1872
1930
  return (options.client ?? this.client).get({
1873
1931
  requestValidator: async (data) => await z.object({
1874
- body: z.never().optional(),
1875
- path: zEnvironmentsListPath,
1876
- query: z.never().optional()
1932
+ body: z.optional(z.never()),
1933
+ path: zAgentsModelsCallsPath,
1934
+ query: z.optional(zAgentsModelsCallsQuery)
1877
1935
  }).parseAsync(data),
1878
- responseValidator: async (data) => await zEnvironmentsListResponse.parseAsync(data),
1936
+ responseValidator: async (data) => await zAgentsModelsCallsResponse.parseAsync(data),
1879
1937
  security: [{
1880
1938
  scheme: "bearer",
1881
1939
  type: "http"
1882
1940
  }],
1883
- url: "/api/projects/{project_id}/environments",
1941
+ url: "/api/projects/{project_id}/agents/models/calls",
1884
1942
  ...options
1885
1943
  });
1886
1944
  }
1887
- };
1888
- var Stats = class extends HeyApiClient {
1889
1945
  /**
1890
- * Counts a project's events over time, bucketed for a chart.
1946
+ * Top models by total tokens used (`gen_ai.operation.type:ai_client`).
1891
1947
  */
1892
- getEventTimeseries(options) {
1948
+ modelsTokens(options) {
1893
1949
  return (options.client ?? this.client).get({
1894
1950
  requestValidator: async (data) => await z.object({
1895
- body: z.never().optional(),
1896
- path: zStatsGetEventTimeseriesPath,
1897
- query: zStatsGetEventTimeseriesQuery.optional()
1951
+ body: z.optional(z.never()),
1952
+ path: zAgentsModelsTokensPath,
1953
+ query: z.optional(zAgentsModelsTokensQuery)
1898
1954
  }).parseAsync(data),
1899
- responseValidator: async (data) => await zStatsGetEventTimeseriesResponse.parseAsync(data),
1955
+ responseValidator: async (data) => await zAgentsModelsTokensResponse.parseAsync(data),
1900
1956
  security: [{
1901
1957
  scheme: "bearer",
1902
1958
  type: "http"
1903
1959
  }],
1904
- url: "/api/projects/{project_id}/events/stats",
1960
+ url: "/api/projects/{project_id}/agents/models/tokens",
1905
1961
  ...options
1906
1962
  });
1907
1963
  }
1908
1964
  /**
1909
- * Headline figures for a project's overview: events, new and open issues.
1965
+ * Time-bucketed count of agent-run spans (`gen_ai.operation.type:agent`).
1910
1966
  */
1911
- getSummary(options) {
1967
+ runs(options) {
1912
1968
  return (options.client ?? this.client).get({
1913
1969
  requestValidator: async (data) => await z.object({
1914
- body: z.never().optional(),
1915
- path: zStatsGetSummaryPath,
1916
- query: zStatsGetSummaryQuery.optional()
1970
+ body: z.optional(z.never()),
1971
+ path: zAgentsRunsPath,
1972
+ query: z.optional(zAgentsRunsQuery)
1917
1973
  }).parseAsync(data),
1918
- responseValidator: async (data) => await zStatsGetSummaryResponse.parseAsync(data),
1974
+ responseValidator: async (data) => await zAgentsRunsResponse.parseAsync(data),
1919
1975
  security: [{
1920
1976
  scheme: "bearer",
1921
1977
  type: "http"
1922
1978
  }],
1923
- url: "/api/projects/{project_id}/stats/summary",
1979
+ url: "/api/projects/{project_id}/agents/runs",
1924
1980
  ...options
1925
1981
  });
1926
1982
  }
1927
- };
1928
- var Feedback = class extends HeyApiClient {
1929
1983
  /**
1930
- * Lists user feedback with what each user submitted. Every feedback is an
1931
- * issue of category `feedback`; spam is a muted one.
1984
+ * Agent runs, LLM calls, tool calls, errors, tokens and latency over the
1985
+ * selected window — the numbers the six charts cannot state outright.
1932
1986
  */
1933
- list(options) {
1987
+ summary(options) {
1934
1988
  return (options.client ?? this.client).get({
1935
1989
  requestValidator: async (data) => await z.object({
1936
- body: z.never().optional(),
1937
- path: zFeedbackListPath,
1938
- query: zFeedbackListQuery.optional()
1990
+ body: z.optional(z.never()),
1991
+ path: zAgentsSummaryPath,
1992
+ query: z.optional(zAgentsSummaryQuery)
1939
1993
  }).parseAsync(data),
1940
- responseValidator: async (data) => await zFeedbackListResponse.parseAsync(data),
1994
+ responseValidator: async (data) => await zAgentsSummaryResponse.parseAsync(data),
1941
1995
  security: [{
1942
1996
  scheme: "bearer",
1943
1997
  type: "http"
1944
1998
  }],
1945
- url: "/api/projects/{project_id}/feedback",
1999
+ url: "/api/projects/{project_id}/agents/summary",
1946
2000
  ...options
1947
2001
  });
1948
2002
  }
1949
- };
1950
- var Issues = class extends HeyApiClient {
1951
2003
  /**
1952
- * Deletes many issues at once, selected by id or by filter.
2004
+ * Top tools by call count (`gen_ai.operation.type:tool`).
1953
2005
  */
1954
- bulkDelete(options) {
1955
- return (options.client ?? this.client).delete({
2006
+ tools(options) {
2007
+ return (options.client ?? this.client).get({
1956
2008
  requestValidator: async (data) => await z.object({
1957
- body: zIssuesBulkDeleteBody,
1958
- path: zIssuesBulkDeletePath,
1959
- query: z.never().optional()
2009
+ body: z.optional(z.never()),
2010
+ path: zAgentsToolsPath,
2011
+ query: z.optional(zAgentsToolsQuery)
1960
2012
  }).parseAsync(data),
1961
- responseValidator: async (data) => await zIssuesBulkDeleteResponse.parseAsync(data),
2013
+ responseValidator: async (data) => await zAgentsToolsResponse.parseAsync(data),
1962
2014
  security: [{
1963
2015
  scheme: "bearer",
1964
2016
  type: "http"
1965
2017
  }],
1966
- url: "/api/projects/{project_id}/issues",
1967
- ...options,
1968
- headers: {
1969
- "Content-Type": "application/json",
1970
- ...options.headers
1971
- }
2018
+ url: "/api/projects/{project_id}/agents/tools",
2019
+ ...options
1972
2020
  });
1973
2021
  }
1974
2022
  /**
1975
- * Lists issues for a project with offset-based pagination
2023
+ * Lists the tools a project's agents called, with calls, errors and latency.
1976
2024
  */
1977
- list(options) {
2025
+ toolsTable(options) {
1978
2026
  return (options.client ?? this.client).get({
1979
2027
  requestValidator: async (data) => await z.object({
1980
- body: z.never().optional(),
1981
- path: zIssuesListPath,
1982
- query: zIssuesListQuery.optional()
2028
+ body: z.optional(z.never()),
2029
+ path: zAgentsToolsTablePath,
2030
+ query: z.optional(zAgentsToolsTableQuery)
1983
2031
  }).parseAsync(data),
1984
- responseValidator: async (data) => await zIssuesListResponse.parseAsync(data),
2032
+ responseValidator: async (data) => await zAgentsToolsTableResponse.parseAsync(data),
1985
2033
  security: [{
1986
2034
  scheme: "bearer",
1987
2035
  type: "http"
1988
2036
  }],
1989
- url: "/api/projects/{project_id}/issues",
2037
+ url: "/api/projects/{project_id}/agents/tools/stats",
1990
2038
  ...options
1991
2039
  });
1992
2040
  }
1993
2041
  /**
1994
- * Sets the status or priority of many issues at once, by id.
2042
+ * Paginated per-trace_id aggregate (duration, tokens, tool usage) across
2043
+ * all AI spans sharing that trace, regardless of origin.
1995
2044
  */
1996
- bulkUpdate(options) {
1997
- return (options.client ?? this.client).put({
2045
+ traces(options) {
2046
+ return (options.client ?? this.client).get({
1998
2047
  requestValidator: async (data) => await z.object({
1999
- body: zIssuesBulkUpdateBody,
2000
- path: zIssuesBulkUpdatePath,
2001
- query: z.never().optional()
2048
+ body: z.optional(z.never()),
2049
+ path: zAgentsTracesPath,
2050
+ query: z.optional(zAgentsTracesQuery)
2002
2051
  }).parseAsync(data),
2003
- responseValidator: async (data) => await zIssuesBulkUpdateResponse.parseAsync(data),
2052
+ responseValidator: async (data) => await zAgentsTracesResponse.parseAsync(data),
2004
2053
  security: [{
2005
2054
  scheme: "bearer",
2006
2055
  type: "http"
2007
2056
  }],
2008
- url: "/api/projects/{project_id}/issues",
2009
- ...options,
2010
- headers: {
2011
- "Content-Type": "application/json",
2012
- ...options.headers
2013
- }
2057
+ url: "/api/projects/{project_id}/agents/traces",
2058
+ ...options
2014
2059
  });
2015
2060
  }
2061
+ };
2062
+ var AlertRules = class extends HeyApiClient {
2016
2063
  /**
2017
- * Hard-deletes an issue and all associated events
2064
+ * Lists the alerts a project sent, newest first.
2018
2065
  */
2019
- delete(options) {
2020
- return (options.client ?? this.client).delete({
2066
+ listHistory(options) {
2067
+ return (options.client ?? this.client).get({
2021
2068
  requestValidator: async (data) => await z.object({
2022
- body: z.never().optional(),
2023
- path: zIssuesDeletePath,
2024
- query: z.never().optional()
2069
+ body: z.optional(z.never()),
2070
+ path: zAlertRulesListHistoryPath,
2071
+ query: z.optional(zAlertRulesListHistoryQuery)
2025
2072
  }).parseAsync(data),
2026
- responseValidator: async (data) => await zIssuesDeleteResponse.parseAsync(data),
2073
+ responseValidator: async (data) => await zAlertRulesListHistoryResponse.parseAsync(data),
2027
2074
  security: [{
2028
2075
  scheme: "bearer",
2029
2076
  type: "http"
2030
2077
  }],
2031
- url: "/api/projects/{project_id}/issues/{issue_id}",
2078
+ url: "/api/projects/{project_id}/alert-history",
2032
2079
  ...options
2033
2080
  });
2034
2081
  }
2035
2082
  /**
2036
- * Gets a single issue by ID
2083
+ * Count a project's alert deliveries per day, by outcome.
2037
2084
  */
2038
- get(options) {
2085
+ historyByDay(options) {
2039
2086
  return (options.client ?? this.client).get({
2040
2087
  requestValidator: async (data) => await z.object({
2041
- body: z.never().optional(),
2042
- path: zIssuesGetPath,
2043
- query: z.never().optional()
2088
+ body: z.optional(z.never()),
2089
+ path: zAlertRulesHistoryByDayPath,
2090
+ query: z.optional(zAlertRulesHistoryByDayQuery)
2044
2091
  }).parseAsync(data),
2045
- responseValidator: async (data) => await zIssuesGetResponse.parseAsync(data),
2092
+ responseValidator: async (data) => await zAlertRulesHistoryByDayResponse.parseAsync(data),
2046
2093
  security: [{
2047
2094
  scheme: "bearer",
2048
2095
  type: "http"
2049
2096
  }],
2050
- url: "/api/projects/{project_id}/issues/{issue_id}",
2097
+ url: "/api/projects/{project_id}/alert-history/daily",
2051
2098
  ...options
2052
2099
  });
2053
2100
  }
2054
2101
  /**
2055
- * Updates issue state (resolve, mute, etc.)
2102
+ * Lists a project's alert rules.
2056
2103
  */
2057
- update(options) {
2058
- return (options.client ?? this.client).patch({
2104
+ list(options) {
2105
+ return (options.client ?? this.client).get({
2059
2106
  requestValidator: async (data) => await z.object({
2060
- body: zIssuesUpdateBody,
2061
- path: zIssuesUpdatePath,
2062
- query: z.never().optional()
2107
+ body: z.optional(z.never()),
2108
+ path: zAlertRulesListPath,
2109
+ query: z.optional(z.never())
2063
2110
  }).parseAsync(data),
2064
- responseValidator: async (data) => await zIssuesUpdateResponse.parseAsync(data),
2111
+ responseValidator: async (data) => await zAlertRulesListResponse.parseAsync(data),
2065
2112
  security: [{
2066
2113
  scheme: "bearer",
2067
2114
  type: "http"
2068
2115
  }],
2069
- url: "/api/projects/{project_id}/issues/{issue_id}",
2116
+ url: "/api/projects/{project_id}/alert-rules",
2117
+ ...options
2118
+ });
2119
+ }
2120
+ /**
2121
+ * Creates an alert rule in a project.
2122
+ */
2123
+ create(options) {
2124
+ return (options.client ?? this.client).post({
2125
+ requestValidator: async (data) => await z.object({
2126
+ body: zAlertRulesCreateBody,
2127
+ path: zAlertRulesCreatePath,
2128
+ query: z.optional(z.never())
2129
+ }).parseAsync(data),
2130
+ responseValidator: async (data) => await zAlertRulesCreateResponse.parseAsync(data),
2131
+ security: [{
2132
+ scheme: "bearer",
2133
+ type: "http"
2134
+ }],
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
- body: z.never().optional(),
2084
- path: zIssuesGetActivityPath,
2085
- query: z.never().optional()
2149
+ body: z.optional(z.never()),
2150
+ path: zAlertRulesDeletePath,
2151
+ query: z.optional(z.never())
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
- body: z.never().optional(),
2103
- path: zIssuesGetAggregatesPath,
2104
- query: z.never().optional()
2168
+ body: z.optional(z.never()),
2169
+ path: zAlertRulesGetPath,
2170
+ query: z.optional(z.never())
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,
2123
- query: z.never().optional()
2187
+ body: zAlertRulesUpdateBody,
2188
+ path: zAlertRulesUpdatePath,
2189
+ query: z.optional(z.never())
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,
2146
- query: z.never().optional()
2213
+ body: z.optional(z.never()),
2214
+ path: zEventsDownloadAttachmentPath,
2215
+ query: z.optional(z.never())
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
- body: z.never().optional(),
2168
- path: zIssuesGetHashesPath,
2169
- query: z.never().optional()
2232
+ body: z.optional(z.never()),
2233
+ path: zEventsGetBySentryIdPath,
2234
+ query: z.optional(z.never())
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
- body: z.never().optional(),
2187
- path: zIssuesMarkSeenPath,
2188
- query: z.never().optional()
2251
+ body: z.optional(z.never()),
2252
+ path: zEventsListPath,
2253
+ query: z.optional(zEventsListQuery)
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
- body: z.never().optional(),
2206
- path: zIssuesGetStatsPath,
2207
- query: zIssuesGetStatsQuery.optional()
2270
+ body: z.optional(z.never()),
2271
+ path: zEventsGetPath,
2272
+ query: z.optional(z.never())
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,
2226
- query: z.never().optional()
2289
+ body: z.optional(z.never()),
2290
+ path: zEventsListAttachmentsPath,
2291
+ query: z.optional(z.never())
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
- body: z.never().optional(),
2248
- path: zIssuesGetTagValuesPath,
2249
- query: z.never().optional()
2310
+ body: z.optional(z.never()),
2311
+ path: zEnvironmentsListPath,
2312
+ query: z.optional(z.never())
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
- body: z.never().optional(),
2267
- path: zIssuesListUserReportsPath,
2268
- query: zIssuesListUserReportsQuery.optional()
2331
+ body: z.optional(z.never()),
2332
+ path: zStatsGetEventTimeseriesPath,
2333
+ query: z.optional(zStatsGetEventTimeseriesQuery)
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.optional(z.never()),
2351
+ path: zStatsGetSummaryPath,
2352
+ query: z.optional(zStatsGetSummaryQuery)
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
  };
@@ -2308,9 +2369,9 @@ var Logs = class extends HeyApiClient {
2308
2369
  list(options) {
2309
2370
  return (options.client ?? this.client).get({
2310
2371
  requestValidator: async (data) => await z.object({
2311
- body: z.never().optional(),
2372
+ body: z.optional(z.never()),
2312
2373
  path: zLogsListPath,
2313
- query: zLogsListQuery.optional()
2374
+ query: z.optional(zLogsListQuery)
2314
2375
  }).parseAsync(data),
2315
2376
  responseValidator: async (data) => await zLogsListResponse.parseAsync(data),
2316
2377
  security: [{
@@ -2327,9 +2388,9 @@ var Logs = class extends HeyApiClient {
2327
2388
  volume(options) {
2328
2389
  return (options.client ?? this.client).get({
2329
2390
  requestValidator: async (data) => await z.object({
2330
- body: z.never().optional(),
2391
+ body: z.optional(z.never()),
2331
2392
  path: zLogsVolumePath,
2332
- query: zLogsVolumeQuery.optional()
2393
+ query: z.optional(zLogsVolumeQuery)
2333
2394
  }).parseAsync(data),
2334
2395
  responseValidator: async (data) => await zLogsVolumeResponse.parseAsync(data),
2335
2396
  security: [{
@@ -2346,9 +2407,9 @@ var Logs = class extends HeyApiClient {
2346
2407
  get(options) {
2347
2408
  return (options.client ?? this.client).get({
2348
2409
  requestValidator: async (data) => await z.object({
2349
- body: z.never().optional(),
2410
+ body: z.optional(z.never()),
2350
2411
  path: zLogsGetPath,
2351
- query: z.never().optional()
2412
+ query: z.optional(z.never())
2352
2413
  }).parseAsync(data),
2353
2414
  responseValidator: async (data) => await zLogsGetResponse.parseAsync(data),
2354
2415
  security: [{
@@ -2367,9 +2428,9 @@ var Members = class extends HeyApiClient {
2367
2428
  list(options) {
2368
2429
  return (options.client ?? this.client).get({
2369
2430
  requestValidator: async (data) => await z.object({
2370
- body: z.never().optional(),
2431
+ body: z.optional(z.never()),
2371
2432
  path: zMembersListPath,
2372
- query: z.never().optional()
2433
+ query: z.optional(z.never())
2373
2434
  }).parseAsync(data),
2374
2435
  responseValidator: async (data) => await zMembersListResponse.parseAsync(data),
2375
2436
  security: [{
@@ -2388,7 +2449,7 @@ var Members = class extends HeyApiClient {
2388
2449
  requestValidator: async (data) => await z.object({
2389
2450
  body: zMembersUpsertBody,
2390
2451
  path: zMembersUpsertPath,
2391
- query: z.never().optional()
2452
+ query: z.optional(z.never())
2392
2453
  }).parseAsync(data),
2393
2454
  responseValidator: async (data) => await zMembersUpsertResponse.parseAsync(data),
2394
2455
  security: [{
@@ -2409,9 +2470,9 @@ var Members = class extends HeyApiClient {
2409
2470
  candidates(options) {
2410
2471
  return (options.client ?? this.client).get({
2411
2472
  requestValidator: async (data) => await z.object({
2412
- body: z.never().optional(),
2473
+ body: z.optional(z.never()),
2413
2474
  path: zMembersCandidatesPath,
2414
- query: z.never().optional()
2475
+ query: z.optional(z.never())
2415
2476
  }).parseAsync(data),
2416
2477
  responseValidator: async (data) => await zMembersCandidatesResponse.parseAsync(data),
2417
2478
  security: [{
@@ -2428,9 +2489,9 @@ var Members = class extends HeyApiClient {
2428
2489
  remove(options) {
2429
2490
  return (options.client ?? this.client).delete({
2430
2491
  requestValidator: async (data) => await z.object({
2431
- body: z.never().optional(),
2492
+ body: z.optional(z.never()),
2432
2493
  path: zMembersRemovePath,
2433
- query: z.never().optional()
2494
+ query: z.optional(z.never())
2434
2495
  }).parseAsync(data),
2435
2496
  responseValidator: async (data) => await zMembersRemoveResponse.parseAsync(data),
2436
2497
  security: [{
@@ -2449,9 +2510,9 @@ var Monitors = class extends HeyApiClient {
2449
2510
  stats(options) {
2450
2511
  return (options.client ?? this.client).get({
2451
2512
  requestValidator: async (data) => await z.object({
2452
- body: z.never().optional(),
2513
+ body: z.optional(z.never()),
2453
2514
  path: zMonitorsStatsPath,
2454
- query: zMonitorsStatsQuery.optional()
2515
+ query: z.optional(zMonitorsStatsQuery)
2455
2516
  }).parseAsync(data),
2456
2517
  responseValidator: async (data) => await zMonitorsStatsResponse.parseAsync(data),
2457
2518
  security: [{
@@ -2468,9 +2529,9 @@ var Monitors = class extends HeyApiClient {
2468
2529
  list(options) {
2469
2530
  return (options.client ?? this.client).get({
2470
2531
  requestValidator: async (data) => await z.object({
2471
- body: z.never().optional(),
2532
+ body: z.optional(z.never()),
2472
2533
  path: zMonitorsListPath,
2473
- query: z.never().optional()
2534
+ query: z.optional(z.never())
2474
2535
  }).parseAsync(data),
2475
2536
  responseValidator: async (data) => await zMonitorsListResponse.parseAsync(data),
2476
2537
  security: [{
@@ -2489,7 +2550,7 @@ var Monitors = class extends HeyApiClient {
2489
2550
  requestValidator: async (data) => await z.object({
2490
2551
  body: zMonitorsCreateBody,
2491
2552
  path: zMonitorsCreatePath,
2492
- query: z.never().optional()
2553
+ query: z.optional(z.never())
2493
2554
  }).parseAsync(data),
2494
2555
  responseValidator: async (data) => await zMonitorsCreateResponse.parseAsync(data),
2495
2556
  security: [{
@@ -2510,9 +2571,9 @@ var Monitors = class extends HeyApiClient {
2510
2571
  delete(options) {
2511
2572
  return (options.client ?? this.client).delete({
2512
2573
  requestValidator: async (data) => await z.object({
2513
- body: z.never().optional(),
2574
+ body: z.optional(z.never()),
2514
2575
  path: zMonitorsDeletePath,
2515
- query: z.never().optional()
2576
+ query: z.optional(z.never())
2516
2577
  }).parseAsync(data),
2517
2578
  responseValidator: async (data) => await zMonitorsDeleteResponse.parseAsync(data),
2518
2579
  security: [{
@@ -2529,9 +2590,9 @@ var Monitors = class extends HeyApiClient {
2529
2590
  get(options) {
2530
2591
  return (options.client ?? this.client).get({
2531
2592
  requestValidator: async (data) => await z.object({
2532
- body: z.never().optional(),
2593
+ body: z.optional(z.never()),
2533
2594
  path: zMonitorsGetPath,
2534
- query: z.never().optional()
2595
+ query: z.optional(z.never())
2535
2596
  }).parseAsync(data),
2536
2597
  responseValidator: async (data) => await zMonitorsGetResponse.parseAsync(data),
2537
2598
  security: [{
@@ -2550,7 +2611,7 @@ var Monitors = class extends HeyApiClient {
2550
2611
  requestValidator: async (data) => await z.object({
2551
2612
  body: zMonitorsUpdateBody,
2552
2613
  path: zMonitorsUpdatePath,
2553
- query: z.never().optional()
2614
+ query: z.optional(z.never())
2554
2615
  }).parseAsync(data),
2555
2616
  responseValidator: async (data) => await zMonitorsUpdateResponse.parseAsync(data),
2556
2617
  security: [{
@@ -2571,9 +2632,9 @@ var Monitors = class extends HeyApiClient {
2571
2632
  listCheckins(options) {
2572
2633
  return (options.client ?? this.client).get({
2573
2634
  requestValidator: async (data) => await z.object({
2574
- body: z.never().optional(),
2635
+ body: z.optional(z.never()),
2575
2636
  path: zMonitorsListCheckinsPath,
2576
- query: zMonitorsListCheckinsQuery.optional()
2637
+ query: z.optional(zMonitorsListCheckinsQuery)
2577
2638
  }).parseAsync(data),
2578
2639
  responseValidator: async (data) => await zMonitorsListCheckinsResponse.parseAsync(data),
2579
2640
  security: [{
@@ -2592,9 +2653,9 @@ var Sessions = class extends HeyApiClient {
2592
2653
  getStats(options) {
2593
2654
  return (options.client ?? this.client).get({
2594
2655
  requestValidator: async (data) => await z.object({
2595
- body: z.never().optional(),
2656
+ body: z.optional(z.never()),
2596
2657
  path: zSessionsGetStatsPath,
2597
- query: zSessionsGetStatsQuery.optional()
2658
+ query: z.optional(zSessionsGetStatsQuery)
2598
2659
  }).parseAsync(data),
2599
2660
  responseValidator: async (data) => await zSessionsGetStatsResponse.parseAsync(data),
2600
2661
  security: [{
@@ -2611,9 +2672,9 @@ var Sessions = class extends HeyApiClient {
2611
2672
  getSummary(options) {
2612
2673
  return (options.client ?? this.client).get({
2613
2674
  requestValidator: async (data) => await z.object({
2614
- body: z.never().optional(),
2675
+ body: z.optional(z.never()),
2615
2676
  path: zSessionsGetSummaryPath,
2616
- query: zSessionsGetSummaryQuery.optional()
2677
+ query: z.optional(zSessionsGetSummaryQuery)
2617
2678
  }).parseAsync(data),
2618
2679
  responseValidator: async (data) => await zSessionsGetSummaryResponse.parseAsync(data),
2619
2680
  security: [{
@@ -2630,9 +2691,9 @@ var Sessions = class extends HeyApiClient {
2630
2691
  getTimeseries(options) {
2631
2692
  return (options.client ?? this.client).get({
2632
2693
  requestValidator: async (data) => await z.object({
2633
- body: z.never().optional(),
2694
+ body: z.optional(z.never()),
2634
2695
  path: zSessionsGetTimeseriesPath,
2635
- query: zSessionsGetTimeseriesQuery.optional()
2696
+ query: z.optional(zSessionsGetTimeseriesQuery)
2636
2697
  }).parseAsync(data),
2637
2698
  responseValidator: async (data) => await zSessionsGetTimeseriesResponse.parseAsync(data),
2638
2699
  security: [{
@@ -2654,9 +2715,9 @@ var Spans = class extends HeyApiClient {
2654
2715
  list(options) {
2655
2716
  return (options.client ?? this.client).get({
2656
2717
  requestValidator: async (data) => await z.object({
2657
- body: z.never().optional(),
2718
+ body: z.optional(z.never()),
2658
2719
  path: zSpansListPath,
2659
- query: zSpansListQuery.optional()
2720
+ query: z.optional(zSpansListQuery)
2660
2721
  }).parseAsync(data),
2661
2722
  responseValidator: async (data) => await zSpansListResponse.parseAsync(data),
2662
2723
  security: [{
@@ -2676,9 +2737,9 @@ var Spans = class extends HeyApiClient {
2676
2737
  get(options) {
2677
2738
  return (options.client ?? this.client).get({
2678
2739
  requestValidator: async (data) => await z.object({
2679
- body: z.never().optional(),
2740
+ body: z.optional(z.never()),
2680
2741
  path: zSpansGetPath,
2681
- query: z.never().optional()
2742
+ query: z.optional(z.never())
2682
2743
  }).parseAsync(data),
2683
2744
  responseValidator: async (data) => await zSpansGetResponse.parseAsync(data),
2684
2745
  security: [{
@@ -2697,9 +2758,9 @@ var Transactions = class extends HeyApiClient {
2697
2758
  list(options) {
2698
2759
  return (options.client ?? this.client).get({
2699
2760
  requestValidator: async (data) => await z.object({
2700
- body: z.never().optional(),
2761
+ body: z.optional(z.never()),
2701
2762
  path: zTransactionsListPath,
2702
- query: zTransactionsListQuery.optional()
2763
+ query: z.optional(zTransactionsListQuery)
2703
2764
  }).parseAsync(data),
2704
2765
  responseValidator: async (data) => await zTransactionsListResponse.parseAsync(data),
2705
2766
  security: [{
@@ -2718,9 +2779,9 @@ var Transactions = class extends HeyApiClient {
2718
2779
  getStats(options) {
2719
2780
  return (options.client ?? this.client).get({
2720
2781
  requestValidator: async (data) => await z.object({
2721
- body: z.never().optional(),
2782
+ body: z.optional(z.never()),
2722
2783
  path: zTransactionsGetStatsPath,
2723
- query: zTransactionsGetStatsQuery.optional()
2784
+ query: z.optional(zTransactionsGetStatsQuery)
2724
2785
  }).parseAsync(data),
2725
2786
  responseValidator: async (data) => await zTransactionsGetStatsResponse.parseAsync(data),
2726
2787
  security: [{
@@ -2738,7 +2799,7 @@ var Transactions = class extends HeyApiClient {
2738
2799
  getStatGroup(options) {
2739
2800
  return (options.client ?? this.client).get({
2740
2801
  requestValidator: async (data) => await z.object({
2741
- body: z.never().optional(),
2802
+ body: z.optional(z.never()),
2742
2803
  path: zTransactionsGetStatGroupPath,
2743
2804
  query: zTransactionsGetStatGroupQuery
2744
2805
  }).parseAsync(data),
@@ -2760,7 +2821,7 @@ var Transactions = class extends HeyApiClient {
2760
2821
  getStatGroupTimeseries(options) {
2761
2822
  return (options.client ?? this.client).get({
2762
2823
  requestValidator: async (data) => await z.object({
2763
- body: z.never().optional(),
2824
+ body: z.optional(z.never()),
2764
2825
  path: zTransactionsGetStatGroupTimeseriesPath,
2765
2826
  query: zTransactionsGetStatGroupTimeseriesQuery
2766
2827
  }).parseAsync(data),
@@ -2780,9 +2841,9 @@ var Transactions = class extends HeyApiClient {
2780
2841
  get(options) {
2781
2842
  return (options.client ?? this.client).get({
2782
2843
  requestValidator: async (data) => await z.object({
2783
- body: z.never().optional(),
2844
+ body: z.optional(z.never()),
2784
2845
  path: zTransactionsGetPath,
2785
- query: z.never().optional()
2846
+ query: z.optional(z.never())
2786
2847
  }).parseAsync(data),
2787
2848
  responseValidator: async (data) => await zTransactionsGetResponse.parseAsync(data),
2788
2849
  security: [{
@@ -2800,9 +2861,9 @@ var Transactions = class extends HeyApiClient {
2800
2861
  getSpans(options) {
2801
2862
  return (options.client ?? this.client).get({
2802
2863
  requestValidator: async (data) => await z.object({
2803
- body: z.never().optional(),
2864
+ body: z.optional(z.never()),
2804
2865
  path: zTransactionsGetSpansPath,
2805
- query: z.never().optional()
2866
+ query: z.optional(z.never())
2806
2867
  }).parseAsync(data),
2807
2868
  responseValidator: async (data) => await zTransactionsGetSpansResponse.parseAsync(data),
2808
2869
  security: [{
@@ -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.optional(z.never()),
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.optional(z.never())
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.optional(z.never())
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.optional(z.never()),
2951
+ path: zSavedViewsDeletePath,
2952
+ query: z.optional(z.never())
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.optional(z.never())
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.
@@ -2821,9 +2991,9 @@ var Roles = class extends HeyApiClient {
2821
2991
  list(options) {
2822
2992
  return (options?.client ?? this.client).get({
2823
2993
  requestValidator: async (data) => await z.object({
2824
- body: z.never().optional(),
2825
- path: z.never().optional(),
2826
- query: z.never().optional()
2994
+ body: z.optional(z.never()),
2995
+ path: z.optional(z.never()),
2996
+ query: z.optional(z.never())
2827
2997
  }).parseAsync(data),
2828
2998
  responseValidator: async (data) => await zRolesListResponse.parseAsync(data),
2829
2999
  security: [{
@@ -2841,8 +3011,8 @@ var Roles = class extends HeyApiClient {
2841
3011
  return (options.client ?? this.client).post({
2842
3012
  requestValidator: async (data) => await z.object({
2843
3013
  body: zRolesCreateBody,
2844
- path: z.never().optional(),
2845
- query: z.never().optional()
3014
+ path: z.optional(z.never()),
3015
+ query: z.optional(z.never())
2846
3016
  }).parseAsync(data),
2847
3017
  responseValidator: async (data) => await zRolesCreateResponse.parseAsync(data),
2848
3018
  security: [{
@@ -2863,9 +3033,9 @@ var Roles = class extends HeyApiClient {
2863
3033
  delete(options) {
2864
3034
  return (options.client ?? this.client).delete({
2865
3035
  requestValidator: async (data) => await z.object({
2866
- body: z.never().optional(),
3036
+ body: z.optional(z.never()),
2867
3037
  path: zRolesDeletePath,
2868
- query: z.never().optional()
3038
+ query: z.optional(z.never())
2869
3039
  }).parseAsync(data),
2870
3040
  responseValidator: async (data) => await zRolesDeleteResponse.parseAsync(data),
2871
3041
  security: [{
@@ -2887,7 +3057,7 @@ var Roles = class extends HeyApiClient {
2887
3057
  requestValidator: async (data) => await z.object({
2888
3058
  body: zRolesUpdateBody,
2889
3059
  path: zRolesUpdatePath,
2890
- query: z.never().optional()
3060
+ query: z.optional(z.never())
2891
3061
  }).parseAsync(data),
2892
3062
  responseValidator: async (data) => await zRolesUpdateResponse.parseAsync(data),
2893
3063
  security: [{
@@ -2912,8 +3082,8 @@ var Schedules = class extends HeyApiClient {
2912
3082
  return (options.client ?? this.client).post({
2913
3083
  requestValidator: async (data) => await z.object({
2914
3084
  body: zSchedulesPreviewBody,
2915
- path: z.never().optional(),
2916
- query: z.never().optional()
3085
+ path: z.optional(z.never()),
3086
+ query: z.optional(z.never())
2917
3087
  }).parseAsync(data),
2918
3088
  responseValidator: async (data) => await zSchedulesPreviewResponse.parseAsync(data),
2919
3089
  security: [{
@@ -2937,9 +3107,9 @@ var Settings = class extends HeyApiClient {
2937
3107
  getMcp(options) {
2938
3108
  return (options?.client ?? this.client).get({
2939
3109
  requestValidator: async (data) => await z.object({
2940
- body: z.never().optional(),
2941
- path: z.never().optional(),
2942
- query: z.never().optional()
3110
+ body: z.optional(z.never()),
3111
+ path: z.optional(z.never()),
3112
+ query: z.optional(z.never())
2943
3113
  }).parseAsync(data),
2944
3114
  responseValidator: async (data) => await zSettingsGetMcpResponse.parseAsync(data),
2945
3115
  security: [{
@@ -2957,8 +3127,8 @@ var Settings = class extends HeyApiClient {
2957
3127
  return (options.client ?? this.client).put({
2958
3128
  requestValidator: async (data) => await z.object({
2959
3129
  body: zSettingsUpdateMcpBody,
2960
- path: z.never().optional(),
2961
- query: z.never().optional()
3130
+ path: z.optional(z.never()),
3131
+ query: z.optional(z.never())
2962
3132
  }).parseAsync(data),
2963
3133
  responseValidator: async (data) => await zSettingsUpdateMcpResponse.parseAsync(data),
2964
3134
  security: [{
@@ -2981,9 +3151,9 @@ var Storage = class extends HeyApiClient {
2981
3151
  getAge(options) {
2982
3152
  return (options?.client ?? this.client).get({
2983
3153
  requestValidator: async (data) => await z.object({
2984
- body: z.never().optional(),
2985
- path: z.never().optional(),
2986
- query: z.never().optional()
3154
+ body: z.optional(z.never()),
3155
+ path: z.optional(z.never()),
3156
+ query: z.optional(z.never())
2987
3157
  }).parseAsync(data),
2988
3158
  responseValidator: async (data) => await zStorageGetAgeResponse.parseAsync(data),
2989
3159
  security: [{
@@ -3003,8 +3173,8 @@ var Storage = class extends HeyApiClient {
3003
3173
  return (options.client ?? this.client).post({
3004
3174
  requestValidator: async (data) => await z.object({
3005
3175
  body: zStorageExecuteCleanupBody,
3006
- path: z.never().optional(),
3007
- query: z.never().optional()
3176
+ path: z.optional(z.never()),
3177
+ query: z.optional(z.never())
3008
3178
  }).parseAsync(data),
3009
3179
  responseValidator: async (data) => await zStorageExecuteCleanupResponse.parseAsync(data),
3010
3180
  security: [{
@@ -3026,8 +3196,8 @@ var Storage = class extends HeyApiClient {
3026
3196
  return (options.client ?? this.client).post({
3027
3197
  requestValidator: async (data) => await z.object({
3028
3198
  body: zStoragePreviewCleanupBody,
3029
- path: z.never().optional(),
3030
- query: z.never().optional()
3199
+ path: z.optional(z.never()),
3200
+ query: z.optional(z.never())
3031
3201
  }).parseAsync(data),
3032
3202
  responseValidator: async (data) => await zStoragePreviewCleanupResponse.parseAsync(data),
3033
3203
  security: [{
@@ -3049,9 +3219,9 @@ var Storage = class extends HeyApiClient {
3049
3219
  getCleanupStatus(options) {
3050
3220
  return (options?.client ?? this.client).get({
3051
3221
  requestValidator: async (data) => await z.object({
3052
- body: z.never().optional(),
3053
- path: z.never().optional(),
3054
- query: z.never().optional()
3222
+ body: z.optional(z.never()),
3223
+ path: z.optional(z.never()),
3224
+ query: z.optional(z.never())
3055
3225
  }).parseAsync(data),
3056
3226
  responseValidator: async (data) => await zStorageGetCleanupStatusResponse.parseAsync(data),
3057
3227
  security: [{
@@ -3069,9 +3239,9 @@ var Storage = class extends HeyApiClient {
3069
3239
  getCompaction(options) {
3070
3240
  return (options?.client ?? this.client).get({
3071
3241
  requestValidator: async (data) => await z.object({
3072
- body: z.never().optional(),
3073
- path: z.never().optional(),
3074
- query: z.never().optional()
3242
+ body: z.optional(z.never()),
3243
+ path: z.optional(z.never()),
3244
+ query: z.optional(z.never())
3075
3245
  }).parseAsync(data),
3076
3246
  responseValidator: async (data) => await zStorageGetCompactionResponse.parseAsync(data),
3077
3247
  security: [{
@@ -3090,9 +3260,9 @@ var Storage = class extends HeyApiClient {
3090
3260
  compact(options) {
3091
3261
  return (options?.client ?? this.client).post({
3092
3262
  requestValidator: async (data) => await z.object({
3093
- body: z.never().optional(),
3094
- path: z.never().optional(),
3095
- query: z.never().optional()
3263
+ body: z.optional(z.never()),
3264
+ path: z.optional(z.never()),
3265
+ query: z.optional(z.never())
3096
3266
  }).parseAsync(data),
3097
3267
  responseValidator: async (data) => await zStorageCompactResponse.parseAsync(data),
3098
3268
  security: [{
@@ -3109,9 +3279,9 @@ var Storage = class extends HeyApiClient {
3109
3279
  getProjects(options) {
3110
3280
  return (options?.client ?? this.client).get({
3111
3281
  requestValidator: async (data) => await z.object({
3112
- body: z.never().optional(),
3113
- path: z.never().optional(),
3114
- query: z.never().optional()
3282
+ body: z.optional(z.never()),
3283
+ path: z.optional(z.never()),
3284
+ query: z.optional(z.never())
3115
3285
  }).parseAsync(data),
3116
3286
  responseValidator: async (data) => await zStorageGetProjectsResponse.parseAsync(data),
3117
3287
  security: [{
@@ -3128,9 +3298,9 @@ var Storage = class extends HeyApiClient {
3128
3298
  getRetention(options) {
3129
3299
  return (options?.client ?? this.client).get({
3130
3300
  requestValidator: async (data) => await z.object({
3131
- body: z.never().optional(),
3132
- path: z.never().optional(),
3133
- query: z.never().optional()
3301
+ body: z.optional(z.never()),
3302
+ path: z.optional(z.never()),
3303
+ query: z.optional(z.never())
3134
3304
  }).parseAsync(data),
3135
3305
  responseValidator: async (data) => await zStorageGetRetentionResponse.parseAsync(data),
3136
3306
  security: [{
@@ -3148,8 +3318,8 @@ var Storage = class extends HeyApiClient {
3148
3318
  return (options.client ?? this.client).put({
3149
3319
  requestValidator: async (data) => await z.object({
3150
3320
  body: zStorageUpdateRetentionBody,
3151
- path: z.never().optional(),
3152
- query: z.never().optional()
3321
+ path: z.optional(z.never()),
3322
+ query: z.optional(z.never())
3153
3323
  }).parseAsync(data),
3154
3324
  responseValidator: async (data) => await zStorageUpdateRetentionResponse.parseAsync(data),
3155
3325
  security: [{
@@ -3172,8 +3342,8 @@ var Storage = class extends HeyApiClient {
3172
3342
  return (options.client ?? this.client).post({
3173
3343
  requestValidator: async (data) => await z.object({
3174
3344
  body: zStoragePreviewRetentionBody,
3175
- path: z.never().optional(),
3176
- query: z.never().optional()
3345
+ path: z.optional(z.never()),
3346
+ query: z.optional(z.never())
3177
3347
  }).parseAsync(data),
3178
3348
  responseValidator: async (data) => await zStoragePreviewRetentionResponse.parseAsync(data),
3179
3349
  security: [{
@@ -3195,9 +3365,9 @@ var Storage = class extends HeyApiClient {
3195
3365
  runRetention(options) {
3196
3366
  return (options?.client ?? this.client).post({
3197
3367
  requestValidator: async (data) => await z.object({
3198
- body: z.never().optional(),
3199
- path: z.never().optional(),
3200
- query: z.never().optional()
3368
+ body: z.optional(z.never()),
3369
+ path: z.optional(z.never()),
3370
+ query: z.optional(z.never())
3201
3371
  }).parseAsync(data),
3202
3372
  responseValidator: async (data) => await zStorageRunRetentionResponse.parseAsync(data),
3203
3373
  security: [{
@@ -3214,9 +3384,9 @@ var Storage = class extends HeyApiClient {
3214
3384
  gcSourceMaps(options) {
3215
3385
  return (options?.client ?? this.client).post({
3216
3386
  requestValidator: async (data) => await z.object({
3217
- body: z.never().optional(),
3218
- path: z.never().optional(),
3219
- query: z.never().optional()
3387
+ body: z.optional(z.never()),
3388
+ path: z.optional(z.never()),
3389
+ query: z.optional(z.never())
3220
3390
  }).parseAsync(data),
3221
3391
  responseValidator: async (data) => await zStorageGcSourceMapsResponse.parseAsync(data),
3222
3392
  security: [{
@@ -3233,9 +3403,9 @@ var Storage = class extends HeyApiClient {
3233
3403
  previewSourceMapGc(options) {
3234
3404
  return (options?.client ?? this.client).post({
3235
3405
  requestValidator: async (data) => await z.object({
3236
- body: z.never().optional(),
3237
- path: z.never().optional(),
3238
- query: z.never().optional()
3406
+ body: z.optional(z.never()),
3407
+ path: z.optional(z.never()),
3408
+ query: z.optional(z.never())
3239
3409
  }).parseAsync(data),
3240
3410
  responseValidator: async (data) => await zStoragePreviewSourceMapGcResponse.parseAsync(data),
3241
3411
  security: [{
@@ -3252,9 +3422,9 @@ var Storage = class extends HeyApiClient {
3252
3422
  getSummary(options) {
3253
3423
  return (options?.client ?? this.client).get({
3254
3424
  requestValidator: async (data) => await z.object({
3255
- body: z.never().optional(),
3256
- path: z.never().optional(),
3257
- query: z.never().optional()
3425
+ body: z.optional(z.never()),
3426
+ path: z.optional(z.never()),
3427
+ query: z.optional(z.never())
3258
3428
  }).parseAsync(data),
3259
3429
  responseValidator: async (data) => await zStorageGetSummaryResponse.parseAsync(data),
3260
3430
  security: [{
@@ -3273,9 +3443,9 @@ var Team = class extends HeyApiClient {
3273
3443
  list(options) {
3274
3444
  return (options?.client ?? this.client).get({
3275
3445
  requestValidator: async (data) => await z.object({
3276
- body: z.never().optional(),
3277
- path: z.never().optional(),
3278
- query: z.never().optional()
3446
+ body: z.optional(z.never()),
3447
+ path: z.optional(z.never()),
3448
+ query: z.optional(z.never())
3279
3449
  }).parseAsync(data),
3280
3450
  responseValidator: async (data) => await zTeamListResponse.parseAsync(data),
3281
3451
  security: [{
@@ -3292,9 +3462,9 @@ var Team = class extends HeyApiClient {
3292
3462
  deleteUser(options) {
3293
3463
  return (options.client ?? this.client).delete({
3294
3464
  requestValidator: async (data) => await z.object({
3295
- body: z.never().optional(),
3465
+ body: z.optional(z.never()),
3296
3466
  path: zTeamDeleteUserPath,
3297
- query: z.never().optional()
3467
+ query: z.optional(z.never())
3298
3468
  }).parseAsync(data),
3299
3469
  responseValidator: async (data) => await zTeamDeleteUserResponse.parseAsync(data),
3300
3470
  security: [{
@@ -3313,7 +3483,7 @@ var Team = class extends HeyApiClient {
3313
3483
  requestValidator: async (data) => await z.object({
3314
3484
  body: zTeamUpdateRoleBody,
3315
3485
  path: zTeamUpdateRolePath,
3316
- query: z.never().optional()
3486
+ query: z.optional(z.never())
3317
3487
  }).parseAsync(data),
3318
3488
  responseValidator: async (data) => await zTeamUpdateRoleResponse.parseAsync(data),
3319
3489
  security: [{
@@ -3336,9 +3506,9 @@ var Telemetry = class extends HeyApiClient {
3336
3506
  preview(options) {
3337
3507
  return (options?.client ?? this.client).get({
3338
3508
  requestValidator: async (data) => await z.object({
3339
- body: z.never().optional(),
3340
- path: z.never().optional(),
3341
- query: z.never().optional()
3509
+ body: z.optional(z.never()),
3510
+ path: z.optional(z.never()),
3511
+ query: z.optional(z.never())
3342
3512
  }).parseAsync(data),
3343
3513
  responseValidator: async (data) => await zTelemetryPreviewResponse.parseAsync(data),
3344
3514
  security: [{
@@ -3360,9 +3530,9 @@ var Tokens = class extends HeyApiClient {
3360
3530
  list(options) {
3361
3531
  return (options?.client ?? this.client).get({
3362
3532
  requestValidator: async (data) => await z.object({
3363
- body: z.never().optional(),
3364
- path: z.never().optional(),
3365
- query: z.never().optional()
3533
+ body: z.optional(z.never()),
3534
+ path: z.optional(z.never()),
3535
+ query: z.optional(z.never())
3366
3536
  }).parseAsync(data),
3367
3537
  responseValidator: async (data) => await zTokensListResponse.parseAsync(data),
3368
3538
  security: [{
@@ -3383,8 +3553,8 @@ var Tokens = class extends HeyApiClient {
3383
3553
  return (options.client ?? this.client).post({
3384
3554
  requestValidator: async (data) => await z.object({
3385
3555
  body: zTokensCreateBody,
3386
- path: z.never().optional(),
3387
- query: z.never().optional()
3556
+ path: z.optional(z.never()),
3557
+ query: z.optional(z.never())
3388
3558
  }).parseAsync(data),
3389
3559
  responseValidator: async (data) => await zTokensCreateResponse.parseAsync(data),
3390
3560
  security: [{
@@ -3407,9 +3577,9 @@ var Tokens = class extends HeyApiClient {
3407
3577
  delete(options) {
3408
3578
  return (options.client ?? this.client).delete({
3409
3579
  requestValidator: async (data) => await z.object({
3410
- body: z.never().optional(),
3580
+ body: z.optional(z.never()),
3411
3581
  path: zTokensDeletePath,
3412
- query: z.never().optional()
3582
+ query: z.optional(z.never())
3413
3583
  }).parseAsync(data),
3414
3584
  responseValidator: async (data) => await zTokensDeleteResponse.parseAsync(data),
3415
3585
  security: [{
@@ -3429,9 +3599,9 @@ var Tokens = class extends HeyApiClient {
3429
3599
  get(options) {
3430
3600
  return (options.client ?? this.client).get({
3431
3601
  requestValidator: async (data) => await z.object({
3432
- body: z.never().optional(),
3602
+ body: z.optional(z.never()),
3433
3603
  path: zTokensGetPath,
3434
- query: z.never().optional()
3604
+ query: z.optional(z.never())
3435
3605
  }).parseAsync(data),
3436
3606
  responseValidator: async (data) => await zTokensGetResponse.parseAsync(data),
3437
3607
  security: [{
@@ -3450,9 +3620,9 @@ var Users = class extends HeyApiClient {
3450
3620
  assignments(options) {
3451
3621
  return (options.client ?? this.client).get({
3452
3622
  requestValidator: async (data) => await z.object({
3453
- body: z.never().optional(),
3623
+ body: z.optional(z.never()),
3454
3624
  path: zUsersAssignmentsPath,
3455
- query: z.never().optional()
3625
+ query: z.optional(z.never())
3456
3626
  }).parseAsync(data),
3457
3627
  responseValidator: async (data) => await zUsersAssignmentsResponse.parseAsync(data),
3458
3628
  security: [{
@@ -3474,7 +3644,7 @@ var Users = class extends HeyApiClient {
3474
3644
  requestValidator: async (data) => await z.object({
3475
3645
  body: zUsersSetAssignmentsBody,
3476
3646
  path: zUsersSetAssignmentsPath,
3477
- query: z.never().optional()
3647
+ query: z.optional(z.never())
3478
3648
  }).parseAsync(data),
3479
3649
  responseValidator: async (data) => await zUsersSetAssignmentsResponse.parseAsync(data),
3480
3650
  security: [{
@@ -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.optional(z.never()),
3671
+ path: z.optional(z.never()),
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.optional(z.never()),
3691
+ query: z.optional(z.never())
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.optional(z.never()),
3714
+ query: z.optional(z.never())
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.optional(z.never()),
3736
+ path: zWorkspaceViewsDeletePath,
3737
+ query: z.optional(z.never())
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.optional(z.never())
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.
@@ -3498,8 +3777,8 @@ var Auth = class extends HeyApiClient {
3498
3777
  return (options.client ?? this.client).post({
3499
3778
  requestValidator: async (data) => await z.object({
3500
3779
  body: zAuthAcceptInvitationBody,
3501
- path: z.never().optional(),
3502
- query: z.never().optional()
3780
+ path: z.optional(z.never()),
3781
+ query: z.optional(z.never())
3503
3782
  }).parseAsync(data),
3504
3783
  responseValidator: async (data) => await zAuthAcceptInvitationResponse.parseAsync(data),
3505
3784
  url: "/auth/accept-invitation",
@@ -3516,9 +3795,9 @@ var Auth = class extends HeyApiClient {
3516
3795
  getInvitation(options) {
3517
3796
  return (options.client ?? this.client).get({
3518
3797
  requestValidator: async (data) => await z.object({
3519
- body: z.never().optional(),
3798
+ body: z.optional(z.never()),
3520
3799
  path: zAuthGetInvitationPath,
3521
- query: z.never().optional()
3800
+ query: z.optional(z.never())
3522
3801
  }).parseAsync(data),
3523
3802
  responseValidator: async (data) => await zAuthGetInvitationResponse.parseAsync(data),
3524
3803
  url: "/auth/invitation/{token}",
@@ -3532,8 +3811,8 @@ var Auth = class extends HeyApiClient {
3532
3811
  return (options.client ?? this.client).post({
3533
3812
  requestValidator: async (data) => await z.object({
3534
3813
  body: zAuthLoginBody,
3535
- path: z.never().optional(),
3536
- query: z.never().optional()
3814
+ path: z.optional(z.never()),
3815
+ query: z.optional(z.never())
3537
3816
  }).parseAsync(data),
3538
3817
  responseValidator: async (data) => await zAuthLoginResponse.parseAsync(data),
3539
3818
  url: "/auth/login",
@@ -3550,9 +3829,9 @@ var Auth = class extends HeyApiClient {
3550
3829
  logout(options) {
3551
3830
  return (options?.client ?? this.client).post({
3552
3831
  requestValidator: async (data) => await z.object({
3553
- body: z.never().optional(),
3554
- path: z.never().optional(),
3555
- query: z.never().optional()
3832
+ body: z.optional(z.never()),
3833
+ path: z.optional(z.never()),
3834
+ query: z.optional(z.never())
3556
3835
  }).parseAsync(data),
3557
3836
  responseValidator: async (data) => await zAuthLogoutResponse.parseAsync(data),
3558
3837
  security: [{
@@ -3570,9 +3849,9 @@ var Auth = class extends HeyApiClient {
3570
3849
  getCurrentUser(options) {
3571
3850
  return (options?.client ?? this.client).get({
3572
3851
  requestValidator: async (data) => await z.object({
3573
- body: z.never().optional(),
3574
- path: z.never().optional(),
3575
- query: z.never().optional()
3852
+ body: z.optional(z.never()),
3853
+ path: z.optional(z.never()),
3854
+ query: z.optional(z.never())
3576
3855
  }).parseAsync(data),
3577
3856
  responseValidator: async (data) => await zAuthGetCurrentUserResponse.parseAsync(data),
3578
3857
  security: [{
@@ -3591,8 +3870,8 @@ var Auth = class extends HeyApiClient {
3591
3870
  return (options.client ?? this.client).patch({
3592
3871
  requestValidator: async (data) => await z.object({
3593
3872
  body: zAuthUpdateCurrentUserBody,
3594
- path: z.never().optional(),
3595
- query: z.never().optional()
3873
+ path: z.optional(z.never()),
3874
+ query: z.optional(z.never())
3596
3875
  }).parseAsync(data),
3597
3876
  responseValidator: async (data) => await zAuthUpdateCurrentUserResponse.parseAsync(data),
3598
3877
  security: [{
@@ -3616,8 +3895,8 @@ var Auth = class extends HeyApiClient {
3616
3895
  return (options.client ?? this.client).post({
3617
3896
  requestValidator: async (data) => await z.object({
3618
3897
  body: zAuthChangePasswordBody,
3619
- path: z.never().optional(),
3620
- query: z.never().optional()
3898
+ path: z.optional(z.never()),
3899
+ query: z.optional(z.never())
3621
3900
  }).parseAsync(data),
3622
3901
  responseValidator: async (data) => await zAuthChangePasswordResponse.parseAsync(data),
3623
3902
  security: [{
@@ -3640,9 +3919,9 @@ var Auth = class extends HeyApiClient {
3640
3919
  ssoCallback(options) {
3641
3920
  return (options?.client ?? this.client).get({
3642
3921
  requestValidator: async (data) => await z.object({
3643
- body: z.never().optional(),
3644
- path: z.never().optional(),
3645
- query: zAuthSsoCallbackQuery.optional()
3922
+ body: z.optional(z.never()),
3923
+ path: z.optional(z.never()),
3924
+ query: z.optional(zAuthSsoCallbackQuery)
3646
3925
  }).parseAsync(data),
3647
3926
  responseValidator: async (data) => await zAuthSsoCallbackResponse.parseAsync(data),
3648
3927
  url: "/auth/sso/callback",
@@ -3655,9 +3934,9 @@ var Auth = class extends HeyApiClient {
3655
3934
  ssoConfig(options) {
3656
3935
  return (options?.client ?? this.client).get({
3657
3936
  requestValidator: async (data) => await z.object({
3658
- body: z.never().optional(),
3659
- path: z.never().optional(),
3660
- query: z.never().optional()
3937
+ body: z.optional(z.never()),
3938
+ path: z.optional(z.never()),
3939
+ query: z.optional(z.never())
3661
3940
  }).parseAsync(data),
3662
3941
  responseValidator: async (data) => await zAuthSsoConfigResponse.parseAsync(data),
3663
3942
  url: "/auth/sso/config",
@@ -3670,9 +3949,9 @@ var Auth = class extends HeyApiClient {
3670
3949
  ssoLink(options) {
3671
3950
  return (options?.client ?? this.client).get({
3672
3951
  requestValidator: async (data) => await z.object({
3673
- body: z.never().optional(),
3674
- path: z.never().optional(),
3675
- query: z.never().optional()
3952
+ body: z.optional(z.never()),
3953
+ path: z.optional(z.never()),
3954
+ query: z.optional(z.never())
3676
3955
  }).parseAsync(data),
3677
3956
  responseValidator: async (data) => await zAuthSsoLinkResponse.parseAsync(data),
3678
3957
  url: "/auth/sso/link",
@@ -3687,8 +3966,8 @@ var Auth = class extends HeyApiClient {
3687
3966
  return (options.client ?? this.client).post({
3688
3967
  requestValidator: async (data) => await z.object({
3689
3968
  body: zAuthConfirmSsoLinkBody,
3690
- path: z.never().optional(),
3691
- query: z.never().optional()
3969
+ path: z.optional(z.never()),
3970
+ query: z.optional(z.never())
3692
3971
  }).parseAsync(data),
3693
3972
  responseValidator: async (data) => await zAuthConfirmSsoLinkResponse.parseAsync(data),
3694
3973
  url: "/auth/sso/link",
@@ -3706,9 +3985,9 @@ var Auth = class extends HeyApiClient {
3706
3985
  ssoStart(options) {
3707
3986
  return (options?.client ?? this.client).post({
3708
3987
  requestValidator: async (data) => await z.object({
3709
- body: z.never().optional(),
3710
- path: z.never().optional(),
3711
- query: z.never().optional()
3988
+ body: z.optional(z.never()),
3989
+ path: z.optional(z.never()),
3990
+ query: z.optional(z.never())
3712
3991
  }).parseAsync(data),
3713
3992
  responseValidator: async (data) => await zAuthSsoStartResponse.parseAsync(data),
3714
3993
  url: "/auth/sso/start",
@@ -3724,9 +4003,9 @@ var Health = class extends HeyApiClient {
3724
4003
  liveness(options) {
3725
4004
  return (options?.client ?? this.client).get({
3726
4005
  requestValidator: async (data) => await z.object({
3727
- body: z.never().optional(),
3728
- path: z.never().optional(),
3729
- query: z.never().optional()
4006
+ body: z.optional(z.never()),
4007
+ path: z.optional(z.never()),
4008
+ query: z.optional(z.never())
3730
4009
  }).parseAsync(data),
3731
4010
  responseValidator: async (data) => await zHealthLivenessResponse.parseAsync(data),
3732
4011
  url: "/health",
@@ -3740,9 +4019,9 @@ var Health = class extends HeyApiClient {
3740
4019
  readiness(options) {
3741
4020
  return (options?.client ?? this.client).get({
3742
4021
  requestValidator: async (data) => await z.object({
3743
- body: z.never().optional(),
3744
- path: z.never().optional(),
3745
- query: z.never().optional()
4022
+ body: z.optional(z.never()),
4023
+ path: z.optional(z.never()),
4024
+ query: z.optional(z.never())
3746
4025
  }).parseAsync(data),
3747
4026
  responseValidator: async (data) => await zHealthReadinessResponse.parseAsync(data),
3748
4027
  url: "/health/ready",
@@ -3761,9 +4040,9 @@ var Health = class extends HeyApiClient {
3761
4040
  version(options) {
3762
4041
  return (options?.client ?? this.client).get({
3763
4042
  requestValidator: async (data) => await z.object({
3764
- body: z.never().optional(),
3765
- path: z.never().optional(),
3766
- query: z.never().optional()
4043
+ body: z.optional(z.never()),
4044
+ path: z.optional(z.never()),
4045
+ query: z.optional(z.never())
3767
4046
  }).parseAsync(data),
3768
4047
  responseValidator: async (data) => await zHealthVersionResponse.parseAsync(data),
3769
4048
  security: [{
@@ -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