@sentry/junior-github 0.301.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 (97) hide show
  1. package/dist/events-CrbJHQ0w.js +2466 -0
  2. package/dist/index.d.ts +71 -3
  3. package/dist/index.js +7294 -7881
  4. package/dist/testing.d.ts +51 -1
  5. package/dist/testing.js +1 -6
  6. package/migrations/0012_pull_request_next_action.sql +5 -0
  7. package/migrations/meta/0012_snapshot.json +434 -0
  8. package/migrations/meta/_journal.json +7 -0
  9. package/package.json +11 -13
  10. package/skills/github-code/SKILL.md +1 -1
  11. package/skills/github-code/SPEC.md +2 -2
  12. package/skills/github-code/references/workflow.md +1 -1
  13. package/dist/account-links.d.ts +0 -8
  14. package/dist/annotations.d.ts +0 -33
  15. package/dist/chunk-YUF5P5I7.js +0 -2507
  16. package/dist/clone-command.d.ts +0 -5
  17. package/dist/configured-repository.d.ts +0 -10
  18. package/dist/conversation-title-context.d.ts +0 -20
  19. package/dist/credential-support.d.ts +0 -107
  20. package/dist/db/database.d.ts +0 -5
  21. package/dist/db/schema.d.ts +0 -1403
  22. package/dist/default-branch.d.ts +0 -15
  23. package/dist/egress-policy.d.ts +0 -25
  24. package/dist/events/comment.d.ts +0 -14
  25. package/dist/events/declarations.d.ts +0 -18
  26. package/dist/events/deployment.d.ts +0 -38
  27. package/dist/events/issue.d.ts +0 -42
  28. package/dist/events/pull-request.d.ts +0 -75
  29. package/dist/events/release.d.ts +0 -42
  30. package/dist/events/repository.d.ts +0 -23
  31. package/dist/events/resource-url.d.ts +0 -5
  32. package/dist/events/scope.d.ts +0 -13
  33. package/dist/git-config.d.ts +0 -52
  34. package/dist/github-status.d.ts +0 -16
  35. package/dist/graphql-documents.d.ts +0 -31
  36. package/dist/images.d.ts +0 -8
  37. package/dist/issue-outcomes/store.d.ts +0 -42
  38. package/dist/merge-conflict-checks/heartbeat.d.ts +0 -27
  39. package/dist/merge-conflict-checks/store.d.ts +0 -44
  40. package/dist/merge-conflict-checks/webhooks.d.ts +0 -23
  41. package/dist/object-facts.d.ts +0 -29
  42. package/dist/permissions.d.ts +0 -6
  43. package/dist/plugin.d.ts +0 -45
  44. package/dist/pull-request-outcomes/apply.d.ts +0 -22
  45. package/dist/pull-request-outcomes/commit-composition.d.ts +0 -6
  46. package/dist/pull-request-outcomes/reconcile.d.ts +0 -41
  47. package/dist/pull-request-outcomes/store.d.ts +0 -115
  48. package/dist/pull-request-requesters/draft-reviewers.d.ts +0 -15
  49. package/dist/pull-request-requesters/store.d.ts +0 -41
  50. package/dist/pull-request-review-policy.d.ts +0 -6
  51. package/dist/receive-pack-policy.d.ts +0 -21
  52. package/dist/reply-markdown.d.ts +0 -18
  53. package/dist/sandbox-paths.d.ts +0 -4
  54. package/dist/tool-support/attribution.d.ts +0 -52
  55. package/dist/tool-support/github-api.d.ts +0 -51
  56. package/dist/tool-support/github-text.d.ts +0 -8
  57. package/dist/tool-support/pull-request-description.d.ts +0 -8
  58. package/dist/tools/clone-repository.d.ts +0 -205
  59. package/dist/tools/comment-on-issue.d.ts +0 -205
  60. package/dist/tools/comment-on-pull-request.d.ts +0 -210
  61. package/dist/tools/create-issue.d.ts +0 -218
  62. package/dist/tools/create-pull-request.d.ts +0 -240
  63. package/dist/tools/footer.d.ts +0 -17
  64. package/dist/tools/get-deployment.d.ts +0 -264
  65. package/dist/tools/get-issue.d.ts +0 -248
  66. package/dist/tools/get-pull-request.d.ts +0 -255
  67. package/dist/tools/get-release.d.ts +0 -243
  68. package/dist/tools/get-repository.d.ts +0 -226
  69. package/dist/tools/get-status.d.ts +0 -213
  70. package/dist/tools/react-to-issue.d.ts +0 -205
  71. package/dist/tools/resolve-pull-request-review-thread.d.ts +0 -206
  72. package/dist/tools/stack-pull-request.d.ts +0 -43
  73. package/dist/tools/submit-pull-request-review.d.ts +0 -216
  74. package/dist/tools/update-issue-comment.d.ts +0 -206
  75. package/dist/tools/update-issue.d.ts +0 -249
  76. package/dist/tools/update-pull-request-feedback.d.ts +0 -242
  77. package/dist/tools/update-pull-request.d.ts +0 -255
  78. package/dist/tools.d.ts +0 -13
  79. package/dist/webhooks/check-suite.d.ts +0 -94
  80. package/dist/webhooks/event-targets.d.ts +0 -44
  81. package/dist/webhooks/events.d.ts +0 -23
  82. package/dist/webhooks/fail-open-log.d.ts +0 -10
  83. package/dist/webhooks/handler.d.ts +0 -55
  84. package/dist/webhooks/installation-requests.d.ts +0 -98
  85. package/dist/webhooks/issue-outcome.d.ts +0 -11
  86. package/dist/webhooks/issue-update.d.ts +0 -8
  87. package/dist/webhooks/merge-conflict.d.ts +0 -48
  88. package/dist/webhooks/ownership.d.ts +0 -14
  89. package/dist/webhooks/pull-request-activity.d.ts +0 -11
  90. package/dist/webhooks/pull-request-match-data.d.ts +0 -31
  91. package/dist/webhooks/pull-request-outcome.d.ts +0 -16
  92. package/dist/webhooks/pull-request-people.d.ts +0 -51
  93. package/dist/webhooks/pull-request-preview.d.ts +0 -12
  94. package/dist/webhooks/pull-request-ready-reviewers.d.ts +0 -25
  95. package/dist/webhooks/pull-request-ready.d.ts +0 -31
  96. package/dist/webhooks/pull-request-review-request.d.ts +0 -32
  97. package/dist/workspace-prepare.d.ts +0 -3
@@ -1,226 +0,0 @@
1
- import { type PluginEgress } from "@sentry/junior-plugin-api";
2
- /** Read one repository and expose its stable subscription identity. */
3
- export declare function createGitHubGetRepositoryTool(ctx: {
4
- egress: PluginEgress;
5
- events: {
6
- canSubscribe: boolean;
7
- };
8
- }): import("@sentry/junior-plugin-api").PluginToolDefinition<{
9
- repo: string;
10
- }, {
11
- objectAnnotations?: {
12
- kind: "object";
13
- key: string;
14
- label: string;
15
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
16
- title: string;
17
- url: string | null;
18
- description?: string | undefined;
19
- status?: string | undefined;
20
- trigger?: string | undefined;
21
- warning?: string | undefined;
22
- displayType?: string | undefined;
23
- sourceUpdatedAt?: string | undefined;
24
- facts?: {
25
- type: "code_change";
26
- summary?: string | undefined;
27
- author?: string | undefined;
28
- sourceBranch?: string | undefined;
29
- targetBranch?: string | undefined;
30
- reviewers?: string[] | undefined;
31
- review?: "approved" | "changes_requested" | "required" | undefined;
32
- checks?: {
33
- passed: number;
34
- failed: number;
35
- pending: number;
36
- } | undefined;
37
- mergeable?: boolean | undefined;
38
- changedFiles?: number | undefined;
39
- additions?: number | undefined;
40
- deletions?: number | undefined;
41
- previewImageUrls?: string[] | undefined;
42
- } | {
43
- type: "task";
44
- summary?: string | undefined;
45
- assignees?: string[] | undefined;
46
- priority?: string | undefined;
47
- project?: string | undefined;
48
- cycle?: string | undefined;
49
- dueDate?: string | undefined;
50
- labels?: string[] | undefined;
51
- } | {
52
- type: "deployment";
53
- summary?: string | undefined;
54
- project?: string | undefined;
55
- environment?: string | undefined;
56
- revision?: string | undefined;
57
- branch?: string | undefined;
58
- } | {
59
- type: "calendar_event";
60
- summary?: string | undefined;
61
- when?: string | undefined;
62
- attendees?: string[] | undefined;
63
- } | {
64
- type: "conversation";
65
- summary?: string | undefined;
66
- participants?: string[] | undefined;
67
- lastActivityAt?: string | undefined;
68
- } | {
69
- type: "document";
70
- summary?: string | undefined;
71
- owner?: string | undefined;
72
- modifiedAt?: string | undefined;
73
- } | {
74
- type: "message";
75
- summary?: string | undefined;
76
- channel?: string | undefined;
77
- author?: string | undefined;
78
- sentAt?: string | undefined;
79
- } | {
80
- type: "web_page";
81
- summary?: string | undefined;
82
- siteName?: string | undefined;
83
- author?: string | undefined;
84
- thumbnailUrl?: string | undefined;
85
- } | {
86
- type: "person";
87
- summary?: string | undefined;
88
- email?: string | undefined;
89
- slackHandle?: string | undefined;
90
- githubHandle?: string | undefined;
91
- avatarUrl?: string | undefined;
92
- } | undefined;
93
- }[] | undefined;
94
- reply?: {
95
- text: string;
96
- url?: string | undefined;
97
- } | undefined;
98
- truncated?: boolean | undefined;
99
- continuation?: {
100
- arguments: Record<string, unknown>;
101
- reason?: string | undefined;
102
- } | undefined;
103
- default_branch: string;
104
- description: string | null;
105
- full_name: string;
106
- private: boolean;
107
- subscribable?: {
108
- identifier: string;
109
- label: string;
110
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
111
- namespace: string;
112
- suggested_events?: string[] | undefined;
113
- supported_events: string[];
114
- type: string;
115
- } | undefined;
116
- url: string;
117
- target: "getRepository";
118
- }, {
119
- objectAnnotations?: {
120
- kind: "object";
121
- key: string;
122
- label: string;
123
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
124
- title: string;
125
- url: string | null;
126
- description?: string | undefined;
127
- status?: string | undefined;
128
- trigger?: string | undefined;
129
- warning?: string | undefined;
130
- displayType?: string | undefined;
131
- sourceUpdatedAt?: string | undefined;
132
- facts?: {
133
- type: "code_change";
134
- summary?: string | undefined;
135
- author?: string | undefined;
136
- sourceBranch?: string | undefined;
137
- targetBranch?: string | undefined;
138
- reviewers?: string[] | undefined;
139
- review?: "approved" | "changes_requested" | "required" | undefined;
140
- checks?: {
141
- passed: number;
142
- failed: number;
143
- pending: number;
144
- } | undefined;
145
- mergeable?: boolean | undefined;
146
- changedFiles?: number | undefined;
147
- additions?: number | undefined;
148
- deletions?: number | undefined;
149
- previewImageUrls?: string[] | undefined;
150
- } | {
151
- type: "task";
152
- summary?: string | undefined;
153
- assignees?: string[] | undefined;
154
- priority?: string | undefined;
155
- project?: string | undefined;
156
- cycle?: string | undefined;
157
- dueDate?: string | undefined;
158
- labels?: string[] | undefined;
159
- } | {
160
- type: "deployment";
161
- summary?: string | undefined;
162
- project?: string | undefined;
163
- environment?: string | undefined;
164
- revision?: string | undefined;
165
- branch?: string | undefined;
166
- } | {
167
- type: "calendar_event";
168
- summary?: string | undefined;
169
- when?: string | undefined;
170
- attendees?: string[] | undefined;
171
- } | {
172
- type: "conversation";
173
- summary?: string | undefined;
174
- participants?: string[] | undefined;
175
- lastActivityAt?: string | undefined;
176
- } | {
177
- type: "document";
178
- summary?: string | undefined;
179
- owner?: string | undefined;
180
- modifiedAt?: string | undefined;
181
- } | {
182
- type: "message";
183
- summary?: string | undefined;
184
- channel?: string | undefined;
185
- author?: string | undefined;
186
- sentAt?: string | undefined;
187
- } | {
188
- type: "web_page";
189
- summary?: string | undefined;
190
- siteName?: string | undefined;
191
- author?: string | undefined;
192
- thumbnailUrl?: string | undefined;
193
- } | {
194
- type: "person";
195
- summary?: string | undefined;
196
- email?: string | undefined;
197
- slackHandle?: string | undefined;
198
- githubHandle?: string | undefined;
199
- avatarUrl?: string | undefined;
200
- } | undefined;
201
- }[] | undefined;
202
- reply?: {
203
- text: string;
204
- url?: string | undefined;
205
- } | undefined;
206
- truncated?: boolean | undefined;
207
- continuation?: {
208
- arguments: Record<string, unknown>;
209
- reason?: string | undefined;
210
- } | undefined;
211
- default_branch: string;
212
- description: string | null;
213
- full_name: string;
214
- private: boolean;
215
- subscribable?: {
216
- identifier: string;
217
- label: string;
218
- match?: Record<string, string | number | boolean | (string | number)[]> | undefined;
219
- namespace: string;
220
- suggested_events?: string[] | undefined;
221
- supported_events: string[];
222
- type: string;
223
- } | undefined;
224
- url: string;
225
- target: "getRepository";
226
- }>;
@@ -1,213 +0,0 @@
1
- import { type PluginCache } from "@sentry/junior-plugin-api";
2
- /** Read open and recent GitHub incidents to tell outages from other failures. */
3
- export declare function createGitHubGetStatusTool(ctx: {
4
- cache: PluginCache;
5
- }): import("@sentry/junior-plugin-api").PluginToolDefinition<Record<string, never>, {
6
- [x: string]: unknown;
7
- objectAnnotations?: {
8
- kind: "object";
9
- key: string;
10
- label: string;
11
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
12
- title: string;
13
- url: string | null;
14
- description?: string | undefined;
15
- status?: string | undefined;
16
- trigger?: string | undefined;
17
- warning?: string | undefined;
18
- displayType?: string | undefined;
19
- sourceUpdatedAt?: string | undefined;
20
- facts?: {
21
- type: "code_change";
22
- summary?: string | undefined;
23
- author?: string | undefined;
24
- sourceBranch?: string | undefined;
25
- targetBranch?: string | undefined;
26
- reviewers?: string[] | undefined;
27
- review?: "approved" | "changes_requested" | "required" | undefined;
28
- checks?: {
29
- passed: number;
30
- failed: number;
31
- pending: number;
32
- } | undefined;
33
- mergeable?: boolean | undefined;
34
- changedFiles?: number | undefined;
35
- additions?: number | undefined;
36
- deletions?: number | undefined;
37
- previewImageUrls?: string[] | undefined;
38
- } | {
39
- type: "task";
40
- summary?: string | undefined;
41
- assignees?: string[] | undefined;
42
- priority?: string | undefined;
43
- project?: string | undefined;
44
- cycle?: string | undefined;
45
- dueDate?: string | undefined;
46
- labels?: string[] | undefined;
47
- } | {
48
- type: "deployment";
49
- summary?: string | undefined;
50
- project?: string | undefined;
51
- environment?: string | undefined;
52
- revision?: string | undefined;
53
- branch?: string | undefined;
54
- } | {
55
- type: "calendar_event";
56
- summary?: string | undefined;
57
- when?: string | undefined;
58
- attendees?: string[] | undefined;
59
- } | {
60
- type: "conversation";
61
- summary?: string | undefined;
62
- participants?: string[] | undefined;
63
- lastActivityAt?: string | undefined;
64
- } | {
65
- type: "document";
66
- summary?: string | undefined;
67
- owner?: string | undefined;
68
- modifiedAt?: string | undefined;
69
- } | {
70
- type: "message";
71
- summary?: string | undefined;
72
- channel?: string | undefined;
73
- author?: string | undefined;
74
- sentAt?: string | undefined;
75
- } | {
76
- type: "web_page";
77
- summary?: string | undefined;
78
- siteName?: string | undefined;
79
- author?: string | undefined;
80
- thumbnailUrl?: string | undefined;
81
- } | {
82
- type: "person";
83
- summary?: string | undefined;
84
- email?: string | undefined;
85
- slackHandle?: string | undefined;
86
- githubHandle?: string | undefined;
87
- avatarUrl?: string | undefined;
88
- } | undefined;
89
- }[] | undefined;
90
- reply?: {
91
- text: string;
92
- url?: string | undefined;
93
- } | undefined;
94
- truncated?: boolean | undefined;
95
- continuation?: {
96
- arguments: Record<string, unknown>;
97
- reason?: string | undefined;
98
- } | undefined;
99
- target: "getStatus";
100
- incidents: {
101
- components: string[];
102
- impact: string;
103
- name: string;
104
- resolved_at?: string | undefined;
105
- started_at: string;
106
- status: string;
107
- url: string;
108
- }[];
109
- }, {
110
- [x: string]: unknown;
111
- objectAnnotations?: {
112
- kind: "object";
113
- key: string;
114
- label: string;
115
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
116
- title: string;
117
- url: string | null;
118
- description?: string | undefined;
119
- status?: string | undefined;
120
- trigger?: string | undefined;
121
- warning?: string | undefined;
122
- displayType?: string | undefined;
123
- sourceUpdatedAt?: string | undefined;
124
- facts?: {
125
- type: "code_change";
126
- summary?: string | undefined;
127
- author?: string | undefined;
128
- sourceBranch?: string | undefined;
129
- targetBranch?: string | undefined;
130
- reviewers?: string[] | undefined;
131
- review?: "approved" | "changes_requested" | "required" | undefined;
132
- checks?: {
133
- passed: number;
134
- failed: number;
135
- pending: number;
136
- } | undefined;
137
- mergeable?: boolean | undefined;
138
- changedFiles?: number | undefined;
139
- additions?: number | undefined;
140
- deletions?: number | undefined;
141
- previewImageUrls?: string[] | undefined;
142
- } | {
143
- type: "task";
144
- summary?: string | undefined;
145
- assignees?: string[] | undefined;
146
- priority?: string | undefined;
147
- project?: string | undefined;
148
- cycle?: string | undefined;
149
- dueDate?: string | undefined;
150
- labels?: string[] | undefined;
151
- } | {
152
- type: "deployment";
153
- summary?: string | undefined;
154
- project?: string | undefined;
155
- environment?: string | undefined;
156
- revision?: string | undefined;
157
- branch?: string | undefined;
158
- } | {
159
- type: "calendar_event";
160
- summary?: string | undefined;
161
- when?: string | undefined;
162
- attendees?: string[] | undefined;
163
- } | {
164
- type: "conversation";
165
- summary?: string | undefined;
166
- participants?: string[] | undefined;
167
- lastActivityAt?: string | undefined;
168
- } | {
169
- type: "document";
170
- summary?: string | undefined;
171
- owner?: string | undefined;
172
- modifiedAt?: string | undefined;
173
- } | {
174
- type: "message";
175
- summary?: string | undefined;
176
- channel?: string | undefined;
177
- author?: string | undefined;
178
- sentAt?: string | undefined;
179
- } | {
180
- type: "web_page";
181
- summary?: string | undefined;
182
- siteName?: string | undefined;
183
- author?: string | undefined;
184
- thumbnailUrl?: string | undefined;
185
- } | {
186
- type: "person";
187
- summary?: string | undefined;
188
- email?: string | undefined;
189
- slackHandle?: string | undefined;
190
- githubHandle?: string | undefined;
191
- avatarUrl?: string | undefined;
192
- } | undefined;
193
- }[] | undefined;
194
- reply?: {
195
- text: string;
196
- url?: string | undefined;
197
- } | undefined;
198
- truncated?: boolean | undefined;
199
- continuation?: {
200
- arguments: Record<string, unknown>;
201
- reason?: string | undefined;
202
- } | undefined;
203
- target: "getStatus";
204
- incidents: {
205
- components: string[];
206
- impact: string;
207
- name: string;
208
- resolved_at?: string | undefined;
209
- started_at: string;
210
- status: string;
211
- url: string;
212
- }[];
213
- }>;
@@ -1,205 +0,0 @@
1
- import { type PluginEgress } from "@sentry/junior-plugin-api";
2
- /** Add the App bot's reaction to an issue or pull request itself. */
3
- export declare function createGitHubReactToIssueTool(egress: PluginEgress): import("@sentry/junior-plugin-api").PluginToolDefinition<{
4
- repo: string;
5
- number: number;
6
- content: "+1" | "-1" | "confused" | "eyes" | "heart" | "hooray" | "laugh" | "rocket";
7
- }, {
8
- [x: string]: unknown;
9
- objectAnnotations?: {
10
- kind: "object";
11
- key: string;
12
- label: string;
13
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "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
- } | {
50
- type: "deployment";
51
- summary?: string | undefined;
52
- project?: string | undefined;
53
- environment?: string | undefined;
54
- revision?: string | undefined;
55
- branch?: string | undefined;
56
- } | {
57
- type: "calendar_event";
58
- summary?: string | undefined;
59
- when?: string | undefined;
60
- attendees?: string[] | undefined;
61
- } | {
62
- type: "conversation";
63
- summary?: string | undefined;
64
- participants?: string[] | undefined;
65
- lastActivityAt?: string | undefined;
66
- } | {
67
- type: "document";
68
- summary?: string | undefined;
69
- owner?: string | undefined;
70
- modifiedAt?: string | undefined;
71
- } | {
72
- type: "message";
73
- summary?: string | undefined;
74
- channel?: string | undefined;
75
- author?: string | undefined;
76
- sentAt?: string | undefined;
77
- } | {
78
- type: "web_page";
79
- summary?: string | undefined;
80
- siteName?: string | undefined;
81
- author?: string | undefined;
82
- thumbnailUrl?: string | undefined;
83
- } | {
84
- type: "person";
85
- summary?: string | undefined;
86
- email?: string | undefined;
87
- slackHandle?: string | undefined;
88
- githubHandle?: string | undefined;
89
- avatarUrl?: string | undefined;
90
- } | undefined;
91
- }[] | undefined;
92
- reply?: {
93
- text: string;
94
- url?: string | undefined;
95
- } | undefined;
96
- truncated?: boolean | undefined;
97
- continuation?: {
98
- arguments: Record<string, unknown>;
99
- reason?: string | undefined;
100
- } | undefined;
101
- target: "reactToIssue";
102
- repo: string;
103
- number: number;
104
- content: "+1" | "-1" | "confused" | "eyes" | "heart" | "hooray" | "laugh" | "rocket";
105
- reaction_id: number;
106
- }, {
107
- [x: string]: unknown;
108
- objectAnnotations?: {
109
- kind: "object";
110
- key: string;
111
- label: string;
112
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
113
- title: string;
114
- url: string | null;
115
- description?: string | undefined;
116
- status?: string | undefined;
117
- trigger?: string | undefined;
118
- warning?: string | undefined;
119
- displayType?: string | undefined;
120
- sourceUpdatedAt?: string | undefined;
121
- facts?: {
122
- type: "code_change";
123
- summary?: string | undefined;
124
- author?: string | undefined;
125
- sourceBranch?: string | undefined;
126
- targetBranch?: string | undefined;
127
- reviewers?: string[] | undefined;
128
- review?: "approved" | "changes_requested" | "required" | undefined;
129
- checks?: {
130
- passed: number;
131
- failed: number;
132
- pending: number;
133
- } | undefined;
134
- mergeable?: boolean | undefined;
135
- changedFiles?: number | undefined;
136
- additions?: number | undefined;
137
- deletions?: number | undefined;
138
- previewImageUrls?: string[] | undefined;
139
- } | {
140
- type: "task";
141
- summary?: string | undefined;
142
- assignees?: string[] | undefined;
143
- priority?: string | undefined;
144
- project?: string | undefined;
145
- cycle?: string | undefined;
146
- dueDate?: string | undefined;
147
- labels?: string[] | undefined;
148
- } | {
149
- type: "deployment";
150
- summary?: string | undefined;
151
- project?: string | undefined;
152
- environment?: string | undefined;
153
- revision?: string | undefined;
154
- branch?: string | undefined;
155
- } | {
156
- type: "calendar_event";
157
- summary?: string | undefined;
158
- when?: string | undefined;
159
- attendees?: string[] | undefined;
160
- } | {
161
- type: "conversation";
162
- summary?: string | undefined;
163
- participants?: string[] | undefined;
164
- lastActivityAt?: string | undefined;
165
- } | {
166
- type: "document";
167
- summary?: string | undefined;
168
- owner?: string | undefined;
169
- modifiedAt?: string | undefined;
170
- } | {
171
- type: "message";
172
- summary?: string | undefined;
173
- channel?: string | undefined;
174
- author?: string | undefined;
175
- sentAt?: string | undefined;
176
- } | {
177
- type: "web_page";
178
- summary?: string | undefined;
179
- siteName?: string | undefined;
180
- author?: string | undefined;
181
- thumbnailUrl?: string | undefined;
182
- } | {
183
- type: "person";
184
- summary?: string | undefined;
185
- email?: string | undefined;
186
- slackHandle?: string | undefined;
187
- githubHandle?: string | undefined;
188
- avatarUrl?: string | undefined;
189
- } | undefined;
190
- }[] | undefined;
191
- reply?: {
192
- text: string;
193
- url?: string | undefined;
194
- } | undefined;
195
- truncated?: boolean | undefined;
196
- continuation?: {
197
- arguments: Record<string, unknown>;
198
- reason?: string | undefined;
199
- } | undefined;
200
- target: "reactToIssue";
201
- repo: string;
202
- number: number;
203
- content: "+1" | "-1" | "confused" | "eyes" | "heart" | "hooray" | "laugh" | "rocket";
204
- reaction_id: number;
205
- }>;