@sentry/junior-github 0.302.0 → 0.304.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 (93) hide show
  1. package/dist/events-DGd7UVVs.js +2452 -0
  2. package/dist/index.d.ts +71 -3
  3. package/dist/index.js +7193 -8134
  4. package/dist/testing.d.ts +51 -1
  5. package/dist/testing.js +1 -6
  6. package/package.json +10 -13
  7. package/dist/account-links.d.ts +0 -8
  8. package/dist/annotations.d.ts +0 -33
  9. package/dist/chunk-6SOJ5TN6.js +0 -2618
  10. package/dist/clone-command.d.ts +0 -7
  11. package/dist/configured-repository.d.ts +0 -10
  12. package/dist/conversation-title-context.d.ts +0 -20
  13. package/dist/credential-support.d.ts +0 -107
  14. package/dist/db/database.d.ts +0 -5
  15. package/dist/db/schema.d.ts +0 -1412
  16. package/dist/default-branch.d.ts +0 -15
  17. package/dist/draft-readiness.d.ts +0 -31
  18. package/dist/egress-policy.d.ts +0 -25
  19. package/dist/events/comment.d.ts +0 -14
  20. package/dist/events/declarations.d.ts +0 -18
  21. package/dist/events/deployment.d.ts +0 -38
  22. package/dist/events/issue.d.ts +0 -42
  23. package/dist/events/pull-request.d.ts +0 -75
  24. package/dist/events/release.d.ts +0 -42
  25. package/dist/events/repository.d.ts +0 -23
  26. package/dist/events/resource-url.d.ts +0 -5
  27. package/dist/events/scope.d.ts +0 -13
  28. package/dist/git-config.d.ts +0 -52
  29. package/dist/github-status.d.ts +0 -16
  30. package/dist/graphql-documents.d.ts +0 -44
  31. package/dist/hooks-path-command.d.ts +0 -5
  32. package/dist/images.d.ts +0 -8
  33. package/dist/issue-outcomes/store.d.ts +0 -42
  34. package/dist/merge-conflict-checks/heartbeat.d.ts +0 -31
  35. package/dist/merge-conflict-checks/policy.d.ts +0 -74
  36. package/dist/merge-conflict-checks/store.d.ts +0 -44
  37. package/dist/merge-conflict-checks/webhooks.d.ts +0 -23
  38. package/dist/object-facts.d.ts +0 -29
  39. package/dist/permissions.d.ts +0 -6
  40. package/dist/plugin.d.ts +0 -45
  41. package/dist/pull-request-outcomes/apply.d.ts +0 -22
  42. package/dist/pull-request-outcomes/commit-composition.d.ts +0 -6
  43. package/dist/pull-request-outcomes/reconcile.d.ts +0 -42
  44. package/dist/pull-request-outcomes/store.d.ts +0 -120
  45. package/dist/pull-request-requesters/draft-reviewers.d.ts +0 -15
  46. package/dist/pull-request-requesters/store.d.ts +0 -41
  47. package/dist/pull-request-review-policy.d.ts +0 -6
  48. package/dist/receive-pack-policy.d.ts +0 -21
  49. package/dist/reply-markdown.d.ts +0 -18
  50. package/dist/sandbox-paths.d.ts +0 -4
  51. package/dist/tool-support/attribution.d.ts +0 -52
  52. package/dist/tool-support/github-api.d.ts +0 -51
  53. package/dist/tool-support/github-text.d.ts +0 -8
  54. package/dist/tool-support/pull-request-description.d.ts +0 -8
  55. package/dist/tools/clone-repository.d.ts +0 -287
  56. package/dist/tools/comment-on-issue.d.ts +0 -289
  57. package/dist/tools/comment-on-pull-request.d.ts +0 -294
  58. package/dist/tools/create-issue.d.ts +0 -300
  59. package/dist/tools/create-pull-request.d.ts +0 -322
  60. package/dist/tools/footer.d.ts +0 -17
  61. package/dist/tools/get-deployment.d.ts +0 -346
  62. package/dist/tools/get-issue.d.ts +0 -330
  63. package/dist/tools/get-pull-request.d.ts +0 -358
  64. package/dist/tools/get-release.d.ts +0 -325
  65. package/dist/tools/get-repository.d.ts +0 -308
  66. package/dist/tools/get-status.d.ts +0 -295
  67. package/dist/tools/react-to-issue.d.ts +0 -289
  68. package/dist/tools/resolve-pull-request-review-thread.d.ts +0 -288
  69. package/dist/tools/stack-pull-request.d.ts +0 -43
  70. package/dist/tools/submit-pull-request-review.d.ts +0 -300
  71. package/dist/tools/update-issue-comment.d.ts +0 -290
  72. package/dist/tools/update-issue.d.ts +0 -331
  73. package/dist/tools/update-pull-request-feedback.d.ts +0 -324
  74. package/dist/tools/update-pull-request.d.ts +0 -338
  75. package/dist/tools.d.ts +0 -13
  76. package/dist/webhooks/check-suite.d.ts +0 -121
  77. package/dist/webhooks/event-targets.d.ts +0 -44
  78. package/dist/webhooks/events.d.ts +0 -23
  79. package/dist/webhooks/fail-open-log.d.ts +0 -10
  80. package/dist/webhooks/handler.d.ts +0 -57
  81. package/dist/webhooks/installation-requests.d.ts +0 -105
  82. package/dist/webhooks/issue-outcome.d.ts +0 -11
  83. package/dist/webhooks/issue-update.d.ts +0 -8
  84. package/dist/webhooks/merge-conflict.d.ts +0 -53
  85. package/dist/webhooks/ownership.d.ts +0 -14
  86. package/dist/webhooks/pull-request-action.d.ts +0 -37
  87. package/dist/webhooks/pull-request-activity.d.ts +0 -11
  88. package/dist/webhooks/pull-request-match-data.d.ts +0 -31
  89. package/dist/webhooks/pull-request-outcome.d.ts +0 -16
  90. package/dist/webhooks/pull-request-people.d.ts +0 -51
  91. package/dist/webhooks/pull-request-preview.d.ts +0 -12
  92. package/dist/webhooks/pull-request-ready-reviewers.d.ts +0 -25
  93. package/dist/workspace-prepare.d.ts +0 -3
@@ -1,324 +0,0 @@
1
- import { type PluginEgress } from "@sentry/junior-plugin-api";
2
- /**
3
- * GitHub has reactions but no feedback state. This tool maps each state to a
4
- * reaction and keeps at most one state reaction that Junior owns. It does not
5
- * change reactions from other users.
6
- */
7
- declare const STATUS_TO_REACTION_CONTENT: {
8
- readonly reviewing: "eyes";
9
- readonly addressed: "+1";
10
- readonly declined: "-1";
11
- };
12
- type FeedbackStatus = keyof typeof STATUS_TO_REACTION_CONTENT;
13
- type PullRequestCommentKind = "conversation" | "review";
14
- interface PullRequestCommentRef {
15
- owner: string;
16
- name: string;
17
- commentKind: PullRequestCommentKind;
18
- commentId: number;
19
- }
20
- /** Build the GitHub API path for one pull request comment's reactions. */
21
- export declare function pullRequestCommentReactionsPath(input: PullRequestCommentRef): string;
22
- /** Return the GitHub reaction for one feedback state. */
23
- export declare function pullRequestFeedbackReactionContent(status: FeedbackStatus): (typeof STATUS_TO_REACTION_CONTENT)[FeedbackStatus];
24
- /** Build the GitHub API path for one pull request review. */
25
- export declare function pullRequestReviewPath(input: {
26
- owner: string;
27
- name: string;
28
- pullRequest: number;
29
- reviewId: number;
30
- }): string;
31
- /** Return the GraphQL name of one REST reaction content. */
32
- export declare function graphqlReactionContent(content: string): string;
33
- /**
34
- * Set Junior's feedback reaction on a pull request comment or review body.
35
- * Replace only state reactions Junior previously added to the same comment.
36
- */
37
- export declare function createGitHubUpdatePullRequestFeedbackTool(botEmail: string | undefined): import("@sentry/junior-plugin-api").PluginToolDefinition<{
38
- repo: string;
39
- comment_kind: "conversation" | "review" | "review_body";
40
- comment_id: number;
41
- pull_request: number;
42
- status: "addressed" | "declined";
43
- }, {
44
- [x: string]: unknown;
45
- objectAnnotations?: {
46
- kind: "object";
47
- key: string;
48
- label: string;
49
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
50
- title: string;
51
- url: string | null;
52
- description?: string | undefined;
53
- status?: string | undefined;
54
- trigger?: string | undefined;
55
- warning?: string | undefined;
56
- displayType?: string | undefined;
57
- sourceUpdatedAt?: string | undefined;
58
- facts?: {
59
- type: "code_change";
60
- summary?: string | undefined;
61
- author?: string | undefined;
62
- sourceBranch?: string | undefined;
63
- targetBranch?: string | undefined;
64
- reviewers?: string[] | undefined;
65
- review?: "approved" | "changes_requested" | "required" | undefined;
66
- checks?: {
67
- passed: number;
68
- failed: number;
69
- pending: number;
70
- } | undefined;
71
- mergeable?: boolean | undefined;
72
- changedFiles?: number | undefined;
73
- additions?: number | undefined;
74
- deletions?: number | undefined;
75
- previewImageUrls?: string[] | undefined;
76
- } | {
77
- type: "task";
78
- summary?: string | undefined;
79
- assignees?: string[] | undefined;
80
- priority?: string | undefined;
81
- project?: string | undefined;
82
- cycle?: string | undefined;
83
- dueDate?: string | undefined;
84
- labels?: string[] | undefined;
85
- trend?: {
86
- label: string;
87
- points: number[];
88
- } | undefined;
89
- } | {
90
- type: "deployment";
91
- summary?: string | undefined;
92
- project?: string | undefined;
93
- environment?: string | undefined;
94
- revision?: string | undefined;
95
- branch?: string | undefined;
96
- } | {
97
- type: "calendar_event";
98
- summary?: string | undefined;
99
- when?: string | undefined;
100
- attendees?: string[] | undefined;
101
- } | {
102
- type: "conversation";
103
- summary?: string | undefined;
104
- participants?: string[] | undefined;
105
- lastActivityAt?: string | undefined;
106
- } | {
107
- type: "document";
108
- summary?: string | undefined;
109
- owner?: string | undefined;
110
- modifiedAt?: string | undefined;
111
- thumbnailUrl?: string | undefined;
112
- } | {
113
- type: "message";
114
- summary?: string | undefined;
115
- channel?: string | undefined;
116
- author?: string | undefined;
117
- sentAt?: string | undefined;
118
- } | {
119
- type: "web_page";
120
- summary?: string | undefined;
121
- siteName?: string | undefined;
122
- author?: string | undefined;
123
- media?: "image" | "video" | undefined;
124
- thumbnailUrl?: string | undefined;
125
- } | {
126
- type: "chart";
127
- summary?: string | undefined;
128
- display: "area" | "bar" | "line";
129
- yAxis: string;
130
- range: string;
131
- series: {
132
- label: string;
133
- points: number[];
134
- }[];
135
- } | {
136
- type: "event";
137
- summary?: string | undefined;
138
- level?: string | undefined;
139
- project?: string | undefined;
140
- release?: string | undefined;
141
- environment?: string | undefined;
142
- occurredAt?: string | undefined;
143
- } | {
144
- type: "trace";
145
- summary?: string | undefined;
146
- rootOp?: string | undefined;
147
- rootName?: string | undefined;
148
- durationMs: number;
149
- spanCount: number;
150
- errorCount: number;
151
- performanceIssueCount: number;
152
- projects: string[];
153
- spans: {
154
- op?: string | undefined;
155
- name: string;
156
- startMs: number;
157
- durationMs: number;
158
- issue?: boolean | undefined;
159
- }[];
160
- } | {
161
- type: "person";
162
- summary?: string | undefined;
163
- email?: string | undefined;
164
- slackHandle?: string | undefined;
165
- githubHandle?: string | undefined;
166
- avatarUrl?: string | undefined;
167
- } | undefined;
168
- }[] | undefined;
169
- reply?: {
170
- text: string;
171
- url?: string | undefined;
172
- } | undefined;
173
- truncated?: boolean | undefined;
174
- continuation?: {
175
- arguments: Record<string, unknown>;
176
- reason?: string | undefined;
177
- } | undefined;
178
- target: "updatePullRequestFeedback";
179
- repo: string;
180
- comment_id: number;
181
- status: "addressed" | "declined";
182
- }, {
183
- [x: string]: unknown;
184
- objectAnnotations?: {
185
- kind: "object";
186
- key: string;
187
- label: string;
188
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
189
- title: string;
190
- url: string | null;
191
- description?: string | undefined;
192
- status?: string | undefined;
193
- trigger?: string | undefined;
194
- warning?: string | undefined;
195
- displayType?: string | undefined;
196
- sourceUpdatedAt?: string | undefined;
197
- facts?: {
198
- type: "code_change";
199
- summary?: string | undefined;
200
- author?: string | undefined;
201
- sourceBranch?: string | undefined;
202
- targetBranch?: string | undefined;
203
- reviewers?: string[] | undefined;
204
- review?: "approved" | "changes_requested" | "required" | undefined;
205
- checks?: {
206
- passed: number;
207
- failed: number;
208
- pending: number;
209
- } | undefined;
210
- mergeable?: boolean | undefined;
211
- changedFiles?: number | undefined;
212
- additions?: number | undefined;
213
- deletions?: number | undefined;
214
- previewImageUrls?: string[] | undefined;
215
- } | {
216
- type: "task";
217
- summary?: string | undefined;
218
- assignees?: string[] | undefined;
219
- priority?: string | undefined;
220
- project?: string | undefined;
221
- cycle?: string | undefined;
222
- dueDate?: string | undefined;
223
- labels?: string[] | undefined;
224
- trend?: {
225
- label: string;
226
- points: number[];
227
- } | undefined;
228
- } | {
229
- type: "deployment";
230
- summary?: string | undefined;
231
- project?: string | undefined;
232
- environment?: string | undefined;
233
- revision?: string | undefined;
234
- branch?: string | undefined;
235
- } | {
236
- type: "calendar_event";
237
- summary?: string | undefined;
238
- when?: string | undefined;
239
- attendees?: string[] | undefined;
240
- } | {
241
- type: "conversation";
242
- summary?: string | undefined;
243
- participants?: string[] | undefined;
244
- lastActivityAt?: string | undefined;
245
- } | {
246
- type: "document";
247
- summary?: string | undefined;
248
- owner?: string | undefined;
249
- modifiedAt?: string | undefined;
250
- thumbnailUrl?: string | undefined;
251
- } | {
252
- type: "message";
253
- summary?: string | undefined;
254
- channel?: string | undefined;
255
- author?: string | undefined;
256
- sentAt?: string | undefined;
257
- } | {
258
- type: "web_page";
259
- summary?: string | undefined;
260
- siteName?: string | undefined;
261
- author?: string | undefined;
262
- media?: "image" | "video" | undefined;
263
- thumbnailUrl?: string | undefined;
264
- } | {
265
- type: "chart";
266
- summary?: string | undefined;
267
- display: "area" | "bar" | "line";
268
- yAxis: string;
269
- range: string;
270
- series: {
271
- label: string;
272
- points: number[];
273
- }[];
274
- } | {
275
- type: "event";
276
- summary?: string | undefined;
277
- level?: string | undefined;
278
- project?: string | undefined;
279
- release?: string | undefined;
280
- environment?: string | undefined;
281
- occurredAt?: string | undefined;
282
- } | {
283
- type: "trace";
284
- summary?: string | undefined;
285
- rootOp?: string | undefined;
286
- rootName?: string | undefined;
287
- durationMs: number;
288
- spanCount: number;
289
- errorCount: number;
290
- performanceIssueCount: number;
291
- projects: string[];
292
- spans: {
293
- op?: string | undefined;
294
- name: string;
295
- startMs: number;
296
- durationMs: number;
297
- issue?: boolean | undefined;
298
- }[];
299
- } | {
300
- type: "person";
301
- summary?: string | undefined;
302
- email?: string | undefined;
303
- slackHandle?: string | undefined;
304
- githubHandle?: string | undefined;
305
- avatarUrl?: string | undefined;
306
- } | undefined;
307
- }[] | undefined;
308
- reply?: {
309
- text: string;
310
- url?: string | undefined;
311
- } | undefined;
312
- truncated?: boolean | undefined;
313
- continuation?: {
314
- arguments: Record<string, unknown>;
315
- reason?: string | undefined;
316
- } | undefined;
317
- target: "updatePullRequestFeedback";
318
- repo: string;
319
- comment_id: number;
320
- status: "addressed" | "declined";
321
- }, {
322
- egress: PluginEgress;
323
- }>;
324
- export {};
@@ -1,338 +0,0 @@
1
- import { type Identity, type User, type Actor, type PluginLogger, type PluginDecider, type PluginEgress, type Source } from "@sentry/junior-plugin-api";
2
- /** Update mutable PR metadata while preserving runtime-owned body attribution. */
3
- export declare function createGitHubUpdatePullRequestTool(
4
- /** Set when the description check experiment is on. */
5
- descriptionChecks?: boolean): import("@sentry/junior-plugin-api").PluginToolDefinition<{
6
- repo: string;
7
- number: number;
8
- title?: string | undefined;
9
- body?: string | undefined;
10
- base?: string | undefined;
11
- state?: "closed" | "open" | undefined;
12
- draft?: boolean | undefined;
13
- }, {
14
- objectAnnotations?: {
15
- kind: "object";
16
- key: string;
17
- label: string;
18
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
19
- title: string;
20
- url: string | null;
21
- description?: string | undefined;
22
- status?: string | undefined;
23
- trigger?: string | undefined;
24
- warning?: string | undefined;
25
- displayType?: string | undefined;
26
- sourceUpdatedAt?: string | undefined;
27
- facts?: {
28
- type: "code_change";
29
- summary?: string | undefined;
30
- author?: string | undefined;
31
- sourceBranch?: string | undefined;
32
- targetBranch?: string | undefined;
33
- reviewers?: string[] | undefined;
34
- review?: "approved" | "changes_requested" | "required" | undefined;
35
- checks?: {
36
- passed: number;
37
- failed: number;
38
- pending: number;
39
- } | undefined;
40
- mergeable?: boolean | undefined;
41
- changedFiles?: number | undefined;
42
- additions?: number | undefined;
43
- deletions?: number | undefined;
44
- previewImageUrls?: string[] | undefined;
45
- } | {
46
- type: "task";
47
- summary?: string | undefined;
48
- assignees?: string[] | undefined;
49
- priority?: string | undefined;
50
- project?: string | undefined;
51
- cycle?: string | undefined;
52
- dueDate?: string | undefined;
53
- labels?: string[] | undefined;
54
- trend?: {
55
- label: string;
56
- points: number[];
57
- } | undefined;
58
- } | {
59
- type: "deployment";
60
- summary?: string | undefined;
61
- project?: string | undefined;
62
- environment?: string | undefined;
63
- revision?: string | undefined;
64
- branch?: string | undefined;
65
- } | {
66
- type: "calendar_event";
67
- summary?: string | undefined;
68
- when?: string | undefined;
69
- attendees?: string[] | undefined;
70
- } | {
71
- type: "conversation";
72
- summary?: string | undefined;
73
- participants?: string[] | undefined;
74
- lastActivityAt?: string | undefined;
75
- } | {
76
- type: "document";
77
- summary?: string | undefined;
78
- owner?: string | undefined;
79
- modifiedAt?: string | undefined;
80
- thumbnailUrl?: string | undefined;
81
- } | {
82
- type: "message";
83
- summary?: string | undefined;
84
- channel?: string | undefined;
85
- author?: string | undefined;
86
- sentAt?: string | undefined;
87
- } | {
88
- type: "web_page";
89
- summary?: string | undefined;
90
- siteName?: string | undefined;
91
- author?: string | undefined;
92
- media?: "image" | "video" | undefined;
93
- thumbnailUrl?: string | undefined;
94
- } | {
95
- type: "chart";
96
- summary?: string | undefined;
97
- display: "area" | "bar" | "line";
98
- yAxis: string;
99
- range: string;
100
- series: {
101
- label: string;
102
- points: number[];
103
- }[];
104
- } | {
105
- type: "event";
106
- summary?: string | undefined;
107
- level?: string | undefined;
108
- project?: string | undefined;
109
- release?: string | undefined;
110
- environment?: string | undefined;
111
- occurredAt?: string | undefined;
112
- } | {
113
- type: "trace";
114
- summary?: string | undefined;
115
- rootOp?: string | undefined;
116
- rootName?: string | undefined;
117
- durationMs: number;
118
- spanCount: number;
119
- errorCount: number;
120
- performanceIssueCount: number;
121
- projects: string[];
122
- spans: {
123
- op?: string | undefined;
124
- name: string;
125
- startMs: number;
126
- durationMs: number;
127
- issue?: boolean | undefined;
128
- }[];
129
- } | {
130
- type: "person";
131
- summary?: string | undefined;
132
- email?: string | undefined;
133
- slackHandle?: string | undefined;
134
- githubHandle?: string | undefined;
135
- avatarUrl?: string | undefined;
136
- } | undefined;
137
- }[] | undefined;
138
- reply?: {
139
- text: string;
140
- url?: string | undefined;
141
- } | undefined;
142
- truncated?: boolean | undefined;
143
- continuation?: {
144
- arguments: Record<string, unknown>;
145
- reason?: string | undefined;
146
- } | undefined;
147
- base: string;
148
- body: string | null;
149
- draft: boolean;
150
- number: number;
151
- state: string;
152
- subscribable?: {
153
- identifier: string;
154
- label: string;
155
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
156
- namespace: string;
157
- suggested_events?: string[] | undefined;
158
- supported_events: string[];
159
- type: string;
160
- } | undefined;
161
- title: string;
162
- url: string;
163
- target: "updatePullRequest";
164
- }, {
165
- objectAnnotations?: {
166
- kind: "object";
167
- key: string;
168
- label: string;
169
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
170
- title: string;
171
- url: string | null;
172
- description?: string | undefined;
173
- status?: string | undefined;
174
- trigger?: string | undefined;
175
- warning?: string | undefined;
176
- displayType?: string | undefined;
177
- sourceUpdatedAt?: string | undefined;
178
- facts?: {
179
- type: "code_change";
180
- summary?: string | undefined;
181
- author?: string | undefined;
182
- sourceBranch?: string | undefined;
183
- targetBranch?: string | undefined;
184
- reviewers?: string[] | undefined;
185
- review?: "approved" | "changes_requested" | "required" | undefined;
186
- checks?: {
187
- passed: number;
188
- failed: number;
189
- pending: number;
190
- } | undefined;
191
- mergeable?: boolean | undefined;
192
- changedFiles?: number | undefined;
193
- additions?: number | undefined;
194
- deletions?: number | undefined;
195
- previewImageUrls?: string[] | undefined;
196
- } | {
197
- type: "task";
198
- summary?: string | undefined;
199
- assignees?: string[] | undefined;
200
- priority?: string | undefined;
201
- project?: string | undefined;
202
- cycle?: string | undefined;
203
- dueDate?: string | undefined;
204
- labels?: string[] | undefined;
205
- trend?: {
206
- label: string;
207
- points: number[];
208
- } | undefined;
209
- } | {
210
- type: "deployment";
211
- summary?: string | undefined;
212
- project?: string | undefined;
213
- environment?: string | undefined;
214
- revision?: string | undefined;
215
- branch?: string | undefined;
216
- } | {
217
- type: "calendar_event";
218
- summary?: string | undefined;
219
- when?: string | undefined;
220
- attendees?: string[] | undefined;
221
- } | {
222
- type: "conversation";
223
- summary?: string | undefined;
224
- participants?: string[] | undefined;
225
- lastActivityAt?: string | undefined;
226
- } | {
227
- type: "document";
228
- summary?: string | undefined;
229
- owner?: string | undefined;
230
- modifiedAt?: string | undefined;
231
- thumbnailUrl?: string | undefined;
232
- } | {
233
- type: "message";
234
- summary?: string | undefined;
235
- channel?: string | undefined;
236
- author?: string | undefined;
237
- sentAt?: string | undefined;
238
- } | {
239
- type: "web_page";
240
- summary?: string | undefined;
241
- siteName?: string | undefined;
242
- author?: string | undefined;
243
- media?: "image" | "video" | undefined;
244
- thumbnailUrl?: string | undefined;
245
- } | {
246
- type: "chart";
247
- summary?: string | undefined;
248
- display: "area" | "bar" | "line";
249
- yAxis: string;
250
- range: string;
251
- series: {
252
- label: string;
253
- points: number[];
254
- }[];
255
- } | {
256
- type: "event";
257
- summary?: string | undefined;
258
- level?: string | undefined;
259
- project?: string | undefined;
260
- release?: string | undefined;
261
- environment?: string | undefined;
262
- occurredAt?: string | undefined;
263
- } | {
264
- type: "trace";
265
- summary?: string | undefined;
266
- rootOp?: string | undefined;
267
- rootName?: string | undefined;
268
- durationMs: number;
269
- spanCount: number;
270
- errorCount: number;
271
- performanceIssueCount: number;
272
- projects: string[];
273
- spans: {
274
- op?: string | undefined;
275
- name: string;
276
- startMs: number;
277
- durationMs: number;
278
- issue?: boolean | undefined;
279
- }[];
280
- } | {
281
- type: "person";
282
- summary?: string | undefined;
283
- email?: string | undefined;
284
- slackHandle?: string | undefined;
285
- githubHandle?: string | undefined;
286
- avatarUrl?: string | undefined;
287
- } | undefined;
288
- }[] | undefined;
289
- reply?: {
290
- text: string;
291
- url?: string | undefined;
292
- } | undefined;
293
- truncated?: boolean | undefined;
294
- continuation?: {
295
- arguments: Record<string, unknown>;
296
- reason?: string | undefined;
297
- } | undefined;
298
- base: string;
299
- body: string | null;
300
- draft: boolean;
301
- number: number;
302
- state: string;
303
- subscribable?: {
304
- identifier: string;
305
- label: string;
306
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
307
- namespace: string;
308
- suggested_events?: string[] | undefined;
309
- supported_events: string[];
310
- type: string;
311
- } | undefined;
312
- title: string;
313
- url: string;
314
- target: "updatePullRequest";
315
- }, {
316
- actor?: Actor;
317
- automationLink?: {
318
- url: string;
319
- };
320
- conversationId?: string;
321
- db: unknown;
322
- decider: PluginDecider;
323
- egress: PluginEgress;
324
- log: PluginLogger;
325
- events: {
326
- canSubscribe: boolean;
327
- };
328
- conversationLink?: {
329
- url: string;
330
- };
331
- source?: Source;
332
- users: {
333
- resolveActor(): Promise<{
334
- identity?: Identity;
335
- user?: User;
336
- } | undefined>;
337
- };
338
- }>;
package/dist/tools.d.ts DELETED
@@ -1,13 +0,0 @@
1
- import type { PluginToolDefinition } from "@sentry/junior-plugin-api";
2
- import type { GitHubPullRequestSubscriptionConfig } from "./events/pull-request.js";
3
- /** Opt-ins for GitHub plugin behavior that is still being tested. */
4
- export interface GitHubPluginExperiments {
5
- /**
6
- * Check pull request descriptions with the decision model before a create
7
- * or update, and reject ones with check results, a work log, chat talk, or
8
- * no reason.
9
- */
10
- pullRequestDescriptionChecks?: boolean;
11
- }
12
- /** The GitHub plugin's tools for one deployment configuration. */
13
- export declare function createGitHubTools(botEmail?: string, pullRequestSubscription?: GitHubPullRequestSubscriptionConfig, experimental?: GitHubPluginExperiments): Record<string, PluginToolDefinition>;