@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,288 +0,0 @@
1
- import { type PluginEgress } from "@sentry/junior-plugin-api";
2
- /** Resolve one review thread after GitHub proves it belongs to a bot-authored PR. */
3
- export declare function createGitHubResolvePullRequestReviewThreadTool(botEmail: string | undefined): import("@sentry/junior-plugin-api").PluginToolDefinition<{
4
- repo: string;
5
- thread_id: string;
6
- }, {
7
- [x: string]: unknown;
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
- target: "resolvePullRequestReviewThread";
142
- repo: string;
143
- number: number;
144
- thread_id: string;
145
- resolved: boolean;
146
- }, {
147
- [x: string]: unknown;
148
- objectAnnotations?: {
149
- kind: "object";
150
- key: string;
151
- label: string;
152
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
153
- title: string;
154
- url: string | null;
155
- description?: string | undefined;
156
- status?: string | undefined;
157
- trigger?: string | undefined;
158
- warning?: string | undefined;
159
- displayType?: string | undefined;
160
- sourceUpdatedAt?: string | undefined;
161
- facts?: {
162
- type: "code_change";
163
- summary?: string | undefined;
164
- author?: string | undefined;
165
- sourceBranch?: string | undefined;
166
- targetBranch?: string | undefined;
167
- reviewers?: string[] | undefined;
168
- review?: "approved" | "changes_requested" | "required" | undefined;
169
- checks?: {
170
- passed: number;
171
- failed: number;
172
- pending: number;
173
- } | undefined;
174
- mergeable?: boolean | undefined;
175
- changedFiles?: number | undefined;
176
- additions?: number | undefined;
177
- deletions?: number | undefined;
178
- previewImageUrls?: string[] | undefined;
179
- } | {
180
- type: "task";
181
- summary?: string | undefined;
182
- assignees?: string[] | undefined;
183
- priority?: string | undefined;
184
- project?: string | undefined;
185
- cycle?: string | undefined;
186
- dueDate?: string | undefined;
187
- labels?: string[] | undefined;
188
- trend?: {
189
- label: string;
190
- points: number[];
191
- } | undefined;
192
- } | {
193
- type: "deployment";
194
- summary?: string | undefined;
195
- project?: string | undefined;
196
- environment?: string | undefined;
197
- revision?: string | undefined;
198
- branch?: string | undefined;
199
- } | {
200
- type: "calendar_event";
201
- summary?: string | undefined;
202
- when?: string | undefined;
203
- attendees?: string[] | undefined;
204
- } | {
205
- type: "conversation";
206
- summary?: string | undefined;
207
- participants?: string[] | undefined;
208
- lastActivityAt?: string | undefined;
209
- } | {
210
- type: "document";
211
- summary?: string | undefined;
212
- owner?: string | undefined;
213
- modifiedAt?: string | undefined;
214
- thumbnailUrl?: string | undefined;
215
- } | {
216
- type: "message";
217
- summary?: string | undefined;
218
- channel?: string | undefined;
219
- author?: string | undefined;
220
- sentAt?: string | undefined;
221
- } | {
222
- type: "web_page";
223
- summary?: string | undefined;
224
- siteName?: string | undefined;
225
- author?: string | undefined;
226
- media?: "image" | "video" | undefined;
227
- thumbnailUrl?: string | undefined;
228
- } | {
229
- type: "chart";
230
- summary?: string | undefined;
231
- display: "area" | "bar" | "line";
232
- yAxis: string;
233
- range: string;
234
- series: {
235
- label: string;
236
- points: number[];
237
- }[];
238
- } | {
239
- type: "event";
240
- summary?: string | undefined;
241
- level?: string | undefined;
242
- project?: string | undefined;
243
- release?: string | undefined;
244
- environment?: string | undefined;
245
- occurredAt?: string | undefined;
246
- } | {
247
- type: "trace";
248
- summary?: string | undefined;
249
- rootOp?: string | undefined;
250
- rootName?: string | undefined;
251
- durationMs: number;
252
- spanCount: number;
253
- errorCount: number;
254
- performanceIssueCount: number;
255
- projects: string[];
256
- spans: {
257
- op?: string | undefined;
258
- name: string;
259
- startMs: number;
260
- durationMs: number;
261
- issue?: boolean | undefined;
262
- }[];
263
- } | {
264
- type: "person";
265
- summary?: string | undefined;
266
- email?: string | undefined;
267
- slackHandle?: string | undefined;
268
- githubHandle?: string | undefined;
269
- avatarUrl?: string | undefined;
270
- } | undefined;
271
- }[] | undefined;
272
- reply?: {
273
- text: string;
274
- url?: string | undefined;
275
- } | undefined;
276
- truncated?: boolean | undefined;
277
- continuation?: {
278
- arguments: Record<string, unknown>;
279
- reason?: string | undefined;
280
- } | undefined;
281
- target: "resolvePullRequestReviewThread";
282
- repo: string;
283
- number: number;
284
- thread_id: string;
285
- resolved: boolean;
286
- }, {
287
- egress: PluginEgress;
288
- }>;
@@ -1,43 +0,0 @@
1
- /**
2
- * Link a new pull request into a GitHub stack.
3
- *
4
- * A pull request whose base is the head branch of another open pull request
5
- * is stacked work. GitHub stacks merge as one group, rebase the next pull
6
- * request after a merge, and check each pull request against the trunk. So
7
- * the create tool links the pull request into a stack instead of leaving a
8
- * chain of base branches.
9
- */
10
- import type { ToolRegistrationHookContext } from "@sentry/junior-plugin-api";
11
- import * as z from "zod";
12
- /** The fields of a created pull request that decide if it is stacked work. */
13
- export declare const stackTargetSchema: z.ZodObject<{
14
- number: z.ZodNumber;
15
- head: z.ZodObject<{
16
- ref: z.ZodString;
17
- repo: z.ZodNullable<z.ZodObject<{
18
- full_name: z.ZodString;
19
- }, z.core.$strip>>;
20
- }, z.core.$strip>;
21
- base: z.ZodObject<{
22
- ref: z.ZodString;
23
- repo: z.ZodObject<{
24
- default_branch: z.ZodString;
25
- full_name: z.ZodString;
26
- }, z.core.$strip>;
27
- }, z.core.$strip>;
28
- }, z.core.$strip>;
29
- export type GitHubStackTarget = z.infer<typeof stackTargetSchema>;
30
- /** The stack that a created pull request joined. */
31
- export interface GitHubPullRequestStack {
32
- number: number;
33
- pull_requests: number[];
34
- }
35
- /**
36
- * Link a created pull request into a GitHub stack when its base is the head
37
- * branch of another open pull request. Add it to the stack of that pull
38
- * request when that one is on top, or create a stack from the chain of base
39
- * branches down to the trunk. Return the stack, or nothing when the pull
40
- * request is not stacked work or GitHub cannot stack it. Stacking is
41
- * optional, so failures never fail pull request creation.
42
- */
43
- export declare function stackGitHubPullRequest(ctx: ToolRegistrationHookContext, target: GitHubStackTarget): Promise<GitHubPullRequestStack | undefined>;
@@ -1,300 +0,0 @@
1
- import { type PluginEgress } from "@sentry/junior-plugin-api";
2
- /** Submit a comment or change-request review through GitHub's REST API. */
3
- export declare const gitHubSubmitPullRequestReviewTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
4
- repo: string;
5
- number: number;
6
- event: "COMMENT" | "REQUEST_CHANGES";
7
- body: string;
8
- comments?: {
9
- path: string;
10
- body: string;
11
- line: number;
12
- side: "LEFT" | "RIGHT";
13
- start_line?: number | undefined;
14
- start_side?: "LEFT" | "RIGHT" | undefined;
15
- }[] | undefined;
16
- }, {
17
- [x: string]: unknown;
18
- objectAnnotations?: {
19
- kind: "object";
20
- key: string;
21
- label: string;
22
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
23
- title: string;
24
- url: string | null;
25
- description?: string | undefined;
26
- status?: string | undefined;
27
- trigger?: string | undefined;
28
- warning?: string | undefined;
29
- displayType?: string | undefined;
30
- sourceUpdatedAt?: string | undefined;
31
- facts?: {
32
- type: "code_change";
33
- summary?: string | undefined;
34
- author?: string | undefined;
35
- sourceBranch?: string | undefined;
36
- targetBranch?: string | undefined;
37
- reviewers?: string[] | undefined;
38
- review?: "approved" | "changes_requested" | "required" | undefined;
39
- checks?: {
40
- passed: number;
41
- failed: number;
42
- pending: number;
43
- } | undefined;
44
- mergeable?: boolean | undefined;
45
- changedFiles?: number | undefined;
46
- additions?: number | undefined;
47
- deletions?: number | undefined;
48
- previewImageUrls?: string[] | undefined;
49
- } | {
50
- type: "task";
51
- summary?: string | undefined;
52
- assignees?: string[] | undefined;
53
- priority?: string | undefined;
54
- project?: string | undefined;
55
- cycle?: string | undefined;
56
- dueDate?: string | undefined;
57
- labels?: string[] | undefined;
58
- trend?: {
59
- label: string;
60
- points: number[];
61
- } | undefined;
62
- } | {
63
- type: "deployment";
64
- summary?: string | undefined;
65
- project?: string | undefined;
66
- environment?: string | undefined;
67
- revision?: string | undefined;
68
- branch?: string | undefined;
69
- } | {
70
- type: "calendar_event";
71
- summary?: string | undefined;
72
- when?: string | undefined;
73
- attendees?: string[] | undefined;
74
- } | {
75
- type: "conversation";
76
- summary?: string | undefined;
77
- participants?: string[] | undefined;
78
- lastActivityAt?: string | undefined;
79
- } | {
80
- type: "document";
81
- summary?: string | undefined;
82
- owner?: string | undefined;
83
- modifiedAt?: string | undefined;
84
- thumbnailUrl?: string | undefined;
85
- } | {
86
- type: "message";
87
- summary?: string | undefined;
88
- channel?: string | undefined;
89
- author?: string | undefined;
90
- sentAt?: string | undefined;
91
- } | {
92
- type: "web_page";
93
- summary?: string | undefined;
94
- siteName?: string | undefined;
95
- author?: string | undefined;
96
- media?: "image" | "video" | undefined;
97
- thumbnailUrl?: string | undefined;
98
- } | {
99
- type: "chart";
100
- summary?: string | undefined;
101
- display: "area" | "bar" | "line";
102
- yAxis: string;
103
- range: string;
104
- series: {
105
- label: string;
106
- points: number[];
107
- }[];
108
- } | {
109
- type: "event";
110
- summary?: string | undefined;
111
- level?: string | undefined;
112
- project?: string | undefined;
113
- release?: string | undefined;
114
- environment?: string | undefined;
115
- occurredAt?: string | undefined;
116
- } | {
117
- type: "trace";
118
- summary?: string | undefined;
119
- rootOp?: string | undefined;
120
- rootName?: string | undefined;
121
- durationMs: number;
122
- spanCount: number;
123
- errorCount: number;
124
- performanceIssueCount: number;
125
- projects: string[];
126
- spans: {
127
- op?: string | undefined;
128
- name: string;
129
- startMs: number;
130
- durationMs: number;
131
- issue?: boolean | undefined;
132
- }[];
133
- } | {
134
- type: "person";
135
- summary?: string | undefined;
136
- email?: string | undefined;
137
- slackHandle?: string | undefined;
138
- githubHandle?: string | undefined;
139
- avatarUrl?: string | undefined;
140
- } | undefined;
141
- }[] | undefined;
142
- reply?: {
143
- text: string;
144
- url?: string | undefined;
145
- } | undefined;
146
- truncated?: boolean | undefined;
147
- continuation?: {
148
- arguments: Record<string, unknown>;
149
- reason?: string | undefined;
150
- } | undefined;
151
- target: "submitPullRequestReview";
152
- repo: string;
153
- number: number;
154
- review_id: number;
155
- state: string;
156
- url: string;
157
- }, {
158
- [x: string]: unknown;
159
- objectAnnotations?: {
160
- kind: "object";
161
- key: string;
162
- label: string;
163
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
164
- title: string;
165
- url: string | null;
166
- description?: string | undefined;
167
- status?: string | undefined;
168
- trigger?: string | undefined;
169
- warning?: string | undefined;
170
- displayType?: string | undefined;
171
- sourceUpdatedAt?: string | undefined;
172
- facts?: {
173
- type: "code_change";
174
- summary?: string | undefined;
175
- author?: string | undefined;
176
- sourceBranch?: string | undefined;
177
- targetBranch?: string | undefined;
178
- reviewers?: string[] | undefined;
179
- review?: "approved" | "changes_requested" | "required" | undefined;
180
- checks?: {
181
- passed: number;
182
- failed: number;
183
- pending: number;
184
- } | undefined;
185
- mergeable?: boolean | undefined;
186
- changedFiles?: number | undefined;
187
- additions?: number | undefined;
188
- deletions?: number | undefined;
189
- previewImageUrls?: string[] | undefined;
190
- } | {
191
- type: "task";
192
- summary?: string | undefined;
193
- assignees?: string[] | undefined;
194
- priority?: string | undefined;
195
- project?: string | undefined;
196
- cycle?: string | undefined;
197
- dueDate?: string | undefined;
198
- labels?: string[] | undefined;
199
- trend?: {
200
- label: string;
201
- points: number[];
202
- } | undefined;
203
- } | {
204
- type: "deployment";
205
- summary?: string | undefined;
206
- project?: string | undefined;
207
- environment?: string | undefined;
208
- revision?: string | undefined;
209
- branch?: string | undefined;
210
- } | {
211
- type: "calendar_event";
212
- summary?: string | undefined;
213
- when?: string | undefined;
214
- attendees?: string[] | undefined;
215
- } | {
216
- type: "conversation";
217
- summary?: string | undefined;
218
- participants?: string[] | undefined;
219
- lastActivityAt?: string | undefined;
220
- } | {
221
- type: "document";
222
- summary?: string | undefined;
223
- owner?: string | undefined;
224
- modifiedAt?: string | undefined;
225
- thumbnailUrl?: string | undefined;
226
- } | {
227
- type: "message";
228
- summary?: string | undefined;
229
- channel?: string | undefined;
230
- author?: string | undefined;
231
- sentAt?: string | undefined;
232
- } | {
233
- type: "web_page";
234
- summary?: string | undefined;
235
- siteName?: string | undefined;
236
- author?: string | undefined;
237
- media?: "image" | "video" | undefined;
238
- thumbnailUrl?: string | undefined;
239
- } | {
240
- type: "chart";
241
- summary?: string | undefined;
242
- display: "area" | "bar" | "line";
243
- yAxis: string;
244
- range: string;
245
- series: {
246
- label: string;
247
- points: number[];
248
- }[];
249
- } | {
250
- type: "event";
251
- summary?: string | undefined;
252
- level?: string | undefined;
253
- project?: string | undefined;
254
- release?: string | undefined;
255
- environment?: string | undefined;
256
- occurredAt?: string | undefined;
257
- } | {
258
- type: "trace";
259
- summary?: string | undefined;
260
- rootOp?: string | undefined;
261
- rootName?: string | undefined;
262
- durationMs: number;
263
- spanCount: number;
264
- errorCount: number;
265
- performanceIssueCount: number;
266
- projects: string[];
267
- spans: {
268
- op?: string | undefined;
269
- name: string;
270
- startMs: number;
271
- durationMs: number;
272
- issue?: boolean | undefined;
273
- }[];
274
- } | {
275
- type: "person";
276
- summary?: string | undefined;
277
- email?: string | undefined;
278
- slackHandle?: string | undefined;
279
- githubHandle?: string | undefined;
280
- avatarUrl?: string | undefined;
281
- } | undefined;
282
- }[] | undefined;
283
- reply?: {
284
- text: string;
285
- url?: string | undefined;
286
- } | undefined;
287
- truncated?: boolean | undefined;
288
- continuation?: {
289
- arguments: Record<string, unknown>;
290
- reason?: string | undefined;
291
- } | undefined;
292
- target: "submitPullRequestReview";
293
- repo: string;
294
- number: number;
295
- review_id: number;
296
- state: string;
297
- url: string;
298
- }, {
299
- egress: PluginEgress;
300
- }>;