@sentry/mcp-server 0.2.0 → 0.2.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.
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # sentry-mcp
2
+
3
+ This is a prototype of an MCP sever, acting as a middleware to the upstream Sentry API provider.
4
+
5
+ This package is primarily for running the `stdio` MCP server. If you do not know what that is, or do not need it, we suggest using the public remote service:
6
+
7
+ <https://mcp.sentry.dev>
8
+
9
+ To utilize the `stdoio` transport, you'll need to create an Personal API Token (PAT) in Sentry with the necessary scopes. As of writing this is:
10
+
11
+ ```
12
+ org:read
13
+ project:read
14
+ project:write
15
+ team:read
16
+ team:write
17
+ event:read
18
+ ```
19
+
20
+ Launch the transport:
21
+
22
+ ```shell
23
+ npx @sentry/mcp-server --access-token=sentry-pat --host=sentry.example.com
24
+ ```
25
+
26
+ Note: You can also use environment variables:
27
+
28
+ ```shell
29
+ SENTRY_AUTH_TOKEN=
30
+ SENTRY_HOST=
31
+ ```
@@ -1,5 +1,5 @@
1
- import "../schema.d-BDStOeMD.cjs";
2
- import "../types.d-BDS-6_Sj.cjs";
3
- import { ApiError, SentryApiService } from "../client.d-CXQCEkJz.cjs";
1
+ import "../schema.d-CmSYiCnk.cjs";
2
+ import "../types.d-aQMIov7s.cjs";
3
+ import { ApiError, SentryApiService } from "../client.d-5v3p8aTc.cjs";
4
4
 
5
5
  export { ApiError, SentryApiService };
@@ -1,5 +1,5 @@
1
- import "../schema.d-Oa2HQQCX.js";
2
- import "../types.d-Bfi1CpIf.js";
3
- import { ApiError$1 as ApiError, SentryApiService$1 as SentryApiService } from "../client.d-B8RB2Poz.js";
1
+ import "../schema.d-CyRxxXr0.js";
2
+ import "../types.d-8fZD-L6R.js";
3
+ import { ApiError$1 as ApiError, SentryApiService$1 as SentryApiService } from "../client.d-Bn_APKcl.js";
4
4
 
5
5
  export { ApiError, SentryApiService };
@@ -1,6 +1,6 @@
1
- import { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema } from "../schema.d-BDStOeMD.cjs";
2
- import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-BDS-6_Sj.cjs";
3
- import { ApiError, SentryApiService } from "../client.d-CXQCEkJz.cjs";
1
+ import { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema } from "../schema.d-CmSYiCnk.cjs";
2
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-aQMIov7s.cjs";
3
+ import { ApiError, SentryApiService } from "../client.d-5v3p8aTc.cjs";
4
4
  import "../index.d-Cb-lHGvn.cjs";
5
5
 
6
6
  export { ApiError, ApiErrorSchema, AutofixRun, AutofixRunSchema, AutofixRunState, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKey, ClientKeyList, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorsSearchResponseSchema, Event, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, Issue, IssueList, IssueListSchema, IssueSchema, Organization, OrganizationList, OrganizationListSchema, OrganizationSchema, Project, ProjectList, ProjectListSchema, ProjectSchema, Release, ReleaseList, ReleaseListSchema, ReleaseSchema, SentryApiService, SpansSearchResponseSchema, Tag, TagList, TagListSchema, TagSchema, Team, TeamList, TeamListSchema, TeamSchema };
@@ -1,6 +1,6 @@
1
- import { ApiErrorSchema$1 as ApiErrorSchema, AutofixRunSchema$1 as AutofixRunSchema, AutofixRunStateSchema$1 as AutofixRunStateSchema, AutofixRunStepDefaultSchema$1 as AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema$1 as AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema$1 as AutofixRunStepSchema, AutofixRunStepSolutionSchema$1 as AutofixRunStepSolutionSchema, ClientKeyListSchema$1 as ClientKeyListSchema, ClientKeySchema$1 as ClientKeySchema, ErrorEntrySchema$1 as ErrorEntrySchema, ErrorsSearchResponseSchema$1 as ErrorsSearchResponseSchema, EventSchema$1 as EventSchema, EventsResponseSchema$1 as EventsResponseSchema, ExceptionInterface$1 as ExceptionInterface, FrameInterface$1 as FrameInterface, IssueListSchema$1 as IssueListSchema, IssueSchema$1 as IssueSchema, OrganizationListSchema$1 as OrganizationListSchema, OrganizationSchema$1 as OrganizationSchema, ProjectListSchema$1 as ProjectListSchema, ProjectSchema$1 as ProjectSchema, ReleaseListSchema$1 as ReleaseListSchema, ReleaseSchema$1 as ReleaseSchema, SpansSearchResponseSchema$1 as SpansSearchResponseSchema, TagListSchema$1 as TagListSchema, TagSchema$1 as TagSchema, TeamListSchema$1 as TeamListSchema, TeamSchema$1 as TeamSchema } from "../schema.d-Oa2HQQCX.js";
2
- import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-Bfi1CpIf.js";
3
- import { ApiError$1 as ApiError, SentryApiService$1 as SentryApiService } from "../client.d-B8RB2Poz.js";
1
+ import { ApiErrorSchema$1 as ApiErrorSchema, AutofixRunSchema$1 as AutofixRunSchema, AutofixRunStateSchema$1 as AutofixRunStateSchema, AutofixRunStepDefaultSchema$1 as AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema$1 as AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema$1 as AutofixRunStepSchema, AutofixRunStepSolutionSchema$1 as AutofixRunStepSolutionSchema, ClientKeyListSchema$1 as ClientKeyListSchema, ClientKeySchema$1 as ClientKeySchema, ErrorEntrySchema$1 as ErrorEntrySchema, ErrorsSearchResponseSchema$1 as ErrorsSearchResponseSchema, EventSchema$1 as EventSchema, EventsResponseSchema$1 as EventsResponseSchema, ExceptionInterface$1 as ExceptionInterface, FrameInterface$1 as FrameInterface, IssueListSchema$1 as IssueListSchema, IssueSchema$1 as IssueSchema, OrganizationListSchema$1 as OrganizationListSchema, OrganizationSchema$1 as OrganizationSchema, ProjectListSchema$1 as ProjectListSchema, ProjectSchema$1 as ProjectSchema, ReleaseListSchema$1 as ReleaseListSchema, ReleaseSchema$1 as ReleaseSchema, SpansSearchResponseSchema$1 as SpansSearchResponseSchema, TagListSchema$1 as TagListSchema, TagSchema$1 as TagSchema, TeamListSchema$1 as TeamListSchema, TeamSchema$1 as TeamSchema } from "../schema.d-CyRxxXr0.js";
2
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-8fZD-L6R.js";
3
+ import { ApiError$1 as ApiError, SentryApiService$1 as SentryApiService } from "../client.d-Bn_APKcl.js";
4
4
  import "../index.d-Db2MND9s.js";
5
5
 
6
6
  export { ApiError, ApiErrorSchema, AutofixRun, AutofixRunSchema, AutofixRunState, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKey, ClientKeyList, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorsSearchResponseSchema, Event, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, Issue, IssueList, IssueListSchema, IssueSchema, Organization, OrganizationList, OrganizationListSchema, OrganizationSchema, Project, ProjectList, ProjectListSchema, ProjectSchema, Release, ReleaseList, ReleaseListSchema, ReleaseSchema, SentryApiService, SpansSearchResponseSchema, Tag, TagList, TagListSchema, TagSchema, Team, TeamList, TeamListSchema, TeamSchema };
@@ -1,3 +1,3 @@
1
- import { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema } from "../schema.d-BDStOeMD.cjs";
1
+ import { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema } from "../schema.d-CmSYiCnk.cjs";
2
2
 
3
3
  export { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema };
@@ -1,3 +1,3 @@
1
- import { ApiErrorSchema$1 as ApiErrorSchema, AutofixRunSchema$1 as AutofixRunSchema, AutofixRunStateSchema$1 as AutofixRunStateSchema, AutofixRunStepDefaultSchema$1 as AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema$1 as AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema$1 as AutofixRunStepSchema, AutofixRunStepSolutionSchema$1 as AutofixRunStepSolutionSchema, ClientKeyListSchema$1 as ClientKeyListSchema, ClientKeySchema$1 as ClientKeySchema, ErrorEntrySchema$1 as ErrorEntrySchema, ErrorsSearchResponseSchema$1 as ErrorsSearchResponseSchema, EventSchema$1 as EventSchema, EventsResponseSchema$1 as EventsResponseSchema, ExceptionInterface$1 as ExceptionInterface, FrameInterface$1 as FrameInterface, IssueListSchema$1 as IssueListSchema, IssueSchema$1 as IssueSchema, OrganizationListSchema$1 as OrganizationListSchema, OrganizationSchema$1 as OrganizationSchema, ProjectListSchema$1 as ProjectListSchema, ProjectSchema$1 as ProjectSchema, ReleaseListSchema$1 as ReleaseListSchema, ReleaseSchema$1 as ReleaseSchema, SpansSearchResponseSchema$1 as SpansSearchResponseSchema, TagListSchema$1 as TagListSchema, TagSchema$1 as TagSchema, TeamListSchema$1 as TeamListSchema, TeamSchema$1 as TeamSchema } from "../schema.d-Oa2HQQCX.js";
1
+ import { ApiErrorSchema$1 as ApiErrorSchema, AutofixRunSchema$1 as AutofixRunSchema, AutofixRunStateSchema$1 as AutofixRunStateSchema, AutofixRunStepDefaultSchema$1 as AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema$1 as AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema$1 as AutofixRunStepSchema, AutofixRunStepSolutionSchema$1 as AutofixRunStepSolutionSchema, ClientKeyListSchema$1 as ClientKeyListSchema, ClientKeySchema$1 as ClientKeySchema, ErrorEntrySchema$1 as ErrorEntrySchema, ErrorsSearchResponseSchema$1 as ErrorsSearchResponseSchema, EventSchema$1 as EventSchema, EventsResponseSchema$1 as EventsResponseSchema, ExceptionInterface$1 as ExceptionInterface, FrameInterface$1 as FrameInterface, IssueListSchema$1 as IssueListSchema, IssueSchema$1 as IssueSchema, OrganizationListSchema$1 as OrganizationListSchema, OrganizationSchema$1 as OrganizationSchema, ProjectListSchema$1 as ProjectListSchema, ProjectSchema$1 as ProjectSchema, ReleaseListSchema$1 as ReleaseListSchema, ReleaseSchema$1 as ReleaseSchema, SpansSearchResponseSchema$1 as SpansSearchResponseSchema, TagListSchema$1 as TagListSchema, TagSchema$1 as TagSchema, TeamListSchema$1 as TeamListSchema, TeamSchema$1 as TeamSchema } from "../schema.d-CyRxxXr0.js";
2
2
 
3
3
  export { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema };
@@ -1,4 +1,4 @@
1
- import "../schema.d-BDStOeMD.cjs";
2
- import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-BDS-6_Sj.cjs";
1
+ import "../schema.d-CmSYiCnk.cjs";
2
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-aQMIov7s.cjs";
3
3
 
4
4
  export { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList };
@@ -1,4 +1,4 @@
1
- import "../schema.d-Oa2HQQCX.js";
2
- import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-Bfi1CpIf.js";
1
+ import "../schema.d-CyRxxXr0.js";
2
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-8fZD-L6R.js";
3
3
 
4
4
  export { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList };
@@ -1,4 +1,4 @@
1
- import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList } from "./types.d-BDS-6_Sj.cjs";
1
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList } from "./types.d-aQMIov7s.cjs";
2
2
 
3
3
  //#region src/api-client/client.d.ts
4
4
  declare class ApiError extends Error {
@@ -82,14 +82,14 @@ declare class SentryApiService {
82
82
  query?: string;
83
83
  sortBy?: "timestamp" | "duration";
84
84
  }): Promise<{
85
+ timestamp: string;
86
+ transaction: string;
85
87
  id: string;
86
88
  project: string;
87
89
  trace: string;
88
90
  "span.op": string;
89
91
  "span.description": string;
90
92
  "span.duration": number;
91
- transaction: string;
92
- timestamp: string;
93
93
  }[]>;
94
94
  startAutofix({ organizationSlug, issueId, eventId, instruction, }: {
95
95
  organizationSlug: string;
@@ -105,4 +105,4 @@ declare class SentryApiService {
105
105
 
106
106
  //#endregion
107
107
  export { ApiError, SentryApiService };
108
- //# sourceMappingURL=client.d-CXQCEkJz.d.cts.map
108
+ //# sourceMappingURL=client.d-5v3p8aTc.d.cts.map
@@ -1,4 +1,4 @@
1
- import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList } from "./types.d-Bfi1CpIf.js";
1
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList } from "./types.d-8fZD-L6R.js";
2
2
 
3
3
  //#region src/api-client/client.d.ts
4
4
  declare class ApiError extends Error {
@@ -105,4 +105,4 @@ declare class SentryApiService {
105
105
 
106
106
  //#endregion
107
107
  export { ApiError as ApiError$1, SentryApiService as SentryApiService$1 };
108
- //# sourceMappingURL=client.d-B8RB2Poz.d.ts.map
108
+ //# sourceMappingURL=client.d-Bn_APKcl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d-B8RB2Poz.d.ts","names":[],"sources":["../src/api-client/client.d.ts"],"sourcesContent":["import type { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList } from \"./types\";\nexport declare class ApiError extends Error {\n status: number;\n constructor(message: string, status: number);\n}\nexport declare class SentryApiService {\n private accessToken;\n protected host: string;\n protected apiPrefix: string;\n constructor({ accessToken, host, }: {\n accessToken?: string | null;\n host?: string;\n });\n private request;\n getIssueUrl(organizationSlug: string, issueId: string): string;\n getTraceUrl(organizationSlug: string, traceId: string): string;\n listOrganizations(): Promise<OrganizationList>;\n listTeams(organizationSlug: string): Promise<TeamList>;\n createTeam({ organizationSlug, name, }: {\n organizationSlug: string;\n name: string;\n }): Promise<Team>;\n listProjects(organizationSlug: string): Promise<ProjectList>;\n createProject({ organizationSlug, teamSlug, name, platform, }: {\n organizationSlug: string;\n teamSlug: string;\n name: string;\n platform?: string;\n }): Promise<Project>;\n createClientKey({ organizationSlug, projectSlug, name, }: {\n organizationSlug: string;\n projectSlug: string;\n name?: string;\n }): Promise<ClientKey>;\n listClientKeys({ organizationSlug, projectSlug, }: {\n organizationSlug: string;\n projectSlug: string;\n }): Promise<ClientKeyList>;\n listReleases({ organizationSlug, projectSlug, }: {\n organizationSlug: string;\n projectSlug?: string;\n }): Promise<ReleaseList>;\n listTags({ organizationSlug, dataset, }: {\n organizationSlug: string;\n dataset?: \"errors\" | \"search_issues\";\n }): Promise<TagList>;\n listIssues({ organizationSlug, projectSlug, query, sortBy, }: {\n organizationSlug: string;\n projectSlug?: string;\n query?: string;\n sortBy?: \"user\" | \"freq\" | \"date\" | \"new\";\n }): Promise<IssueList>;\n getIssue({ organizationSlug, issueId, }: {\n organizationSlug: string;\n issueId: string;\n }): Promise<Issue>;\n getLatestEventForIssue({ organizationSlug, issueId, }: {\n organizationSlug: string;\n issueId: string;\n }): Promise<Event>;\n searchErrors({ organizationSlug, projectSlug, filename, transaction, query, sortBy, }: {\n organizationSlug: string;\n projectSlug?: string;\n filename?: string;\n transaction?: string;\n query?: string;\n sortBy?: \"last_seen\" | \"count\";\n }): Promise<{\n title: string;\n project: string;\n issue: string;\n \"issue.id\": string | number;\n \"count()\": number;\n \"last_seen()\": string;\n }[]>;\n searchSpans({ organizationSlug, projectSlug, transaction, query, sortBy, }: {\n organizationSlug: string;\n projectSlug?: string;\n transaction?: string;\n query?: string;\n sortBy?: \"timestamp\" | \"duration\";\n }): Promise<{\n timestamp: string;\n transaction: string;\n id: string;\n project: string;\n trace: string;\n \"span.op\": string;\n \"span.description\": string;\n \"span.duration\": number;\n }[]>;\n startAutofix({ organizationSlug, issueId, eventId, instruction, }: {\n organizationSlug: string;\n issueId: string;\n eventId?: string;\n instruction?: string;\n }): Promise<AutofixRun>;\n getAutofixState({ organizationSlug, issueId, }: {\n organizationSlug: string;\n issueId: string;\n }): Promise<AutofixRunState>;\n}\n//# sourceMappingURL=client.d.ts.map"],"mappings":";;;AACA,IAAW,WAAW,CAAC,IAAI,MAAM,KAAM;AACvC,IAAW,mBAAO;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA"}
1
+ {"version":3,"file":"client.d-Bn_APKcl.d.ts","names":[],"sources":["../src/api-client/client.d.ts"],"sourcesContent":["import type { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, OrganizationList, Project, ProjectList, ReleaseList, TagList, Team, TeamList } from \"./types\";\nexport declare class ApiError extends Error {\n status: number;\n constructor(message: string, status: number);\n}\nexport declare class SentryApiService {\n private accessToken;\n protected host: string;\n protected apiPrefix: string;\n constructor({ accessToken, host, }: {\n accessToken?: string | null;\n host?: string;\n });\n private request;\n getIssueUrl(organizationSlug: string, issueId: string): string;\n getTraceUrl(organizationSlug: string, traceId: string): string;\n listOrganizations(): Promise<OrganizationList>;\n listTeams(organizationSlug: string): Promise<TeamList>;\n createTeam({ organizationSlug, name, }: {\n organizationSlug: string;\n name: string;\n }): Promise<Team>;\n listProjects(organizationSlug: string): Promise<ProjectList>;\n createProject({ organizationSlug, teamSlug, name, platform, }: {\n organizationSlug: string;\n teamSlug: string;\n name: string;\n platform?: string;\n }): Promise<Project>;\n createClientKey({ organizationSlug, projectSlug, name, }: {\n organizationSlug: string;\n projectSlug: string;\n name?: string;\n }): Promise<ClientKey>;\n listClientKeys({ organizationSlug, projectSlug, }: {\n organizationSlug: string;\n projectSlug: string;\n }): Promise<ClientKeyList>;\n listReleases({ organizationSlug, projectSlug, }: {\n organizationSlug: string;\n projectSlug?: string;\n }): Promise<ReleaseList>;\n listTags({ organizationSlug, dataset, }: {\n organizationSlug: string;\n dataset?: \"errors\" | \"search_issues\";\n }): Promise<TagList>;\n listIssues({ organizationSlug, projectSlug, query, sortBy, }: {\n organizationSlug: string;\n projectSlug?: string;\n query?: string;\n sortBy?: \"user\" | \"freq\" | \"date\" | \"new\";\n }): Promise<IssueList>;\n getIssue({ organizationSlug, issueId, }: {\n organizationSlug: string;\n issueId: string;\n }): Promise<Issue>;\n getLatestEventForIssue({ organizationSlug, issueId, }: {\n organizationSlug: string;\n issueId: string;\n }): Promise<Event>;\n searchErrors({ organizationSlug, projectSlug, filename, transaction, query, sortBy, }: {\n organizationSlug: string;\n projectSlug?: string;\n filename?: string;\n transaction?: string;\n query?: string;\n sortBy?: \"last_seen\" | \"count\";\n }): Promise<{\n title: string;\n project: string;\n issue: string;\n \"issue.id\": string | number;\n \"count()\": number;\n \"last_seen()\": string;\n }[]>;\n searchSpans({ organizationSlug, projectSlug, transaction, query, sortBy, }: {\n organizationSlug: string;\n projectSlug?: string;\n transaction?: string;\n query?: string;\n sortBy?: \"timestamp\" | \"duration\";\n }): Promise<{\n timestamp: string;\n transaction: string;\n id: string;\n project: string;\n trace: string;\n \"span.op\": string;\n \"span.description\": string;\n \"span.duration\": number;\n }[]>;\n startAutofix({ organizationSlug, issueId, eventId, instruction, }: {\n organizationSlug: string;\n issueId: string;\n eventId?: string;\n instruction?: string;\n }): Promise<AutofixRun>;\n getAutofixState({ organizationSlug, issueId, }: {\n organizationSlug: string;\n issueId: string;\n }): Promise<AutofixRunState>;\n}\n//# sourceMappingURL=client.d.ts.map"],"mappings":";;;AACA,IAAW,WAAW,CAAC,IAAI,MAAM,KAAM;AACvC,IAAW,mBAAO;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA"}
package/dist/index.js CHANGED
File without changes
@@ -1,6 +1,6 @@
1
- import { FrameInterface } from "../schema.d-BDStOeMD.cjs";
2
- import { Event } from "../types.d-BDS-6_Sj.cjs";
3
- import "../client.d-CXQCEkJz.cjs";
1
+ import { FrameInterface } from "../schema.d-CmSYiCnk.cjs";
2
+ import { Event } from "../types.d-aQMIov7s.cjs";
3
+ import "../client.d-5v3p8aTc.cjs";
4
4
  import "../index.d-Cb-lHGvn.cjs";
5
5
  import { z } from "zod";
6
6
 
@@ -1,6 +1,6 @@
1
- import { FrameInterface$1 as FrameInterface } from "../schema.d-Oa2HQQCX.js";
2
- import { Event } from "../types.d-Bfi1CpIf.js";
3
- import "../client.d-B8RB2Poz.js";
1
+ import { FrameInterface$1 as FrameInterface } from "../schema.d-CyRxxXr0.js";
2
+ import { Event } from "../types.d-8fZD-L6R.js";
3
+ import "../client.d-Bn_APKcl.js";
4
4
  import "../index.d-Db2MND9s.js";
5
5
  import { z } from "zod";
6
6