@sentry/mcp-server 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/api-client/client.cjs +2 -2
  2. package/dist/api-client/client.d.cts +3 -3
  3. package/dist/api-client/client.d.ts +3 -3
  4. package/dist/api-client/client.js +2 -2
  5. package/dist/api-client/client.test.cjs +2 -2
  6. package/dist/api-client/client.test.js +2 -2
  7. package/dist/api-client/index.cjs +6 -3
  8. package/dist/api-client/index.d.cts +4 -4
  9. package/dist/api-client/index.d.ts +4 -4
  10. package/dist/api-client/index.js +3 -3
  11. package/dist/api-client/schema.cjs +5 -2
  12. package/dist/api-client/schema.d.cts +2 -2
  13. package/dist/api-client/schema.d.ts +2 -2
  14. package/dist/api-client/schema.js +2 -2
  15. package/dist/api-client/types.d.cts +2 -2
  16. package/dist/api-client/types.d.ts +2 -2
  17. package/dist/{client-BKLE5Lkt.js → client-CpiyA8FR.js} +39 -36
  18. package/dist/client-CpiyA8FR.js.map +1 -0
  19. package/dist/{client-C_XfRSu3.cjs → client-GWxnTlSP.cjs} +39 -36
  20. package/dist/client-GWxnTlSP.cjs.map +1 -0
  21. package/dist/{client.d-BizHDVuq.d.cts → client.d-ar2BvC_o.d.cts} +23 -21
  22. package/dist/client.d-ar2BvC_o.d.cts.map +1 -0
  23. package/dist/{client.d-CrWOcVIU.d.ts → client.d-eUhyVsN_.d.ts} +27 -25
  24. package/dist/client.d-eUhyVsN_.d.ts.map +1 -0
  25. package/dist/index.cjs +10 -10
  26. package/dist/index.js +10 -10
  27. package/dist/internal/formatting.d.cts +3 -3
  28. package/dist/internal/formatting.d.ts +3 -3
  29. package/dist/internal/issue-helpers.cjs +4 -2
  30. package/dist/internal/issue-helpers.d.cts +30 -1
  31. package/dist/internal/issue-helpers.d.cts.map +1 -1
  32. package/dist/internal/issue-helpers.d.ts +30 -1
  33. package/dist/internal/issue-helpers.d.ts.map +1 -1
  34. package/dist/internal/issue-helpers.js +2 -2
  35. package/dist/internal/issue-helpers.test.cjs +41 -1
  36. package/dist/internal/issue-helpers.test.cjs.map +1 -1
  37. package/dist/internal/issue-helpers.test.js +41 -1
  38. package/dist/internal/issue-helpers.test.js.map +1 -1
  39. package/dist/issue-helpers-CdWMhVWJ.cjs +87 -0
  40. package/dist/issue-helpers-CdWMhVWJ.cjs.map +1 -0
  41. package/dist/{issue-helpers-C0kEdXOE.cjs → issue-helpers-Cx6bFCUv.js} +38 -9
  42. package/dist/issue-helpers-Cx6bFCUv.js.map +1 -0
  43. package/dist/{promptDefinitions-CaRMCDPI.js → promptDefinitions-C9aGYWZ6.js} +2 -2
  44. package/dist/{promptDefinitions-CaRMCDPI.js.map → promptDefinitions-C9aGYWZ6.js.map} +1 -1
  45. package/dist/{promptDefinitions-CVB4IyVf.cjs → promptDefinitions-OnJHLqrZ.cjs} +2 -2
  46. package/dist/{promptDefinitions-CVB4IyVf.cjs.map → promptDefinitions-OnJHLqrZ.cjs.map} +1 -1
  47. package/dist/promptDefinitions.cjs +2 -2
  48. package/dist/promptDefinitions.js +2 -2
  49. package/dist/{schema-Bc6_gUDA.cjs → schema-BnXdl41H.cjs} +71 -13
  50. package/dist/schema-BnXdl41H.cjs.map +1 -0
  51. package/dist/{schema-D1B8p0Ib.js → schema-BzPfPMq7.js} +54 -14
  52. package/dist/schema-BzPfPMq7.js.map +1 -0
  53. package/dist/{schema-BvloqMHW.cjs → schema-_xqdSRLo.cjs} +8 -1
  54. package/dist/{schema-BvloqMHW.cjs.map → schema-_xqdSRLo.cjs.map} +1 -1
  55. package/dist/{schema-k04PdSCK.js → schema-pZrPEvtp.js} +3 -2
  56. package/dist/{schema-k04PdSCK.js.map → schema-pZrPEvtp.js.map} +1 -1
  57. package/dist/schema.cjs +2 -1
  58. package/dist/{schema.d-cvHc3M20.d.cts → schema.d-DJThZSuo.d.cts} +2924 -158
  59. package/dist/schema.d-DJThZSuo.d.cts.map +1 -0
  60. package/dist/{schema.d-DQ5YUr0Y.d.ts → schema.d-DwpHAZsi.d.ts} +2950 -184
  61. package/dist/schema.d-DwpHAZsi.d.ts.map +1 -0
  62. package/dist/schema.d.cts +2 -1
  63. package/dist/schema.d.cts.map +1 -1
  64. package/dist/schema.d.ts +2 -1
  65. package/dist/schema.d.ts.map +1 -1
  66. package/dist/schema.js +2 -2
  67. package/dist/{server-DQ_dBWQy.cjs → server-D-JY6wPp.cjs} +5 -5
  68. package/dist/{server-DQ_dBWQy.cjs.map → server-D-JY6wPp.cjs.map} +1 -1
  69. package/dist/{server-DHbbEoa2.js → server-oefnmsHZ.js} +5 -5
  70. package/dist/{server-DHbbEoa2.js.map → server-oefnmsHZ.js.map} +1 -1
  71. package/dist/server.cjs +8 -8
  72. package/dist/server.d.cts +2 -2
  73. package/dist/server.d.ts +2 -2
  74. package/dist/server.js +8 -8
  75. package/dist/{stdio-BHg5CaoN.js → stdio-B31CD06F.js} +2 -2
  76. package/dist/{stdio-BHg5CaoN.js.map → stdio-B31CD06F.js.map} +1 -1
  77. package/dist/{stdio-CRqulLZQ.cjs → stdio-BsGPoQfx.cjs} +2 -2
  78. package/dist/{stdio-CRqulLZQ.cjs.map → stdio-BsGPoQfx.cjs.map} +1 -1
  79. package/dist/test-setup.cjs +42 -5
  80. package/dist/test-setup.cjs.map +1 -1
  81. package/dist/test-setup.js +42 -5
  82. package/dist/test-setup.js.map +1 -1
  83. package/dist/{toolDefinitions-BJ0cyDce.cjs → toolDefinitions-C0t6Y5Su.cjs} +26 -5
  84. package/dist/toolDefinitions-C0t6Y5Su.cjs.map +1 -0
  85. package/dist/{toolDefinitions-L20Lv3AW.js → toolDefinitions-DB4pPvgy.js} +26 -5
  86. package/dist/toolDefinitions-DB4pPvgy.js.map +1 -0
  87. package/dist/toolDefinitions.cjs +2 -2
  88. package/dist/{toolDefinitions.d-C0zMvL9m.d.ts → toolDefinitions.d-C5JUBInb.d.ts} +16 -1
  89. package/dist/toolDefinitions.d-C5JUBInb.d.ts.map +1 -0
  90. package/dist/{toolDefinitions.d-Dx4q--0l.d.cts → toolDefinitions.d-CsT15_MF.d.cts} +16 -1
  91. package/dist/toolDefinitions.d-CsT15_MF.d.cts.map +1 -0
  92. package/dist/toolDefinitions.d.cts +1 -1
  93. package/dist/toolDefinitions.d.ts +1 -1
  94. package/dist/toolDefinitions.js +2 -2
  95. package/dist/toolDefinitions.test.cjs +2 -2
  96. package/dist/toolDefinitions.test.js +2 -2
  97. package/dist/{tools-B22b8Jjm.cjs → tools-Ck2CHZeM.cjs} +118 -101
  98. package/dist/tools-Ck2CHZeM.cjs.map +1 -0
  99. package/dist/{tools-CXgh-6Vh.js → tools-_Y9eV4LR.js} +118 -101
  100. package/dist/tools-_Y9eV4LR.js.map +1 -0
  101. package/dist/tools.cjs +4 -4
  102. package/dist/tools.d.cts +32 -75
  103. package/dist/tools.d.cts.map +1 -1
  104. package/dist/tools.d.ts +35 -78
  105. package/dist/tools.d.ts.map +1 -1
  106. package/dist/tools.js +4 -4
  107. package/dist/tools.test.cjs +53 -7
  108. package/dist/tools.test.cjs.map +1 -1
  109. package/dist/tools.test.js +53 -7
  110. package/dist/tools.test.js.map +1 -1
  111. package/dist/transports/stdio.cjs +9 -9
  112. package/dist/transports/stdio.d.cts +2 -2
  113. package/dist/transports/stdio.d.ts +2 -2
  114. package/dist/transports/stdio.js +9 -9
  115. package/dist/{types.d-DsrCjT7G.d.ts → types.d-B-acZthg.d.ts} +2 -2
  116. package/dist/{types.d-DsrCjT7G.d.ts.map → types.d-B-acZthg.d.ts.map} +1 -1
  117. package/dist/{types.d-DHI7S0mb.d.ts → types.d-BeKsSRmy.d.ts} +2 -2
  118. package/dist/{types.d-DHI7S0mb.d.ts.map → types.d-BeKsSRmy.d.ts.map} +1 -1
  119. package/dist/{types.d-DQGXrBBW.d.cts → types.d-BfhMPrt_.d.cts} +2 -2
  120. package/dist/{types.d-DQGXrBBW.d.cts.map → types.d-BfhMPrt_.d.cts.map} +1 -1
  121. package/dist/{types.d-r20cCyVI.d.cts → types.d-Z5OEf3rw.d.cts} +2 -2
  122. package/dist/{types.d-r20cCyVI.d.cts.map → types.d-Z5OEf3rw.d.cts.map} +1 -1
  123. package/dist/types.d.cts +2 -2
  124. package/dist/types.d.ts +2 -2
  125. package/dist/version-B5Fav38l.js +6 -0
  126. package/dist/version-B5Fav38l.js.map +1 -0
  127. package/dist/{version-D93Bj2gg.cjs → version-BFCcfCIj.cjs} +2 -2
  128. package/dist/version-BFCcfCIj.cjs.map +1 -0
  129. package/dist/version.cjs +1 -1
  130. package/dist/version.d.cts +1 -1
  131. package/dist/version.d.cts.map +1 -1
  132. package/dist/version.d.ts +1 -1
  133. package/dist/version.d.ts.map +1 -1
  134. package/dist/version.js +1 -1
  135. package/package.json +3 -4
  136. package/dist/client-BKLE5Lkt.js.map +0 -1
  137. package/dist/client-C_XfRSu3.cjs.map +0 -1
  138. package/dist/client.d-BizHDVuq.d.cts.map +0 -1
  139. package/dist/client.d-CrWOcVIU.d.ts.map +0 -1
  140. package/dist/issue-helpers-C0kEdXOE.cjs.map +0 -1
  141. package/dist/issue-helpers-DFde36Zu.js +0 -32
  142. package/dist/issue-helpers-DFde36Zu.js.map +0 -1
  143. package/dist/schema-Bc6_gUDA.cjs.map +0 -1
  144. package/dist/schema-D1B8p0Ib.js.map +0 -1
  145. package/dist/schema.d-DQ5YUr0Y.d.ts.map +0 -1
  146. package/dist/schema.d-cvHc3M20.d.cts.map +0 -1
  147. package/dist/toolDefinitions-BJ0cyDce.cjs.map +0 -1
  148. package/dist/toolDefinitions-L20Lv3AW.js.map +0 -1
  149. package/dist/toolDefinitions.d-C0zMvL9m.d.ts.map +0 -1
  150. package/dist/toolDefinitions.d-Dx4q--0l.d.cts.map +0 -1
  151. package/dist/tools-B22b8Jjm.cjs.map +0 -1
  152. package/dist/tools-CXgh-6Vh.js.map +0 -1
  153. package/dist/version-D93Bj2gg.cjs.map +0 -1
  154. package/dist/version-DkmlRpxa.js +0 -6
  155. package/dist/version-DkmlRpxa.js.map +0 -1
@@ -1,5 +1,5 @@
1
- require('../schema-Bc6_gUDA.cjs');
2
- const require_client = require('../client-C_XfRSu3.cjs');
1
+ require('../schema-BnXdl41H.cjs');
2
+ const require_client = require('../client-GWxnTlSP.cjs');
3
3
 
4
4
  exports.ApiError = require_client.ApiError
5
5
  exports.SentryApiService = require_client.SentryApiService
@@ -1,4 +1,4 @@
1
- import "../schema.d-cvHc3M20.cjs";
2
- import "../types.d-r20cCyVI.cjs";
3
- import { ApiError, SentryApiService } from "../client.d-BizHDVuq.cjs";
1
+ import "../schema.d-DJThZSuo.cjs";
2
+ import "../types.d-Z5OEf3rw.cjs";
3
+ import { ApiError, SentryApiService } from "../client.d-ar2BvC_o.cjs";
4
4
  export { ApiError, SentryApiService };
@@ -1,4 +1,4 @@
1
- import "../schema.d-DQ5YUr0Y.js";
2
- import "../types.d-DsrCjT7G.js";
3
- import { ApiError$1 as ApiError, SentryApiService$1 as SentryApiService } from "../client.d-CrWOcVIU.js";
1
+ import "../schema.d-DwpHAZsi.js";
2
+ import "../types.d-B-acZthg.js";
3
+ import { ApiError$1 as ApiError, SentryApiService$1 as SentryApiService } from "../client.d-eUhyVsN_.js";
4
4
  export { ApiError, SentryApiService };
@@ -1,4 +1,4 @@
1
- import "../schema-D1B8p0Ib.js";
2
- import { ApiError, SentryApiService } from "../client-BKLE5Lkt.js";
1
+ import "../schema-BzPfPMq7.js";
2
+ import { ApiError, SentryApiService } from "../client-CpiyA8FR.js";
3
3
 
4
4
  export { ApiError, SentryApiService };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- require('../schema-Bc6_gUDA.cjs');
3
- const require_client = require('../client-C_XfRSu3.cjs');
2
+ require('../schema-BnXdl41H.cjs');
3
+ const require_client = require('../client-GWxnTlSP.cjs');
4
4
  const require_dist = require('../dist-3oa5SxPp.cjs');
5
5
  const require_vi_ClIskdbk = require('../vi.ClIskdbk-Bn6W0wTE.cjs');
6
6
 
@@ -1,5 +1,5 @@
1
- import "../schema-D1B8p0Ib.js";
2
- import { SentryApiService } from "../client-BKLE5Lkt.js";
1
+ import "../schema-BzPfPMq7.js";
2
+ import { SentryApiService } from "../client-CpiyA8FR.js";
3
3
  import { describe, it } from "../dist-Bewd5-7a.js";
4
4
  import { globalExpect } from "../vi.ClIskdbk-Dd6dTM3O.js";
5
5
 
@@ -1,5 +1,5 @@
1
- const require_schema = require('../schema-Bc6_gUDA.cjs');
2
- const require_client = require('../client-C_XfRSu3.cjs');
1
+ const require_schema = require('../schema-BnXdl41H.cjs');
2
+ const require_client = require('../client-GWxnTlSP.cjs');
3
3
  require('../types-o3zWarRp.cjs');
4
4
  require('../api-client-CEBuz3Zu.cjs');
5
5
 
@@ -14,6 +14,7 @@ exports.AutofixRunStepSolutionSchema = require_schema.AutofixRunStepSolutionSche
14
14
  exports.ClientKeyListSchema = require_schema.ClientKeyListSchema
15
15
  exports.ClientKeySchema = require_schema.ClientKeySchema
16
16
  exports.ErrorEntrySchema = require_schema.ErrorEntrySchema
17
+ exports.ErrorEventSchema = require_schema.ErrorEventSchema
17
18
  exports.ErrorsSearchResponseSchema = require_schema.ErrorsSearchResponseSchema
18
19
  exports.EventSchema = require_schema.EventSchema
19
20
  exports.EventsResponseSchema = require_schema.EventsResponseSchema
@@ -32,4 +33,6 @@ exports.SpansSearchResponseSchema = require_schema.SpansSearchResponseSchema
32
33
  exports.TagListSchema = require_schema.TagListSchema
33
34
  exports.TagSchema = require_schema.TagSchema
34
35
  exports.TeamListSchema = require_schema.TeamListSchema
35
- exports.TeamSchema = require_schema.TeamSchema
36
+ exports.TeamSchema = require_schema.TeamSchema
37
+ exports.TransactionEventSchema = require_schema.TransactionEventSchema
38
+ exports.UnknownEventSchema = require_schema.UnknownEventSchema
@@ -1,5 +1,5 @@
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-cvHc3M20.cjs";
2
- import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-r20cCyVI.cjs";
3
- import { ApiError, SentryApiService } from "../client.d-BizHDVuq.cjs";
1
+ import { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, TransactionEventSchema, UnknownEventSchema } from "../schema.d-DJThZSuo.cjs";
2
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-Z5OEf3rw.cjs";
3
+ import { ApiError, SentryApiService } from "../client.d-ar2BvC_o.cjs";
4
4
  import "../index.d-Cb-lHGvn.cjs";
5
- 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 };
5
+ export { ApiError, ApiErrorSchema, AutofixRun, AutofixRunSchema, AutofixRunState, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKey, ClientKeyList, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, 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, TransactionEventSchema, UnknownEventSchema };
@@ -1,5 +1,5 @@
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-DQ5YUr0Y.js";
2
- import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-DsrCjT7G.js";
3
- import { ApiError$1 as ApiError, SentryApiService$1 as SentryApiService } from "../client.d-CrWOcVIU.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, ErrorEventSchema$1 as ErrorEventSchema, 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, TransactionEventSchema$1 as TransactionEventSchema, UnknownEventSchema$1 as UnknownEventSchema } from "../schema.d-DwpHAZsi.js";
2
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-B-acZthg.js";
3
+ import { ApiError$1 as ApiError, SentryApiService$1 as SentryApiService } from "../client.d-eUhyVsN_.js";
4
4
  import "../index.d-kYckfDWv.js";
5
- 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 };
5
+ export { ApiError, ApiErrorSchema, AutofixRun, AutofixRunSchema, AutofixRunState, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKey, ClientKeyList, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, 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, TransactionEventSchema, UnknownEventSchema };
@@ -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-D1B8p0Ib.js";
2
- import { ApiError, SentryApiService } from "../client-BKLE5Lkt.js";
1
+ import { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, TransactionEventSchema, UnknownEventSchema } from "../schema-BzPfPMq7.js";
2
+ import { ApiError, SentryApiService } from "../client-CpiyA8FR.js";
3
3
  import "../types-H-TSmRpm.js";
4
4
  import "../api-client-9mzrj2HY.js";
5
5
 
6
- export { ApiError, ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SentryApiService, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema };
6
+ export { ApiError, ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SentryApiService, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, TransactionEventSchema, UnknownEventSchema };
@@ -1,4 +1,4 @@
1
- const require_schema = require('../schema-Bc6_gUDA.cjs');
1
+ const require_schema = require('../schema-BnXdl41H.cjs');
2
2
 
3
3
  exports.ApiErrorSchema = require_schema.ApiErrorSchema
4
4
  exports.AutofixRunSchema = require_schema.AutofixRunSchema
@@ -10,6 +10,7 @@ exports.AutofixRunStepSolutionSchema = require_schema.AutofixRunStepSolutionSche
10
10
  exports.ClientKeyListSchema = require_schema.ClientKeyListSchema
11
11
  exports.ClientKeySchema = require_schema.ClientKeySchema
12
12
  exports.ErrorEntrySchema = require_schema.ErrorEntrySchema
13
+ exports.ErrorEventSchema = require_schema.ErrorEventSchema
13
14
  exports.ErrorsSearchResponseSchema = require_schema.ErrorsSearchResponseSchema
14
15
  exports.EventSchema = require_schema.EventSchema
15
16
  exports.EventsResponseSchema = require_schema.EventsResponseSchema
@@ -27,4 +28,6 @@ exports.SpansSearchResponseSchema = require_schema.SpansSearchResponseSchema
27
28
  exports.TagListSchema = require_schema.TagListSchema
28
29
  exports.TagSchema = require_schema.TagSchema
29
30
  exports.TeamListSchema = require_schema.TeamListSchema
30
- exports.TeamSchema = require_schema.TeamSchema
31
+ exports.TeamSchema = require_schema.TeamSchema
32
+ exports.TransactionEventSchema = require_schema.TransactionEventSchema
33
+ exports.UnknownEventSchema = require_schema.UnknownEventSchema
@@ -1,2 +1,2 @@
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-cvHc3M20.cjs";
2
- 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
+ import { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, TransactionEventSchema, UnknownEventSchema } from "../schema.d-DJThZSuo.cjs";
2
+ export { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, TransactionEventSchema, UnknownEventSchema };
@@ -1,2 +1,2 @@
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-DQ5YUr0Y.js";
2
- 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
+ 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, ErrorEventSchema$1 as ErrorEventSchema, 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, TransactionEventSchema$1 as TransactionEventSchema, UnknownEventSchema$1 as UnknownEventSchema } from "../schema.d-DwpHAZsi.js";
2
+ export { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, TransactionEventSchema, UnknownEventSchema };
@@ -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-D1B8p0Ib.js";
1
+ import { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, TransactionEventSchema, UnknownEventSchema } from "../schema-BzPfPMq7.js";
2
2
 
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 };
3
+ export { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, TransactionEventSchema, UnknownEventSchema };
@@ -1,3 +1,3 @@
1
- import "../schema.d-cvHc3M20.cjs";
2
- import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-r20cCyVI.cjs";
1
+ import "../schema.d-DJThZSuo.cjs";
2
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-Z5OEf3rw.cjs";
3
3
  export { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList };
@@ -1,3 +1,3 @@
1
- import "../schema.d-DQ5YUr0Y.js";
2
- import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-DsrCjT7G.js";
1
+ import "../schema.d-DwpHAZsi.js";
2
+ import { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList } from "../types.d-B-acZthg.js";
3
3
  export { AutofixRun, AutofixRunState, ClientKey, ClientKeyList, Event, Issue, IssueList, Organization, OrganizationList, Project, ProjectList, Release, ReleaseList, Tag, TagList, Team, TeamList };
@@ -1,4 +1,4 @@
1
- import { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, ClientKeyListSchema, ClientKeySchema, ErrorsSearchResponseSchema, EventSchema, IssueListSchema, IssueSchema, OrganizationListSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, SpansSearchResponseSchema, TagListSchema, TeamListSchema, TeamSchema } from "./schema-D1B8p0Ib.js";
1
+ import { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, ClientKeyListSchema, ClientKeySchema, ErrorsSearchResponseSchema, EventSchema, IssueListSchema, IssueSchema, OrganizationListSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, SpansSearchResponseSchema, TagListSchema, TeamListSchema, TeamSchema } from "./schema-BzPfPMq7.js";
2
2
 
3
3
  //#region src/api-client/client.ts
4
4
  var ApiError = class extends Error {
@@ -18,6 +18,10 @@ var SentryApiService = class {
18
18
  this.host = host || "sentry.io";
19
19
  this.apiPrefix = new URL("/api/0", `https://${this.host}`).href;
20
20
  }
21
+ setHost(host) {
22
+ this.host = host;
23
+ this.apiPrefix = new URL("/api/0", `https://${this.host}`).href;
24
+ }
21
25
  async request(path, options = {}, { host } = {}) {
22
26
  const url = host ? new URL(`/api/0${path}`, `https://${host}`).href : `${this.apiPrefix}${path}`;
23
27
  const headers = { "Content-Type": "application/json" };
@@ -50,65 +54,64 @@ var SentryApiService = class {
50
54
  getTraceUrl(organizationSlug, traceId) {
51
55
  return this.host !== "sentry.io" ? `https://${this.host}/organizations/${organizationSlug}/explore/traces/trace/${traceId}` : `https://${organizationSlug}.${this.host}/explore/traces/trace/${traceId}`;
52
56
  }
53
- async listOrganizations() {
54
- const response = await this.request("/organizations/");
57
+ async listOrganizations(opts) {
58
+ const response = await this.request("/organizations/", void 0, opts);
55
59
  const body = await response.json();
56
60
  return OrganizationListSchema.parse(body);
57
61
  }
58
- async listTeams(organizationSlug) {
59
- const response = await this.request(`/organizations/${organizationSlug}/teams/`);
62
+ async listTeams(organizationSlug, opts) {
63
+ const response = await this.request(`/organizations/${organizationSlug}/teams/`, void 0, opts);
60
64
  const body = await response.json();
61
65
  return TeamListSchema.parse(body);
62
66
  }
63
- async createTeam({ organizationSlug, name }) {
67
+ async createTeam({ organizationSlug, name }, opts) {
64
68
  const response = await this.request(`/organizations/${organizationSlug}/teams/`, {
65
69
  method: "POST",
66
70
  body: JSON.stringify({ name })
67
- });
71
+ }, opts);
68
72
  return TeamSchema.parse(await response.json());
69
73
  }
70
- async listProjects(organizationSlug) {
71
- const response = await this.request(`/organizations/${organizationSlug}/projects/`);
74
+ async listProjects(organizationSlug, opts) {
75
+ const response = await this.request(`/organizations/${organizationSlug}/projects/`, void 0, opts);
72
76
  const body = await response.json();
73
77
  return ProjectListSchema.parse(body);
74
78
  }
75
- async createProject({ organizationSlug, teamSlug, name, platform }) {
79
+ async createProject({ organizationSlug, teamSlug, name, platform }, opts) {
76
80
  const response = await this.request(`/teams/${organizationSlug}/${teamSlug}/projects/`, {
77
81
  method: "POST",
78
82
  body: JSON.stringify({
79
83
  name,
80
84
  platform
81
85
  })
82
- });
86
+ }, opts);
83
87
  return ProjectSchema.parse(await response.json());
84
88
  }
85
- async createClientKey({ organizationSlug, projectSlug, name }) {
89
+ async createClientKey({ organizationSlug, projectSlug, name }, opts) {
86
90
  const response = await this.request(`/projects/${organizationSlug}/${projectSlug}/keys/`, {
87
91
  method: "POST",
88
92
  body: JSON.stringify({ name })
89
- });
93
+ }, opts);
90
94
  return ClientKeySchema.parse(await response.json());
91
95
  }
92
- async listClientKeys({ organizationSlug, projectSlug }) {
93
- const response = await this.request(`/projects/${organizationSlug}/${projectSlug}/keys/`);
96
+ async listClientKeys({ organizationSlug, projectSlug }, opts) {
97
+ const response = await this.request(`/projects/${organizationSlug}/${projectSlug}/keys/`, void 0, opts);
94
98
  return ClientKeyListSchema.parse(await response.json());
95
99
  }
96
- async listReleases({ organizationSlug, projectSlug }) {
97
- const response = await this.request(projectSlug ? `/projects/${organizationSlug}/${projectSlug}/releases/` : `/organizations/${organizationSlug}/releases/`);
100
+ async listReleases({ organizationSlug, projectSlug }, opts) {
101
+ const response = await this.request(projectSlug ? `/projects/${organizationSlug}/${projectSlug}/releases/` : `/organizations/${organizationSlug}/releases/`, void 0, opts);
98
102
  const body = await response.json();
99
103
  return ReleaseListSchema.parse(body);
100
104
  }
101
- async listTags({ organizationSlug, dataset }) {
105
+ async listTags({ organizationSlug, dataset }, opts) {
102
106
  const searchQuery = new URLSearchParams();
103
107
  if (dataset) searchQuery.set("dataset", dataset);
104
- const response = await this.request(`/organizations/${organizationSlug}/tags/${searchQuery.toString()}`);
108
+ const response = await this.request(`/organizations/${organizationSlug}/tags/${searchQuery.toString()}`, void 0, opts);
105
109
  const body = await response.json();
106
110
  return TagListSchema.parse(body);
107
111
  }
108
- async listIssues({ organizationSlug, projectSlug, query, sortBy }) {
112
+ async listIssues({ organizationSlug, projectSlug, query, sortBy }, opts) {
109
113
  const sentryQuery = [];
110
114
  if (query) sentryQuery.push(query);
111
- if (projectSlug) sentryQuery.push(`project:${projectSlug}`);
112
115
  const queryParams = new URLSearchParams();
113
116
  queryParams.set("per_page", "10");
114
117
  queryParams.set("referrer", "sentry-mcp");
@@ -116,22 +119,22 @@ var SentryApiService = class {
116
119
  queryParams.set("statsPeriod", "1w");
117
120
  queryParams.set("query", sentryQuery.join(" "));
118
121
  queryParams.append("collapse", "unhandled");
119
- const apiUrl = `/organizations/${organizationSlug}/issues/?${queryParams.toString()}`;
120
- const response = await this.request(apiUrl);
122
+ const apiUrl = projectSlug ? `/projects/${organizationSlug}/${projectSlug}/issues/?${queryParams.toString()}` : `/organizations/${organizationSlug}/issues/?${queryParams.toString()}`;
123
+ const response = await this.request(apiUrl, void 0, opts);
121
124
  const body = await response.json();
122
125
  return IssueListSchema.parse(body);
123
126
  }
124
- async getIssue({ organizationSlug, issueId }) {
125
- const response = await this.request(`/organizations/${organizationSlug}/issues/${issueId}/`);
127
+ async getIssue({ organizationSlug, issueId }, opts) {
128
+ const response = await this.request(`/organizations/${organizationSlug}/issues/${issueId}/`, void 0, opts);
126
129
  const body = await response.json();
127
130
  return IssueSchema.parse(body);
128
131
  }
129
- async getLatestEventForIssue({ organizationSlug, issueId }) {
130
- const response = await this.request(`/organizations/${organizationSlug}/issues/${issueId}/events/latest/`);
132
+ async getLatestEventForIssue({ organizationSlug, issueId }, opts) {
133
+ const response = await this.request(`/organizations/${organizationSlug}/issues/${issueId}/events/latest/`, void 0, opts);
131
134
  const body = await response.json();
132
135
  return EventSchema.parse(body);
133
136
  }
134
- async searchErrors({ organizationSlug, projectSlug, filename, transaction, query, sortBy = "last_seen" }) {
137
+ async searchErrors({ organizationSlug, projectSlug, filename, transaction, query, sortBy = "last_seen" }, opts) {
135
138
  const sentryQuery = [];
136
139
  if (filename) sentryQuery.push(`stack.filename:"*${filename.replace(/"/g, "\\\"")}"`);
137
140
  if (transaction) sentryQuery.push(`transaction:"${transaction.replace(/"/g, "\\\"")}"`);
@@ -150,11 +153,11 @@ var SentryApiService = class {
150
153
  queryParams.append("field", "count()");
151
154
  queryParams.set("query", sentryQuery.join(" "));
152
155
  const apiUrl = `/organizations/${organizationSlug}/events/?${queryParams.toString()}`;
153
- const response = await this.request(apiUrl);
156
+ const response = await this.request(apiUrl, void 0, opts);
154
157
  const body = await response.json();
155
158
  return ErrorsSearchResponseSchema.parse(body).data;
156
159
  }
157
- async searchSpans({ organizationSlug, projectSlug, transaction, query, sortBy = "timestamp" }) {
160
+ async searchSpans({ organizationSlug, projectSlug, transaction, query, sortBy = "timestamp" }, opts) {
158
161
  const sentryQuery = ["is_transaction:true"];
159
162
  if (transaction) sentryQuery.push(`transaction:"${transaction.replace(/"/g, "\\\"")}"`);
160
163
  if (query) sentryQuery.push(query);
@@ -176,23 +179,23 @@ var SentryApiService = class {
176
179
  queryParams.append("field", "timestamp");
177
180
  queryParams.set("query", sentryQuery.join(" "));
178
181
  const apiUrl = `/organizations/${organizationSlug}/events/?${queryParams.toString()}`;
179
- const response = await this.request(apiUrl);
182
+ const response = await this.request(apiUrl, void 0, opts);
180
183
  const body = await response.json();
181
184
  return SpansSearchResponseSchema.parse(body).data;
182
185
  }
183
- async startAutofix({ organizationSlug, issueId, eventId, instruction = "" }) {
186
+ async startAutofix({ organizationSlug, issueId, eventId, instruction = "" }, opts) {
184
187
  const response = await this.request(`/organizations/${organizationSlug}/issues/${issueId}/autofix/`, {
185
188
  method: "POST",
186
189
  body: JSON.stringify({
187
190
  event_id: eventId,
188
191
  instruction
189
192
  })
190
- });
193
+ }, opts);
191
194
  const body = await response.json();
192
195
  return AutofixRunSchema.parse(body);
193
196
  }
194
- async getAutofixState({ organizationSlug, issueId }) {
195
- const response = await this.request(`/organizations/${organizationSlug}/issues/${issueId}/autofix/`);
197
+ async getAutofixState({ organizationSlug, issueId }, opts) {
198
+ const response = await this.request(`/organizations/${organizationSlug}/issues/${issueId}/autofix/`, void 0, opts);
196
199
  const body = await response.json();
197
200
  return AutofixRunStateSchema.parse(body);
198
201
  }
@@ -200,4 +203,4 @@ var SentryApiService = class {
200
203
 
201
204
  //#endregion
202
205
  export { ApiError, SentryApiService };
203
- //# sourceMappingURL=client-BKLE5Lkt.js.map
206
+ //# sourceMappingURL=client-CpiyA8FR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-CpiyA8FR.js","names":["message: string","status: number","host: string","path: string","options: RequestInit","headers: Record<string, string>","parsed: unknown | undefined","organizationSlug: string","issueId: string","traceId: string","opts?: RequestOptions","sentryQuery: string[]"],"sources":["../src/api-client/client.ts"],"sourcesContent":["import { logError } from \"../logging\";\nimport {\n OrganizationListSchema,\n ClientKeySchema,\n TeamListSchema,\n TeamSchema,\n ProjectListSchema,\n ProjectSchema,\n ReleaseListSchema,\n IssueListSchema,\n IssueSchema,\n EventSchema,\n ErrorsSearchResponseSchema,\n SpansSearchResponseSchema,\n TagListSchema,\n ApiErrorSchema,\n ClientKeyListSchema,\n AutofixRunSchema,\n AutofixRunStateSchema,\n} from \"./schema\";\nimport type {\n AutofixRun,\n AutofixRunState,\n ClientKey,\n ClientKeyList,\n Event,\n Issue,\n IssueList,\n OrganizationList,\n Project,\n ProjectList,\n ReleaseList,\n TagList,\n Team,\n TeamList,\n} from \"./types\";\n\nexport class ApiError extends Error {\n constructor(\n message: string,\n public status: number,\n ) {\n // HACK: improving this error message for the LLMs\n let finalMessage = message;\n if (\n message.includes(\n \"You do not have the multi project stream feature enabled\",\n ) ||\n message.includes(\"You cannot view events from multiple projects\")\n ) {\n finalMessage =\n \"You do not have access to query across multiple projects. Please select a project for your query.\";\n }\n super(finalMessage);\n }\n}\n\ntype RequestOptions = {\n host?: string;\n};\n\nexport class SentryApiService {\n private accessToken: string | null;\n protected host: string;\n protected apiPrefix: string;\n\n constructor({\n accessToken = null,\n host = process.env.SENTRY_HOST,\n }: {\n accessToken?: string | null;\n host?: string;\n }) {\n this.accessToken = accessToken;\n this.host = host || \"sentry.io\";\n this.apiPrefix = new URL(\"/api/0\", `https://${this.host}`).href;\n }\n\n setHost(host: string) {\n this.host = host;\n this.apiPrefix = new URL(\"/api/0\", `https://${this.host}`).href;\n }\n\n private async request(\n path: string,\n options: RequestInit = {},\n { host }: { host?: string } = {},\n ): Promise<Response> {\n const url = host\n ? new URL(`/api/0${path}`, `https://${host}`).href\n : `${this.apiPrefix}${path}`;\n\n const headers: Record<string, string> = {\n \"Content-Type\": \"application/json\",\n };\n if (this.accessToken) {\n headers.Authorization = `Bearer ${this.accessToken}`;\n }\n\n console.log(`[sentryApi] ${options.method || \"GET\"} ${url}`);\n const response = await fetch(url, {\n ...options,\n headers,\n });\n\n if (!response.ok) {\n const errorText = await response.text();\n let parsed: unknown | undefined;\n try {\n parsed = JSON.parse(errorText);\n } catch (error) {\n console.error(\n `[sentryApi] Failed to parse error response: ${errorText}`,\n error,\n );\n }\n\n if (parsed) {\n const { data, success, error } = ApiErrorSchema.safeParse(parsed);\n\n if (success) {\n throw new ApiError(data.detail, response.status);\n }\n\n console.error(\n `[sentryApi] Failed to parse error response: ${errorText}`,\n error,\n );\n }\n\n throw new Error(\n `API request failed: ${response.status} ${response.statusText}\\n${errorText}`,\n );\n }\n\n return response;\n }\n\n getIssueUrl(organizationSlug: string, issueId: string): string {\n return this.host !== \"sentry.io\"\n ? `https://${this.host}/organizations/${organizationSlug}/issues/${issueId}`\n : `https://${organizationSlug}.${this.host}/issues/${issueId}`;\n }\n\n getTraceUrl(organizationSlug: string, traceId: string): string {\n return this.host !== \"sentry.io\"\n ? `https://${this.host}/organizations/${organizationSlug}/explore/traces/trace/${traceId}`\n : `https://${organizationSlug}.${this.host}/explore/traces/trace/${traceId}`;\n }\n\n async listOrganizations(opts?: RequestOptions): Promise<OrganizationList> {\n const response = await this.request(\"/organizations/\", undefined, opts);\n\n const body = await response.json();\n return OrganizationListSchema.parse(body);\n }\n\n async listTeams(\n organizationSlug: string,\n opts?: RequestOptions,\n ): Promise<TeamList> {\n const response = await this.request(\n `/organizations/${organizationSlug}/teams/`,\n undefined,\n opts,\n );\n\n const body = await response.json();\n return TeamListSchema.parse(body);\n }\n\n async createTeam(\n {\n organizationSlug,\n name,\n }: {\n organizationSlug: string;\n name: string;\n },\n opts?: RequestOptions,\n ): Promise<Team> {\n const response = await this.request(\n `/organizations/${organizationSlug}/teams/`,\n {\n method: \"POST\",\n body: JSON.stringify({ name }),\n },\n opts,\n );\n\n return TeamSchema.parse(await response.json());\n }\n\n async listProjects(\n organizationSlug: string,\n opts?: RequestOptions,\n ): Promise<ProjectList> {\n const response = await this.request(\n `/organizations/${organizationSlug}/projects/`,\n undefined,\n opts,\n );\n\n const body = await response.json();\n return ProjectListSchema.parse(body);\n }\n\n async createProject(\n {\n organizationSlug,\n teamSlug,\n name,\n platform,\n }: {\n organizationSlug: string;\n teamSlug: string;\n name: string;\n platform?: string;\n },\n opts?: RequestOptions,\n ): Promise<Project> {\n const response = await this.request(\n `/teams/${organizationSlug}/${teamSlug}/projects/`,\n {\n method: \"POST\",\n body: JSON.stringify({\n name,\n platform,\n }),\n },\n opts,\n );\n return ProjectSchema.parse(await response.json());\n }\n\n async createClientKey(\n {\n organizationSlug,\n projectSlug,\n name,\n }: {\n organizationSlug: string;\n projectSlug: string;\n name?: string;\n },\n opts?: RequestOptions,\n ): Promise<ClientKey> {\n const response = await this.request(\n `/projects/${organizationSlug}/${projectSlug}/keys/`,\n {\n method: \"POST\",\n body: JSON.stringify({\n name,\n }),\n },\n opts,\n );\n return ClientKeySchema.parse(await response.json());\n }\n\n async listClientKeys(\n {\n organizationSlug,\n projectSlug,\n }: {\n organizationSlug: string;\n projectSlug: string;\n },\n opts?: RequestOptions,\n ): Promise<ClientKeyList> {\n const response = await this.request(\n `/projects/${organizationSlug}/${projectSlug}/keys/`,\n undefined,\n opts,\n );\n return ClientKeyListSchema.parse(await response.json());\n }\n\n async listReleases(\n {\n organizationSlug,\n projectSlug,\n }: {\n organizationSlug: string;\n projectSlug?: string;\n },\n opts?: RequestOptions,\n ): Promise<ReleaseList> {\n const response = await this.request(\n projectSlug\n ? `/projects/${organizationSlug}/${projectSlug}/releases/`\n : `/organizations/${organizationSlug}/releases/`,\n undefined,\n opts,\n );\n\n const body = await response.json();\n return ReleaseListSchema.parse(body);\n }\n\n async listTags(\n {\n organizationSlug,\n dataset,\n }: {\n organizationSlug: string;\n dataset?: \"errors\" | \"search_issues\";\n },\n opts?: RequestOptions,\n ): Promise<TagList> {\n // TODO: this supports project in the query, but needs fixed\n // to accept slugs\n const searchQuery = new URLSearchParams();\n if (dataset) {\n searchQuery.set(\"dataset\", dataset);\n }\n\n const response = await this.request(\n `/organizations/${organizationSlug}/tags/${searchQuery.toString()}`,\n undefined,\n opts,\n );\n\n const body = await response.json();\n return TagListSchema.parse(body);\n }\n\n async listIssues(\n {\n organizationSlug,\n projectSlug,\n query,\n sortBy,\n }: {\n organizationSlug: string;\n projectSlug?: string;\n query?: string;\n sortBy?: \"user\" | \"freq\" | \"date\" | \"new\";\n },\n opts?: RequestOptions,\n ): Promise<IssueList> {\n const sentryQuery: string[] = [];\n if (query) {\n sentryQuery.push(query);\n }\n\n const queryParams = new URLSearchParams();\n queryParams.set(\"per_page\", \"10\");\n queryParams.set(\"referrer\", \"sentry-mcp\");\n if (sortBy) queryParams.set(\"sort\", sortBy);\n queryParams.set(\"statsPeriod\", \"1w\");\n queryParams.set(\"query\", sentryQuery.join(\" \"));\n\n queryParams.append(\"collapse\", \"unhandled\");\n\n const apiUrl = projectSlug\n ? `/projects/${organizationSlug}/${projectSlug}/issues/?${queryParams.toString()}`\n : `/organizations/${organizationSlug}/issues/?${queryParams.toString()}`;\n\n const response = await this.request(apiUrl, undefined, opts);\n\n const body = await response.json();\n return IssueListSchema.parse(body);\n }\n\n async getIssue(\n {\n organizationSlug,\n issueId,\n }: {\n organizationSlug: string;\n issueId: string;\n },\n opts?: RequestOptions,\n ): Promise<Issue> {\n const response = await this.request(\n `/organizations/${organizationSlug}/issues/${issueId}/`,\n undefined,\n opts,\n );\n\n const body = await response.json();\n return IssueSchema.parse(body);\n }\n\n async getLatestEventForIssue(\n {\n organizationSlug,\n issueId,\n }: {\n organizationSlug: string;\n issueId: string;\n },\n opts?: RequestOptions,\n ): Promise<Event> {\n const response = await this.request(\n `/organizations/${organizationSlug}/issues/${issueId}/events/latest/`,\n undefined,\n opts,\n );\n\n const body = await response.json();\n return EventSchema.parse(body);\n }\n\n // TODO: Sentry is not yet exposing a reasonable API to fetch trace data\n // async getTrace({\n // organizationSlug,\n // traceId,\n // }: {\n // organizationSlug: string;\n // traceId: string;\n // }): Promise<z.infer<typeof SentryIssueSchema>> {\n // const response = await this.request(\n // `/organizations/${organizationSlug}/issues/${traceId}/`,\n // );\n\n // const body = await response.json();\n // return SentryIssueSchema.parse(body);\n // }\n\n async searchErrors(\n {\n organizationSlug,\n projectSlug,\n filename,\n transaction,\n query,\n sortBy = \"last_seen\",\n }: {\n organizationSlug: string;\n projectSlug?: string;\n filename?: string;\n transaction?: string;\n query?: string;\n sortBy?: \"last_seen\" | \"count\";\n },\n opts?: RequestOptions,\n ) {\n const sentryQuery: string[] = [];\n if (filename) {\n sentryQuery.push(`stack.filename:\"*${filename.replace(/\"/g, '\\\\\"')}\"`);\n }\n if (transaction) {\n sentryQuery.push(`transaction:\"${transaction.replace(/\"/g, '\\\\\"')}\"`);\n }\n if (query) {\n sentryQuery.push(query);\n }\n if (projectSlug) {\n sentryQuery.push(`project:${projectSlug}`);\n }\n\n const queryParams = new URLSearchParams();\n queryParams.set(\"dataset\", \"errors\");\n queryParams.set(\"per_page\", \"10\");\n queryParams.set(\"referrer\", \"sentry-mcp\");\n queryParams.set(\n \"sort\",\n `-${sortBy === \"last_seen\" ? \"last_seen\" : \"count\"}`,\n );\n queryParams.set(\"statsPeriod\", \"1w\");\n queryParams.append(\"field\", \"issue\");\n queryParams.append(\"field\", \"title\");\n queryParams.append(\"field\", \"project\");\n queryParams.append(\"field\", \"last_seen()\");\n queryParams.append(\"field\", \"count()\");\n queryParams.set(\"query\", sentryQuery.join(\" \"));\n // if (projectSlug) queryParams.set(\"project\", projectSlug);\n\n const apiUrl = `/organizations/${organizationSlug}/events/?${queryParams.toString()}`;\n\n const response = await this.request(apiUrl, undefined, opts);\n\n const body = await response.json();\n // TODO(dcramer): If you're using an older version of Sentry this API had a breaking change\n // meaning this endpoint will error.\n return ErrorsSearchResponseSchema.parse(body).data;\n }\n\n async searchSpans(\n {\n organizationSlug,\n projectSlug,\n transaction,\n query,\n sortBy = \"timestamp\",\n }: {\n organizationSlug: string;\n projectSlug?: string;\n transaction?: string;\n query?: string;\n sortBy?: \"timestamp\" | \"duration\";\n },\n opts?: RequestOptions,\n ) {\n const sentryQuery: string[] = [\"is_transaction:true\"];\n if (transaction) {\n sentryQuery.push(`transaction:\"${transaction.replace(/\"/g, '\\\\\"')}\"`);\n }\n if (query) {\n sentryQuery.push(query);\n }\n if (projectSlug) {\n sentryQuery.push(`project:${projectSlug}`);\n }\n\n const queryParams = new URLSearchParams();\n queryParams.set(\"dataset\", \"spans\");\n queryParams.set(\"per_page\", \"10\");\n queryParams.set(\"referrer\", \"sentry-mcp\");\n queryParams.set(\n \"sort\",\n `-${sortBy === \"timestamp\" ? \"timestamp\" : \"span.duration\"}`,\n );\n queryParams.set(\"allowAggregateConditions\", \"0\");\n queryParams.set(\"useRpc\", \"1\");\n queryParams.append(\"field\", \"id\");\n queryParams.append(\"field\", \"trace\");\n queryParams.append(\"field\", \"span.op\");\n queryParams.append(\"field\", \"span.description\");\n queryParams.append(\"field\", \"span.duration\");\n queryParams.append(\"field\", \"transaction\");\n queryParams.append(\"field\", \"project\");\n queryParams.append(\"field\", \"timestamp\");\n queryParams.set(\"query\", sentryQuery.join(\" \"));\n // if (projectSlug) queryParams.set(\"project\", projectSlug);\n\n const apiUrl = `/organizations/${organizationSlug}/events/?${queryParams.toString()}`;\n\n const response = await this.request(apiUrl, undefined, opts);\n\n const body = await response.json();\n return SpansSearchResponseSchema.parse(body).data;\n }\n\n // POST https://us.sentry.io/api/0/issues/5485083130/autofix/\n async startAutofix(\n {\n organizationSlug,\n issueId,\n eventId,\n instruction = \"\",\n }: {\n organizationSlug: string;\n issueId: string;\n eventId?: string;\n instruction?: string;\n },\n opts?: RequestOptions,\n ): Promise<AutofixRun> {\n const response = await this.request(\n `/organizations/${organizationSlug}/issues/${issueId}/autofix/`,\n {\n method: \"POST\",\n body: JSON.stringify({\n event_id: eventId,\n instruction,\n }),\n },\n opts,\n );\n const body = await response.json();\n return AutofixRunSchema.parse(body);\n }\n\n // GET https://us.sentry.io/api/0/issues/5485083130/autofix/\n async getAutofixState(\n {\n organizationSlug,\n issueId,\n }: {\n organizationSlug: string;\n issueId: string;\n },\n opts?: RequestOptions,\n ): Promise<AutofixRunState> {\n const response = await this.request(\n `/organizations/${organizationSlug}/issues/${issueId}/autofix/`,\n undefined,\n opts,\n );\n const body = await response.json();\n return AutofixRunStateSchema.parse(body);\n }\n}\n"],"mappings":";;;AAqCA,IAAa,WAAb,cAA8B,MAAM;CAClC,YACEA,SACOC,QACP;EAEA,IAAI,eAAe;AACnB,MACE,QAAQ,SACN,2DACD,IACD,QAAQ,SAAS,gDAAgD,CAEjE,gBACE;AAEJ,QAAM,aAAa;EAqhBtB,KAliBU;CAcR;AACF;AAMD,IAAa,mBAAb,MAA8B;CAC5B,AAAQ;CACR,AAAU;CACV,AAAU;CAEV,YAAY,EACV,cAAc,MACd,OAAO,QAAQ,IAAI,aAIpB,EAAE;AACD,OAAK,cAAc;AACnB,OAAK,OAAO,QAAQ;AACpB,OAAK,YAAY,IAAI,IAAI,WAAW,UAAU,KAAK,KAAK,GAAG;CAC5D;CAED,QAAQC,MAAc;AACpB,OAAK,OAAO;AACZ,OAAK,YAAY,IAAI,IAAI,WAAW,UAAU,KAAK,KAAK,GAAG;CAC5D;CAED,MAAc,QACZC,MACAC,UAAuB,CAAE,GACzB,EAAE,MAAyB,GAAG,CAAE,GACb;EAC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