@rustrak/client 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { formDataBodySerializer } from "./core/bodySerializer.gen.mjs";
2
2
  import { client } from "./client.gen.mjs";
3
- import { 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, zAuthRegisterBody, 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, zInvitationsListResponse, zInvitationsRevokePath, zInvitationsRevokeResponse, zIssuesBulkDeleteBody, zIssuesBulkDeletePath, zIssuesBulkDeleteResponse, zIssuesBulkUpdateBody, zIssuesBulkUpdatePath, zIssuesBulkUpdateResponse, zIssuesCreateCommentBody, zIssuesCreateCommentPath, zIssuesCreateCommentResponse, zIssuesCreateUserReportBody, zIssuesCreateUserReportPath, zIssuesCreateUserReportResponse, zIssuesDeletePath, zIssuesDeleteResponse, zIssuesGetActivityPath, zIssuesGetActivityResponse, zIssuesGetAggregatesPath, zIssuesGetAggregatesResponse, zIssuesGetHashesPath, zIssuesGetHashesResponse, zIssuesGetPath, zIssuesGetResponse, zIssuesGetStatsPath, zIssuesGetStatsQuery, zIssuesGetStatsResponse, zIssuesGetTagValuesPath, zIssuesGetTagValuesResponse, zIssuesListPath, zIssuesListQuery, zIssuesListResponse, zIssuesListUserReportsPath, zIssuesListUserReportsQuery, zIssuesListUserReportsResponse, zIssuesMarkSeenPath, zIssuesMarkSeenResponse, zIssuesSetBookmarkBody, zIssuesSetBookmarkPath, zIssuesSetBookmarkResponse, zIssuesSetSubscriptionBody, zIssuesSetSubscriptionPath, zIssuesSetSubscriptionResponse, zIssuesUpdateBody, zIssuesUpdatePath, zIssuesUpdateResponse, zLogsGetPath, zLogsGetResponse, zLogsListPath, zLogsListQuery, zLogsListResponse, zLogsVolumePath, zLogsVolumeQuery, zLogsVolumeResponse, 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, 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 } from "./zod.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, zAuthRegisterBody, zAuthSsoCallbackQuery, zAuthSsoCallbackResponse, zAuthSsoConfigResponse, zAuthSsoLinkResponse, zAuthSsoStartResponse, zAuthUpdateCurrentUserBody, zAuthUpdateCurrentUserResponse, zDebugFilesAssembleBody, zDebugFilesAssemblePath, zDebugFilesAssembleResponse, zDebugFilesUploadBody, zDebugFilesUploadPath, zDebugFilesUploadResponse, zEnvironmentsListPath, zEnvironmentsListResponse, zEventsDownloadAttachmentPath, zEventsDownloadAttachmentResponse, zEventsGetBySentryIdPath, zEventsGetBySentryIdResponse, zEventsGetPath, zEventsGetResponse, zEventsListAttachmentsPath, zEventsListAttachmentsResponse, zEventsListPath, zEventsListQuery, zEventsListResponse, zFeedbackListPath, zFeedbackListQuery, zFeedbackListResponse, zGithubCallbackQuery, zGithubCreateIssueBody, zGithubCreateIssuePath, zGithubCreateIssueResponse, zGithubDeleteProjectRepositoryPath, zGithubDeleteProjectRepositoryResponse, zGithubDisconnectResponse, zGithubGetMyLoginResponse, zGithubGetProjectRepositoryPath, zGithubGetProjectRepositoryResponse, zGithubInstalledQuery, zGithubIssueDraftPath, zGithubIssueDraftResponse, zGithubIssuePath, zGithubIssueResponse, zGithubLinkIssueBody, zGithubLinkIssuePath, zGithubLinkIssueResponse, zGithubManifestBody, zGithubManifestResponse, zGithubPutIssueTemplateBody, zGithubPutIssueTemplateResponse, zGithubPutMyLoginBody, zGithubPutMyLoginResponse, zGithubPutProjectRepositoryBody, zGithubPutProjectRepositoryPath, zGithubPutProjectRepositoryResponse, zGithubRepositoriesQuery, zGithubRepositoriesResponse, zGithubStatusResponse, zGithubSyncCodeownersPath, zGithubSyncCodeownersResponse, zGithubUnlinkIssuePath, zGithubUnlinkIssueResponse, zGithubWebhookBody, zGithubWebhookResponse, zHealthLivenessResponse, zHealthReadinessResponse, zHealthVersionResponse, zInvitationsCreateBody, zInvitationsCreateResponse, zInvitationsEmailStatusResponse, zInvitationsListResponse, zInvitationsResendPath, zInvitationsResendResponse, zInvitationsRevokePath, zInvitationsRevokeResponse, zIssuesBulkDeleteBody, zIssuesBulkDeletePath, zIssuesBulkDeleteResponse, zIssuesBulkUpdateBody, zIssuesBulkUpdatePath, zIssuesBulkUpdateResponse, zIssuesCreateCommentBody, zIssuesCreateCommentPath, zIssuesCreateCommentResponse, zIssuesCreateUserReportBody, zIssuesCreateUserReportPath, zIssuesCreateUserReportResponse, zIssuesDeletePath, zIssuesDeleteResponse, zIssuesGetActivityPath, zIssuesGetActivityResponse, zIssuesGetAggregatesPath, zIssuesGetAggregatesResponse, zIssuesGetHashesPath, zIssuesGetHashesResponse, zIssuesGetPath, zIssuesGetResponse, zIssuesGetStatsPath, zIssuesGetStatsQuery, zIssuesGetStatsResponse, zIssuesGetTagValuesPath, zIssuesGetTagValuesResponse, zIssuesListPath, zIssuesListQuery, zIssuesListResponse, zIssuesListUserReportsPath, zIssuesListUserReportsQuery, zIssuesListUserReportsResponse, zIssuesMarkSeenPath, zIssuesMarkSeenResponse, zIssuesSetBookmarkBody, zIssuesSetBookmarkPath, zIssuesSetBookmarkResponse, zIssuesSetSubscriptionBody, zIssuesSetSubscriptionPath, zIssuesSetSubscriptionResponse, zIssuesUpdateBody, zIssuesUpdatePath, zIssuesUpdateResponse, zLogsGetPath, zLogsGetResponse, zLogsListPath, zLogsListQuery, zLogsListResponse, zLogsVolumePath, zLogsVolumeQuery, zLogsVolumeResponse, zMembersCandidatesPath, zMembersCandidatesResponse, zMembersListPath, zMembersListResponse, zMembersRemovePath, zMembersRemoveResponse, zMembersUpsertBody, zMembersUpsertPath, zMembersUpsertResponse, zMonitorsCreateBody, zMonitorsCreatePath, zMonitorsCreateResponse, zMonitorsDeletePath, zMonitorsDeleteResponse, zMonitorsGetPath, zMonitorsGetResponse, zMonitorsListCheckinsPath, zMonitorsListCheckinsQuery, zMonitorsListCheckinsResponse, zMonitorsListPath, zMonitorsListResponse, zMonitorsStatsPath, zMonitorsStatsQuery, zMonitorsStatsResponse, zMonitorsUpdateBody, zMonitorsUpdatePath, zMonitorsUpdateResponse, zOauthDecideAuthorizationBody, zOauthDecideAuthorizationResponse, zOauthGetAuthorizationQuery, zOauthGetAuthorizationResponse, zOauthListGrantsResponse, zOauthRevokeGrantPath, zOauthRevokeGrantResponse, zProjectsCreateBody, zProjectsCreateResponse, zProjectsDeletePath, zProjectsDeleteResponse, zProjectsGetPath, zProjectsGetRateLimitsResponse, zProjectsGetResponse, zProjectsListQuery, zProjectsListResponse, zProjectsUpdateBody, zProjectsUpdatePath, zProjectsUpdateResponse, zReleasesCreateBody, zReleasesCreatePath, zReleasesCreateResponse, zReleasesFinalizeBody, zReleasesFinalizePath, zReleasesFinalizeResponse, zReleasesGetPath, zReleasesGetQuery, zReleasesGetResponse, zReleasesListPath, zReleasesListQuery, zReleasesListResponse, zReleasesNewIssuesPath, zReleasesNewIssuesQuery, zReleasesNewIssuesResponse, zRolesCreateBody, zRolesCreateResponse, zRolesDeletePath, zRolesDeleteResponse, zRolesListResponse, zRolesUpdateBody, zRolesUpdatePath, zRolesUpdateResponse, zSchedulesPreviewBody, zSchedulesPreviewResponse, zSentryGetIssuePath, zSentryGetIssueResponse, zSentryGetLatestEventPath, zSentryGetLatestEventResponse, zSentryListIssuesPath, zSentryListIssuesQuery, zSentryListIssuesResponse, zSentryListOrganizationsResponse, zSentryListProjectsQuery, zSentryListProjectsResponse, zSentryListReposPath, zSentryListReposResponse, zSentryOpenIssuePath, zSentrySubmitUserFeedbackBody, zSentrySubmitUserFeedbackPath, zSentrySubmitUserFeedbackResponse, zSentryUpdateIssueBody, zSentryUpdateIssuePath, zSentryUpdateIssueResponse, zSessionsGetStatsPath, zSessionsGetStatsQuery, zSessionsGetStatsResponse, zSessionsGetSummaryPath, zSessionsGetSummaryQuery, zSessionsGetSummaryResponse, zSessionsGetTimeseriesPath, zSessionsGetTimeseriesQuery, zSessionsGetTimeseriesResponse, zSettingsGetMcpResponse, zSettingsUpdateMcpBody, zSettingsUpdateMcpResponse, zSourceMapsArtifactBundleAssembleBody, zSourceMapsArtifactBundleAssemblePath, zSourceMapsArtifactBundleAssembleResponse, zSourceMapsChunkUploadBody, zSourceMapsChunkUploadCapabilityPath, zSourceMapsChunkUploadCapabilityResponse, zSourceMapsChunkUploadPath, zSourceMapsListPath, zSourceMapsListResponse, zSourceMapsOrgDetailsPath, zSourceMapsOrgDetailsResponse, zSpansGetPath, zSpansGetResponse, zSpansListPath, zSpansListQuery, zSpansListResponse, zStatsGetEventTimeseriesPath, zStatsGetEventTimeseriesQuery, zStatsGetEventTimeseriesResponse, zStatsGetSummaryPath, zStatsGetSummaryQuery, zStatsGetSummaryResponse, zStorageCompactResponse, zStorageExecuteCleanupBody, zStorageExecuteCleanupResponse, zStorageGcSourceMapsResponse, zStorageGetAgeResponse, zStorageGetCleanupStatusResponse, zStorageGetCompactionResponse, zStorageGetProjectsResponse, zStorageGetRetentionResponse, zStorageGetSummaryResponse, zStoragePreviewCleanupBody, zStoragePreviewCleanupResponse, zStoragePreviewRetentionBody, zStoragePreviewRetentionResponse, zStoragePreviewSourceMapGcResponse, zStorageRunRetentionResponse, zStorageUpdateRetentionBody, zStorageUpdateRetentionResponse, zTeamDeleteUserPath, zTeamDeleteUserResponse, zTeamListResponse, zTeamUpdateRoleBody, zTeamUpdateRolePath, zTeamUpdateRoleResponse, zTelemetryPreviewResponse, zTokensCreateBody, zTokensCreateResponse, zTokensDeletePath, zTokensDeleteResponse, zTokensGetPath, zTokensGetResponse, zTokensListResponse, zTransactionsGetPath, zTransactionsGetResponse, zTransactionsGetSpansPath, zTransactionsGetSpansResponse, zTransactionsGetStatGroupPath, zTransactionsGetStatGroupQuery, zTransactionsGetStatGroupResponse, zTransactionsGetStatGroupTimeseriesPath, zTransactionsGetStatGroupTimeseriesQuery, zTransactionsGetStatGroupTimeseriesResponse, zTransactionsGetStatsPath, zTransactionsGetStatsQuery, zTransactionsGetStatsResponse, zTransactionsListPath, zTransactionsListQuery, zTransactionsListResponse, zUsersAssignmentsPath, zUsersAssignmentsResponse, zUsersSetAssignmentsBody, zUsersSetAssignmentsPath, zUsersSetAssignmentsResponse } from "./zod.gen.mjs";
4
4
  import * as z from "zod";
5
5
  // src/generated/sdk.gen.ts
6
6
  var HeyApiClient = class {
@@ -519,6 +519,46 @@ var Releases = class extends HeyApiClient {
519
519
  });
520
520
  }
521
521
  };
522
+ var Access = class extends HeyApiClient {
523
+ /**
524
+ * Lists every resource a permission can name, with its module, scope and actions.
525
+ */
526
+ catalog(options) {
527
+ return (options?.client ?? this.client).get({
528
+ requestValidator: async (data) => await z.object({
529
+ body: z.never().optional(),
530
+ path: z.never().optional(),
531
+ query: z.never().optional()
532
+ }).parseAsync(data),
533
+ responseValidator: async (data) => await zAccessCatalogResponse.parseAsync(data),
534
+ security: [{
535
+ scheme: "bearer",
536
+ type: "http"
537
+ }],
538
+ url: "/api/access/catalog",
539
+ ...options
540
+ });
541
+ }
542
+ /**
543
+ * Returns what the caller may do, on the instance and on each project.
544
+ */
545
+ me(options) {
546
+ return (options?.client ?? this.client).get({
547
+ requestValidator: async (data) => await z.object({
548
+ body: z.never().optional(),
549
+ path: z.never().optional(),
550
+ query: z.never().optional()
551
+ }).parseAsync(data),
552
+ responseValidator: async (data) => await zAccessMeResponse.parseAsync(data),
553
+ security: [{
554
+ scheme: "bearer",
555
+ type: "http"
556
+ }],
557
+ url: "/api/access/me",
558
+ ...options
559
+ });
560
+ }
561
+ };
522
562
  var Github = class extends HeyApiClient {
523
563
  /**
524
564
  * DELETE /api/github
@@ -915,7 +955,12 @@ var Github = class extends HeyApiClient {
915
955
  };
916
956
  var AlertChannels = class extends HeyApiClient {
917
957
  /**
918
- * GET /api/alert-channels
958
+ * Lists the channels alerts can go through.
959
+ *
960
+ * `integrations:read` sees their credentials masked, `integrations:update` in
961
+ * full. Holding an alert-rules permission on any project is enough for the
962
+ * rest, without them: choosing where a rule notifies takes a channel's name,
963
+ * not its secrets.
919
964
  */
920
965
  list(options) {
921
966
  return (options?.client ?? this.client).get({
@@ -1071,7 +1116,7 @@ var AlertChannels = class extends HeyApiClient {
1071
1116
  };
1072
1117
  var Invitations = class extends HeyApiClient {
1073
1118
  /**
1074
- * GET /api/invitations — list invitations (admin only)
1119
+ * GET /api/invitations — list invitations (needs `invitations:read`)
1075
1120
  */
1076
1121
  list(options) {
1077
1122
  return (options?.client ?? this.client).get({
@@ -1090,7 +1135,11 @@ var Invitations = class extends HeyApiClient {
1090
1135
  });
1091
1136
  }
1092
1137
  /**
1093
- * POST /api/invitations — create an invitation (admin only)
1138
+ * POST /api/invitations — create an invitation (needs `invitations:create`)
1139
+ *
1140
+ * With `send_email: true` the invite link is also emailed. A failed send
1141
+ * still creates the invitation, with `email_sent_at: null`, so its link can
1142
+ * be shared by hand or the email resent.
1094
1143
  */
1095
1144
  create(options) {
1096
1145
  return (options.client ?? this.client).post({
@@ -1113,7 +1162,26 @@ var Invitations = class extends HeyApiClient {
1113
1162
  });
1114
1163
  }
1115
1164
  /**
1116
- * DELETE /api/invitations/{token} — revoke a pending invitation (admin only)
1165
+ * GET /api/invitations/email-status — whether invitation emails can be sent (needs `invitations:read`)
1166
+ */
1167
+ emailStatus(options) {
1168
+ return (options?.client ?? this.client).get({
1169
+ requestValidator: async (data) => await z.object({
1170
+ body: z.never().optional(),
1171
+ path: z.never().optional(),
1172
+ query: z.never().optional()
1173
+ }).parseAsync(data),
1174
+ responseValidator: async (data) => await zInvitationsEmailStatusResponse.parseAsync(data),
1175
+ security: [{
1176
+ scheme: "bearer",
1177
+ type: "http"
1178
+ }],
1179
+ url: "/api/invitations/email-status",
1180
+ ...options
1181
+ });
1182
+ }
1183
+ /**
1184
+ * DELETE /api/invitations/{id} — revoke a pending invitation (needs `invitations:delete`)
1117
1185
  */
1118
1186
  revoke(options) {
1119
1187
  return (options.client ?? this.client).delete({
@@ -1127,7 +1195,26 @@ var Invitations = class extends HeyApiClient {
1127
1195
  scheme: "bearer",
1128
1196
  type: "http"
1129
1197
  }],
1130
- url: "/api/invitations/{token}",
1198
+ url: "/api/invitations/{id}",
1199
+ ...options
1200
+ });
1201
+ }
1202
+ /**
1203
+ * POST /api/invitations/{id}/resend — email the invite link again (needs `invitations:create`)
1204
+ */
1205
+ resend(options) {
1206
+ return (options.client ?? this.client).post({
1207
+ requestValidator: async (data) => await z.object({
1208
+ body: z.never().optional(),
1209
+ path: zInvitationsResendPath,
1210
+ query: z.never().optional()
1211
+ }).parseAsync(data),
1212
+ responseValidator: async (data) => await zInvitationsResendResponse.parseAsync(data),
1213
+ security: [{
1214
+ scheme: "bearer",
1215
+ type: "http"
1216
+ }],
1217
+ url: "/api/invitations/{id}/resend",
1131
1218
  ...options
1132
1219
  });
1133
1220
  }
@@ -1202,7 +1289,7 @@ var Projects = class extends HeyApiClient {
1202
1289
  /**
1203
1290
  * GET /api/projects - List projects with pagination
1204
1291
  *
1205
- * Admins see every project. Non-admins see only the projects they belong to.
1292
+ * Only the projects the caller holds a permission on.
1206
1293
  */
1207
1294
  list(options) {
1208
1295
  return (options?.client ?? this.client).get({
@@ -1223,8 +1310,9 @@ var Projects = class extends HeyApiClient {
1223
1310
  /**
1224
1311
  * POST /api/projects - Create a new project
1225
1312
  *
1226
- * Any authenticated user may create a project. A non-admin creator is
1227
- * automatically granted the project `admin` role so they can access it.
1313
+ * Needs `projects:create` and a permission on at least one project, because
1314
+ * the creator's own roles extend to the new one. A token limited to chosen
1315
+ * projects can create one, but its list does not grow to reach it.
1228
1316
  */
1229
1317
  create(options) {
1230
1318
  return (options.client ?? this.client).post({
@@ -2325,7 +2413,7 @@ var Logs = class extends HeyApiClient {
2325
2413
  };
2326
2414
  var Members = class extends HeyApiClient {
2327
2415
  /**
2328
- * GET /api/projects/{project_id}/members
2416
+ * Lists everyone holding a role on the project, with those roles; personal permissions are not roles.
2329
2417
  */
2330
2418
  list(options) {
2331
2419
  return (options.client ?? this.client).get({
@@ -2344,7 +2432,7 @@ var Members = class extends HeyApiClient {
2344
2432
  });
2345
2433
  }
2346
2434
  /**
2347
- * PUT /api/projects/{project_id}/members
2435
+ * Sets the roles a user holds on the project.
2348
2436
  */
2349
2437
  upsert(options) {
2350
2438
  return (options.client ?? this.client).put({
@@ -2367,7 +2455,26 @@ var Members = class extends HeyApiClient {
2367
2455
  });
2368
2456
  }
2369
2457
  /**
2370
- * DELETE /api/projects/{project_id}/members/{user_id}
2458
+ * Lists the people and the roles the caller can give on the project, so it takes neither `users:read` nor `roles:read` to manage its members.
2459
+ */
2460
+ candidates(options) {
2461
+ return (options.client ?? this.client).get({
2462
+ requestValidator: async (data) => await z.object({
2463
+ body: z.never().optional(),
2464
+ path: zMembersCandidatesPath,
2465
+ query: z.never().optional()
2466
+ }).parseAsync(data),
2467
+ responseValidator: async (data) => await zMembersCandidatesResponse.parseAsync(data),
2468
+ security: [{
2469
+ scheme: "bearer",
2470
+ type: "http"
2471
+ }],
2472
+ url: "/api/projects/{project_id}/members/candidates",
2473
+ ...options
2474
+ });
2475
+ }
2476
+ /**
2477
+ * Removes the roles a user holds on this project; roles on all projects and personal permissions stay.
2371
2478
  */
2372
2479
  remove(options) {
2373
2480
  return (options.client ?? this.client).delete({
@@ -2766,6 +2873,95 @@ var Transactions = class extends HeyApiClient {
2766
2873
  });
2767
2874
  }
2768
2875
  };
2876
+ var Roles = class extends HeyApiClient {
2877
+ /**
2878
+ * Lists every role with its permissions and how often it is assigned.
2879
+ */
2880
+ list(options) {
2881
+ return (options?.client ?? this.client).get({
2882
+ requestValidator: async (data) => await z.object({
2883
+ body: z.never().optional(),
2884
+ path: z.never().optional(),
2885
+ query: z.never().optional()
2886
+ }).parseAsync(data),
2887
+ responseValidator: async (data) => await zRolesListResponse.parseAsync(data),
2888
+ security: [{
2889
+ scheme: "bearer",
2890
+ type: "http"
2891
+ }],
2892
+ url: "/api/roles",
2893
+ ...options
2894
+ });
2895
+ }
2896
+ /**
2897
+ * Creates a role from permissions the caller holds themselves.
2898
+ */
2899
+ create(options) {
2900
+ return (options.client ?? this.client).post({
2901
+ requestValidator: async (data) => await z.object({
2902
+ body: zRolesCreateBody,
2903
+ path: z.never().optional(),
2904
+ query: z.never().optional()
2905
+ }).parseAsync(data),
2906
+ responseValidator: async (data) => await zRolesCreateResponse.parseAsync(data),
2907
+ security: [{
2908
+ scheme: "bearer",
2909
+ type: "http"
2910
+ }],
2911
+ url: "/api/roles",
2912
+ ...options,
2913
+ headers: {
2914
+ "Content-Type": "application/json",
2915
+ ...options.headers
2916
+ }
2917
+ });
2918
+ }
2919
+ /**
2920
+ * Deletes a role nobody holds.
2921
+ */
2922
+ delete(options) {
2923
+ return (options.client ?? this.client).delete({
2924
+ requestValidator: async (data) => await z.object({
2925
+ body: z.never().optional(),
2926
+ path: zRolesDeletePath,
2927
+ query: z.never().optional()
2928
+ }).parseAsync(data),
2929
+ responseValidator: async (data) => await zRolesDeleteResponse.parseAsync(data),
2930
+ security: [{
2931
+ scheme: "bearer",
2932
+ type: "http"
2933
+ }],
2934
+ url: "/api/roles/{id}",
2935
+ ...options
2936
+ });
2937
+ }
2938
+ /**
2939
+ * Replaces a role's name, description and permissions.
2940
+ *
2941
+ * The caller must hold both the permissions being added and those being
2942
+ * removed, so nobody strips a role of something they could not give back.
2943
+ */
2944
+ update(options) {
2945
+ return (options.client ?? this.client).put({
2946
+ requestValidator: async (data) => await z.object({
2947
+ body: zRolesUpdateBody,
2948
+ path: zRolesUpdatePath,
2949
+ query: z.never().optional()
2950
+ }).parseAsync(data),
2951
+ responseValidator: async (data) => await zRolesUpdateResponse.parseAsync(data),
2952
+ security: [{
2953
+ scheme: "bearer",
2954
+ type: "http"
2955
+ }],
2956
+ url: "/api/roles/{id}",
2957
+ ...options,
2958
+ headers: {
2959
+ "Content-Type": "application/json",
2960
+ ...options.headers
2961
+ }
2962
+ });
2963
+ }
2964
+ };
2769
2965
  var Schedules = class extends HeyApiClient {
2770
2966
  /**
2771
2967
  * POST /api/schedules/preview
@@ -2796,7 +2992,8 @@ var Schedules = class extends HeyApiClient {
2796
2992
  };
2797
2993
  var Settings = class extends HeyApiClient {
2798
2994
  /**
2799
- * Whether the MCP endpoint at `/mcp` is on.
2995
+ * Whether the MCP endpoint at `/mcp` is on. Open to every member: it is what
2996
+ * they point their own assistant at.
2800
2997
  */
2801
2998
  getMcp(options) {
2802
2999
  return (options?.client ?? this.client).get({
@@ -2815,7 +3012,7 @@ var Settings = class extends HeyApiClient {
2815
3012
  });
2816
3013
  }
2817
3014
  /**
2818
- * Turns the MCP endpoint at `/mcp` on or off. Instance admins only.
3015
+ * Turns the MCP endpoint at `/mcp` on or off (needs `mcp:update`).
2819
3016
  */
2820
3017
  updateMcp(options) {
2821
3018
  return (options.client ?? this.client).put({
@@ -3132,7 +3329,7 @@ var Storage = class extends HeyApiClient {
3132
3329
  };
3133
3330
  var Team = class extends HeyApiClient {
3134
3331
  /**
3135
- * GET /api/team — list all users (admin only)
3332
+ * GET /api/team — list all users (needs `users:read`)
3136
3333
  */
3137
3334
  list(options) {
3138
3335
  return (options?.client ?? this.client).get({
@@ -3151,7 +3348,7 @@ var Team = class extends HeyApiClient {
3151
3348
  });
3152
3349
  }
3153
3350
  /**
3154
- * DELETE /api/team/{user_id} — remove a user from the instance (admin only)
3351
+ * DELETE /api/team/{user_id} — remove a user from the instance (needs `users:delete`)
3155
3352
  */
3156
3353
  deleteUser(options) {
3157
3354
  return (options.client ?? this.client).delete({
@@ -3170,7 +3367,7 @@ var Team = class extends HeyApiClient {
3170
3367
  });
3171
3368
  }
3172
3369
  /**
3173
- * PATCH /api/team/{user_id}/role — change a user's global role (admin only)
3370
+ * PATCH /api/team/{user_id}/role — change a user's global role (needs `users:update`)
3174
3371
  */
3175
3372
  updateRole(options) {
3176
3373
  return (options.client ?? this.client).patch({
@@ -3218,7 +3415,8 @@ var Tokens = class extends HeyApiClient {
3218
3415
  /**
3219
3416
  * GET /api/tokens - List tokens (masked)
3220
3417
  *
3221
- * Admins see all tokens; non-admins see only the tokens they own.
3418
+ * Everyone sees their own tokens; `api-tokens:read` sees every token. A token
3419
+ * limited to other permissions sees none: it must not reach its owner's others.
3222
3420
  */
3223
3421
  list(options) {
3224
3422
  return (options?.client ?? this.client).get({
@@ -3237,7 +3435,10 @@ var Tokens = class extends HeyApiClient {
3237
3435
  });
3238
3436
  }
3239
3437
  /**
3240
- * POST /api/tokens - Create a new token (scoped to the acting user)
3438
+ * POST /api/tokens - Create a new token (from a signed-in session only)
3439
+ *
3440
+ * A token cannot create tokens: a limited or expiring one could otherwise
3441
+ * mint itself a way out of its limits.
3241
3442
  */
3242
3443
  create(options) {
3243
3444
  return (options.client ?? this.client).post({
@@ -3262,7 +3463,7 @@ var Tokens = class extends HeyApiClient {
3262
3463
  /**
3263
3464
  * DELETE /api/tokens/{id} - Revoke a token
3264
3465
  *
3265
- * Admins may revoke any token; non-admins may only revoke their own.
3466
+ * Everyone may revoke their own; `api-tokens:delete` revokes any.
3266
3467
  */
3267
3468
  delete(options) {
3268
3469
  return (options.client ?? this.client).delete({
@@ -3281,10 +3482,10 @@ var Tokens = class extends HeyApiClient {
3281
3482
  });
3282
3483
  }
3283
3484
  /**
3284
- * GET /api/tokens/{id} - Reveal full token value
3485
+ * GET /api/tokens/{id} - Token details, masked
3285
3486
  *
3286
- * Returns the complete token string. Admins may view any token;
3287
- * non-admins may only view their own.
3487
+ * Tokens are stored hashed, so the full value is only ever shown on
3488
+ * creation. Everyone may view their own; `api-tokens:read` views any.
3288
3489
  */
3289
3490
  get(options) {
3290
3491
  return (options.client ?? this.client).get({
@@ -3303,6 +3504,53 @@ var Tokens = class extends HeyApiClient {
3303
3504
  });
3304
3505
  }
3305
3506
  };
3507
+ var Users = class extends HeyApiClient {
3508
+ /**
3509
+ * Lists the roles a user holds, on the instance and on each project.
3510
+ */
3511
+ assignments(options) {
3512
+ return (options.client ?? this.client).get({
3513
+ requestValidator: async (data) => await z.object({
3514
+ body: z.never().optional(),
3515
+ path: zUsersAssignmentsPath,
3516
+ query: z.never().optional()
3517
+ }).parseAsync(data),
3518
+ responseValidator: async (data) => await zUsersAssignmentsResponse.parseAsync(data),
3519
+ security: [{
3520
+ scheme: "bearer",
3521
+ type: "http"
3522
+ }],
3523
+ url: "/api/users/{id}/assignments",
3524
+ ...options
3525
+ });
3526
+ }
3527
+ /**
3528
+ * Replaces every role and personal permission a user holds.
3529
+ *
3530
+ * The caller must hold every role being given or taken away, on the scope
3531
+ * it applies to.
3532
+ */
3533
+ setAssignments(options) {
3534
+ return (options.client ?? this.client).put({
3535
+ requestValidator: async (data) => await z.object({
3536
+ body: zUsersSetAssignmentsBody,
3537
+ path: zUsersSetAssignmentsPath,
3538
+ query: z.never().optional()
3539
+ }).parseAsync(data),
3540
+ responseValidator: async (data) => await zUsersSetAssignmentsResponse.parseAsync(data),
3541
+ security: [{
3542
+ scheme: "bearer",
3543
+ type: "http"
3544
+ }],
3545
+ url: "/api/users/{id}/assignments",
3546
+ ...options,
3547
+ headers: {
3548
+ "Content-Type": "application/json",
3549
+ ...options.headers
3550
+ }
3551
+ });
3552
+ }
3553
+ };
3306
3554
  var Auth = class extends HeyApiClient {
3307
3555
  /**
3308
3556
  * POST /auth/accept-invitation
@@ -3644,6 +3892,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
3644
3892
  get releases() {
3645
3893
  return this._releases ??= new Releases({ client: this.client });
3646
3894
  }
3895
+ _access;
3896
+ get access() {
3897
+ return this._access ??= new Access({ client: this.client });
3898
+ }
3647
3899
  _github;
3648
3900
  get github() {
3649
3901
  return this._github ??= new Github({ client: this.client });
@@ -3716,6 +3968,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
3716
3968
  get transactions() {
3717
3969
  return this._transactions ??= new Transactions({ client: this.client });
3718
3970
  }
3971
+ _roles;
3972
+ get roles() {
3973
+ return this._roles ??= new Roles({ client: this.client });
3974
+ }
3719
3975
  _schedules;
3720
3976
  get schedules() {
3721
3977
  return this._schedules ??= new Schedules({ client: this.client });
@@ -3740,6 +3996,10 @@ var Rustrak = class Rustrak extends HeyApiClient {
3740
3996
  get tokens() {
3741
3997
  return this._tokens ??= new Tokens({ client: this.client });
3742
3998
  }
3999
+ _users;
4000
+ get users() {
4001
+ return this._users ??= new Users({ client: this.client });
4002
+ }
3743
4003
  _auth;
3744
4004
  get auth() {
3745
4005
  return this._auth ??= new Auth({ client: this.client });
@@ -3749,6 +4009,6 @@ var Rustrak = class Rustrak extends HeyApiClient {
3749
4009
  return this._health ??= new Health({ client: this.client });
3750
4010
  }
3751
4011
  };
3752
- export { Agents, AlertChannels, AlertRules, Auth, DebugFiles, Environments, Events, Feedback, Github, Health, Invitations, Issues, Logs, Members, Monitors, Oauth, Projects, Releases, Rustrak, Schedules, Sentry, Sessions, Settings, SourceMaps, Spans, Stats, Storage, Team, Telemetry, Tokens, Transactions };
4012
+ export { Access, Agents, AlertChannels, AlertRules, Auth, DebugFiles, Environments, Events, Feedback, Github, Health, Invitations, Issues, Logs, Members, Monitors, Oauth, Projects, Releases, Roles, Rustrak, Schedules, Sentry, Sessions, Settings, SourceMaps, Spans, Stats, Storage, Team, Telemetry, Tokens, Transactions, Users };
3753
4013
 
3754
4014
  //# sourceMappingURL=sdk.gen.mjs.map