@sentry/junior-github 0.302.0 → 0.303.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-CrbJHQ0w.js +2466 -0
  2. package/dist/index.d.ts +71 -3
  3. package/dist/index.js +7185 -8133
  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,322 +0,0 @@
1
- import { type ToolRegistrationHookContext } from "@sentry/junior-plugin-api";
2
- import { type GitHubPullRequestSubscriptionConfig } from "../events/pull-request.js";
3
- /** Own PR creation so provider writes use host egress and the footer stays deterministic. */
4
- export declare function createGitHubPullRequestTool(subscriptionConfig?: GitHubPullRequestSubscriptionConfig,
5
- /** Set when the description check experiment is on. */
6
- descriptionChecks?: boolean): import("@sentry/junior-plugin-api").PluginToolDefinition<{
7
- repo: string;
8
- title: string;
9
- head: string;
10
- base: string;
11
- body?: string | undefined;
12
- draft?: boolean | undefined;
13
- reviewers?: string[] | undefined;
14
- }, {
15
- objectAnnotations?: {
16
- kind: "object";
17
- key: string;
18
- label: string;
19
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
20
- title: string;
21
- url: string | null;
22
- description?: string | undefined;
23
- status?: string | undefined;
24
- trigger?: string | undefined;
25
- warning?: string | undefined;
26
- displayType?: string | undefined;
27
- sourceUpdatedAt?: string | undefined;
28
- facts?: {
29
- type: "code_change";
30
- summary?: string | undefined;
31
- author?: string | undefined;
32
- sourceBranch?: string | undefined;
33
- targetBranch?: string | undefined;
34
- reviewers?: string[] | undefined;
35
- review?: "approved" | "changes_requested" | "required" | undefined;
36
- checks?: {
37
- passed: number;
38
- failed: number;
39
- pending: number;
40
- } | undefined;
41
- mergeable?: boolean | undefined;
42
- changedFiles?: number | undefined;
43
- additions?: number | undefined;
44
- deletions?: number | undefined;
45
- previewImageUrls?: string[] | undefined;
46
- } | {
47
- type: "task";
48
- summary?: string | undefined;
49
- assignees?: string[] | undefined;
50
- priority?: string | undefined;
51
- project?: string | undefined;
52
- cycle?: string | undefined;
53
- dueDate?: string | undefined;
54
- labels?: string[] | undefined;
55
- trend?: {
56
- label: string;
57
- points: number[];
58
- } | undefined;
59
- } | {
60
- type: "deployment";
61
- summary?: string | undefined;
62
- project?: string | undefined;
63
- environment?: string | undefined;
64
- revision?: string | undefined;
65
- branch?: string | undefined;
66
- } | {
67
- type: "calendar_event";
68
- summary?: string | undefined;
69
- when?: string | undefined;
70
- attendees?: string[] | undefined;
71
- } | {
72
- type: "conversation";
73
- summary?: string | undefined;
74
- participants?: string[] | undefined;
75
- lastActivityAt?: string | undefined;
76
- } | {
77
- type: "document";
78
- summary?: string | undefined;
79
- owner?: string | undefined;
80
- modifiedAt?: string | undefined;
81
- thumbnailUrl?: string | undefined;
82
- } | {
83
- type: "message";
84
- summary?: string | undefined;
85
- channel?: string | undefined;
86
- author?: string | undefined;
87
- sentAt?: string | undefined;
88
- } | {
89
- type: "web_page";
90
- summary?: string | undefined;
91
- siteName?: string | undefined;
92
- author?: string | undefined;
93
- media?: "image" | "video" | undefined;
94
- thumbnailUrl?: string | undefined;
95
- } | {
96
- type: "chart";
97
- summary?: string | undefined;
98
- display: "area" | "bar" | "line";
99
- yAxis: string;
100
- range: string;
101
- series: {
102
- label: string;
103
- points: number[];
104
- }[];
105
- } | {
106
- type: "event";
107
- summary?: string | undefined;
108
- level?: string | undefined;
109
- project?: string | undefined;
110
- release?: string | undefined;
111
- environment?: string | undefined;
112
- occurredAt?: string | undefined;
113
- } | {
114
- type: "trace";
115
- summary?: string | undefined;
116
- rootOp?: string | undefined;
117
- rootName?: string | undefined;
118
- durationMs: number;
119
- spanCount: number;
120
- errorCount: number;
121
- performanceIssueCount: number;
122
- projects: string[];
123
- spans: {
124
- op?: string | undefined;
125
- name: string;
126
- startMs: number;
127
- durationMs: number;
128
- issue?: boolean | undefined;
129
- }[];
130
- } | {
131
- type: "person";
132
- summary?: string | undefined;
133
- email?: string | undefined;
134
- slackHandle?: string | undefined;
135
- githubHandle?: string | undefined;
136
- avatarUrl?: string | undefined;
137
- } | undefined;
138
- }[] | undefined;
139
- reply?: {
140
- text: string;
141
- url?: string | undefined;
142
- } | undefined;
143
- truncated?: boolean | undefined;
144
- continuation?: {
145
- arguments: Record<string, unknown>;
146
- reason?: string | undefined;
147
- } | undefined;
148
- number: number;
149
- url: string;
150
- stack?: {
151
- number: number;
152
- pull_requests: number[];
153
- } | undefined;
154
- subscribable?: {
155
- identifier: string;
156
- label: string;
157
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
158
- namespace: string;
159
- suggested_events?: string[] | undefined;
160
- supported_events: string[];
161
- type: string;
162
- } | undefined;
163
- subscription?: {
164
- events: string[];
165
- id: string;
166
- } | undefined;
167
- target: "createPullRequest";
168
- }, {
169
- objectAnnotations?: {
170
- kind: "object";
171
- key: string;
172
- label: string;
173
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
174
- title: string;
175
- url: string | null;
176
- description?: string | undefined;
177
- status?: string | undefined;
178
- trigger?: string | undefined;
179
- warning?: string | undefined;
180
- displayType?: string | undefined;
181
- sourceUpdatedAt?: string | undefined;
182
- facts?: {
183
- type: "code_change";
184
- summary?: string | undefined;
185
- author?: string | undefined;
186
- sourceBranch?: string | undefined;
187
- targetBranch?: string | undefined;
188
- reviewers?: string[] | undefined;
189
- review?: "approved" | "changes_requested" | "required" | undefined;
190
- checks?: {
191
- passed: number;
192
- failed: number;
193
- pending: number;
194
- } | undefined;
195
- mergeable?: boolean | undefined;
196
- changedFiles?: number | undefined;
197
- additions?: number | undefined;
198
- deletions?: number | undefined;
199
- previewImageUrls?: string[] | undefined;
200
- } | {
201
- type: "task";
202
- summary?: string | undefined;
203
- assignees?: string[] | undefined;
204
- priority?: string | undefined;
205
- project?: string | undefined;
206
- cycle?: string | undefined;
207
- dueDate?: string | undefined;
208
- labels?: string[] | undefined;
209
- trend?: {
210
- label: string;
211
- points: number[];
212
- } | undefined;
213
- } | {
214
- type: "deployment";
215
- summary?: string | undefined;
216
- project?: string | undefined;
217
- environment?: string | undefined;
218
- revision?: string | undefined;
219
- branch?: string | undefined;
220
- } | {
221
- type: "calendar_event";
222
- summary?: string | undefined;
223
- when?: string | undefined;
224
- attendees?: string[] | undefined;
225
- } | {
226
- type: "conversation";
227
- summary?: string | undefined;
228
- participants?: string[] | undefined;
229
- lastActivityAt?: string | undefined;
230
- } | {
231
- type: "document";
232
- summary?: string | undefined;
233
- owner?: string | undefined;
234
- modifiedAt?: string | undefined;
235
- thumbnailUrl?: string | undefined;
236
- } | {
237
- type: "message";
238
- summary?: string | undefined;
239
- channel?: string | undefined;
240
- author?: string | undefined;
241
- sentAt?: string | undefined;
242
- } | {
243
- type: "web_page";
244
- summary?: string | undefined;
245
- siteName?: string | undefined;
246
- author?: string | undefined;
247
- media?: "image" | "video" | undefined;
248
- thumbnailUrl?: string | undefined;
249
- } | {
250
- type: "chart";
251
- summary?: string | undefined;
252
- display: "area" | "bar" | "line";
253
- yAxis: string;
254
- range: string;
255
- series: {
256
- label: string;
257
- points: number[];
258
- }[];
259
- } | {
260
- type: "event";
261
- summary?: string | undefined;
262
- level?: string | undefined;
263
- project?: string | undefined;
264
- release?: string | undefined;
265
- environment?: string | undefined;
266
- occurredAt?: string | undefined;
267
- } | {
268
- type: "trace";
269
- summary?: string | undefined;
270
- rootOp?: string | undefined;
271
- rootName?: string | undefined;
272
- durationMs: number;
273
- spanCount: number;
274
- errorCount: number;
275
- performanceIssueCount: number;
276
- projects: string[];
277
- spans: {
278
- op?: string | undefined;
279
- name: string;
280
- startMs: number;
281
- durationMs: number;
282
- issue?: boolean | undefined;
283
- }[];
284
- } | {
285
- type: "person";
286
- summary?: string | undefined;
287
- email?: string | undefined;
288
- slackHandle?: string | undefined;
289
- githubHandle?: string | undefined;
290
- avatarUrl?: string | undefined;
291
- } | undefined;
292
- }[] | undefined;
293
- reply?: {
294
- text: string;
295
- url?: string | undefined;
296
- } | undefined;
297
- truncated?: boolean | undefined;
298
- continuation?: {
299
- arguments: Record<string, unknown>;
300
- reason?: string | undefined;
301
- } | undefined;
302
- number: number;
303
- url: string;
304
- stack?: {
305
- number: number;
306
- pull_requests: number[];
307
- } | undefined;
308
- subscribable?: {
309
- identifier: string;
310
- label: string;
311
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
312
- namespace: string;
313
- suggested_events?: string[] | undefined;
314
- supported_events: string[];
315
- type: string;
316
- } | undefined;
317
- subscription?: {
318
- events: string[];
319
- id: string;
320
- } | undefined;
321
- target: "createPullRequest";
322
- }, ToolRegistrationHookContext>;
@@ -1,17 +0,0 @@
1
- export declare const GITHUB_SESSION_FOOTER_START = "<!-- junior-session-footer:start -->";
2
- export declare const GITHUB_SESSION_FOOTER_END = "<!-- junior-session-footer:end -->";
3
- export declare function sentryConversationUrl(conversationId: string): string | undefined;
4
- /** Build the conversation session footer, preferring a host-provided dashboard link. */
5
- export declare function githubConversationFooter(conversationId: string, dashboardUrl?: string): string | undefined;
6
- /** Read opaque native conversation ids from runtime-owned GitHub footers. */
7
- export declare function githubConversationIds(body: string | null | undefined): string[];
8
- /** Read same- and cross-repository issue references from a pull request body. */
9
- export declare function githubLinkedIssues(body: string | null | undefined, repositoryFullName: string): {
10
- number: number;
11
- repositoryFullName: string;
12
- }[];
13
- /**
14
- * Append (or replace an existing) conversation session footer to a GitHub body string.
15
- * Without a dashboard or Sentry link, returns the body unchanged (existing footer stripped).
16
- */
17
- export declare function appendGitHubFooter(body: string, conversationId: string, dashboardUrl?: string): string;
@@ -1,346 +0,0 @@
1
- import { type PluginEgress } from "@sentry/junior-plugin-api";
2
- /** Read deployment metadata and expose its stable subscription identity. */
3
- export declare const gitHubGetDeploymentTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
4
- repo: string;
5
- commit_sha: string;
6
- environment?: string | 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
- commit_sha: string;
142
- deployment: {
143
- created_at: string;
144
- creator: string | null;
145
- description: string | null;
146
- environment: string;
147
- id: number;
148
- latest_status: {
149
- created_at: string;
150
- creator: string | null;
151
- description: string | null;
152
- environment_url: string | null;
153
- id: number;
154
- log_url: string | null;
155
- state: string;
156
- } | null;
157
- ref: string;
158
- sha: string;
159
- updated_at: string;
160
- url: string;
161
- } | null;
162
- environment: string | null;
163
- repo: string;
164
- subscribable?: {
165
- identifier: string;
166
- label: string;
167
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
168
- namespace: string;
169
- suggested_events?: string[] | undefined;
170
- supported_events: string[];
171
- type: string;
172
- } | undefined;
173
- target: "getDeployment";
174
- }, {
175
- objectAnnotations?: {
176
- kind: "object";
177
- key: string;
178
- label: string;
179
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
180
- title: string;
181
- url: string | null;
182
- description?: string | undefined;
183
- status?: string | undefined;
184
- trigger?: string | undefined;
185
- warning?: string | undefined;
186
- displayType?: string | undefined;
187
- sourceUpdatedAt?: string | undefined;
188
- facts?: {
189
- type: "code_change";
190
- summary?: string | undefined;
191
- author?: string | undefined;
192
- sourceBranch?: string | undefined;
193
- targetBranch?: string | undefined;
194
- reviewers?: string[] | undefined;
195
- review?: "approved" | "changes_requested" | "required" | undefined;
196
- checks?: {
197
- passed: number;
198
- failed: number;
199
- pending: number;
200
- } | undefined;
201
- mergeable?: boolean | undefined;
202
- changedFiles?: number | undefined;
203
- additions?: number | undefined;
204
- deletions?: number | undefined;
205
- previewImageUrls?: string[] | undefined;
206
- } | {
207
- type: "task";
208
- summary?: string | undefined;
209
- assignees?: string[] | undefined;
210
- priority?: string | undefined;
211
- project?: string | undefined;
212
- cycle?: string | undefined;
213
- dueDate?: string | undefined;
214
- labels?: string[] | undefined;
215
- trend?: {
216
- label: string;
217
- points: number[];
218
- } | undefined;
219
- } | {
220
- type: "deployment";
221
- summary?: string | undefined;
222
- project?: string | undefined;
223
- environment?: string | undefined;
224
- revision?: string | undefined;
225
- branch?: string | undefined;
226
- } | {
227
- type: "calendar_event";
228
- summary?: string | undefined;
229
- when?: string | undefined;
230
- attendees?: string[] | undefined;
231
- } | {
232
- type: "conversation";
233
- summary?: string | undefined;
234
- participants?: string[] | undefined;
235
- lastActivityAt?: string | undefined;
236
- } | {
237
- type: "document";
238
- summary?: string | undefined;
239
- owner?: string | undefined;
240
- modifiedAt?: string | undefined;
241
- thumbnailUrl?: string | undefined;
242
- } | {
243
- type: "message";
244
- summary?: string | undefined;
245
- channel?: string | undefined;
246
- author?: string | undefined;
247
- sentAt?: string | undefined;
248
- } | {
249
- type: "web_page";
250
- summary?: string | undefined;
251
- siteName?: string | undefined;
252
- author?: string | undefined;
253
- media?: "image" | "video" | undefined;
254
- thumbnailUrl?: string | undefined;
255
- } | {
256
- type: "chart";
257
- summary?: string | undefined;
258
- display: "area" | "bar" | "line";
259
- yAxis: string;
260
- range: string;
261
- series: {
262
- label: string;
263
- points: number[];
264
- }[];
265
- } | {
266
- type: "event";
267
- summary?: string | undefined;
268
- level?: string | undefined;
269
- project?: string | undefined;
270
- release?: string | undefined;
271
- environment?: string | undefined;
272
- occurredAt?: string | undefined;
273
- } | {
274
- type: "trace";
275
- summary?: string | undefined;
276
- rootOp?: string | undefined;
277
- rootName?: string | undefined;
278
- durationMs: number;
279
- spanCount: number;
280
- errorCount: number;
281
- performanceIssueCount: number;
282
- projects: string[];
283
- spans: {
284
- op?: string | undefined;
285
- name: string;
286
- startMs: number;
287
- durationMs: number;
288
- issue?: boolean | undefined;
289
- }[];
290
- } | {
291
- type: "person";
292
- summary?: string | undefined;
293
- email?: string | undefined;
294
- slackHandle?: string | undefined;
295
- githubHandle?: string | undefined;
296
- avatarUrl?: string | undefined;
297
- } | undefined;
298
- }[] | undefined;
299
- reply?: {
300
- text: string;
301
- url?: string | undefined;
302
- } | undefined;
303
- truncated?: boolean | undefined;
304
- continuation?: {
305
- arguments: Record<string, unknown>;
306
- reason?: string | undefined;
307
- } | undefined;
308
- commit_sha: string;
309
- deployment: {
310
- created_at: string;
311
- creator: string | null;
312
- description: string | null;
313
- environment: string;
314
- id: number;
315
- latest_status: {
316
- created_at: string;
317
- creator: string | null;
318
- description: string | null;
319
- environment_url: string | null;
320
- id: number;
321
- log_url: string | null;
322
- state: string;
323
- } | null;
324
- ref: string;
325
- sha: string;
326
- updated_at: string;
327
- url: string;
328
- } | null;
329
- environment: string | null;
330
- repo: string;
331
- subscribable?: {
332
- identifier: string;
333
- label: string;
334
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
335
- namespace: string;
336
- suggested_events?: string[] | undefined;
337
- supported_events: string[];
338
- type: string;
339
- } | undefined;
340
- target: "getDeployment";
341
- }, {
342
- egress: PluginEgress;
343
- events: {
344
- canSubscribe: boolean;
345
- };
346
- }>;