@sentry/junior-google 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.
@@ -1,316 +0,0 @@
1
- import { type GoogleToolContext } from "./shared";
2
- /**
3
- * Cancel an event that Junior organizes and email the attendees.
4
- *
5
- * Junior can only delete events on its own calendar, and only for a requester
6
- * who is invited. Events that other people organize stay out of reach: the
7
- * `calendar.events.owned` scope and the organizer check both enforce this.
8
- */
9
- export declare const cancelCalendarEventTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
10
- event_id: string;
11
- time_zone?: string | undefined;
12
- }, {
13
- [x: string]: unknown;
14
- objectAnnotations?: {
15
- kind: "object";
16
- key: string;
17
- label: string;
18
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
19
- title: string;
20
- url: string | null;
21
- description?: string | undefined;
22
- status?: string | undefined;
23
- trigger?: string | undefined;
24
- warning?: string | undefined;
25
- displayType?: string | undefined;
26
- sourceUpdatedAt?: string | undefined;
27
- facts?: {
28
- type: "code_change";
29
- summary?: string | undefined;
30
- author?: string | undefined;
31
- sourceBranch?: string | undefined;
32
- targetBranch?: string | undefined;
33
- reviewers?: string[] | undefined;
34
- review?: "approved" | "changes_requested" | "required" | undefined;
35
- checks?: {
36
- passed: number;
37
- failed: number;
38
- pending: number;
39
- } | undefined;
40
- mergeable?: boolean | undefined;
41
- changedFiles?: number | undefined;
42
- additions?: number | undefined;
43
- deletions?: number | undefined;
44
- previewImageUrls?: string[] | undefined;
45
- } | {
46
- type: "task";
47
- summary?: string | undefined;
48
- assignees?: string[] | undefined;
49
- priority?: string | undefined;
50
- project?: string | undefined;
51
- cycle?: string | undefined;
52
- dueDate?: string | undefined;
53
- labels?: string[] | undefined;
54
- trend?: {
55
- label: string;
56
- points: number[];
57
- } | undefined;
58
- } | {
59
- type: "deployment";
60
- summary?: string | undefined;
61
- project?: string | undefined;
62
- environment?: string | undefined;
63
- revision?: string | undefined;
64
- branch?: string | undefined;
65
- } | {
66
- type: "calendar_event";
67
- summary?: string | undefined;
68
- when?: string | undefined;
69
- attendees?: string[] | undefined;
70
- } | {
71
- type: "conversation";
72
- summary?: string | undefined;
73
- participants?: string[] | undefined;
74
- lastActivityAt?: string | undefined;
75
- } | {
76
- type: "document";
77
- summary?: string | undefined;
78
- owner?: string | undefined;
79
- modifiedAt?: string | undefined;
80
- thumbnailUrl?: string | undefined;
81
- } | {
82
- type: "message";
83
- summary?: string | undefined;
84
- channel?: string | undefined;
85
- author?: string | undefined;
86
- sentAt?: string | undefined;
87
- } | {
88
- type: "web_page";
89
- summary?: string | undefined;
90
- siteName?: string | undefined;
91
- author?: string | undefined;
92
- media?: "image" | "video" | undefined;
93
- thumbnailUrl?: string | undefined;
94
- } | {
95
- type: "chart";
96
- summary?: string | undefined;
97
- display: "area" | "bar" | "line";
98
- yAxis: string;
99
- range: string;
100
- series: {
101
- label: string;
102
- points: number[];
103
- }[];
104
- } | {
105
- type: "event";
106
- summary?: string | undefined;
107
- level?: string | undefined;
108
- project?: string | undefined;
109
- release?: string | undefined;
110
- environment?: string | undefined;
111
- occurredAt?: string | undefined;
112
- } | {
113
- type: "trace";
114
- summary?: string | undefined;
115
- rootOp?: string | undefined;
116
- rootName?: string | undefined;
117
- durationMs: number;
118
- spanCount: number;
119
- errorCount: number;
120
- performanceIssueCount: number;
121
- projects: string[];
122
- spans: {
123
- op?: string | undefined;
124
- name: string;
125
- startMs: number;
126
- durationMs: number;
127
- issue?: boolean | undefined;
128
- }[];
129
- } | {
130
- type: "person";
131
- summary?: string | undefined;
132
- email?: string | undefined;
133
- slackHandle?: string | undefined;
134
- githubHandle?: string | undefined;
135
- avatarUrl?: string | undefined;
136
- } | undefined;
137
- }[] | undefined;
138
- reply?: {
139
- text: string;
140
- url?: string | undefined;
141
- } | undefined;
142
- truncated?: boolean | undefined;
143
- continuation?: {
144
- arguments: Record<string, unknown>;
145
- reason?: string | undefined;
146
- } | undefined;
147
- attendees?: {
148
- email: string;
149
- optional?: boolean | undefined;
150
- response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
151
- }[] | undefined;
152
- end?: string | undefined;
153
- event_id: string;
154
- label?: string | undefined;
155
- location?: string | undefined;
156
- repeats?: boolean | undefined;
157
- series_event_id?: string | undefined;
158
- start?: string | undefined;
159
- title?: string | undefined;
160
- url?: string | undefined;
161
- video_call_url?: string | undefined;
162
- target: "cancelCalendarEvent";
163
- cancelled: boolean;
164
- }, {
165
- [x: string]: unknown;
166
- objectAnnotations?: {
167
- kind: "object";
168
- key: string;
169
- label: string;
170
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
171
- title: string;
172
- url: string | null;
173
- description?: string | undefined;
174
- status?: string | undefined;
175
- trigger?: string | undefined;
176
- warning?: string | undefined;
177
- displayType?: string | undefined;
178
- sourceUpdatedAt?: string | undefined;
179
- facts?: {
180
- type: "code_change";
181
- summary?: string | undefined;
182
- author?: string | undefined;
183
- sourceBranch?: string | undefined;
184
- targetBranch?: string | undefined;
185
- reviewers?: string[] | undefined;
186
- review?: "approved" | "changes_requested" | "required" | undefined;
187
- checks?: {
188
- passed: number;
189
- failed: number;
190
- pending: number;
191
- } | undefined;
192
- mergeable?: boolean | undefined;
193
- changedFiles?: number | undefined;
194
- additions?: number | undefined;
195
- deletions?: number | undefined;
196
- previewImageUrls?: string[] | undefined;
197
- } | {
198
- type: "task";
199
- summary?: string | undefined;
200
- assignees?: string[] | undefined;
201
- priority?: string | undefined;
202
- project?: string | undefined;
203
- cycle?: string | undefined;
204
- dueDate?: string | undefined;
205
- labels?: string[] | undefined;
206
- trend?: {
207
- label: string;
208
- points: number[];
209
- } | undefined;
210
- } | {
211
- type: "deployment";
212
- summary?: string | undefined;
213
- project?: string | undefined;
214
- environment?: string | undefined;
215
- revision?: string | undefined;
216
- branch?: string | undefined;
217
- } | {
218
- type: "calendar_event";
219
- summary?: string | undefined;
220
- when?: string | undefined;
221
- attendees?: string[] | undefined;
222
- } | {
223
- type: "conversation";
224
- summary?: string | undefined;
225
- participants?: string[] | undefined;
226
- lastActivityAt?: string | undefined;
227
- } | {
228
- type: "document";
229
- summary?: string | undefined;
230
- owner?: string | undefined;
231
- modifiedAt?: string | undefined;
232
- thumbnailUrl?: string | undefined;
233
- } | {
234
- type: "message";
235
- summary?: string | undefined;
236
- channel?: string | undefined;
237
- author?: string | undefined;
238
- sentAt?: string | undefined;
239
- } | {
240
- type: "web_page";
241
- summary?: string | undefined;
242
- siteName?: string | undefined;
243
- author?: string | undefined;
244
- media?: "image" | "video" | undefined;
245
- thumbnailUrl?: string | undefined;
246
- } | {
247
- type: "chart";
248
- summary?: string | undefined;
249
- display: "area" | "bar" | "line";
250
- yAxis: string;
251
- range: string;
252
- series: {
253
- label: string;
254
- points: number[];
255
- }[];
256
- } | {
257
- type: "event";
258
- summary?: string | undefined;
259
- level?: string | undefined;
260
- project?: string | undefined;
261
- release?: string | undefined;
262
- environment?: string | undefined;
263
- occurredAt?: string | undefined;
264
- } | {
265
- type: "trace";
266
- summary?: string | undefined;
267
- rootOp?: string | undefined;
268
- rootName?: string | undefined;
269
- durationMs: number;
270
- spanCount: number;
271
- errorCount: number;
272
- performanceIssueCount: number;
273
- projects: string[];
274
- spans: {
275
- op?: string | undefined;
276
- name: string;
277
- startMs: number;
278
- durationMs: number;
279
- issue?: boolean | undefined;
280
- }[];
281
- } | {
282
- type: "person";
283
- summary?: string | undefined;
284
- email?: string | undefined;
285
- slackHandle?: string | undefined;
286
- githubHandle?: string | undefined;
287
- avatarUrl?: string | undefined;
288
- } | undefined;
289
- }[] | undefined;
290
- reply?: {
291
- text: string;
292
- url?: string | undefined;
293
- } | undefined;
294
- truncated?: boolean | undefined;
295
- continuation?: {
296
- arguments: Record<string, unknown>;
297
- reason?: string | undefined;
298
- } | undefined;
299
- attendees?: {
300
- email: string;
301
- optional?: boolean | undefined;
302
- response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
303
- }[] | undefined;
304
- end?: string | undefined;
305
- event_id: string;
306
- label?: string | undefined;
307
- location?: string | undefined;
308
- repeats?: boolean | undefined;
309
- series_event_id?: string | undefined;
310
- start?: string | undefined;
311
- title?: string | undefined;
312
- url?: string | undefined;
313
- video_call_url?: string | undefined;
314
- target: "cancelCalendarEvent";
315
- cancelled: boolean;
316
- }, GoogleToolContext>;
@@ -1,294 +0,0 @@
1
- import { type GoogleToolContext } from "./shared";
2
- /**
3
- * Create a Google Doc, write its content, then hand it to the requester.
4
- *
5
- * Junior's account creates the Doc, so it is the owner at first. Any file
6
- * that account can open is readable through the read tools by anyone who
7
- * talks to Junior. So the tool makes the requester the owner and then removes
8
- * Junior's own access. Each failure after the create names the Doc and says
9
- * who can still open it, so a Doc is never reported private when it is not.
10
- */
11
- export declare const createGoogleDocTool: import("@sentry/junior-plugin-api").PluginToolDefinition<{
12
- title: string;
13
- content?: string | undefined;
14
- }, {
15
- [x: string]: unknown;
16
- objectAnnotations?: {
17
- kind: "object";
18
- key: string;
19
- label: string;
20
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
21
- title: string;
22
- url: string | null;
23
- description?: string | undefined;
24
- status?: string | undefined;
25
- trigger?: string | undefined;
26
- warning?: string | undefined;
27
- displayType?: string | undefined;
28
- sourceUpdatedAt?: string | undefined;
29
- facts?: {
30
- type: "code_change";
31
- summary?: string | undefined;
32
- author?: string | undefined;
33
- sourceBranch?: string | undefined;
34
- targetBranch?: string | undefined;
35
- reviewers?: string[] | undefined;
36
- review?: "approved" | "changes_requested" | "required" | undefined;
37
- checks?: {
38
- passed: number;
39
- failed: number;
40
- pending: number;
41
- } | undefined;
42
- mergeable?: boolean | undefined;
43
- changedFiles?: number | undefined;
44
- additions?: number | undefined;
45
- deletions?: number | undefined;
46
- previewImageUrls?: string[] | undefined;
47
- } | {
48
- type: "task";
49
- summary?: string | undefined;
50
- assignees?: string[] | undefined;
51
- priority?: string | undefined;
52
- project?: string | undefined;
53
- cycle?: string | undefined;
54
- dueDate?: string | undefined;
55
- labels?: string[] | undefined;
56
- trend?: {
57
- label: string;
58
- points: number[];
59
- } | undefined;
60
- } | {
61
- type: "deployment";
62
- summary?: string | undefined;
63
- project?: string | undefined;
64
- environment?: string | undefined;
65
- revision?: string | undefined;
66
- branch?: string | undefined;
67
- } | {
68
- type: "calendar_event";
69
- summary?: string | undefined;
70
- when?: string | undefined;
71
- attendees?: string[] | undefined;
72
- } | {
73
- type: "conversation";
74
- summary?: string | undefined;
75
- participants?: string[] | undefined;
76
- lastActivityAt?: string | undefined;
77
- } | {
78
- type: "document";
79
- summary?: string | undefined;
80
- owner?: string | undefined;
81
- modifiedAt?: string | undefined;
82
- thumbnailUrl?: string | undefined;
83
- } | {
84
- type: "message";
85
- summary?: string | undefined;
86
- channel?: string | undefined;
87
- author?: string | undefined;
88
- sentAt?: string | undefined;
89
- } | {
90
- type: "web_page";
91
- summary?: string | undefined;
92
- siteName?: string | undefined;
93
- author?: string | undefined;
94
- media?: "image" | "video" | undefined;
95
- thumbnailUrl?: string | undefined;
96
- } | {
97
- type: "chart";
98
- summary?: string | undefined;
99
- display: "area" | "bar" | "line";
100
- yAxis: string;
101
- range: string;
102
- series: {
103
- label: string;
104
- points: number[];
105
- }[];
106
- } | {
107
- type: "event";
108
- summary?: string | undefined;
109
- level?: string | undefined;
110
- project?: string | undefined;
111
- release?: string | undefined;
112
- environment?: string | undefined;
113
- occurredAt?: string | undefined;
114
- } | {
115
- type: "trace";
116
- summary?: string | undefined;
117
- rootOp?: string | undefined;
118
- rootName?: string | undefined;
119
- durationMs: number;
120
- spanCount: number;
121
- errorCount: number;
122
- performanceIssueCount: number;
123
- projects: string[];
124
- spans: {
125
- op?: string | undefined;
126
- name: string;
127
- startMs: number;
128
- durationMs: number;
129
- issue?: boolean | undefined;
130
- }[];
131
- } | {
132
- type: "person";
133
- summary?: string | undefined;
134
- email?: string | undefined;
135
- slackHandle?: string | undefined;
136
- githubHandle?: string | undefined;
137
- avatarUrl?: string | undefined;
138
- } | undefined;
139
- }[] | undefined;
140
- reply?: {
141
- text: string;
142
- url?: string | undefined;
143
- } | undefined;
144
- truncated?: boolean | undefined;
145
- continuation?: {
146
- arguments: Record<string, unknown>;
147
- reason?: string | undefined;
148
- } | undefined;
149
- document_id: string;
150
- revision_id?: string | undefined;
151
- title: string;
152
- url: string;
153
- target: "createGoogleDoc";
154
- }, {
155
- [x: string]: unknown;
156
- objectAnnotations?: {
157
- kind: "object";
158
- key: string;
159
- label: string;
160
- objectType: "automation" | "calendar_event" | "chart" | "code_change" | "conversation" | "deployment" | "document" | "event" | "item" | "message" | "person" | "task" | "trace" | "web_page";
161
- title: string;
162
- url: string | null;
163
- description?: string | undefined;
164
- status?: string | undefined;
165
- trigger?: string | undefined;
166
- warning?: string | undefined;
167
- displayType?: string | undefined;
168
- sourceUpdatedAt?: string | undefined;
169
- facts?: {
170
- type: "code_change";
171
- summary?: string | undefined;
172
- author?: string | undefined;
173
- sourceBranch?: string | undefined;
174
- targetBranch?: string | undefined;
175
- reviewers?: string[] | undefined;
176
- review?: "approved" | "changes_requested" | "required" | undefined;
177
- checks?: {
178
- passed: number;
179
- failed: number;
180
- pending: number;
181
- } | undefined;
182
- mergeable?: boolean | undefined;
183
- changedFiles?: number | undefined;
184
- additions?: number | undefined;
185
- deletions?: number | undefined;
186
- previewImageUrls?: string[] | undefined;
187
- } | {
188
- type: "task";
189
- summary?: string | undefined;
190
- assignees?: string[] | undefined;
191
- priority?: string | undefined;
192
- project?: string | undefined;
193
- cycle?: string | undefined;
194
- dueDate?: string | undefined;
195
- labels?: string[] | undefined;
196
- trend?: {
197
- label: string;
198
- points: number[];
199
- } | undefined;
200
- } | {
201
- type: "deployment";
202
- summary?: string | undefined;
203
- project?: string | undefined;
204
- environment?: string | undefined;
205
- revision?: string | undefined;
206
- branch?: string | undefined;
207
- } | {
208
- type: "calendar_event";
209
- summary?: string | undefined;
210
- when?: string | undefined;
211
- attendees?: string[] | undefined;
212
- } | {
213
- type: "conversation";
214
- summary?: string | undefined;
215
- participants?: string[] | undefined;
216
- lastActivityAt?: string | undefined;
217
- } | {
218
- type: "document";
219
- summary?: string | undefined;
220
- owner?: string | undefined;
221
- modifiedAt?: string | undefined;
222
- thumbnailUrl?: string | undefined;
223
- } | {
224
- type: "message";
225
- summary?: string | undefined;
226
- channel?: string | undefined;
227
- author?: string | undefined;
228
- sentAt?: string | undefined;
229
- } | {
230
- type: "web_page";
231
- summary?: string | undefined;
232
- siteName?: string | undefined;
233
- author?: string | undefined;
234
- media?: "image" | "video" | undefined;
235
- thumbnailUrl?: string | undefined;
236
- } | {
237
- type: "chart";
238
- summary?: string | undefined;
239
- display: "area" | "bar" | "line";
240
- yAxis: string;
241
- range: string;
242
- series: {
243
- label: string;
244
- points: number[];
245
- }[];
246
- } | {
247
- type: "event";
248
- summary?: string | undefined;
249
- level?: string | undefined;
250
- project?: string | undefined;
251
- release?: string | undefined;
252
- environment?: string | undefined;
253
- occurredAt?: string | undefined;
254
- } | {
255
- type: "trace";
256
- summary?: string | undefined;
257
- rootOp?: string | undefined;
258
- rootName?: string | undefined;
259
- durationMs: number;
260
- spanCount: number;
261
- errorCount: number;
262
- performanceIssueCount: number;
263
- projects: string[];
264
- spans: {
265
- op?: string | undefined;
266
- name: string;
267
- startMs: number;
268
- durationMs: number;
269
- issue?: boolean | undefined;
270
- }[];
271
- } | {
272
- type: "person";
273
- summary?: string | undefined;
274
- email?: string | undefined;
275
- slackHandle?: string | undefined;
276
- githubHandle?: string | undefined;
277
- avatarUrl?: string | undefined;
278
- } | undefined;
279
- }[] | undefined;
280
- reply?: {
281
- text: string;
282
- url?: string | undefined;
283
- } | undefined;
284
- truncated?: boolean | undefined;
285
- continuation?: {
286
- arguments: Record<string, unknown>;
287
- reason?: string | undefined;
288
- } | undefined;
289
- document_id: string;
290
- revision_id?: string | undefined;
291
- title: string;
292
- url: string;
293
- target: "createGoogleDoc";
294
- }, GoogleToolContext>;