@sentry/junior-google 0.299.0 → 0.300.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,184 +1,27 @@
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 Slides. */
5
+ export declare const slidesOutputFields: {
6
+ slide_count: z.ZodOptional<z.ZodNumber>;
7
+ slides: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
+ notes: z.ZodOptional<z.ZodString>;
9
+ slide_number: z.ZodNumber;
10
+ text: z.ZodString;
11
+ }, z.core.$strip>>>;
12
+ };
2
13
  /**
3
14
  * Read the text and speaker notes of each slide in one Google Slides file.
4
15
  *
5
16
  * This uses the Slides API to keep slide numbers and speaker notes. It
6
17
  * accepts the same `drive.readonly` scope as the Drive tools.
7
18
  */
8
- export declare function createReadGoogleSlidesTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
9
- presentation: 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: "readGoogleSlides";
86
- modified_at?: string | undefined;
87
- presentation_id: string;
88
- slide_count: number;
89
- slides: {
90
- notes?: string | undefined;
91
- slide_number: number;
92
- text: string;
93
- }[];
94
- title: string;
95
- truncated: boolean;
96
- url?: string | undefined;
97
- }, {
98
- [x: string]: unknown;
99
- objectAnnotations?: {
100
- kind: "object";
101
- key: string;
102
- label: string;
103
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
104
- title: string;
105
- url: string | null;
106
- description?: string | undefined;
107
- status?: string | undefined;
108
- trigger?: string | undefined;
109
- warning?: string | undefined;
110
- displayType?: string | undefined;
111
- sourceUpdatedAt?: string | undefined;
112
- facts?: {
113
- type: "code_change";
114
- author?: string | undefined;
115
- sourceBranch?: string | undefined;
116
- targetBranch?: string | undefined;
117
- reviewers?: string[] | undefined;
118
- review?: "approved" | "changes_requested" | "required" | undefined;
119
- checks?: {
120
- passed: number;
121
- failed: number;
122
- pending: number;
123
- } | undefined;
124
- mergeable?: boolean | undefined;
125
- changedFiles?: number | undefined;
126
- additions?: number | undefined;
127
- deletions?: number | undefined;
128
- previewImageUrls?: string[] | undefined;
129
- } | {
130
- type: "task";
131
- assignees?: string[] | undefined;
132
- priority?: string | undefined;
133
- project?: string | undefined;
134
- cycle?: string | undefined;
135
- dueDate?: string | undefined;
136
- labels?: string[] | undefined;
137
- } | {
138
- type: "deployment";
139
- project?: string | undefined;
140
- environment?: string | undefined;
141
- revision?: string | undefined;
142
- branch?: string | undefined;
143
- } | {
144
- type: "calendar_event";
145
- when?: string | undefined;
146
- attendees?: string[] | undefined;
147
- } | {
148
- type: "conversation";
149
- participants?: string[] | undefined;
150
- lastActivityAt?: string | undefined;
151
- } | {
152
- type: "message";
153
- channel?: string | undefined;
154
- author?: string | undefined;
155
- sentAt?: string | undefined;
156
- } | {
157
- type: "person";
158
- email?: string | undefined;
159
- slackHandle?: string | undefined;
160
- githubHandle?: string | undefined;
161
- avatarUrl?: string | undefined;
162
- } | undefined;
163
- }[] | undefined;
164
- reply?: {
165
- text: string;
166
- url?: string | undefined;
167
- } | undefined;
168
- continuation?: {
169
- arguments: Record<string, unknown>;
170
- reason?: string | undefined;
171
- } | undefined;
172
- target: "readGoogleSlides";
173
- modified_at?: string | undefined;
174
- presentation_id: string;
19
+ export declare function readSlidesContent(ctx: GoogleToolContext, ref: FileReference): Promise<{
175
20
  slide_count: number;
176
21
  slides: {
177
22
  notes?: string | undefined;
178
23
  slide_number: number;
179
24
  text: string;
180
25
  }[];
181
- title: string;
182
26
  truncated: boolean;
183
- url?: string | undefined;
184
27
  }>;
@@ -10,7 +10,7 @@ export declare function createReplaceGoogleDocContentTool(ctx: GoogleToolContext
10
10
  kind: "object";
11
11
  key: string;
12
12
  label: string;
13
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
13
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
14
14
  title: string;
15
15
  url: string | null;
16
16
  description?: string | undefined;
@@ -21,6 +21,7 @@ export declare function createReplaceGoogleDocContentTool(ctx: GoogleToolContext
21
21
  sourceUpdatedAt?: string | undefined;
22
22
  facts?: {
23
23
  type: "code_change";
24
+ summary?: string | undefined;
24
25
  author?: string | undefined;
25
26
  sourceBranch?: string | undefined;
26
27
  targetBranch?: string | undefined;
@@ -38,6 +39,7 @@ export declare function createReplaceGoogleDocContentTool(ctx: GoogleToolContext
38
39
  previewImageUrls?: string[] | undefined;
39
40
  } | {
40
41
  type: "task";
42
+ summary?: string | undefined;
41
43
  assignees?: string[] | undefined;
42
44
  priority?: string | undefined;
43
45
  project?: string | undefined;
@@ -46,25 +48,41 @@ export declare function createReplaceGoogleDocContentTool(ctx: GoogleToolContext
46
48
  labels?: string[] | undefined;
47
49
  } | {
48
50
  type: "deployment";
51
+ summary?: string | undefined;
49
52
  project?: string | undefined;
50
53
  environment?: string | undefined;
51
54
  revision?: string | undefined;
52
55
  branch?: string | undefined;
53
56
  } | {
54
57
  type: "calendar_event";
58
+ summary?: string | undefined;
55
59
  when?: string | undefined;
56
60
  attendees?: string[] | undefined;
57
61
  } | {
58
62
  type: "conversation";
63
+ summary?: string | undefined;
59
64
  participants?: string[] | undefined;
60
65
  lastActivityAt?: string | undefined;
66
+ } | {
67
+ type: "document";
68
+ summary?: string | undefined;
69
+ owner?: string | undefined;
70
+ modifiedAt?: string | undefined;
61
71
  } | {
62
72
  type: "message";
73
+ summary?: string | undefined;
63
74
  channel?: string | undefined;
64
75
  author?: string | undefined;
65
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;
66
83
  } | {
67
84
  type: "person";
85
+ summary?: string | undefined;
68
86
  email?: string | undefined;
69
87
  slackHandle?: string | undefined;
70
88
  githubHandle?: string | undefined;
@@ -91,7 +109,7 @@ export declare function createReplaceGoogleDocContentTool(ctx: GoogleToolContext
91
109
  kind: "object";
92
110
  key: string;
93
111
  label: string;
94
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
112
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
95
113
  title: string;
96
114
  url: string | null;
97
115
  description?: string | undefined;
@@ -102,6 +120,7 @@ export declare function createReplaceGoogleDocContentTool(ctx: GoogleToolContext
102
120
  sourceUpdatedAt?: string | undefined;
103
121
  facts?: {
104
122
  type: "code_change";
123
+ summary?: string | undefined;
105
124
  author?: string | undefined;
106
125
  sourceBranch?: string | undefined;
107
126
  targetBranch?: string | undefined;
@@ -119,6 +138,7 @@ export declare function createReplaceGoogleDocContentTool(ctx: GoogleToolContext
119
138
  previewImageUrls?: string[] | undefined;
120
139
  } | {
121
140
  type: "task";
141
+ summary?: string | undefined;
122
142
  assignees?: string[] | undefined;
123
143
  priority?: string | undefined;
124
144
  project?: string | undefined;
@@ -127,25 +147,41 @@ export declare function createReplaceGoogleDocContentTool(ctx: GoogleToolContext
127
147
  labels?: string[] | undefined;
128
148
  } | {
129
149
  type: "deployment";
150
+ summary?: string | undefined;
130
151
  project?: string | undefined;
131
152
  environment?: string | undefined;
132
153
  revision?: string | undefined;
133
154
  branch?: string | undefined;
134
155
  } | {
135
156
  type: "calendar_event";
157
+ summary?: string | undefined;
136
158
  when?: string | undefined;
137
159
  attendees?: string[] | undefined;
138
160
  } | {
139
161
  type: "conversation";
162
+ summary?: string | undefined;
140
163
  participants?: string[] | undefined;
141
164
  lastActivityAt?: string | undefined;
165
+ } | {
166
+ type: "document";
167
+ summary?: string | undefined;
168
+ owner?: string | undefined;
169
+ modifiedAt?: string | undefined;
142
170
  } | {
143
171
  type: "message";
172
+ summary?: string | undefined;
144
173
  channel?: string | undefined;
145
174
  author?: string | undefined;
146
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;
147
182
  } | {
148
183
  type: "person";
184
+ summary?: string | undefined;
149
185
  email?: string | undefined;
150
186
  slackHandle?: string | undefined;
151
187
  githubHandle?: string | undefined;
@@ -12,7 +12,7 @@ export declare function createReplaceGoogleDocTextTool(ctx: GoogleToolContext):
12
12
  kind: "object";
13
13
  key: string;
14
14
  label: string;
15
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
15
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
16
16
  title: string;
17
17
  url: string | null;
18
18
  description?: string | undefined;
@@ -23,6 +23,7 @@ export declare function createReplaceGoogleDocTextTool(ctx: GoogleToolContext):
23
23
  sourceUpdatedAt?: string | undefined;
24
24
  facts?: {
25
25
  type: "code_change";
26
+ summary?: string | undefined;
26
27
  author?: string | undefined;
27
28
  sourceBranch?: string | undefined;
28
29
  targetBranch?: string | undefined;
@@ -40,6 +41,7 @@ export declare function createReplaceGoogleDocTextTool(ctx: GoogleToolContext):
40
41
  previewImageUrls?: string[] | undefined;
41
42
  } | {
42
43
  type: "task";
44
+ summary?: string | undefined;
43
45
  assignees?: string[] | undefined;
44
46
  priority?: string | undefined;
45
47
  project?: string | undefined;
@@ -48,25 +50,41 @@ export declare function createReplaceGoogleDocTextTool(ctx: GoogleToolContext):
48
50
  labels?: string[] | undefined;
49
51
  } | {
50
52
  type: "deployment";
53
+ summary?: string | undefined;
51
54
  project?: string | undefined;
52
55
  environment?: string | undefined;
53
56
  revision?: string | undefined;
54
57
  branch?: string | undefined;
55
58
  } | {
56
59
  type: "calendar_event";
60
+ summary?: string | undefined;
57
61
  when?: string | undefined;
58
62
  attendees?: string[] | undefined;
59
63
  } | {
60
64
  type: "conversation";
65
+ summary?: string | undefined;
61
66
  participants?: string[] | undefined;
62
67
  lastActivityAt?: string | undefined;
68
+ } | {
69
+ type: "document";
70
+ summary?: string | undefined;
71
+ owner?: string | undefined;
72
+ modifiedAt?: string | undefined;
63
73
  } | {
64
74
  type: "message";
75
+ summary?: string | undefined;
65
76
  channel?: string | undefined;
66
77
  author?: string | undefined;
67
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;
68
85
  } | {
69
86
  type: "person";
87
+ summary?: string | undefined;
70
88
  email?: string | undefined;
71
89
  slackHandle?: string | undefined;
72
90
  githubHandle?: string | undefined;
@@ -94,7 +112,7 @@ export declare function createReplaceGoogleDocTextTool(ctx: GoogleToolContext):
94
112
  kind: "object";
95
113
  key: string;
96
114
  label: string;
97
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
115
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
98
116
  title: string;
99
117
  url: string | null;
100
118
  description?: string | undefined;
@@ -105,6 +123,7 @@ export declare function createReplaceGoogleDocTextTool(ctx: GoogleToolContext):
105
123
  sourceUpdatedAt?: string | undefined;
106
124
  facts?: {
107
125
  type: "code_change";
126
+ summary?: string | undefined;
108
127
  author?: string | undefined;
109
128
  sourceBranch?: string | undefined;
110
129
  targetBranch?: string | undefined;
@@ -122,6 +141,7 @@ export declare function createReplaceGoogleDocTextTool(ctx: GoogleToolContext):
122
141
  previewImageUrls?: string[] | undefined;
123
142
  } | {
124
143
  type: "task";
144
+ summary?: string | undefined;
125
145
  assignees?: string[] | undefined;
126
146
  priority?: string | undefined;
127
147
  project?: string | undefined;
@@ -130,25 +150,41 @@ export declare function createReplaceGoogleDocTextTool(ctx: GoogleToolContext):
130
150
  labels?: string[] | undefined;
131
151
  } | {
132
152
  type: "deployment";
153
+ summary?: string | undefined;
133
154
  project?: string | undefined;
134
155
  environment?: string | undefined;
135
156
  revision?: string | undefined;
136
157
  branch?: string | undefined;
137
158
  } | {
138
159
  type: "calendar_event";
160
+ summary?: string | undefined;
139
161
  when?: string | undefined;
140
162
  attendees?: string[] | undefined;
141
163
  } | {
142
164
  type: "conversation";
165
+ summary?: string | undefined;
143
166
  participants?: string[] | undefined;
144
167
  lastActivityAt?: string | undefined;
168
+ } | {
169
+ type: "document";
170
+ summary?: string | undefined;
171
+ owner?: string | undefined;
172
+ modifiedAt?: string | undefined;
145
173
  } | {
146
174
  type: "message";
175
+ summary?: string | undefined;
147
176
  channel?: string | undefined;
148
177
  author?: string | undefined;
149
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;
150
185
  } | {
151
186
  type: "person";
187
+ summary?: string | undefined;
152
188
  email?: string | undefined;
153
189
  slackHandle?: string | undefined;
154
190
  githubHandle?: string | undefined;
@@ -1,4 +1,8 @@
1
1
  import { type GoogleToolContext } from "./shared";
2
+ /** Quote a value for a Drive search query. */
3
+ export declare function driveQueryString(value: string): string;
4
+ /** Drive search terms for files that name the requester in a permission. */
5
+ export declare function namedQuery(requester: string): string;
2
6
  /**
3
7
  * Find Docs, Sheets, and Slides that the requester could find in Drive
4
8
  * themselves. Never search without the requester's terms.
@@ -13,7 +17,7 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
13
17
  kind: "object";
14
18
  key: string;
15
19
  label: string;
16
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
20
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
17
21
  title: string;
18
22
  url: string | null;
19
23
  description?: string | undefined;
@@ -24,6 +28,7 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
24
28
  sourceUpdatedAt?: string | undefined;
25
29
  facts?: {
26
30
  type: "code_change";
31
+ summary?: string | undefined;
27
32
  author?: string | undefined;
28
33
  sourceBranch?: string | undefined;
29
34
  targetBranch?: string | undefined;
@@ -41,6 +46,7 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
41
46
  previewImageUrls?: string[] | undefined;
42
47
  } | {
43
48
  type: "task";
49
+ summary?: string | undefined;
44
50
  assignees?: string[] | undefined;
45
51
  priority?: string | undefined;
46
52
  project?: string | undefined;
@@ -49,25 +55,41 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
49
55
  labels?: string[] | undefined;
50
56
  } | {
51
57
  type: "deployment";
58
+ summary?: string | undefined;
52
59
  project?: string | undefined;
53
60
  environment?: string | undefined;
54
61
  revision?: string | undefined;
55
62
  branch?: string | undefined;
56
63
  } | {
57
64
  type: "calendar_event";
65
+ summary?: string | undefined;
58
66
  when?: string | undefined;
59
67
  attendees?: string[] | undefined;
60
68
  } | {
61
69
  type: "conversation";
70
+ summary?: string | undefined;
62
71
  participants?: string[] | undefined;
63
72
  lastActivityAt?: string | undefined;
73
+ } | {
74
+ type: "document";
75
+ summary?: string | undefined;
76
+ owner?: string | undefined;
77
+ modifiedAt?: string | undefined;
64
78
  } | {
65
79
  type: "message";
80
+ summary?: string | undefined;
66
81
  channel?: string | undefined;
67
82
  author?: string | undefined;
68
83
  sentAt?: string | undefined;
84
+ } | {
85
+ type: "web_page";
86
+ summary?: string | undefined;
87
+ siteName?: string | undefined;
88
+ author?: string | undefined;
89
+ thumbnailUrl?: string | undefined;
69
90
  } | {
70
91
  type: "person";
92
+ summary?: string | undefined;
71
93
  email?: string | undefined;
72
94
  slackHandle?: string | undefined;
73
95
  githubHandle?: string | undefined;
@@ -97,7 +119,7 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
97
119
  kind: "object";
98
120
  key: string;
99
121
  label: string;
100
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
122
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
101
123
  title: string;
102
124
  url: string | null;
103
125
  description?: string | undefined;
@@ -108,6 +130,7 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
108
130
  sourceUpdatedAt?: string | undefined;
109
131
  facts?: {
110
132
  type: "code_change";
133
+ summary?: string | undefined;
111
134
  author?: string | undefined;
112
135
  sourceBranch?: string | undefined;
113
136
  targetBranch?: string | undefined;
@@ -125,6 +148,7 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
125
148
  previewImageUrls?: string[] | undefined;
126
149
  } | {
127
150
  type: "task";
151
+ summary?: string | undefined;
128
152
  assignees?: string[] | undefined;
129
153
  priority?: string | undefined;
130
154
  project?: string | undefined;
@@ -133,25 +157,41 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
133
157
  labels?: string[] | undefined;
134
158
  } | {
135
159
  type: "deployment";
160
+ summary?: string | undefined;
136
161
  project?: string | undefined;
137
162
  environment?: string | undefined;
138
163
  revision?: string | undefined;
139
164
  branch?: string | undefined;
140
165
  } | {
141
166
  type: "calendar_event";
167
+ summary?: string | undefined;
142
168
  when?: string | undefined;
143
169
  attendees?: string[] | undefined;
144
170
  } | {
145
171
  type: "conversation";
172
+ summary?: string | undefined;
146
173
  participants?: string[] | undefined;
147
174
  lastActivityAt?: string | undefined;
175
+ } | {
176
+ type: "document";
177
+ summary?: string | undefined;
178
+ owner?: string | undefined;
179
+ modifiedAt?: string | undefined;
148
180
  } | {
149
181
  type: "message";
182
+ summary?: string | undefined;
150
183
  channel?: string | undefined;
151
184
  author?: string | undefined;
152
185
  sentAt?: string | undefined;
186
+ } | {
187
+ type: "web_page";
188
+ summary?: string | undefined;
189
+ siteName?: string | undefined;
190
+ author?: string | undefined;
191
+ thumbnailUrl?: string | undefined;
153
192
  } | {
154
193
  type: "person";
194
+ summary?: string | undefined;
155
195
  email?: string | undefined;
156
196
  slackHandle?: string | undefined;
157
197
  githubHandle?: string | undefined;
@@ -35,7 +35,7 @@ export declare function withRequester(ctx: GoogleToolContext, emails: string[]):
35
35
  * A JSON response body is parsed. Other bodies, such as a Drive export, are
36
36
  * returned as text.
37
37
  */
38
- export declare function googleApiRequest(ctx: GoogleToolContext, input: {
38
+ export declare function googleApiRequest(ctx: Pick<GoogleToolContext, "egress">, input: {
39
39
  body?: unknown;
40
40
  headers?: Record<string, string>;
41
41
  operation: GoogleOperation;
@@ -131,7 +131,7 @@ export declare function ownEventResult(event: OwnEvent, timeZone: string, accoun
131
131
  kind: "object";
132
132
  key: string;
133
133
  label: string;
134
- objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
134
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "document" | "item" | "message" | "person" | "task" | "web_page";
135
135
  title: string;
136
136
  url: string | null;
137
137
  description?: string | undefined;
@@ -142,6 +142,7 @@ export declare function ownEventResult(event: OwnEvent, timeZone: string, accoun
142
142
  sourceUpdatedAt?: string | undefined;
143
143
  facts?: {
144
144
  type: "code_change";
145
+ summary?: string | undefined;
145
146
  author?: string | undefined;
146
147
  sourceBranch?: string | undefined;
147
148
  targetBranch?: string | undefined;
@@ -159,6 +160,7 @@ export declare function ownEventResult(event: OwnEvent, timeZone: string, accoun
159
160
  previewImageUrls?: string[] | undefined;
160
161
  } | {
161
162
  type: "task";
163
+ summary?: string | undefined;
162
164
  assignees?: string[] | undefined;
163
165
  priority?: string | undefined;
164
166
  project?: string | undefined;
@@ -167,25 +169,41 @@ export declare function ownEventResult(event: OwnEvent, timeZone: string, accoun
167
169
  labels?: string[] | undefined;
168
170
  } | {
169
171
  type: "deployment";
172
+ summary?: string | undefined;
170
173
  project?: string | undefined;
171
174
  environment?: string | undefined;
172
175
  revision?: string | undefined;
173
176
  branch?: string | undefined;
174
177
  } | {
175
178
  type: "calendar_event";
179
+ summary?: string | undefined;
176
180
  when?: string | undefined;
177
181
  attendees?: string[] | undefined;
178
182
  } | {
179
183
  type: "conversation";
184
+ summary?: string | undefined;
180
185
  participants?: string[] | undefined;
181
186
  lastActivityAt?: string | undefined;
187
+ } | {
188
+ type: "document";
189
+ summary?: string | undefined;
190
+ owner?: string | undefined;
191
+ modifiedAt?: string | undefined;
182
192
  } | {
183
193
  type: "message";
194
+ summary?: string | undefined;
184
195
  channel?: string | undefined;
185
196
  author?: string | undefined;
186
197
  sentAt?: string | undefined;
198
+ } | {
199
+ type: "web_page";
200
+ summary?: string | undefined;
201
+ siteName?: string | undefined;
202
+ author?: string | undefined;
203
+ thumbnailUrl?: string | undefined;
187
204
  } | {
188
205
  type: "person";
206
+ summary?: string | undefined;
189
207
  email?: string | undefined;
190
208
  slackHandle?: string | undefined;
191
209
  githubHandle?: string | undefined;