@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,287 +0,0 @@
1
- import { type PluginLogger, type PluginSandbox, type PluginWorkspaceToolContext } from "@sentry/junior-plugin-api";
2
- /** Clone one GitHub repository into the sandbox as an ad-hoc checkout. */
3
- export declare const gitHubCloneRepositoryTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
4
- repo: string;
5
- directory?: string | undefined;
6
- allow_ad_hoc?: boolean | undefined;
7
- }, {
8
- objectAnnotations?: {
9
- kind: "object";
10
- key: string;
11
- label: string;
12
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
13
- title: string;
14
- url: string | null;
15
- description?: string | undefined;
16
- status?: string | undefined;
17
- trigger?: string | undefined;
18
- warning?: string | undefined;
19
- displayType?: string | undefined;
20
- sourceUpdatedAt?: string | undefined;
21
- facts?: {
22
- type: "code_change";
23
- summary?: string | undefined;
24
- author?: string | undefined;
25
- sourceBranch?: string | undefined;
26
- targetBranch?: string | undefined;
27
- reviewers?: string[] | undefined;
28
- review?: "approved" | "changes_requested" | "required" | undefined;
29
- checks?: {
30
- passed: number;
31
- failed: number;
32
- pending: number;
33
- } | undefined;
34
- mergeable?: boolean | undefined;
35
- changedFiles?: number | undefined;
36
- additions?: number | undefined;
37
- deletions?: number | undefined;
38
- previewImageUrls?: string[] | undefined;
39
- } | {
40
- type: "task";
41
- summary?: string | undefined;
42
- assignees?: string[] | undefined;
43
- priority?: string | undefined;
44
- project?: string | undefined;
45
- cycle?: string | undefined;
46
- dueDate?: string | undefined;
47
- labels?: string[] | undefined;
48
- trend?: {
49
- label: string;
50
- points: number[];
51
- } | undefined;
52
- } | {
53
- type: "deployment";
54
- summary?: string | undefined;
55
- project?: string | undefined;
56
- environment?: string | undefined;
57
- revision?: string | undefined;
58
- branch?: string | undefined;
59
- } | {
60
- type: "calendar_event";
61
- summary?: string | undefined;
62
- when?: string | undefined;
63
- attendees?: string[] | undefined;
64
- } | {
65
- type: "conversation";
66
- summary?: string | undefined;
67
- participants?: string[] | undefined;
68
- lastActivityAt?: string | undefined;
69
- } | {
70
- type: "document";
71
- summary?: string | undefined;
72
- owner?: string | undefined;
73
- modifiedAt?: string | undefined;
74
- thumbnailUrl?: string | undefined;
75
- } | {
76
- type: "message";
77
- summary?: string | undefined;
78
- channel?: string | undefined;
79
- author?: string | undefined;
80
- sentAt?: string | undefined;
81
- } | {
82
- type: "web_page";
83
- summary?: string | undefined;
84
- siteName?: string | undefined;
85
- author?: string | undefined;
86
- media?: "image" | "video" | undefined;
87
- thumbnailUrl?: string | undefined;
88
- } | {
89
- type: "chart";
90
- summary?: string | undefined;
91
- display: "area" | "bar" | "line";
92
- yAxis: string;
93
- range: string;
94
- series: {
95
- label: string;
96
- points: number[];
97
- }[];
98
- } | {
99
- type: "event";
100
- summary?: string | undefined;
101
- level?: string | undefined;
102
- project?: string | undefined;
103
- release?: string | undefined;
104
- environment?: string | undefined;
105
- occurredAt?: string | undefined;
106
- } | {
107
- type: "trace";
108
- summary?: string | undefined;
109
- rootOp?: string | undefined;
110
- rootName?: string | undefined;
111
- durationMs: number;
112
- spanCount: number;
113
- errorCount: number;
114
- performanceIssueCount: number;
115
- projects: string[];
116
- spans: {
117
- op?: string | undefined;
118
- name: string;
119
- startMs: number;
120
- durationMs: number;
121
- issue?: boolean | undefined;
122
- }[];
123
- } | {
124
- type: "person";
125
- summary?: string | undefined;
126
- email?: string | undefined;
127
- slackHandle?: string | undefined;
128
- githubHandle?: string | undefined;
129
- avatarUrl?: string | undefined;
130
- } | undefined;
131
- }[] | undefined;
132
- reply?: {
133
- text: string;
134
- url?: string | undefined;
135
- } | undefined;
136
- truncated?: boolean | undefined;
137
- continuation?: {
138
- arguments: Record<string, unknown>;
139
- reason?: string | undefined;
140
- } | undefined;
141
- path: string;
142
- repo: string;
143
- note?: string | undefined;
144
- target: "cloneRepository";
145
- }, {
146
- objectAnnotations?: {
147
- kind: "object";
148
- key: string;
149
- label: string;
150
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
151
- title: string;
152
- url: string | null;
153
- description?: string | undefined;
154
- status?: string | undefined;
155
- trigger?: string | undefined;
156
- warning?: string | undefined;
157
- displayType?: string | undefined;
158
- sourceUpdatedAt?: string | undefined;
159
- facts?: {
160
- type: "code_change";
161
- summary?: string | undefined;
162
- author?: string | undefined;
163
- sourceBranch?: string | undefined;
164
- targetBranch?: string | undefined;
165
- reviewers?: string[] | undefined;
166
- review?: "approved" | "changes_requested" | "required" | undefined;
167
- checks?: {
168
- passed: number;
169
- failed: number;
170
- pending: number;
171
- } | undefined;
172
- mergeable?: boolean | undefined;
173
- changedFiles?: number | undefined;
174
- additions?: number | undefined;
175
- deletions?: number | undefined;
176
- previewImageUrls?: string[] | undefined;
177
- } | {
178
- type: "task";
179
- summary?: string | undefined;
180
- assignees?: string[] | undefined;
181
- priority?: string | undefined;
182
- project?: string | undefined;
183
- cycle?: string | undefined;
184
- dueDate?: string | undefined;
185
- labels?: string[] | undefined;
186
- trend?: {
187
- label: string;
188
- points: number[];
189
- } | undefined;
190
- } | {
191
- type: "deployment";
192
- summary?: string | undefined;
193
- project?: string | undefined;
194
- environment?: string | undefined;
195
- revision?: string | undefined;
196
- branch?: string | undefined;
197
- } | {
198
- type: "calendar_event";
199
- summary?: string | undefined;
200
- when?: string | undefined;
201
- attendees?: string[] | undefined;
202
- } | {
203
- type: "conversation";
204
- summary?: string | undefined;
205
- participants?: string[] | undefined;
206
- lastActivityAt?: string | undefined;
207
- } | {
208
- type: "document";
209
- summary?: string | undefined;
210
- owner?: string | undefined;
211
- modifiedAt?: string | undefined;
212
- thumbnailUrl?: string | undefined;
213
- } | {
214
- type: "message";
215
- summary?: string | undefined;
216
- channel?: string | undefined;
217
- author?: string | undefined;
218
- sentAt?: string | undefined;
219
- } | {
220
- type: "web_page";
221
- summary?: string | undefined;
222
- siteName?: string | undefined;
223
- author?: string | undefined;
224
- media?: "image" | "video" | undefined;
225
- thumbnailUrl?: string | undefined;
226
- } | {
227
- type: "chart";
228
- summary?: string | undefined;
229
- display: "area" | "bar" | "line";
230
- yAxis: string;
231
- range: string;
232
- series: {
233
- label: string;
234
- points: number[];
235
- }[];
236
- } | {
237
- type: "event";
238
- summary?: string | undefined;
239
- level?: string | undefined;
240
- project?: string | undefined;
241
- release?: string | undefined;
242
- environment?: string | undefined;
243
- occurredAt?: string | undefined;
244
- } | {
245
- type: "trace";
246
- summary?: string | undefined;
247
- rootOp?: string | undefined;
248
- rootName?: string | undefined;
249
- durationMs: number;
250
- spanCount: number;
251
- errorCount: number;
252
- performanceIssueCount: number;
253
- projects: string[];
254
- spans: {
255
- op?: string | undefined;
256
- name: string;
257
- startMs: number;
258
- durationMs: number;
259
- issue?: boolean | undefined;
260
- }[];
261
- } | {
262
- type: "person";
263
- summary?: string | undefined;
264
- email?: string | undefined;
265
- slackHandle?: string | undefined;
266
- githubHandle?: string | undefined;
267
- avatarUrl?: string | undefined;
268
- } | undefined;
269
- }[] | undefined;
270
- reply?: {
271
- text: string;
272
- url?: string | undefined;
273
- } | undefined;
274
- truncated?: boolean | undefined;
275
- continuation?: {
276
- arguments: Record<string, unknown>;
277
- reason?: string | undefined;
278
- } | undefined;
279
- path: string;
280
- repo: string;
281
- note?: string | undefined;
282
- target: "cloneRepository";
283
- }, {
284
- log: PluginLogger;
285
- sandbox: PluginSandbox;
286
- workspaces: PluginWorkspaceToolContext;
287
- }>;
@@ -1,289 +0,0 @@
1
- import { type PluginEgress } from "@sentry/junior-plugin-api";
2
- /** Post a comment on a GitHub issue as the App bot. */
3
- export declare const gitHubCommentOnIssueTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
4
- repo: string;
5
- number: number;
6
- body: string;
7
- }, {
8
- [x: string]: unknown;
9
- objectAnnotations?: {
10
- kind: "object";
11
- key: string;
12
- label: string;
13
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
14
- title: string;
15
- url: string | null;
16
- description?: string | undefined;
17
- status?: string | undefined;
18
- trigger?: string | undefined;
19
- warning?: string | undefined;
20
- displayType?: string | undefined;
21
- sourceUpdatedAt?: string | undefined;
22
- facts?: {
23
- type: "code_change";
24
- summary?: string | undefined;
25
- author?: string | undefined;
26
- sourceBranch?: string | undefined;
27
- targetBranch?: string | undefined;
28
- reviewers?: string[] | undefined;
29
- review?: "approved" | "changes_requested" | "required" | undefined;
30
- checks?: {
31
- passed: number;
32
- failed: number;
33
- pending: number;
34
- } | undefined;
35
- mergeable?: boolean | undefined;
36
- changedFiles?: number | undefined;
37
- additions?: number | undefined;
38
- deletions?: number | undefined;
39
- previewImageUrls?: string[] | undefined;
40
- } | {
41
- type: "task";
42
- summary?: string | undefined;
43
- assignees?: string[] | undefined;
44
- priority?: string | undefined;
45
- project?: string | undefined;
46
- cycle?: string | undefined;
47
- dueDate?: string | undefined;
48
- labels?: string[] | undefined;
49
- trend?: {
50
- label: string;
51
- points: number[];
52
- } | undefined;
53
- } | {
54
- type: "deployment";
55
- summary?: string | undefined;
56
- project?: string | undefined;
57
- environment?: string | undefined;
58
- revision?: string | undefined;
59
- branch?: string | undefined;
60
- } | {
61
- type: "calendar_event";
62
- summary?: string | undefined;
63
- when?: string | undefined;
64
- attendees?: string[] | undefined;
65
- } | {
66
- type: "conversation";
67
- summary?: string | undefined;
68
- participants?: string[] | undefined;
69
- lastActivityAt?: string | undefined;
70
- } | {
71
- type: "document";
72
- summary?: string | undefined;
73
- owner?: string | undefined;
74
- modifiedAt?: string | undefined;
75
- thumbnailUrl?: string | undefined;
76
- } | {
77
- type: "message";
78
- summary?: string | undefined;
79
- channel?: string | undefined;
80
- author?: string | undefined;
81
- sentAt?: string | undefined;
82
- } | {
83
- type: "web_page";
84
- summary?: string | undefined;
85
- siteName?: string | undefined;
86
- author?: string | undefined;
87
- media?: "image" | "video" | undefined;
88
- thumbnailUrl?: string | undefined;
89
- } | {
90
- type: "chart";
91
- summary?: string | undefined;
92
- display: "area" | "bar" | "line";
93
- yAxis: string;
94
- range: string;
95
- series: {
96
- label: string;
97
- points: number[];
98
- }[];
99
- } | {
100
- type: "event";
101
- summary?: string | undefined;
102
- level?: string | undefined;
103
- project?: string | undefined;
104
- release?: string | undefined;
105
- environment?: string | undefined;
106
- occurredAt?: string | undefined;
107
- } | {
108
- type: "trace";
109
- summary?: string | undefined;
110
- rootOp?: string | undefined;
111
- rootName?: string | undefined;
112
- durationMs: number;
113
- spanCount: number;
114
- errorCount: number;
115
- performanceIssueCount: number;
116
- projects: string[];
117
- spans: {
118
- op?: string | undefined;
119
- name: string;
120
- startMs: number;
121
- durationMs: number;
122
- issue?: boolean | undefined;
123
- }[];
124
- } | {
125
- type: "person";
126
- summary?: string | undefined;
127
- email?: string | undefined;
128
- slackHandle?: string | undefined;
129
- githubHandle?: string | undefined;
130
- avatarUrl?: string | undefined;
131
- } | undefined;
132
- }[] | undefined;
133
- reply?: {
134
- text: string;
135
- url?: string | undefined;
136
- } | undefined;
137
- truncated?: boolean | undefined;
138
- continuation?: {
139
- arguments: Record<string, unknown>;
140
- reason?: string | undefined;
141
- } | undefined;
142
- target: "commentOnIssue";
143
- repo: string;
144
- number: number;
145
- comment_id: number;
146
- url: string;
147
- }, {
148
- [x: string]: unknown;
149
- objectAnnotations?: {
150
- kind: "object";
151
- key: string;
152
- label: string;
153
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
154
- title: string;
155
- url: string | null;
156
- description?: string | undefined;
157
- status?: string | undefined;
158
- trigger?: string | undefined;
159
- warning?: string | undefined;
160
- displayType?: string | undefined;
161
- sourceUpdatedAt?: string | undefined;
162
- facts?: {
163
- type: "code_change";
164
- summary?: string | undefined;
165
- author?: string | undefined;
166
- sourceBranch?: string | undefined;
167
- targetBranch?: string | undefined;
168
- reviewers?: string[] | undefined;
169
- review?: "approved" | "changes_requested" | "required" | undefined;
170
- checks?: {
171
- passed: number;
172
- failed: number;
173
- pending: number;
174
- } | undefined;
175
- mergeable?: boolean | undefined;
176
- changedFiles?: number | undefined;
177
- additions?: number | undefined;
178
- deletions?: number | undefined;
179
- previewImageUrls?: string[] | undefined;
180
- } | {
181
- type: "task";
182
- summary?: string | undefined;
183
- assignees?: string[] | undefined;
184
- priority?: string | undefined;
185
- project?: string | undefined;
186
- cycle?: string | undefined;
187
- dueDate?: string | undefined;
188
- labels?: string[] | undefined;
189
- trend?: {
190
- label: string;
191
- points: number[];
192
- } | undefined;
193
- } | {
194
- type: "deployment";
195
- summary?: string | undefined;
196
- project?: string | undefined;
197
- environment?: string | undefined;
198
- revision?: string | undefined;
199
- branch?: string | undefined;
200
- } | {
201
- type: "calendar_event";
202
- summary?: string | undefined;
203
- when?: string | undefined;
204
- attendees?: string[] | undefined;
205
- } | {
206
- type: "conversation";
207
- summary?: string | undefined;
208
- participants?: string[] | undefined;
209
- lastActivityAt?: string | undefined;
210
- } | {
211
- type: "document";
212
- summary?: string | undefined;
213
- owner?: string | undefined;
214
- modifiedAt?: string | undefined;
215
- thumbnailUrl?: string | undefined;
216
- } | {
217
- type: "message";
218
- summary?: string | undefined;
219
- channel?: string | undefined;
220
- author?: string | undefined;
221
- sentAt?: string | undefined;
222
- } | {
223
- type: "web_page";
224
- summary?: string | undefined;
225
- siteName?: string | undefined;
226
- author?: string | undefined;
227
- media?: "image" | "video" | undefined;
228
- thumbnailUrl?: string | undefined;
229
- } | {
230
- type: "chart";
231
- summary?: string | undefined;
232
- display: "area" | "bar" | "line";
233
- yAxis: string;
234
- range: string;
235
- series: {
236
- label: string;
237
- points: number[];
238
- }[];
239
- } | {
240
- type: "event";
241
- summary?: string | undefined;
242
- level?: string | undefined;
243
- project?: string | undefined;
244
- release?: string | undefined;
245
- environment?: string | undefined;
246
- occurredAt?: string | undefined;
247
- } | {
248
- type: "trace";
249
- summary?: string | undefined;
250
- rootOp?: string | undefined;
251
- rootName?: string | undefined;
252
- durationMs: number;
253
- spanCount: number;
254
- errorCount: number;
255
- performanceIssueCount: number;
256
- projects: string[];
257
- spans: {
258
- op?: string | undefined;
259
- name: string;
260
- startMs: number;
261
- durationMs: number;
262
- issue?: boolean | undefined;
263
- }[];
264
- } | {
265
- type: "person";
266
- summary?: string | undefined;
267
- email?: string | undefined;
268
- slackHandle?: string | undefined;
269
- githubHandle?: string | undefined;
270
- avatarUrl?: string | undefined;
271
- } | undefined;
272
- }[] | undefined;
273
- reply?: {
274
- text: string;
275
- url?: string | undefined;
276
- } | undefined;
277
- truncated?: boolean | undefined;
278
- continuation?: {
279
- arguments: Record<string, unknown>;
280
- reason?: string | undefined;
281
- } | undefined;
282
- target: "commentOnIssue";
283
- repo: string;
284
- number: number;
285
- comment_id: number;
286
- url: string;
287
- }, {
288
- egress: PluginEgress;
289
- }>;