@sentry/junior-google 0.299.0 → 0.301.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.
@@ -11,7 +11,7 @@ export declare function createInsertGoogleDocContentTool(ctx: GoogleToolContext)
11
11
  kind: "object";
12
12
  key: string;
13
13
  label: string;
14
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
14
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
15
15
  title: string;
16
16
  url: string | null;
17
17
  description?: string | undefined;
@@ -22,6 +22,7 @@ export declare function createInsertGoogleDocContentTool(ctx: GoogleToolContext)
22
22
  sourceUpdatedAt?: string | undefined;
23
23
  facts?: {
24
24
  type: "code_change";
25
+ summary?: string | undefined;
25
26
  author?: string | undefined;
26
27
  sourceBranch?: string | undefined;
27
28
  targetBranch?: string | undefined;
@@ -39,6 +40,7 @@ export declare function createInsertGoogleDocContentTool(ctx: GoogleToolContext)
39
40
  previewImageUrls?: string[] | undefined;
40
41
  } | {
41
42
  type: "task";
43
+ summary?: string | undefined;
42
44
  assignees?: string[] | undefined;
43
45
  priority?: string | undefined;
44
46
  project?: string | undefined;
@@ -47,25 +49,41 @@ export declare function createInsertGoogleDocContentTool(ctx: GoogleToolContext)
47
49
  labels?: string[] | undefined;
48
50
  } | {
49
51
  type: "deployment";
52
+ summary?: string | undefined;
50
53
  project?: string | undefined;
51
54
  environment?: string | undefined;
52
55
  revision?: string | undefined;
53
56
  branch?: string | undefined;
54
57
  } | {
55
58
  type: "calendar_event";
59
+ summary?: string | undefined;
56
60
  when?: string | undefined;
57
61
  attendees?: string[] | undefined;
58
62
  } | {
59
63
  type: "conversation";
64
+ summary?: string | undefined;
60
65
  participants?: string[] | undefined;
61
66
  lastActivityAt?: string | undefined;
67
+ } | {
68
+ type: "document";
69
+ summary?: string | undefined;
70
+ owner?: string | undefined;
71
+ modifiedAt?: string | undefined;
62
72
  } | {
63
73
  type: "message";
74
+ summary?: string | undefined;
64
75
  channel?: string | undefined;
65
76
  author?: string | undefined;
66
77
  sentAt?: string | undefined;
78
+ } | {
79
+ type: "web_page";
80
+ summary?: string | undefined;
81
+ siteName?: string | undefined;
82
+ author?: string | undefined;
83
+ thumbnailUrl?: string | undefined;
67
84
  } | {
68
85
  type: "person";
86
+ summary?: string | undefined;
69
87
  email?: string | undefined;
70
88
  slackHandle?: string | undefined;
71
89
  githubHandle?: string | undefined;
@@ -92,7 +110,7 @@ export declare function createInsertGoogleDocContentTool(ctx: GoogleToolContext)
92
110
  kind: "object";
93
111
  key: string;
94
112
  label: string;
95
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
113
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
96
114
  title: string;
97
115
  url: string | null;
98
116
  description?: string | undefined;
@@ -103,6 +121,7 @@ export declare function createInsertGoogleDocContentTool(ctx: GoogleToolContext)
103
121
  sourceUpdatedAt?: string | undefined;
104
122
  facts?: {
105
123
  type: "code_change";
124
+ summary?: string | undefined;
106
125
  author?: string | undefined;
107
126
  sourceBranch?: string | undefined;
108
127
  targetBranch?: string | undefined;
@@ -120,6 +139,7 @@ export declare function createInsertGoogleDocContentTool(ctx: GoogleToolContext)
120
139
  previewImageUrls?: string[] | undefined;
121
140
  } | {
122
141
  type: "task";
142
+ summary?: string | undefined;
123
143
  assignees?: string[] | undefined;
124
144
  priority?: string | undefined;
125
145
  project?: string | undefined;
@@ -128,25 +148,41 @@ export declare function createInsertGoogleDocContentTool(ctx: GoogleToolContext)
128
148
  labels?: string[] | undefined;
129
149
  } | {
130
150
  type: "deployment";
151
+ summary?: string | undefined;
131
152
  project?: string | undefined;
132
153
  environment?: string | undefined;
133
154
  revision?: string | undefined;
134
155
  branch?: string | undefined;
135
156
  } | {
136
157
  type: "calendar_event";
158
+ summary?: string | undefined;
137
159
  when?: string | undefined;
138
160
  attendees?: string[] | undefined;
139
161
  } | {
140
162
  type: "conversation";
163
+ summary?: string | undefined;
141
164
  participants?: string[] | undefined;
142
165
  lastActivityAt?: string | undefined;
166
+ } | {
167
+ type: "document";
168
+ summary?: string | undefined;
169
+ owner?: string | undefined;
170
+ modifiedAt?: string | undefined;
143
171
  } | {
144
172
  type: "message";
173
+ summary?: string | undefined;
145
174
  channel?: string | undefined;
146
175
  author?: string | undefined;
147
176
  sentAt?: string | undefined;
177
+ } | {
178
+ type: "web_page";
179
+ summary?: string | undefined;
180
+ siteName?: string | undefined;
181
+ author?: string | undefined;
182
+ thumbnailUrl?: string | undefined;
148
183
  } | {
149
184
  type: "person";
185
+ summary?: string | undefined;
150
186
  email?: string | undefined;
151
187
  slackHandle?: string | undefined;
152
188
  githubHandle?: string | undefined;
@@ -18,7 +18,7 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
18
18
  kind: "object";
19
19
  key: string;
20
20
  label: string;
21
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
21
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
22
22
  title: string;
23
23
  url: string | null;
24
24
  description?: string | undefined;
@@ -29,6 +29,7 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
29
29
  sourceUpdatedAt?: string | undefined;
30
30
  facts?: {
31
31
  type: "code_change";
32
+ summary?: string | undefined;
32
33
  author?: string | undefined;
33
34
  sourceBranch?: string | undefined;
34
35
  targetBranch?: string | undefined;
@@ -46,6 +47,7 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
46
47
  previewImageUrls?: string[] | undefined;
47
48
  } | {
48
49
  type: "task";
50
+ summary?: string | undefined;
49
51
  assignees?: string[] | undefined;
50
52
  priority?: string | undefined;
51
53
  project?: string | undefined;
@@ -54,25 +56,41 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
54
56
  labels?: string[] | undefined;
55
57
  } | {
56
58
  type: "deployment";
59
+ summary?: string | undefined;
57
60
  project?: string | undefined;
58
61
  environment?: string | undefined;
59
62
  revision?: string | undefined;
60
63
  branch?: string | undefined;
61
64
  } | {
62
65
  type: "calendar_event";
66
+ summary?: string | undefined;
63
67
  when?: string | undefined;
64
68
  attendees?: string[] | undefined;
65
69
  } | {
66
70
  type: "conversation";
71
+ summary?: string | undefined;
67
72
  participants?: string[] | undefined;
68
73
  lastActivityAt?: string | undefined;
74
+ } | {
75
+ type: "document";
76
+ summary?: string | undefined;
77
+ owner?: string | undefined;
78
+ modifiedAt?: string | undefined;
69
79
  } | {
70
80
  type: "message";
81
+ summary?: string | undefined;
71
82
  channel?: string | undefined;
72
83
  author?: string | undefined;
73
84
  sentAt?: string | undefined;
85
+ } | {
86
+ type: "web_page";
87
+ summary?: string | undefined;
88
+ siteName?: string | undefined;
89
+ author?: string | undefined;
90
+ thumbnailUrl?: string | undefined;
74
91
  } | {
75
92
  type: "person";
93
+ summary?: string | undefined;
76
94
  email?: string | undefined;
77
95
  slackHandle?: string | undefined;
78
96
  githubHandle?: string | undefined;
@@ -116,7 +134,7 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
116
134
  kind: "object";
117
135
  key: string;
118
136
  label: string;
119
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
137
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
120
138
  title: string;
121
139
  url: string | null;
122
140
  description?: string | undefined;
@@ -127,6 +145,7 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
127
145
  sourceUpdatedAt?: string | undefined;
128
146
  facts?: {
129
147
  type: "code_change";
148
+ summary?: string | undefined;
130
149
  author?: string | undefined;
131
150
  sourceBranch?: string | undefined;
132
151
  targetBranch?: string | undefined;
@@ -144,6 +163,7 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
144
163
  previewImageUrls?: string[] | undefined;
145
164
  } | {
146
165
  type: "task";
166
+ summary?: string | undefined;
147
167
  assignees?: string[] | undefined;
148
168
  priority?: string | undefined;
149
169
  project?: string | undefined;
@@ -152,25 +172,41 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
152
172
  labels?: string[] | undefined;
153
173
  } | {
154
174
  type: "deployment";
175
+ summary?: string | undefined;
155
176
  project?: string | undefined;
156
177
  environment?: string | undefined;
157
178
  revision?: string | undefined;
158
179
  branch?: string | undefined;
159
180
  } | {
160
181
  type: "calendar_event";
182
+ summary?: string | undefined;
161
183
  when?: string | undefined;
162
184
  attendees?: string[] | undefined;
163
185
  } | {
164
186
  type: "conversation";
187
+ summary?: string | undefined;
165
188
  participants?: string[] | undefined;
166
189
  lastActivityAt?: string | undefined;
190
+ } | {
191
+ type: "document";
192
+ summary?: string | undefined;
193
+ owner?: string | undefined;
194
+ modifiedAt?: string | undefined;
167
195
  } | {
168
196
  type: "message";
197
+ summary?: string | undefined;
169
198
  channel?: string | undefined;
170
199
  author?: string | undefined;
171
200
  sentAt?: string | undefined;
201
+ } | {
202
+ type: "web_page";
203
+ summary?: string | undefined;
204
+ siteName?: string | undefined;
205
+ author?: string | undefined;
206
+ thumbnailUrl?: string | undefined;
172
207
  } | {
173
208
  type: "person";
209
+ summary?: string | undefined;
174
210
  email?: string | undefined;
175
211
  slackHandle?: string | undefined;
176
212
  githubHandle?: string | undefined;
@@ -9,7 +9,7 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
9
9
  kind: "object";
10
10
  key: string;
11
11
  label: string;
12
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
12
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
13
13
  title: string;
14
14
  url: string | null;
15
15
  description?: string | undefined;
@@ -20,6 +20,7 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
20
20
  sourceUpdatedAt?: string | undefined;
21
21
  facts?: {
22
22
  type: "code_change";
23
+ summary?: string | undefined;
23
24
  author?: string | undefined;
24
25
  sourceBranch?: string | undefined;
25
26
  targetBranch?: string | undefined;
@@ -37,6 +38,7 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
37
38
  previewImageUrls?: string[] | undefined;
38
39
  } | {
39
40
  type: "task";
41
+ summary?: string | undefined;
40
42
  assignees?: string[] | undefined;
41
43
  priority?: string | undefined;
42
44
  project?: string | undefined;
@@ -45,25 +47,41 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
45
47
  labels?: string[] | undefined;
46
48
  } | {
47
49
  type: "deployment";
50
+ summary?: string | undefined;
48
51
  project?: string | undefined;
49
52
  environment?: string | undefined;
50
53
  revision?: string | undefined;
51
54
  branch?: string | undefined;
52
55
  } | {
53
56
  type: "calendar_event";
57
+ summary?: string | undefined;
54
58
  when?: string | undefined;
55
59
  attendees?: string[] | undefined;
56
60
  } | {
57
61
  type: "conversation";
62
+ summary?: string | undefined;
58
63
  participants?: string[] | undefined;
59
64
  lastActivityAt?: string | undefined;
65
+ } | {
66
+ type: "document";
67
+ summary?: string | undefined;
68
+ owner?: string | undefined;
69
+ modifiedAt?: string | undefined;
60
70
  } | {
61
71
  type: "message";
72
+ summary?: string | undefined;
62
73
  channel?: string | undefined;
63
74
  author?: string | undefined;
64
75
  sentAt?: string | undefined;
76
+ } | {
77
+ type: "web_page";
78
+ summary?: string | undefined;
79
+ siteName?: string | undefined;
80
+ author?: string | undefined;
81
+ thumbnailUrl?: string | undefined;
65
82
  } | {
66
83
  type: "person";
84
+ summary?: string | undefined;
67
85
  email?: string | undefined;
68
86
  slackHandle?: string | undefined;
69
87
  githubHandle?: string | undefined;
@@ -102,7 +120,7 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
102
120
  kind: "object";
103
121
  key: string;
104
122
  label: string;
105
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
123
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
106
124
  title: string;
107
125
  url: string | null;
108
126
  description?: string | undefined;
@@ -113,6 +131,7 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
113
131
  sourceUpdatedAt?: string | undefined;
114
132
  facts?: {
115
133
  type: "code_change";
134
+ summary?: string | undefined;
116
135
  author?: string | undefined;
117
136
  sourceBranch?: string | undefined;
118
137
  targetBranch?: string | undefined;
@@ -130,6 +149,7 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
130
149
  previewImageUrls?: string[] | undefined;
131
150
  } | {
132
151
  type: "task";
152
+ summary?: string | undefined;
133
153
  assignees?: string[] | undefined;
134
154
  priority?: string | undefined;
135
155
  project?: string | undefined;
@@ -138,25 +158,41 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
138
158
  labels?: string[] | undefined;
139
159
  } | {
140
160
  type: "deployment";
161
+ summary?: string | undefined;
141
162
  project?: string | undefined;
142
163
  environment?: string | undefined;
143
164
  revision?: string | undefined;
144
165
  branch?: string | undefined;
145
166
  } | {
146
167
  type: "calendar_event";
168
+ summary?: string | undefined;
147
169
  when?: string | undefined;
148
170
  attendees?: string[] | undefined;
149
171
  } | {
150
172
  type: "conversation";
173
+ summary?: string | undefined;
151
174
  participants?: string[] | undefined;
152
175
  lastActivityAt?: string | undefined;
176
+ } | {
177
+ type: "document";
178
+ summary?: string | undefined;
179
+ owner?: string | undefined;
180
+ modifiedAt?: string | undefined;
153
181
  } | {
154
182
  type: "message";
183
+ summary?: string | undefined;
155
184
  channel?: string | undefined;
156
185
  author?: string | undefined;
157
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;
158
193
  } | {
159
194
  type: "person";
195
+ summary?: string | undefined;
160
196
  email?: string | undefined;
161
197
  slackHandle?: string | undefined;
162
198
  githubHandle?: string | undefined;
@@ -1,176 +1,19 @@
1
+ import * as z from "zod";
2
+ import { type FileReference } from "./files";
1
3
  import { type GoogleToolContext } from "./shared";
4
+ /** Output fields of `readGoogleFile` for a Doc. */
5
+ export declare const docOutputFields: {
6
+ content: z.ZodOptional<z.ZodString>;
7
+ revision_id: z.ZodOptional<z.ZodString>;
8
+ };
2
9
  /**
3
10
  * Read one Google Doc as Markdown.
4
11
  *
5
12
  * Drive exports the text. The Docs API gives the revision that the edit tools
6
13
  * check. Comments are not in the export; `listGoogleFileComments` reads them.
7
14
  */
8
- export declare function createReadGoogleDocTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
9
- document: string;
10
- }, {
11
- [x: string]: unknown;
12
- objectAnnotations?: {
13
- kind: "object";
14
- key: string;
15
- label: string;
16
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
17
- title: string;
18
- url: string | null;
19
- description?: string | undefined;
20
- status?: string | undefined;
21
- trigger?: string | undefined;
22
- warning?: string | undefined;
23
- displayType?: string | undefined;
24
- sourceUpdatedAt?: string | undefined;
25
- facts?: {
26
- type: "code_change";
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
- assignees?: string[] | undefined;
45
- priority?: string | undefined;
46
- project?: string | undefined;
47
- cycle?: string | undefined;
48
- dueDate?: string | undefined;
49
- labels?: string[] | undefined;
50
- } | {
51
- type: "deployment";
52
- project?: string | undefined;
53
- environment?: string | undefined;
54
- revision?: string | undefined;
55
- branch?: string | undefined;
56
- } | {
57
- type: "calendar_event";
58
- when?: string | undefined;
59
- attendees?: string[] | undefined;
60
- } | {
61
- type: "conversation";
62
- participants?: string[] | undefined;
63
- lastActivityAt?: string | undefined;
64
- } | {
65
- type: "message";
66
- channel?: string | undefined;
67
- author?: string | undefined;
68
- sentAt?: string | undefined;
69
- } | {
70
- type: "person";
71
- email?: string | undefined;
72
- slackHandle?: string | undefined;
73
- githubHandle?: string | undefined;
74
- avatarUrl?: string | undefined;
75
- } | undefined;
76
- }[] | undefined;
77
- reply?: {
78
- text: string;
79
- url?: string | undefined;
80
- } | undefined;
81
- continuation?: {
82
- arguments: Record<string, unknown>;
83
- reason?: string | undefined;
84
- } | undefined;
85
- target: "readGoogleDoc";
15
+ export declare function readDocContent(ctx: GoogleToolContext, ref: FileReference): Promise<{
86
16
  content: string;
87
- document_id: string;
88
17
  revision_id?: string | undefined;
89
- modified_at?: string | undefined;
90
- title: string;
91
18
  truncated: boolean;
92
- url?: string | undefined;
93
- }, {
94
- [x: string]: unknown;
95
- objectAnnotations?: {
96
- kind: "object";
97
- key: string;
98
- label: string;
99
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
100
- title: string;
101
- url: string | null;
102
- description?: string | undefined;
103
- status?: string | undefined;
104
- trigger?: string | undefined;
105
- warning?: string | undefined;
106
- displayType?: string | undefined;
107
- sourceUpdatedAt?: string | undefined;
108
- facts?: {
109
- type: "code_change";
110
- author?: string | undefined;
111
- sourceBranch?: string | undefined;
112
- targetBranch?: string | undefined;
113
- reviewers?: string[] | undefined;
114
- review?: "approved" | "changes_requested" | "required" | undefined;
115
- checks?: {
116
- passed: number;
117
- failed: number;
118
- pending: number;
119
- } | undefined;
120
- mergeable?: boolean | undefined;
121
- changedFiles?: number | undefined;
122
- additions?: number | undefined;
123
- deletions?: number | undefined;
124
- previewImageUrls?: string[] | undefined;
125
- } | {
126
- type: "task";
127
- assignees?: string[] | undefined;
128
- priority?: string | undefined;
129
- project?: string | undefined;
130
- cycle?: string | undefined;
131
- dueDate?: string | undefined;
132
- labels?: string[] | undefined;
133
- } | {
134
- type: "deployment";
135
- project?: string | undefined;
136
- environment?: string | undefined;
137
- revision?: string | undefined;
138
- branch?: string | undefined;
139
- } | {
140
- type: "calendar_event";
141
- when?: string | undefined;
142
- attendees?: string[] | undefined;
143
- } | {
144
- type: "conversation";
145
- participants?: string[] | undefined;
146
- lastActivityAt?: string | undefined;
147
- } | {
148
- type: "message";
149
- channel?: string | undefined;
150
- author?: string | undefined;
151
- sentAt?: string | undefined;
152
- } | {
153
- type: "person";
154
- email?: string | undefined;
155
- slackHandle?: string | undefined;
156
- githubHandle?: string | undefined;
157
- avatarUrl?: string | undefined;
158
- } | undefined;
159
- }[] | undefined;
160
- reply?: {
161
- text: string;
162
- url?: string | undefined;
163
- } | undefined;
164
- continuation?: {
165
- arguments: Record<string, unknown>;
166
- reason?: string | undefined;
167
- } | undefined;
168
- target: "readGoogleDoc";
169
- content: string;
170
- document_id: string;
171
- revision_id?: string | undefined;
172
- modified_at?: string | undefined;
173
- title: string;
174
- truncated: boolean;
175
- url?: string | undefined;
176
19
  }>;