@sentry/junior-google 0.297.0 → 0.299.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.
@@ -0,0 +1,169 @@
1
+ import type { GoogleToolContext } from "./shared";
2
+ /** Replace the whole body of a Google Doc with Markdown content. */
3
+ export declare function createReplaceGoogleDocContentTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
4
+ document: string;
5
+ content: string;
6
+ revision_id: string;
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" | "item" | "message" | "person" | "task";
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
+ author?: string | undefined;
25
+ sourceBranch?: string | undefined;
26
+ targetBranch?: string | undefined;
27
+ reviewers?: string[] | undefined;
28
+ review?: "approved" | "changes_requested" | "required" | undefined;
29
+ checks?: {
30
+ passed: number;
31
+ failed: number;
32
+ pending: number;
33
+ } | undefined;
34
+ mergeable?: boolean | undefined;
35
+ changedFiles?: number | undefined;
36
+ additions?: number | undefined;
37
+ deletions?: number | undefined;
38
+ previewImageUrls?: string[] | undefined;
39
+ } | {
40
+ type: "task";
41
+ 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
+ project?: string | undefined;
50
+ environment?: string | undefined;
51
+ revision?: string | undefined;
52
+ branch?: string | undefined;
53
+ } | {
54
+ type: "calendar_event";
55
+ when?: string | undefined;
56
+ attendees?: string[] | undefined;
57
+ } | {
58
+ type: "conversation";
59
+ participants?: string[] | undefined;
60
+ lastActivityAt?: string | undefined;
61
+ } | {
62
+ type: "message";
63
+ channel?: string | undefined;
64
+ author?: string | undefined;
65
+ sentAt?: string | undefined;
66
+ } | {
67
+ type: "person";
68
+ email?: string | undefined;
69
+ slackHandle?: string | undefined;
70
+ githubHandle?: string | undefined;
71
+ avatarUrl?: string | undefined;
72
+ } | undefined;
73
+ }[] | undefined;
74
+ reply?: {
75
+ text: string;
76
+ url?: string | undefined;
77
+ } | undefined;
78
+ truncated?: boolean | undefined;
79
+ continuation?: {
80
+ arguments: Record<string, unknown>;
81
+ reason?: string | undefined;
82
+ } | undefined;
83
+ document_id: string;
84
+ revision_id?: string | undefined;
85
+ title: string;
86
+ url: string;
87
+ target: "replaceGoogleDocContent";
88
+ }, {
89
+ [x: string]: unknown;
90
+ objectAnnotations?: {
91
+ kind: "object";
92
+ key: string;
93
+ label: string;
94
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
95
+ title: string;
96
+ url: string | null;
97
+ description?: string | undefined;
98
+ status?: string | undefined;
99
+ trigger?: string | undefined;
100
+ warning?: string | undefined;
101
+ displayType?: string | undefined;
102
+ sourceUpdatedAt?: string | undefined;
103
+ facts?: {
104
+ type: "code_change";
105
+ author?: string | undefined;
106
+ sourceBranch?: string | undefined;
107
+ targetBranch?: string | undefined;
108
+ reviewers?: string[] | undefined;
109
+ review?: "approved" | "changes_requested" | "required" | undefined;
110
+ checks?: {
111
+ passed: number;
112
+ failed: number;
113
+ pending: number;
114
+ } | undefined;
115
+ mergeable?: boolean | undefined;
116
+ changedFiles?: number | undefined;
117
+ additions?: number | undefined;
118
+ deletions?: number | undefined;
119
+ previewImageUrls?: string[] | undefined;
120
+ } | {
121
+ type: "task";
122
+ assignees?: string[] | undefined;
123
+ priority?: string | undefined;
124
+ project?: string | undefined;
125
+ cycle?: string | undefined;
126
+ dueDate?: string | undefined;
127
+ labels?: string[] | undefined;
128
+ } | {
129
+ type: "deployment";
130
+ project?: string | undefined;
131
+ environment?: string | undefined;
132
+ revision?: string | undefined;
133
+ branch?: string | undefined;
134
+ } | {
135
+ type: "calendar_event";
136
+ when?: string | undefined;
137
+ attendees?: string[] | undefined;
138
+ } | {
139
+ type: "conversation";
140
+ participants?: string[] | undefined;
141
+ lastActivityAt?: string | undefined;
142
+ } | {
143
+ type: "message";
144
+ channel?: string | undefined;
145
+ author?: string | undefined;
146
+ sentAt?: string | undefined;
147
+ } | {
148
+ type: "person";
149
+ email?: string | undefined;
150
+ slackHandle?: string | undefined;
151
+ githubHandle?: string | undefined;
152
+ avatarUrl?: string | undefined;
153
+ } | undefined;
154
+ }[] | undefined;
155
+ reply?: {
156
+ text: string;
157
+ url?: string | undefined;
158
+ } | undefined;
159
+ truncated?: boolean | undefined;
160
+ continuation?: {
161
+ arguments: Record<string, unknown>;
162
+ reason?: string | undefined;
163
+ } | undefined;
164
+ document_id: string;
165
+ revision_id?: string | undefined;
166
+ title: string;
167
+ url: string;
168
+ target: "replaceGoogleDocContent";
169
+ }>;
@@ -0,0 +1,173 @@
1
+ import type { GoogleToolContext } from "./shared";
2
+ /** Replace every match of a text in a Google Doc. */
3
+ export declare function createReplaceGoogleDocTextTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
4
+ document: string;
5
+ revision_id: string;
6
+ find: string;
7
+ replace: string;
8
+ match_case: boolean;
9
+ }, {
10
+ [x: string]: unknown;
11
+ objectAnnotations?: {
12
+ kind: "object";
13
+ key: string;
14
+ label: string;
15
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
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
+ author?: string | undefined;
27
+ sourceBranch?: string | undefined;
28
+ targetBranch?: string | undefined;
29
+ reviewers?: string[] | undefined;
30
+ review?: "approved" | "changes_requested" | "required" | undefined;
31
+ checks?: {
32
+ passed: number;
33
+ failed: number;
34
+ pending: number;
35
+ } | undefined;
36
+ mergeable?: boolean | undefined;
37
+ changedFiles?: number | undefined;
38
+ additions?: number | undefined;
39
+ deletions?: number | undefined;
40
+ previewImageUrls?: string[] | undefined;
41
+ } | {
42
+ type: "task";
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
+ project?: string | undefined;
52
+ environment?: string | undefined;
53
+ revision?: string | undefined;
54
+ branch?: string | undefined;
55
+ } | {
56
+ type: "calendar_event";
57
+ when?: string | undefined;
58
+ attendees?: string[] | undefined;
59
+ } | {
60
+ type: "conversation";
61
+ participants?: string[] | undefined;
62
+ lastActivityAt?: string | undefined;
63
+ } | {
64
+ type: "message";
65
+ channel?: string | undefined;
66
+ author?: string | undefined;
67
+ sentAt?: string | undefined;
68
+ } | {
69
+ type: "person";
70
+ email?: string | undefined;
71
+ slackHandle?: string | undefined;
72
+ githubHandle?: string | undefined;
73
+ avatarUrl?: string | undefined;
74
+ } | undefined;
75
+ }[] | undefined;
76
+ reply?: {
77
+ text: string;
78
+ url?: string | undefined;
79
+ } | undefined;
80
+ truncated?: boolean | undefined;
81
+ continuation?: {
82
+ arguments: Record<string, unknown>;
83
+ reason?: string | undefined;
84
+ } | undefined;
85
+ document_id: string;
86
+ revision_id?: string | undefined;
87
+ title: string;
88
+ url: string;
89
+ target: "replaceGoogleDocText";
90
+ occurrences_changed: number;
91
+ }, {
92
+ [x: string]: unknown;
93
+ objectAnnotations?: {
94
+ kind: "object";
95
+ key: string;
96
+ label: string;
97
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
98
+ title: string;
99
+ url: string | null;
100
+ description?: string | undefined;
101
+ status?: string | undefined;
102
+ trigger?: string | undefined;
103
+ warning?: string | undefined;
104
+ displayType?: string | undefined;
105
+ sourceUpdatedAt?: string | undefined;
106
+ facts?: {
107
+ type: "code_change";
108
+ author?: string | undefined;
109
+ sourceBranch?: string | undefined;
110
+ targetBranch?: string | undefined;
111
+ reviewers?: string[] | undefined;
112
+ review?: "approved" | "changes_requested" | "required" | undefined;
113
+ checks?: {
114
+ passed: number;
115
+ failed: number;
116
+ pending: number;
117
+ } | undefined;
118
+ mergeable?: boolean | undefined;
119
+ changedFiles?: number | undefined;
120
+ additions?: number | undefined;
121
+ deletions?: number | undefined;
122
+ previewImageUrls?: string[] | undefined;
123
+ } | {
124
+ type: "task";
125
+ assignees?: string[] | undefined;
126
+ priority?: string | undefined;
127
+ project?: string | undefined;
128
+ cycle?: string | undefined;
129
+ dueDate?: string | undefined;
130
+ labels?: string[] | undefined;
131
+ } | {
132
+ type: "deployment";
133
+ project?: string | undefined;
134
+ environment?: string | undefined;
135
+ revision?: string | undefined;
136
+ branch?: string | undefined;
137
+ } | {
138
+ type: "calendar_event";
139
+ when?: string | undefined;
140
+ attendees?: string[] | undefined;
141
+ } | {
142
+ type: "conversation";
143
+ participants?: string[] | undefined;
144
+ lastActivityAt?: string | undefined;
145
+ } | {
146
+ type: "message";
147
+ channel?: string | undefined;
148
+ author?: string | undefined;
149
+ sentAt?: string | undefined;
150
+ } | {
151
+ type: "person";
152
+ email?: string | undefined;
153
+ slackHandle?: string | undefined;
154
+ githubHandle?: string | undefined;
155
+ avatarUrl?: string | undefined;
156
+ } | undefined;
157
+ }[] | undefined;
158
+ reply?: {
159
+ text: string;
160
+ url?: string | undefined;
161
+ } | undefined;
162
+ truncated?: boolean | undefined;
163
+ continuation?: {
164
+ arguments: Record<string, unknown>;
165
+ reason?: string | undefined;
166
+ } | undefined;
167
+ document_id: string;
168
+ revision_id?: string | undefined;
169
+ title: string;
170
+ url: string;
171
+ target: "replaceGoogleDocText";
172
+ occurrences_changed: number;
173
+ }>;
@@ -1,5 +1,8 @@
1
1
  import { type GoogleToolContext } from "./shared";
2
- /** Find Docs, Sheets, and Slides that Junior's account can open. */
2
+ /**
3
+ * Find Docs, Sheets, and Slides that the requester could find in Drive
4
+ * themselves. Never search without the requester's terms.
5
+ */
3
6
  export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
4
7
  query: string;
5
8
  types?: ("document" | "presentation" | "spreadsheet")[] | undefined;
@@ -10,7 +13,7 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
10
13
  kind: "object";
11
14
  key: string;
12
15
  label: string;
13
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
16
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
14
17
  title: string;
15
18
  url: string | null;
16
19
  description?: string | undefined;
@@ -35,6 +38,7 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
35
38
  changedFiles?: number | undefined;
36
39
  additions?: number | undefined;
37
40
  deletions?: number | undefined;
41
+ previewImageUrls?: string[] | undefined;
38
42
  } | {
39
43
  type: "task";
40
44
  assignees?: string[] | undefined;
@@ -53,6 +57,21 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
53
57
  type: "calendar_event";
54
58
  when?: string | undefined;
55
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;
56
75
  } | undefined;
57
76
  }[] | undefined;
58
77
  reply?: {
@@ -78,7 +97,7 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
78
97
  kind: "object";
79
98
  key: string;
80
99
  label: string;
81
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
100
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
82
101
  title: string;
83
102
  url: string | null;
84
103
  description?: string | undefined;
@@ -103,6 +122,7 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
103
122
  changedFiles?: number | undefined;
104
123
  additions?: number | undefined;
105
124
  deletions?: number | undefined;
125
+ previewImageUrls?: string[] | undefined;
106
126
  } | {
107
127
  type: "task";
108
128
  assignees?: string[] | undefined;
@@ -121,6 +141,21 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
121
141
  type: "calendar_event";
122
142
  when?: string | undefined;
123
143
  attendees?: string[] | undefined;
144
+ } | {
145
+ type: "conversation";
146
+ participants?: string[] | undefined;
147
+ lastActivityAt?: string | undefined;
148
+ } | {
149
+ type: "message";
150
+ channel?: string | undefined;
151
+ author?: string | undefined;
152
+ sentAt?: string | undefined;
153
+ } | {
154
+ type: "person";
155
+ email?: string | undefined;
156
+ slackHandle?: string | undefined;
157
+ githubHandle?: string | undefined;
158
+ avatarUrl?: string | undefined;
124
159
  } | undefined;
125
160
  }[] | undefined;
126
161
  reply?: {
@@ -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" | "deployment" | "item" | "task";
134
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
135
135
  title: string;
136
136
  url: string | null;
137
137
  description?: string | undefined;
@@ -156,6 +156,7 @@ export declare function ownEventResult(event: OwnEvent, timeZone: string, accoun
156
156
  changedFiles?: number | undefined;
157
157
  additions?: number | undefined;
158
158
  deletions?: number | undefined;
159
+ previewImageUrls?: string[] | undefined;
159
160
  } | {
160
161
  type: "task";
161
162
  assignees?: string[] | undefined;
@@ -174,6 +175,21 @@ export declare function ownEventResult(event: OwnEvent, timeZone: string, accoun
174
175
  type: "calendar_event";
175
176
  when?: string | undefined;
176
177
  attendees?: string[] | undefined;
178
+ } | {
179
+ type: "conversation";
180
+ participants?: string[] | undefined;
181
+ lastActivityAt?: string | undefined;
182
+ } | {
183
+ type: "message";
184
+ channel?: string | undefined;
185
+ author?: string | undefined;
186
+ sentAt?: string | undefined;
187
+ } | {
188
+ type: "person";
189
+ email?: string | undefined;
190
+ slackHandle?: string | undefined;
191
+ githubHandle?: string | undefined;
192
+ avatarUrl?: string | undefined;
177
193
  } | undefined;
178
194
  }[];
179
195
  attendees: {
@@ -22,7 +22,7 @@ export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): i
22
22
  kind: "object";
23
23
  key: string;
24
24
  label: string;
25
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
25
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
26
26
  title: string;
27
27
  url: string | null;
28
28
  description?: string | undefined;
@@ -47,6 +47,7 @@ export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): i
47
47
  changedFiles?: number | undefined;
48
48
  additions?: number | undefined;
49
49
  deletions?: number | undefined;
50
+ previewImageUrls?: string[] | undefined;
50
51
  } | {
51
52
  type: "task";
52
53
  assignees?: string[] | undefined;
@@ -65,6 +66,21 @@ export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): i
65
66
  type: "calendar_event";
66
67
  when?: string | undefined;
67
68
  attendees?: string[] | undefined;
69
+ } | {
70
+ type: "conversation";
71
+ participants?: string[] | undefined;
72
+ lastActivityAt?: string | undefined;
73
+ } | {
74
+ type: "message";
75
+ channel?: string | undefined;
76
+ author?: string | undefined;
77
+ sentAt?: string | undefined;
78
+ } | {
79
+ type: "person";
80
+ email?: string | undefined;
81
+ slackHandle?: string | undefined;
82
+ githubHandle?: string | undefined;
83
+ avatarUrl?: string | undefined;
68
84
  } | undefined;
69
85
  }[] | undefined;
70
86
  reply?: {
@@ -98,7 +114,7 @@ export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): i
98
114
  kind: "object";
99
115
  key: string;
100
116
  label: string;
101
- objectType: "automation" | "calendar_event" | "code_change" | "deployment" | "item" | "task";
117
+ objectType: "automation" | "calendar_event" | "code_change" | "conversation" | "deployment" | "item" | "message" | "person" | "task";
102
118
  title: string;
103
119
  url: string | null;
104
120
  description?: string | undefined;
@@ -123,6 +139,7 @@ export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): i
123
139
  changedFiles?: number | undefined;
124
140
  additions?: number | undefined;
125
141
  deletions?: number | undefined;
142
+ previewImageUrls?: string[] | undefined;
126
143
  } | {
127
144
  type: "task";
128
145
  assignees?: string[] | undefined;
@@ -141,6 +158,21 @@ export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): i
141
158
  type: "calendar_event";
142
159
  when?: string | undefined;
143
160
  attendees?: string[] | undefined;
161
+ } | {
162
+ type: "conversation";
163
+ participants?: string[] | undefined;
164
+ lastActivityAt?: string | undefined;
165
+ } | {
166
+ type: "message";
167
+ channel?: string | undefined;
168
+ author?: string | undefined;
169
+ sentAt?: string | undefined;
170
+ } | {
171
+ type: "person";
172
+ email?: string | undefined;
173
+ slackHandle?: string | undefined;
174
+ githubHandle?: string | undefined;
175
+ avatarUrl?: string | undefined;
144
176
  } | undefined;
145
177
  }[] | undefined;
146
178
  reply?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-google",
3
- "version": "0.297.0",
3
+ "version": "0.299.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -25,7 +25,7 @@
25
25
  "commander": "^14.0.3",
26
26
  "drizzle-orm": "^0.45.2",
27
27
  "zod": "^4.5.4",
28
- "@sentry/junior-plugin-api": "0.297.0"
28
+ "@sentry/junior-plugin-api": "0.299.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@oxlint/plugins": "1.79.0",