@sentry/junior-google 0.275.0 → 0.277.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.
package/dist/index.js CHANGED
@@ -796,7 +796,7 @@ import {
796
796
  } from "@sentry/junior-plugin-api";
797
797
  import { z as z2 } from "zod";
798
798
  var emailListSchema = (max) => z2.array(z2.string().trim().toLowerCase().pipe(z2.email())).max(max).describe("Attendee email addresses.");
799
- var timeZoneSchema = z2.string().min(1).refine(isTimeZone, "timeZone must be an IANA time zone").optional().describe(
799
+ var timeZoneSchema = z2.string().min(1).refine(isTimeZone, "time_zone must be an IANA time zone").optional().describe(
800
800
  "IANA time zone used to read and show times, such as America/Los_Angeles. Omit to use the requester's time zone."
801
801
  );
802
802
  function isTimeZone(value) {
@@ -964,34 +964,34 @@ function ownEventResult(event, timeZone) {
964
964
  objectAnnotations: [annotation],
965
965
  attendees: attendeeResults(event.attendees),
966
966
  end: event.end.dateTime,
967
- eventId: event.id,
967
+ event_id: event.id,
968
968
  label: when,
969
969
  start: event.start.dateTime,
970
970
  ...event.summary ? { title: event.summary } : void 0,
971
971
  ...event.location ? { location: event.location } : void 0,
972
972
  ...event.recurrence ? { repeats: true } : void 0,
973
- ...event.recurringEventId ? { seriesEventId: event.recurringEventId } : void 0,
973
+ ...event.recurringEventId ? { series_event_id: event.recurringEventId } : void 0,
974
974
  ...event.htmlLink ? { url: event.htmlLink } : void 0,
975
- ...event.hangoutLink ? { videoCallUrl: event.hangoutLink } : void 0
975
+ ...event.hangoutLink ? { video_call_url: event.hangoutLink } : void 0
976
976
  };
977
977
  }
978
978
  var ownEventOutputFields = {
979
979
  attendees: z2.array(attendeeOutputSchema),
980
980
  end: z2.string(),
981
- eventId: z2.string(),
981
+ event_id: z2.string(),
982
982
  label: z2.string(),
983
983
  location: z2.string().optional(),
984
984
  repeats: z2.boolean().optional().describe("True when this event id is a whole repeating series."),
985
- seriesEventId: z2.string().optional().describe(
986
- "Set when this is one occurrence of a repeating event. Use it as eventId to change or cancel the whole series."
985
+ series_event_id: z2.string().optional().describe(
986
+ "Set when this is one occurrence of a repeating event. Use it as event_id to change or cancel the whole series."
987
987
  ),
988
988
  start: z2.string(),
989
989
  title: z2.string().optional(),
990
990
  url: z2.string().optional(),
991
- videoCallUrl: z2.string().optional()
991
+ video_call_url: z2.string().optional()
992
992
  };
993
993
  var ownEventIdSchema = z2.string().trim().min(5).max(2048).describe(
994
- "Event id from a Calendar tool, or a Google Calendar event link. An occurrence of a repeating event has its own id; its seriesEventId is the whole series."
994
+ "Event id from a Calendar tool, or a Google Calendar event link. An occurrence of a repeating event has its own id; its series_event_id is the whole series."
995
995
  );
996
996
  var EVENT_ID_PATTERN = /^[A-Za-z0-9_]{5,1024}$/;
997
997
  function parseEventId(value) {
@@ -1050,8 +1050,8 @@ async function readOwnEventForRequester(ctx, eventIdOrLink, action) {
1050
1050
 
1051
1051
  // src/tools/cancel-event.ts
1052
1052
  var inputSchema = z3.object({
1053
- eventId: ownEventIdSchema,
1054
- timeZone: timeZoneSchema
1053
+ event_id: ownEventIdSchema,
1054
+ time_zone: timeZoneSchema
1055
1055
  }).strict();
1056
1056
  var outputSchema = pluginToolOutputSchema.extend({
1057
1057
  target: z3.literal("cancelCalendarEvent"),
@@ -1069,19 +1069,23 @@ function createCancelCalendarEventTool(ctx) {
1069
1069
  readOnlyHint: false
1070
1070
  },
1071
1071
  describeProposal(input) {
1072
- return `Cancel Google Calendar event ${input.eventId} organized by the connected Google account. Google emails every attendee a cancellation.`;
1072
+ return `Cancel Google Calendar event ${input.event_id} organized by the connected Google account. Google emails every attendee a cancellation.`;
1073
1073
  },
1074
- description: "Cancel a Google Calendar event organized by your own Google account. Google removes it from every attendee's calendar and emails them a cancellation. Only people invited to the event can ask to cancel it. You cannot cancel events other people organize. For a repeating event, an occurrence id cancels only that occurrence; its seriesEventId cancels every occurrence. Confirm which event, and for a repeating event whether one occurrence or the series, unless the requester already made it clear.",
1074
+ description: "Cancel a Google Calendar event organized by your own Google account. Google removes it from every attendee's calendar and emails them a cancellation. Only people invited to the event can ask to cancel it. You cannot cancel events other people organize. For a repeating event, an occurrence id cancels only that occurrence; its series_event_id cancels every occurrence. Confirm which event, and for a repeating event whether one occurrence or the series, unless the requester already made it clear.",
1075
1075
  inputSchema,
1076
1076
  outputSchema,
1077
1077
  async execute(input) {
1078
- const timeZone = input.timeZone ?? await ctx.users.resolveTimezone();
1079
- const read = await readOwnEventForRequester(ctx, input.eventId, "cancel");
1078
+ const timeZone = input.time_zone ?? await ctx.users.resolveTimezone();
1079
+ const read = await readOwnEventForRequester(
1080
+ ctx,
1081
+ input.event_id,
1082
+ "cancel"
1083
+ );
1080
1084
  if (read.status === "cancelled") {
1081
1085
  return {
1082
1086
  target: "cancelCalendarEvent",
1083
1087
  cancelled: false,
1084
- eventId: read.eventId
1088
+ event_id: read.eventId
1085
1089
  };
1086
1090
  }
1087
1091
  const { event, path } = read;
@@ -1145,11 +1149,11 @@ var inputSchema2 = z4.object({
1145
1149
  location: z4.string().trim().max(500).optional().describe("Room name or address for an in-person meeting."),
1146
1150
  start: z4.iso.datetime({ offset: true }).describe("Event start, RFC 3339 with offset."),
1147
1151
  end: z4.iso.datetime({ offset: true }).describe("Event end, RFC 3339 with offset."),
1148
- timeZone: timeZoneSchema,
1152
+ time_zone: timeZoneSchema,
1149
1153
  attendees: emailListSchema(50).describe(
1150
1154
  "Email addresses of required attendees. The tool adds the requester automatically when their email is known."
1151
1155
  ),
1152
- optionalAttendees: emailListSchema(50).default([]).describe("Email addresses to invite as optional attendees."),
1156
+ optional_attendees: emailListSchema(50).default([]).describe("Email addresses to invite as optional attendees."),
1153
1157
  repeat: repeatSchema.optional().describe("Make a repeating series, such as a weekly 1:1.")
1154
1158
  }).strict();
1155
1159
  var outputSchema2 = pluginToolOutputSchema2.extend({
@@ -1169,7 +1173,7 @@ function createCreateCalendarEventTool(ctx) {
1169
1173
  readOnlyHint: false
1170
1174
  },
1171
1175
  describeProposal(input) {
1172
- const optional = input.optionalAttendees.length ? ` (optional: ${input.optionalAttendees.join(", ")})` : "";
1176
+ const optional = input.optional_attendees.length ? ` (optional: ${input.optional_attendees.join(", ")})` : "";
1173
1177
  const repeat = input.repeat ? `, repeating ${recurrenceRule(input.repeat)}` : "";
1174
1178
  return `Create Google Calendar event "${input.title}" from ${input.start} to ${input.end}${repeat} and email invites to ${input.attendees.join(", ") || "the requester"}${optional}.`;
1175
1179
  },
@@ -1177,7 +1181,7 @@ function createCreateCalendarEventTool(ctx) {
1177
1181
  inputSchema: inputSchema2,
1178
1182
  outputSchema: outputSchema2,
1179
1183
  async execute(input, options) {
1180
- const timeZone = input.timeZone ?? await ctx.users.resolveTimezone();
1184
+ const timeZone = input.time_zone ?? await ctx.users.resolveTimezone();
1181
1185
  const startMs = Date.parse(input.start);
1182
1186
  const endMs = Date.parse(input.end);
1183
1187
  if (endMs <= startMs) {
@@ -1188,7 +1192,7 @@ function createCreateCalendarEventTool(ctx) {
1188
1192
  }
1189
1193
  const attendees = await withRequester(ctx, input.attendees);
1190
1194
  const required = new Set(attendees);
1191
- const optionalAttendees = [...new Set(input.optionalAttendees)].filter(
1195
+ const optionalAttendees = [...new Set(input.optional_attendees)].filter(
1192
1196
  (email) => !required.has(email)
1193
1197
  );
1194
1198
  if (attendees.length + optionalAttendees.length === 0) {
@@ -1264,37 +1268,37 @@ var clockTimeSchema = z5.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/, "Use 24-hou
1264
1268
  var WEEKDAYS = ["Mon", "Tue", "Wed", "Thu", "Fri"];
1265
1269
  var inputSchema3 = z5.object({
1266
1270
  attendees: emailListSchema(20).min(1).describe(
1267
- "Work emails of the people who must attend. Resolve names with userLookup. The runtime adds the requester as required when it knows their email. To make the requester optional, put their email in optionalAttendees."
1271
+ "Work emails of the people who must attend. Resolve names with userLookup. The runtime adds the requester as required when it knows their email. To make the requester optional, put their email in optional_attendees."
1268
1272
  ),
1269
- optionalAttendees: emailListSchema(20).default([]).describe(
1273
+ optional_attendees: emailListSchema(20).default([]).describe(
1270
1274
  'Work emails of people the requester calls optional or "if free". Their conflicts do not block a slot; slots where they are free come first. Put the requester here when their own calendar must not block a slot, such as when they say some events are only holds.'
1271
1275
  ),
1272
- durationMinutes: z5.number().int().min(15).max(480).default(30),
1273
- timeMin: z5.iso.datetime({ offset: true }).optional().describe(
1276
+ duration_minutes: z5.number().int().min(15).max(480).default(30),
1277
+ time_min: z5.iso.datetime({ offset: true }).optional().describe(
1274
1278
  "Start of the search window, RFC 3339 with offset. Defaults to now. For an exact requested time, search only that slot."
1275
1279
  ),
1276
- timeMax: z5.iso.datetime({ offset: true }).optional().describe(
1277
- "End of the search window, RFC 3339 with offset. Defaults to 7 days after timeMin. At most 14 days after timeMin."
1280
+ time_max: z5.iso.datetime({ offset: true }).optional().describe(
1281
+ "End of the search window, RFC 3339 with offset. Defaults to 7 days after time_min. At most 14 days after time_min."
1278
1282
  ),
1279
- timeZone: timeZoneSchema.describe(
1283
+ time_zone: timeZoneSchema.describe(
1280
1284
  "IANA time zone for slot labels, such as America/Los_Angeles. Omit to use the requester's time zone. It is also the working-hours zone for anyone whose calendar time zone you cannot read."
1281
1285
  ),
1282
- workdayStart: clockTimeSchema.default("09:00").describe(
1286
+ workday_start: clockTimeSchema.default("09:00").describe(
1283
1287
  "Earliest local start, 24-hour HH:MM, in each attendee's own calendar time zone."
1284
1288
  ),
1285
- workdayEnd: clockTimeSchema.default("17:00").describe(
1289
+ workday_end: clockTimeSchema.default("17:00").describe(
1286
1290
  "Latest local end, 24-hour HH:MM, in each attendee's own calendar time zone."
1287
1291
  ),
1288
1292
  weekdays: z5.array(z5.enum(WEEKDAYS)).min(1).optional().describe(
1289
- "Only return slots on these days, in the timeZone of the slot labels. Omit to search every weekday."
1293
+ "Only return slots on these days, in the time_zone of the slot labels. Omit to search every weekday."
1290
1294
  ),
1291
- maxResults: z5.number().int().min(1).max(20).default(3)
1295
+ max_results: z5.number().int().min(1).max(20).default(3)
1292
1296
  }).strict();
1293
1297
  var slotSchema = z5.object({
1294
1298
  end: z5.string(),
1295
1299
  label: z5.string().describe("The slot in the requester's time zone."),
1296
- otherTimeZoneLabels: z5.array(z5.string()).optional().describe("The slot in the other attendees' time zones."),
1297
- optionalConflicts: z5.array(z5.string()).optional().describe(
1300
+ other_time_zone_labels: z5.array(z5.string()).optional().describe("The slot in the other attendees' time zones."),
1301
+ optional_conflicts: z5.array(z5.string()).optional().describe(
1298
1302
  "Optional attendees who are busy or outside their working hours at this time."
1299
1303
  ),
1300
1304
  start: z5.string()
@@ -1304,13 +1308,13 @@ var outputSchema3 = pluginToolOutputSchema3.extend({
1304
1308
  checked: z5.array(
1305
1309
  z5.object({
1306
1310
  email: z5.string(),
1307
- timeZone: z5.string().optional().describe(
1311
+ time_zone: z5.string().optional().describe(
1308
1312
  "Time zone of the person's calendar. Missing when you cannot read it; their hours then use the requester's time zone."
1309
1313
  )
1310
1314
  })
1311
1315
  ),
1312
1316
  slots: z5.array(slotSchema),
1313
- timeZone: z5.string(),
1317
+ time_zone: z5.string(),
1314
1318
  unavailable: z5.array(z5.object({ email: z5.string(), reason: z5.string() }))
1315
1319
  });
1316
1320
  var freeBusyResponseSchema = z5.object({
@@ -1479,26 +1483,26 @@ function createFindMeetingTimesTool(ctx) {
1479
1483
  inputSchema: inputSchema3,
1480
1484
  outputSchema: outputSchema3,
1481
1485
  async execute(input) {
1482
- const timeZone = input.timeZone ?? await ctx.users.resolveTimezone();
1486
+ const timeZone = input.time_zone ?? await ctx.users.resolveTimezone();
1483
1487
  const timeMinMs = Math.max(
1484
- input.timeMin ? Date.parse(input.timeMin) : 0,
1488
+ input.time_min ? Date.parse(input.time_min) : 0,
1485
1489
  Date.now()
1486
1490
  );
1487
- const timeMaxMs = input.timeMax ? Date.parse(input.timeMax) : timeMinMs + DEFAULT_WINDOW_MS;
1491
+ const timeMaxMs = input.time_max ? Date.parse(input.time_max) : timeMinMs + DEFAULT_WINDOW_MS;
1488
1492
  if (timeMaxMs <= timeMinMs) {
1489
1493
  throw new PluginToolInputError3(
1490
- "timeMax must be after timeMin and now."
1494
+ "time_max must be after time_min and now."
1491
1495
  );
1492
1496
  }
1493
1497
  if (wallClockMs(timeMinMs, timeMaxMs, timeZone) > MAX_WINDOW_MS) {
1494
1498
  throw new PluginToolInputError3("Search at most 14 days at a time.");
1495
1499
  }
1496
- if (clockMinutes(input.workdayEnd) <= clockMinutes(input.workdayStart)) {
1500
+ if (clockMinutes(input.workday_end) <= clockMinutes(input.workday_start)) {
1497
1501
  throw new PluginToolInputError3(
1498
- "workdayEnd must be after workdayStart."
1502
+ "workday_end must be after workday_start."
1499
1503
  );
1500
1504
  }
1501
- const optionalEmails = new Set(input.optionalAttendees);
1505
+ const optionalEmails = new Set(input.optional_attendees);
1502
1506
  const attendees = (await withRequester(ctx, input.attendees)).filter(
1503
1507
  (email) => input.attendees.includes(email) || !optionalEmails.has(email)
1504
1508
  );
@@ -1537,7 +1541,7 @@ function createFindMeetingTimesTool(ctx) {
1537
1541
  const calendarZone = timeZones[index];
1538
1542
  checked.push({
1539
1543
  email,
1540
- ...calendarZone ? { timeZone: calendarZone } : void 0
1544
+ ...calendarZone ? { time_zone: calendarZone } : void 0
1541
1545
  });
1542
1546
  slotAttendees.push({
1543
1547
  busy: calendar.busy.map((interval) => ({
@@ -1551,14 +1555,14 @@ function createFindMeetingTimesTool(ctx) {
1551
1555
  });
1552
1556
  const slots = !slotAttendees.some((attendee) => attendee.required) ? [] : findFreeSlots({
1553
1557
  attendees: slotAttendees,
1554
- durationMinutes: input.durationMinutes,
1555
- maxResults: input.maxResults,
1558
+ durationMinutes: input.duration_minutes,
1559
+ maxResults: input.max_results,
1556
1560
  timeMaxMs,
1557
1561
  timeMinMs,
1558
1562
  timeZone,
1559
1563
  weekdays: input.weekdays,
1560
- workdayEnd: input.workdayEnd,
1561
- workdayStart: input.workdayStart
1564
+ workdayEnd: input.workday_end,
1565
+ workdayStart: input.workday_start
1562
1566
  });
1563
1567
  const otherTimeZones = [
1564
1568
  ...new Set(slotAttendees.map((attendee) => attendee.timeZone))
@@ -1570,14 +1574,14 @@ function createFindMeetingTimesTool(ctx) {
1570
1574
  end: new Date(slot.endMs).toISOString(),
1571
1575
  label: formatInterval(slot.startMs, slot.endMs, timeZone),
1572
1576
  ...otherTimeZones.length ? {
1573
- otherTimeZoneLabels: otherTimeZones.map(
1577
+ other_time_zone_labels: otherTimeZones.map(
1574
1578
  (zone) => formatInterval(slot.startMs, slot.endMs, zone)
1575
1579
  )
1576
1580
  } : void 0,
1577
- ...slot.optionalConflicts.length ? { optionalConflicts: slot.optionalConflicts } : void 0,
1581
+ ...slot.optionalConflicts.length ? { optional_conflicts: slot.optionalConflicts } : void 0,
1578
1582
  start: new Date(slot.startMs).toISOString()
1579
1583
  })),
1580
- timeZone,
1584
+ time_zone: timeZone,
1581
1585
  unavailable: unavailable2
1582
1586
  };
1583
1587
  }
@@ -1686,7 +1690,7 @@ async function readGoogleFile(ctx, file, types) {
1686
1690
  }
1687
1691
  function fileOutputFields(file) {
1688
1692
  return {
1689
- ...file.modifiedTime ? { modifiedTime: file.modifiedTime } : void 0,
1693
+ ...file.modifiedTime ? { modified_at: file.modifiedTime } : void 0,
1690
1694
  ...file.webViewLink ? { url: file.webViewLink } : void 0
1691
1695
  };
1692
1696
  }
@@ -1695,28 +1699,28 @@ var MAX_CONTENT_CHARS = 1e5;
1695
1699
  // src/tools/list-file-comments.ts
1696
1700
  var inputSchema4 = z7.object({
1697
1701
  file: fileReferenceSchema("Google Docs, Sheets, or Slides"),
1698
- pageToken: z7.string().min(1).max(2048).optional().describe("nextPageToken from an earlier call, to read more comments.")
1702
+ page_token: z7.string().min(1).max(2048).optional().describe("next_page_token from an earlier call, to read more comments.")
1699
1703
  }).strict();
1700
1704
  var replyOutputSchema = z7.object({
1701
1705
  action: z7.enum(["resolve", "reopen"]).optional().describe("Set when the reply resolved or reopened the comment."),
1702
1706
  author: z7.string().optional(),
1703
1707
  content: z7.string(),
1704
- createdTime: z7.string().optional()
1708
+ created_at: z7.string().optional()
1705
1709
  });
1706
1710
  var commentOutputSchema = z7.object({
1707
1711
  author: z7.string().optional(),
1708
- commentId: z7.string(),
1712
+ comment_id: z7.string(),
1709
1713
  content: z7.string(),
1710
- createdTime: z7.string().optional(),
1711
- quotedText: z7.string().optional().describe("The file text that the comment is attached to."),
1714
+ created_at: z7.string().optional(),
1715
+ quoted_text: z7.string().optional().describe("The file text that the comment is attached to."),
1712
1716
  replies: z7.array(replyOutputSchema),
1713
1717
  resolved: z7.boolean()
1714
1718
  });
1715
1719
  var outputSchema4 = pluginToolOutputSchema4.extend({
1716
1720
  target: z7.literal("listGoogleFileComments"),
1717
1721
  comments: z7.array(commentOutputSchema),
1718
- fileId: z7.string(),
1719
- nextPageToken: z7.string().optional().describe("Set when the file has more comments. Pass it as pageToken.")
1722
+ file_id: z7.string(),
1723
+ next_page_token: z7.string().optional().describe("Set when the file has more comments. Pass it as page_token.")
1720
1724
  });
1721
1725
  var authorSchema = z7.object({ displayName: z7.string().optional() }).optional();
1722
1726
  var commentListSchema = z7.object({
@@ -1750,7 +1754,7 @@ function createListGoogleFileCommentsTool(ctx) {
1750
1754
  openWorldHint: true,
1751
1755
  readOnlyHint: true
1752
1756
  },
1753
- description: "List the comments and replies on one Google Doc, Sheet, or Slides presentation, as your own Google account sees them. Each comment gives its author, text, the file text it is attached to, and whether it is resolved. Works for files shared with that account and files shared with anyone who has the link. Returns up to 100 comments per call; pass nextPageToken as pageToken to read more. Comments can be private: share only what the requester needs.",
1757
+ description: "List the comments and replies on one Google Doc, Sheet, or Slides presentation, as your own Google account sees them. Each comment gives its author, text, the file text it is attached to, and whether it is resolved. Works for files shared with that account and files shared with anyone who has the link. Returns up to 100 comments per call; pass next_page_token as page_token to read more. Comments can be private: share only what the requester needs.",
1754
1758
  inputSchema: inputSchema4,
1755
1759
  outputSchema: outputSchema4,
1756
1760
  async execute(input) {
@@ -1762,7 +1766,7 @@ function createListGoogleFileCommentsTool(ctx) {
1762
1766
  query: {
1763
1767
  fields: COMMENT_FIELDS,
1764
1768
  pageSize: "100",
1765
- ...input.pageToken ? { pageToken: input.pageToken } : void 0
1769
+ ...input.page_token ? { pageToken: input.page_token } : void 0
1766
1770
  }
1767
1771
  });
1768
1772
  const { comments, nextPageToken } = commentListSchema.parse(
@@ -1772,20 +1776,20 @@ function createListGoogleFileCommentsTool(ctx) {
1772
1776
  target: "listGoogleFileComments",
1773
1777
  comments: comments.map((comment) => ({
1774
1778
  ...comment.author?.displayName ? { author: comment.author.displayName } : void 0,
1775
- commentId: comment.id,
1779
+ comment_id: comment.id,
1776
1780
  content: comment.content,
1777
- ...comment.createdTime ? { createdTime: comment.createdTime } : void 0,
1778
- ...comment.quotedFileContent?.value ? { quotedText: comment.quotedFileContent.value } : void 0,
1781
+ ...comment.createdTime ? { created_at: comment.createdTime } : void 0,
1782
+ ...comment.quotedFileContent?.value ? { quoted_text: comment.quotedFileContent.value } : void 0,
1779
1783
  replies: comment.replies.map((reply) => ({
1780
1784
  ...reply.action ? { action: reply.action } : void 0,
1781
1785
  ...reply.author?.displayName ? { author: reply.author.displayName } : void 0,
1782
1786
  content: reply.content,
1783
- ...reply.createdTime ? { createdTime: reply.createdTime } : void 0
1787
+ ...reply.createdTime ? { created_at: reply.createdTime } : void 0
1784
1788
  })),
1785
1789
  resolved: comment.resolved === true
1786
1790
  })),
1787
- fileId: ref.fileId,
1788
- ...nextPageToken ? { nextPageToken } : void 0
1791
+ file_id: ref.fileId,
1792
+ ...nextPageToken ? { next_page_token: nextPageToken } : void 0
1789
1793
  };
1790
1794
  }
1791
1795
  });
@@ -1803,36 +1807,36 @@ var inputSchema5 = z8.object({
1803
1807
  calendar: z8.string().trim().toLowerCase().pipe(z8.email()).optional().describe(
1804
1808
  "Email address of the person whose calendar to read. Omit to read your own calendar, which holds every event you organize."
1805
1809
  ),
1806
- timeMin: z8.iso.datetime({ offset: true }).describe("Start of the window, RFC 3339 with offset."),
1807
- timeMax: z8.iso.datetime({ offset: true }).describe(
1808
- "End of the window, RFC 3339 with offset. At most 31 days after timeMin."
1810
+ time_min: z8.iso.datetime({ offset: true }).describe("Start of the window, RFC 3339 with offset."),
1811
+ time_max: z8.iso.datetime({ offset: true }).describe(
1812
+ "End of the window, RFC 3339 with offset. At most 31 days after time_min."
1809
1813
  ),
1810
- timeZone: timeZoneSchema,
1811
- maxResults: z8.number().int().min(1).max(100).default(50)
1814
+ time_zone: timeZoneSchema,
1815
+ max_results: z8.number().int().min(1).max(100).default(50)
1812
1816
  }).strict();
1813
1817
  var eventSchema = z8.object({
1814
1818
  attendees: z8.array(attendeeOutputSchema).optional(),
1815
1819
  end: z8.string(),
1816
- eventId: z8.string(),
1820
+ event_id: z8.string(),
1817
1821
  label: z8.string(),
1818
1822
  location: z8.string().optional(),
1819
1823
  organizer: z8.string().optional(),
1820
- organizedByJunior: z8.boolean().describe(
1821
- "True when you organize the event, so you can change or cancel it with this eventId."
1824
+ organized_by_junior: z8.boolean().describe(
1825
+ "True when you organize the event, so you can change or cancel it with this event_id."
1822
1826
  ),
1823
- seriesEventId: z8.string().optional().describe(
1827
+ series_event_id: z8.string().optional().describe(
1824
1828
  "Set when this is one occurrence of a repeating event. It is the id of the whole series."
1825
1829
  ),
1826
1830
  start: z8.string(),
1827
1831
  title: z8.string().optional(),
1828
1832
  url: z8.string().optional(),
1829
- videoCallUrl: z8.string().optional()
1833
+ video_call_url: z8.string().optional()
1830
1834
  });
1831
1835
  var outputSchema5 = pluginToolOutputSchema5.extend({
1832
1836
  target: z8.literal("listCalendarEvents"),
1833
1837
  calendar: z8.string(),
1834
1838
  events: z8.array(eventSchema),
1835
- timeZone: z8.string(),
1839
+ time_zone: z8.string(),
1836
1840
  truncated: z8.boolean(),
1837
1841
  visible: z8.boolean()
1838
1842
  });
@@ -1888,11 +1892,11 @@ function createListCalendarEventsTool(ctx) {
1888
1892
  inputSchema: inputSchema5,
1889
1893
  outputSchema: outputSchema5,
1890
1894
  async execute(input) {
1891
- const timeZone = input.timeZone ?? await ctx.users.resolveTimezone();
1892
- const timeMinMs = Date.parse(input.timeMin);
1893
- const timeMaxMs = Date.parse(input.timeMax);
1895
+ const timeZone = input.time_zone ?? await ctx.users.resolveTimezone();
1896
+ const timeMinMs = Date.parse(input.time_min);
1897
+ const timeMaxMs = Date.parse(input.time_max);
1894
1898
  if (timeMaxMs <= timeMinMs) {
1895
- throw new PluginToolInputError5("timeMax must be after timeMin.");
1899
+ throw new PluginToolInputError5("time_max must be after time_min.");
1896
1900
  }
1897
1901
  if (timeMaxMs - timeMinMs > MAX_WINDOW_MS2) {
1898
1902
  throw new PluginToolInputError5("Read at most 31 days at a time.");
@@ -1903,7 +1907,7 @@ function createListCalendarEventsTool(ctx) {
1903
1907
  operation: "google.calendar.events.list",
1904
1908
  path: `/calendar/v3/calendars/${calendar === ctx.accountEmail ? "primary" : encodeURIComponent(calendar)}/events`,
1905
1909
  query: {
1906
- maxResults: String(input.maxResults),
1910
+ maxResults: String(input.max_results),
1907
1911
  orderBy: "startTime",
1908
1912
  singleEvents: "true",
1909
1913
  timeMax: new Date(timeMaxMs).toISOString(),
@@ -1914,7 +1918,7 @@ function createListCalendarEventsTool(ctx) {
1914
1918
  const result = {
1915
1919
  target: "listCalendarEvents",
1916
1920
  calendar,
1917
- timeZone
1921
+ time_zone: timeZone
1918
1922
  };
1919
1923
  if (response.status === 404) {
1920
1924
  return { ...result, events: [], truncated: false, visible: false };
@@ -1927,17 +1931,17 @@ function createListCalendarEventsTool(ctx) {
1927
1931
  ...result,
1928
1932
  events: items.filter((event) => event.status !== "cancelled").map((event) => ({
1929
1933
  end: event.end.dateTime ?? lastAllDayDate(event.end) ?? "",
1930
- eventId: event.id,
1934
+ event_id: event.id,
1931
1935
  label: eventLabel(event.start, event.end, timeZone),
1932
1936
  start: event.start.dateTime ?? event.start.date ?? "",
1933
1937
  ...event.summary ? { title: event.summary } : void 0,
1934
1938
  ...event.location ? { location: event.location } : void 0,
1935
1939
  ...event.organizer?.email ? { organizer: event.organizer.email } : void 0,
1936
- organizedByJunior: event.organizer?.email?.toLowerCase() === ctx.accountEmail,
1937
- ...event.recurringEventId ? { seriesEventId: event.recurringEventId } : void 0,
1940
+ organized_by_junior: event.organizer?.email?.toLowerCase() === ctx.accountEmail,
1941
+ ...event.recurringEventId ? { series_event_id: event.recurringEventId } : void 0,
1938
1942
  ...event.attendees ? { attendees: attendeeResults(event.attendees) } : void 0,
1939
1943
  ...event.htmlLink ? { url: event.htmlLink } : void 0,
1940
- ...event.hangoutLink ? { videoCallUrl: event.hangoutLink } : void 0
1944
+ ...event.hangoutLink ? { video_call_url: event.hangoutLink } : void 0
1941
1945
  })),
1942
1946
  truncated: nextPageToken !== void 0,
1943
1947
  visible: true
@@ -1958,8 +1962,8 @@ var inputSchema6 = z9.object({
1958
1962
  var outputSchema6 = pluginToolOutputSchema6.extend({
1959
1963
  target: z9.literal("readGoogleDoc"),
1960
1964
  content: z9.string().describe("Doc text as Markdown."),
1961
- documentId: z9.string(),
1962
- modifiedTime: z9.string().optional(),
1965
+ document_id: z9.string(),
1966
+ modified_at: z9.string().optional(),
1963
1967
  title: z9.string(),
1964
1968
  truncated: z9.boolean().describe(
1965
1969
  `True when the Doc is longer than ${MAX_CONTENT_CHARS} characters and the end is left out.`
@@ -1990,7 +1994,7 @@ function createReadGoogleDocTool(ctx) {
1990
1994
  return {
1991
1995
  target: "readGoogleDoc",
1992
1996
  content: content.slice(0, MAX_CONTENT_CHARS),
1993
- documentId: file.id,
1997
+ document_id: file.id,
1994
1998
  ...fileOutputFields(file),
1995
1999
  title: file.name,
1996
2000
  truncated: content.length > MAX_CONTENT_CHARS
@@ -2013,8 +2017,8 @@ function meetingRecordKind(title) {
2013
2017
  }
2014
2018
  var EARLY_START_MS = 30 * 60 * 1e3;
2015
2019
  var inputSchema7 = z10.object({
2016
- eventId: z10.string().trim().min(5).max(2048).describe(
2017
- "Event id from listCalendarEvents on your own calendar, or a Google Calendar event link. For a repeating meeting, use the id of the occurrence, not its seriesEventId."
2020
+ event_id: z10.string().trim().min(5).max(2048).describe(
2021
+ "Event id from listCalendarEvents on your own calendar, or a Google Calendar event link. For a repeating meeting, use the id of the occurrence, not its series_event_id."
2018
2022
  )
2019
2023
  }).strict();
2020
2024
  var recordOutputSchema = z10.object({
@@ -2032,7 +2036,7 @@ var recordOutputSchema = z10.object({
2032
2036
  });
2033
2037
  var outputSchema7 = pluginToolOutputSchema7.extend({
2034
2038
  target: z10.literal("readMeetingTranscript"),
2035
- eventId: z10.string(),
2039
+ event_id: z10.string(),
2036
2040
  message: z10.string().optional(),
2037
2041
  records: z10.array(recordOutputSchema),
2038
2042
  status: z10.enum(["ok", "no_record"]).describe(
@@ -2143,12 +2147,12 @@ function createReadMeetingTranscriptTool(ctx) {
2143
2147
  inputSchema: inputSchema7,
2144
2148
  outputSchema: outputSchema7,
2145
2149
  async execute(input) {
2146
- const { event, eventId } = await readInvitedEvent(ctx, input.eventId);
2150
+ const { event, eventId } = await readInvitedEvent(ctx, input.event_id);
2147
2151
  const startMs = eventStartMs(event.start);
2148
2152
  const organizer = event.organizer?.self ? ctx.accountEmail : event.organizer?.email?.toLowerCase();
2149
2153
  const base = {
2150
2154
  target: "readMeetingTranscript",
2151
- eventId,
2155
+ event_id: eventId,
2152
2156
  records: [],
2153
2157
  truncated: false,
2154
2158
  ...event.summary ? { title: event.summary } : void 0
@@ -2240,7 +2244,7 @@ var inputSchema8 = z11.object({
2240
2244
  }).strict();
2241
2245
  var outputSchema8 = pluginToolOutputSchema8.extend({
2242
2246
  target: z11.literal("readGoogleSheet"),
2243
- modifiedTime: z11.string().optional(),
2247
+ modified_at: z11.string().optional(),
2244
2248
  ranges: z11.array(
2245
2249
  z11.object({
2246
2250
  content: z11.string().describe("Cell values as CSV, as the Sheet shows them."),
@@ -2248,7 +2252,7 @@ var outputSchema8 = pluginToolOutputSchema8.extend({
2248
2252
  truncated: z11.boolean().describe("True when rows at the end of this range are left out.")
2249
2253
  })
2250
2254
  ),
2251
- spreadsheetId: z11.string(),
2255
+ spreadsheet_id: z11.string(),
2252
2256
  tabs: z11.array(z11.string()).describe("Names of every tab in the Sheet."),
2253
2257
  title: z11.string(),
2254
2258
  truncated: z11.boolean().describe(
@@ -2330,7 +2334,7 @@ function createReadGoogleSheetTool(ctx) {
2330
2334
  target: "readGoogleSheet",
2331
2335
  ...fileOutputFields(file),
2332
2336
  ranges,
2333
- spreadsheetId: file.id,
2337
+ spreadsheet_id: file.id,
2334
2338
  tabs,
2335
2339
  title: file.name,
2336
2340
  truncated: ranges.some((range) => range.truncated)
@@ -2350,13 +2354,13 @@ var inputSchema9 = z12.object({
2350
2354
  }).strict();
2351
2355
  var outputSchema9 = pluginToolOutputSchema9.extend({
2352
2356
  target: z12.literal("readGoogleSlides"),
2353
- modifiedTime: z12.string().optional(),
2354
- presentationId: z12.string(),
2355
- slideCount: z12.number().int(),
2357
+ modified_at: z12.string().optional(),
2358
+ presentation_id: z12.string(),
2359
+ slide_count: z12.number().int(),
2356
2360
  slides: z12.array(
2357
2361
  z12.object({
2358
2362
  notes: z12.string().optional().describe("Speaker notes."),
2359
- slideNumber: z12.number().int(),
2363
+ slide_number: z12.number().int(),
2360
2364
  text: z12.string().describe("Text in the shapes and tables of the slide.")
2361
2365
  })
2362
2366
  ),
@@ -2451,15 +2455,15 @@ function createReadGoogleSlidesTool(ctx) {
2451
2455
  remaining -= size;
2452
2456
  slides.push({
2453
2457
  ...notes ? { notes } : void 0,
2454
- slideNumber: index + 1,
2458
+ slide_number: index + 1,
2455
2459
  text: text2
2456
2460
  });
2457
2461
  }
2458
2462
  return {
2459
2463
  target: "readGoogleSlides",
2460
2464
  ...fileOutputFields(file),
2461
- presentationId: file.id,
2462
- slideCount: presentation.slides.length,
2465
+ presentation_id: file.id,
2466
+ slide_count: presentation.slides.length,
2463
2467
  slides,
2464
2468
  title: file.name,
2465
2469
  truncated: slides.length < presentation.slides.length
@@ -2479,14 +2483,14 @@ var inputSchema10 = z13.object({
2479
2483
  types: z13.array(z13.enum(GOOGLE_FILE_TYPES)).min(1).optional().describe(
2480
2484
  "File types to find: document (Docs), spreadsheet (Sheets), presentation (Slides). Omit to find all three."
2481
2485
  ),
2482
- maxResults: z13.number().int().min(1).max(50).default(10)
2486
+ max_results: z13.number().int().min(1).max(50).default(10)
2483
2487
  }).strict();
2484
2488
  var outputSchema10 = pluginToolOutputSchema10.extend({
2485
2489
  target: z13.literal("searchGoogleFiles"),
2486
2490
  files: z13.array(
2487
2491
  z13.object({
2488
- fileId: z13.string(),
2489
- modifiedTime: z13.string().optional(),
2492
+ file_id: z13.string(),
2493
+ modified_at: z13.string().optional(),
2490
2494
  title: z13.string(),
2491
2495
  type: z13.enum(GOOGLE_FILE_TYPES),
2492
2496
  url: z13.string().optional()
@@ -2532,7 +2536,7 @@ function createSearchGoogleFilesTool(ctx) {
2532
2536
  corpora: "allDrives",
2533
2537
  fields: "files(id,mimeType,modifiedTime,name,webViewLink),incompleteSearch,nextPageToken",
2534
2538
  includeItemsFromAllDrives: "true",
2535
- pageSize: String(input.maxResults),
2539
+ pageSize: String(input.max_results),
2536
2540
  q: `(${mimeTypes}) and trashed = false and fullText contains ${driveQueryString(input.query)}`,
2537
2541
  supportsAllDrives: "true"
2538
2542
  }
@@ -2549,7 +2553,7 @@ function createSearchGoogleFilesTool(ctx) {
2549
2553
  const type = googleFileType(file.mimeType);
2550
2554
  return type ? [
2551
2555
  {
2552
- fileId: file.id,
2556
+ file_id: file.id,
2553
2557
  ...fileOutputFields(file),
2554
2558
  title: file.name,
2555
2559
  type
@@ -2570,28 +2574,28 @@ import {
2570
2574
  } from "@sentry/junior-plugin-api";
2571
2575
  import { z as z14 } from "zod";
2572
2576
  var inputSchema11 = z14.object({
2573
- eventId: ownEventIdSchema,
2577
+ event_id: ownEventIdSchema,
2574
2578
  title: z14.string().trim().min(1).max(200).optional(),
2575
2579
  description: z14.string().max(4e3).optional().describe(
2576
2580
  "Replacement description. Do not include private details the attendees should not see."
2577
2581
  ),
2578
2582
  start: z14.iso.datetime({ offset: true }).optional().describe("New start, RFC 3339 with offset. Give end too."),
2579
2583
  end: z14.iso.datetime({ offset: true }).optional().describe("New end, RFC 3339 with offset. Give start too."),
2580
- timeZone: timeZoneSchema,
2584
+ time_zone: timeZoneSchema,
2581
2585
  location: z14.string().trim().max(500).optional().describe(
2582
2586
  "Replacement location, such as a room name or address. Use an empty string to clear it."
2583
2587
  ),
2584
- addAttendees: emailListSchema(50).default([]).describe("Email addresses to invite as required attendees."),
2585
- addOptionalAttendees: emailListSchema(50).default([]).describe("Email addresses to invite as optional attendees."),
2586
- removeAttendees: emailListSchema(50).default([]).describe("Email addresses to remove from the event."),
2587
- addVideoCall: z14.literal(true).optional().describe("Add a Google Meet link when the event has none.")
2588
+ add_attendees: emailListSchema(50).default([]).describe("Email addresses to invite as required attendees."),
2589
+ add_optional_attendees: emailListSchema(50).default([]).describe("Email addresses to invite as optional attendees."),
2590
+ remove_attendees: emailListSchema(50).default([]).describe("Email addresses to remove from the event."),
2591
+ add_video_call: z14.literal(true).optional().describe("Add a Google Meet link when the event has none.")
2588
2592
  }).strict().refine(
2589
2593
  (input) => input.start === void 0 === (input.end === void 0),
2590
2594
  {
2591
2595
  message: "Give both start and end to move an event."
2592
2596
  }
2593
2597
  ).refine(
2594
- (input) => input.title !== void 0 || input.description !== void 0 || input.start !== void 0 || input.location !== void 0 || input.addVideoCall !== void 0 || input.addAttendees.length > 0 || input.addOptionalAttendees.length > 0 || input.removeAttendees.length > 0,
2598
+ (input) => input.title !== void 0 || input.description !== void 0 || input.start !== void 0 || input.location !== void 0 || input.add_video_call !== void 0 || input.add_attendees.length > 0 || input.add_optional_attendees.length > 0 || input.remove_attendees.length > 0,
2595
2599
  { message: "Give at least one change." }
2596
2600
  );
2597
2601
  var outputSchema11 = pluginToolOutputSchema11.extend({
@@ -2612,18 +2616,18 @@ function createUpdateCalendarEventTool(ctx) {
2612
2616
  input.start && `move it to ${input.start} \u2013 ${input.end}`,
2613
2617
  input.description !== void 0 && "replace the description",
2614
2618
  input.location !== void 0 && (input.location ? `set the location to ${input.location}` : "clear the location"),
2615
- input.addVideoCall && "add a Google Meet link",
2616
- input.addAttendees.length > 0 && `invite ${input.addAttendees.join(", ")}`,
2617
- input.addOptionalAttendees.length > 0 && `invite ${input.addOptionalAttendees.join(", ")} as optional`,
2618
- input.removeAttendees.length > 0 && `remove ${input.removeAttendees.join(", ")}`
2619
+ input.add_video_call && "add a Google Meet link",
2620
+ input.add_attendees.length > 0 && `invite ${input.add_attendees.join(", ")}`,
2621
+ input.add_optional_attendees.length > 0 && `invite ${input.add_optional_attendees.join(", ")} as optional`,
2622
+ input.remove_attendees.length > 0 && `remove ${input.remove_attendees.join(", ")}`
2619
2623
  ].filter(Boolean);
2620
- return `Update Google Calendar event ${input.eventId}: ${changes.join("; ")}. Attendees get an email about the change.`;
2624
+ return `Update Google Calendar event ${input.event_id}: ${changes.join("; ")}. Attendees get an email about the change.`;
2621
2625
  },
2622
- description: "Change a Google Calendar event organized by your own Google account: title, description, time, location, video call, or attendees. Use it to reschedule, add or remove people, or fix details. Google emails the attendees about the change, and existing attendees keep their responses. Only people invited to the event can ask for changes, and only people in the company's Google Workspace domains can be invited. You cannot change events other people organize. For a repeating event, an occurrence id changes only that occurrence; its seriesEventId changes every occurrence. Confirm the change with the requester first unless they already stated it exactly.",
2626
+ description: "Change a Google Calendar event organized by your own Google account: title, description, time, location, video call, or attendees. Use it to reschedule, add or remove people, or fix details. Google emails the attendees about the change, and existing attendees keep their responses. Only people invited to the event can ask for changes, and only people in the company's Google Workspace domains can be invited. You cannot change events other people organize. For a repeating event, an occurrence id changes only that occurrence; its series_event_id changes every occurrence. Confirm the change with the requester first unless they already stated it exactly.",
2623
2627
  inputSchema: inputSchema11,
2624
2628
  outputSchema: outputSchema11,
2625
2629
  async execute(input) {
2626
- const timeZone = input.timeZone ?? await ctx.users.resolveTimezone();
2630
+ const timeZone = input.time_zone ?? await ctx.users.resolveTimezone();
2627
2631
  if (input.start && input.end) {
2628
2632
  const durationMs = Date.parse(input.end) - Date.parse(input.start);
2629
2633
  if (durationMs <= 0) {
@@ -2634,10 +2638,14 @@ function createUpdateCalendarEventTool(ctx) {
2634
2638
  }
2635
2639
  }
2636
2640
  requireAllowedEmails(
2637
- [...input.addAttendees, ...input.addOptionalAttendees],
2641
+ [...input.add_attendees, ...input.add_optional_attendees],
2638
2642
  ctx.allowedDomains
2639
2643
  );
2640
- const read = await readOwnEventForRequester(ctx, input.eventId, "change");
2644
+ const read = await readOwnEventForRequester(
2645
+ ctx,
2646
+ input.event_id,
2647
+ "change"
2648
+ );
2641
2649
  if (read.status === "cancelled") {
2642
2650
  throw new PluginToolInputError7(
2643
2651
  "This event is cancelled. Create a new event instead."
@@ -2646,7 +2654,7 @@ function createUpdateCalendarEventTool(ctx) {
2646
2654
  const { event, path } = read;
2647
2655
  const attendees = event.attendees ?? [];
2648
2656
  const emailKey = (email) => email.toLowerCase();
2649
- const removed = new Set(input.removeAttendees);
2657
+ const removed = new Set(input.remove_attendees);
2650
2658
  const kept = attendees.filter(
2651
2659
  (attendee) => !removed.has(emailKey(attendee.email))
2652
2660
  );
@@ -2654,8 +2662,8 @@ function createUpdateCalendarEventTool(ctx) {
2654
2662
  kept.map((attendee) => emailKey(attendee.email))
2655
2663
  );
2656
2664
  const added = [
2657
- ...input.addAttendees.map((email) => ({ email })),
2658
- ...input.addOptionalAttendees.map((email) => ({
2665
+ ...input.add_attendees.map((email) => ({ email })),
2666
+ ...input.add_optional_attendees.map((email) => ({
2659
2667
  email,
2660
2668
  optional: true
2661
2669
  }))
@@ -2665,7 +2673,7 @@ function createUpdateCalendarEventTool(ctx) {
2665
2673
  return true;
2666
2674
  });
2667
2675
  const attendeesChanged = kept.length !== attendees.length || added.length;
2668
- const addVideoCall = input.addVideoCall && !event.hangoutLink;
2676
+ const addVideoCall = input.add_video_call && !event.hangoutLink;
2669
2677
  const response = await googleApiRequest(ctx, {
2670
2678
  body: {
2671
2679
  ...input.title !== void 0 && { summary: input.title },
@@ -7,8 +7,8 @@ import { type GoogleToolContext } from "./shared";
7
7
  * `calendar.events.owned` scope and the organizer check both enforce this.
8
8
  */
9
9
  export declare function createCancelCalendarEventTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
10
- eventId: string;
11
- timeZone?: string | undefined;
10
+ event_id: string;
11
+ time_zone?: string | undefined;
12
12
  }, {
13
13
  [x: string]: unknown;
14
14
  objectAnnotations?: {
@@ -71,15 +71,15 @@ export declare function createCancelCalendarEventTool(ctx: GoogleToolContext): i
71
71
  response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
72
72
  }[] | undefined;
73
73
  end?: string | undefined;
74
- eventId: string;
74
+ event_id: string;
75
75
  label?: string | undefined;
76
76
  location?: string | undefined;
77
77
  repeats?: boolean | undefined;
78
- seriesEventId?: string | undefined;
78
+ series_event_id?: string | undefined;
79
79
  start?: string | undefined;
80
80
  title?: string | undefined;
81
81
  url?: string | undefined;
82
- videoCallUrl?: string | undefined;
82
+ video_call_url?: string | undefined;
83
83
  target: "cancelCalendarEvent";
84
84
  cancelled: boolean;
85
85
  }, {
@@ -144,15 +144,15 @@ export declare function createCancelCalendarEventTool(ctx: GoogleToolContext): i
144
144
  response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
145
145
  }[] | undefined;
146
146
  end?: string | undefined;
147
- eventId: string;
147
+ event_id: string;
148
148
  label?: string | undefined;
149
149
  location?: string | undefined;
150
150
  repeats?: boolean | undefined;
151
- seriesEventId?: string | undefined;
151
+ series_event_id?: string | undefined;
152
152
  start?: string | undefined;
153
153
  title?: string | undefined;
154
154
  url?: string | undefined;
155
- videoCallUrl?: string | undefined;
155
+ video_call_url?: string | undefined;
156
156
  target: "cancelCalendarEvent";
157
157
  cancelled: boolean;
158
158
  }>;
@@ -26,9 +26,9 @@ export declare function createCreateCalendarEventTool(ctx: GoogleToolContext): i
26
26
  location?: string | undefined;
27
27
  start: string;
28
28
  end: string;
29
- timeZone?: string | undefined;
29
+ time_zone?: string | undefined;
30
30
  attendees: string[];
31
- optionalAttendees: string[];
31
+ optional_attendees: string[];
32
32
  repeat?: {
33
33
  frequency: "monthly" | "weekdays" | "weekly";
34
34
  interval: number;
@@ -96,15 +96,15 @@ export declare function createCreateCalendarEventTool(ctx: GoogleToolContext): i
96
96
  response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
97
97
  }[];
98
98
  end: string;
99
- eventId: string;
99
+ event_id: string;
100
100
  label: string;
101
101
  location?: string | undefined;
102
102
  repeats?: boolean | undefined;
103
- seriesEventId?: string | undefined;
103
+ series_event_id?: string | undefined;
104
104
  start: string;
105
105
  title?: string | undefined;
106
106
  url?: string | undefined;
107
- videoCallUrl?: string | undefined;
107
+ video_call_url?: string | undefined;
108
108
  target: "createCalendarEvent";
109
109
  created: boolean;
110
110
  }, {
@@ -169,15 +169,15 @@ export declare function createCreateCalendarEventTool(ctx: GoogleToolContext): i
169
169
  response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
170
170
  }[];
171
171
  end: string;
172
- eventId: string;
172
+ event_id: string;
173
173
  label: string;
174
174
  location?: string | undefined;
175
175
  repeats?: boolean | undefined;
176
- seriesEventId?: string | undefined;
176
+ series_event_id?: string | undefined;
177
177
  start: string;
178
178
  title?: string | undefined;
179
179
  url?: string | undefined;
180
- videoCallUrl?: string | undefined;
180
+ video_call_url?: string | undefined;
181
181
  target: "createCalendarEvent";
182
182
  created: boolean;
183
183
  }>;
@@ -70,7 +70,7 @@ export declare function fileOutputFields(file: {
70
70
  modifiedTime?: string;
71
71
  webViewLink?: string;
72
72
  }): {
73
- modifiedTime?: string | undefined;
73
+ modified_at?: string | undefined;
74
74
  url?: string | undefined;
75
75
  };
76
76
  /** Longest file text that one tool result returns. */
@@ -43,15 +43,15 @@ export declare function findFreeSlots(input: {
43
43
  */
44
44
  export declare function createFindMeetingTimesTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
45
45
  attendees: string[];
46
- optionalAttendees: string[];
47
- durationMinutes: number;
48
- timeMin?: string | undefined;
49
- timeMax?: string | undefined;
50
- timeZone?: string | undefined;
51
- workdayStart: string;
52
- workdayEnd: string;
46
+ optional_attendees: string[];
47
+ duration_minutes: number;
48
+ time_min?: string | undefined;
49
+ time_max?: string | undefined;
50
+ time_zone?: string | undefined;
51
+ workday_start: string;
52
+ workday_end: string;
53
53
  weekdays?: ("Fri" | "Mon" | "Thu" | "Tue" | "Wed")[] | undefined;
54
- maxResults: number;
54
+ max_results: number;
55
55
  }, {
56
56
  [x: string]: unknown;
57
57
  objectAnnotations?: {
@@ -111,16 +111,16 @@ export declare function createFindMeetingTimesTool(ctx: GoogleToolContext): impo
111
111
  target: "findMeetingTimes";
112
112
  checked: {
113
113
  email: string;
114
- timeZone?: string | undefined;
114
+ time_zone?: string | undefined;
115
115
  }[];
116
116
  slots: {
117
117
  end: string;
118
118
  label: string;
119
- otherTimeZoneLabels?: string[] | undefined;
120
- optionalConflicts?: string[] | undefined;
119
+ other_time_zone_labels?: string[] | undefined;
120
+ optional_conflicts?: string[] | undefined;
121
121
  start: string;
122
122
  }[];
123
- timeZone: string;
123
+ time_zone: string;
124
124
  unavailable: {
125
125
  email: string;
126
126
  reason: string;
@@ -184,16 +184,16 @@ export declare function createFindMeetingTimesTool(ctx: GoogleToolContext): impo
184
184
  target: "findMeetingTimes";
185
185
  checked: {
186
186
  email: string;
187
- timeZone?: string | undefined;
187
+ time_zone?: string | undefined;
188
188
  }[];
189
189
  slots: {
190
190
  end: string;
191
191
  label: string;
192
- otherTimeZoneLabels?: string[] | undefined;
193
- optionalConflicts?: string[] | undefined;
192
+ other_time_zone_labels?: string[] | undefined;
193
+ optional_conflicts?: string[] | undefined;
194
194
  start: string;
195
195
  }[];
196
- timeZone: string;
196
+ time_zone: string;
197
197
  unavailable: {
198
198
  email: string;
199
199
  reason: string;
@@ -8,10 +8,10 @@ import { type GoogleToolContext } from "./shared";
8
8
  */
9
9
  export declare function createListCalendarEventsTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
10
10
  calendar?: string | undefined;
11
- timeMin: string;
12
- timeMax: string;
13
- timeZone?: string | undefined;
14
- maxResults: number;
11
+ time_min: string;
12
+ time_max: string;
13
+ time_zone?: string | undefined;
14
+ max_results: number;
15
15
  }, {
16
16
  [x: string]: unknown;
17
17
  objectAnnotations?: {
@@ -76,18 +76,18 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
76
76
  response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
77
77
  }[] | undefined;
78
78
  end: string;
79
- eventId: string;
79
+ event_id: string;
80
80
  label: string;
81
81
  location?: string | undefined;
82
82
  organizer?: string | undefined;
83
- organizedByJunior: boolean;
84
- seriesEventId?: string | undefined;
83
+ organized_by_junior: boolean;
84
+ series_event_id?: string | undefined;
85
85
  start: string;
86
86
  title?: string | undefined;
87
87
  url?: string | undefined;
88
- videoCallUrl?: string | undefined;
88
+ video_call_url?: string | undefined;
89
89
  }[];
90
- timeZone: string;
90
+ time_zone: string;
91
91
  truncated: boolean;
92
92
  visible: boolean;
93
93
  }, {
@@ -154,18 +154,18 @@ export declare function createListCalendarEventsTool(ctx: GoogleToolContext): im
154
154
  response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
155
155
  }[] | undefined;
156
156
  end: string;
157
- eventId: string;
157
+ event_id: string;
158
158
  label: string;
159
159
  location?: string | undefined;
160
160
  organizer?: string | undefined;
161
- organizedByJunior: boolean;
162
- seriesEventId?: string | undefined;
161
+ organized_by_junior: boolean;
162
+ series_event_id?: string | undefined;
163
163
  start: string;
164
164
  title?: string | undefined;
165
165
  url?: string | undefined;
166
- videoCallUrl?: string | undefined;
166
+ video_call_url?: string | undefined;
167
167
  }[];
168
- timeZone: string;
168
+ time_zone: string;
169
169
  truncated: boolean;
170
170
  visible: boolean;
171
171
  }>;
@@ -2,7 +2,7 @@ import type { GoogleToolContext } from "./shared";
2
2
  /** List the comments and replies on one Google Doc, Sheet, or Slides file. */
3
3
  export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
4
4
  file: string;
5
- pageToken?: string | undefined;
5
+ page_token?: string | undefined;
6
6
  }, {
7
7
  [x: string]: unknown;
8
8
  objectAnnotations?: {
@@ -62,20 +62,20 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
62
62
  target: "listGoogleFileComments";
63
63
  comments: {
64
64
  author?: string | undefined;
65
- commentId: string;
65
+ comment_id: string;
66
66
  content: string;
67
- createdTime?: string | undefined;
68
- quotedText?: string | undefined;
67
+ created_at?: string | undefined;
68
+ quoted_text?: string | undefined;
69
69
  replies: {
70
70
  action?: "reopen" | "resolve" | undefined;
71
71
  author?: string | undefined;
72
72
  content: string;
73
- createdTime?: string | undefined;
73
+ created_at?: string | undefined;
74
74
  }[];
75
75
  resolved: boolean;
76
76
  }[];
77
- fileId: string;
78
- nextPageToken?: string | undefined;
77
+ file_id: string;
78
+ next_page_token?: string | undefined;
79
79
  }, {
80
80
  [x: string]: unknown;
81
81
  objectAnnotations?: {
@@ -135,18 +135,18 @@ export declare function createListGoogleFileCommentsTool(ctx: GoogleToolContext)
135
135
  target: "listGoogleFileComments";
136
136
  comments: {
137
137
  author?: string | undefined;
138
- commentId: string;
138
+ comment_id: string;
139
139
  content: string;
140
- createdTime?: string | undefined;
141
- quotedText?: string | undefined;
140
+ created_at?: string | undefined;
141
+ quoted_text?: string | undefined;
142
142
  replies: {
143
143
  action?: "reopen" | "resolve" | undefined;
144
144
  author?: string | undefined;
145
145
  content: string;
146
- createdTime?: string | undefined;
146
+ created_at?: string | undefined;
147
147
  }[];
148
148
  resolved: boolean;
149
149
  }[];
150
- fileId: string;
151
- nextPageToken?: string | undefined;
150
+ file_id: string;
151
+ next_page_token?: string | undefined;
152
152
  }>;
@@ -64,8 +64,8 @@ export declare function createReadGoogleDocTool(ctx: GoogleToolContext): import(
64
64
  } | undefined;
65
65
  target: "readGoogleDoc";
66
66
  content: string;
67
- documentId: string;
68
- modifiedTime?: string | undefined;
67
+ document_id: string;
68
+ modified_at?: string | undefined;
69
69
  title: string;
70
70
  truncated: boolean;
71
71
  url?: string | undefined;
@@ -126,8 +126,8 @@ export declare function createReadGoogleDocTool(ctx: GoogleToolContext): import(
126
126
  } | undefined;
127
127
  target: "readGoogleDoc";
128
128
  content: string;
129
- documentId: string;
130
- modifiedTime?: string | undefined;
129
+ document_id: string;
130
+ modified_at?: string | undefined;
131
131
  title: string;
132
132
  truncated: boolean;
133
133
  url?: string | undefined;
@@ -8,7 +8,7 @@ import { type GoogleToolContext } from "./shared";
8
8
  * Never match transcripts on titles. Transcript text is untrusted.
9
9
  */
10
10
  export declare function createReadMeetingTranscriptTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
11
- eventId: string;
11
+ event_id: string;
12
12
  }, {
13
13
  [x: string]: unknown;
14
14
  objectAnnotations?: {
@@ -65,7 +65,7 @@ export declare function createReadMeetingTranscriptTool(ctx: GoogleToolContext):
65
65
  reason?: string | undefined;
66
66
  } | undefined;
67
67
  target: "readMeetingTranscript";
68
- eventId: string;
68
+ event_id: string;
69
69
  message?: string | undefined;
70
70
  records: {
71
71
  content: string;
@@ -133,7 +133,7 @@ export declare function createReadMeetingTranscriptTool(ctx: GoogleToolContext):
133
133
  reason?: string | undefined;
134
134
  } | undefined;
135
135
  target: "readMeetingTranscript";
136
- eventId: string;
136
+ event_id: string;
137
137
  message?: string | undefined;
138
138
  records: {
139
139
  content: string;
@@ -64,13 +64,13 @@ export declare function createReadGoogleSheetTool(ctx: GoogleToolContext): impor
64
64
  reason?: string | undefined;
65
65
  } | undefined;
66
66
  target: "readGoogleSheet";
67
- modifiedTime?: string | undefined;
67
+ modified_at?: string | undefined;
68
68
  ranges: {
69
69
  content: string;
70
70
  range: string;
71
71
  truncated: boolean;
72
72
  }[];
73
- spreadsheetId: string;
73
+ spreadsheet_id: string;
74
74
  tabs: string[];
75
75
  title: string;
76
76
  truncated: boolean;
@@ -131,13 +131,13 @@ export declare function createReadGoogleSheetTool(ctx: GoogleToolContext): impor
131
131
  reason?: string | undefined;
132
132
  } | undefined;
133
133
  target: "readGoogleSheet";
134
- modifiedTime?: string | undefined;
134
+ modified_at?: string | undefined;
135
135
  ranges: {
136
136
  content: string;
137
137
  range: string;
138
138
  truncated: boolean;
139
139
  }[];
140
- spreadsheetId: string;
140
+ spreadsheet_id: string;
141
141
  tabs: string[];
142
142
  title: string;
143
143
  truncated: boolean;
@@ -63,12 +63,12 @@ export declare function createReadGoogleSlidesTool(ctx: GoogleToolContext): impo
63
63
  reason?: string | undefined;
64
64
  } | undefined;
65
65
  target: "readGoogleSlides";
66
- modifiedTime?: string | undefined;
67
- presentationId: string;
68
- slideCount: number;
66
+ modified_at?: string | undefined;
67
+ presentation_id: string;
68
+ slide_count: number;
69
69
  slides: {
70
70
  notes?: string | undefined;
71
- slideNumber: number;
71
+ slide_number: number;
72
72
  text: string;
73
73
  }[];
74
74
  title: string;
@@ -130,12 +130,12 @@ export declare function createReadGoogleSlidesTool(ctx: GoogleToolContext): impo
130
130
  reason?: string | undefined;
131
131
  } | undefined;
132
132
  target: "readGoogleSlides";
133
- modifiedTime?: string | undefined;
134
- presentationId: string;
135
- slideCount: number;
133
+ modified_at?: string | undefined;
134
+ presentation_id: string;
135
+ slide_count: number;
136
136
  slides: {
137
137
  notes?: string | undefined;
138
- slideNumber: number;
138
+ slide_number: number;
139
139
  text: string;
140
140
  }[];
141
141
  title: string;
@@ -3,7 +3,7 @@ import { type GoogleToolContext } from "./shared";
3
3
  export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
4
4
  query: string;
5
5
  types?: ("document" | "presentation" | "spreadsheet")[] | undefined;
6
- maxResults: number;
6
+ max_results: number;
7
7
  }, {
8
8
  [x: string]: unknown;
9
9
  objectAnnotations?: {
@@ -61,8 +61,8 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
61
61
  } | undefined;
62
62
  target: "searchGoogleFiles";
63
63
  files: {
64
- fileId: string;
65
- modifiedTime?: string | undefined;
64
+ file_id: string;
65
+ modified_at?: string | undefined;
66
66
  title: string;
67
67
  type: "document" | "presentation" | "spreadsheet";
68
68
  url?: string | undefined;
@@ -125,8 +125,8 @@ export declare function createSearchGoogleFilesTool(ctx: GoogleToolContext): imp
125
125
  } | undefined;
126
126
  target: "searchGoogleFiles";
127
127
  files: {
128
- fileId: string;
129
- modifiedTime?: string | undefined;
128
+ file_id: string;
129
+ modified_at?: string | undefined;
130
130
  title: string;
131
131
  type: "document" | "presentation" | "spreadsheet";
132
132
  url?: string | undefined;
@@ -168,15 +168,15 @@ export declare function ownEventResult(event: OwnEvent, timeZone: string): {
168
168
  response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
169
169
  }[];
170
170
  end: string;
171
- eventId: string;
171
+ event_id: string;
172
172
  label: string;
173
173
  start: string;
174
174
  title?: string | undefined;
175
175
  location?: string | undefined;
176
176
  repeats?: boolean | undefined;
177
- seriesEventId?: string | undefined;
177
+ series_event_id?: string | undefined;
178
178
  url?: string | undefined;
179
- videoCallUrl?: string | undefined;
179
+ video_call_url?: string | undefined;
180
180
  };
181
181
  /** Output fields shared by the tools that create or change Junior's events. */
182
182
  export declare const ownEventOutputFields: {
@@ -191,15 +191,15 @@ export declare const ownEventOutputFields: {
191
191
  }>>;
192
192
  }, z.core.$strip>>;
193
193
  end: z.ZodString;
194
- eventId: z.ZodString;
194
+ event_id: z.ZodString;
195
195
  label: z.ZodString;
196
196
  location: z.ZodOptional<z.ZodString>;
197
197
  repeats: z.ZodOptional<z.ZodBoolean>;
198
- seriesEventId: z.ZodOptional<z.ZodString>;
198
+ series_event_id: z.ZodOptional<z.ZodString>;
199
199
  start: z.ZodString;
200
200
  title: z.ZodOptional<z.ZodString>;
201
201
  url: z.ZodOptional<z.ZodString>;
202
- videoCallUrl: z.ZodOptional<z.ZodString>;
202
+ video_call_url: z.ZodOptional<z.ZodString>;
203
203
  };
204
204
  /** Event id or link input for tools that act on an event Junior organizes. */
205
205
  export declare const ownEventIdSchema: z.ZodString;
@@ -5,17 +5,17 @@ import { type GoogleToolContext } from "./shared";
5
5
  * Only people already invited to the event may change it.
6
6
  */
7
7
  export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): import("@sentry/junior-plugin-api").PluginToolDefinition<{
8
- eventId: string;
8
+ event_id: string;
9
9
  title?: string | undefined;
10
10
  description?: string | undefined;
11
11
  start?: string | undefined;
12
12
  end?: string | undefined;
13
- timeZone?: string | undefined;
13
+ time_zone?: string | undefined;
14
14
  location?: string | undefined;
15
- addAttendees: string[];
16
- addOptionalAttendees: string[];
17
- removeAttendees: string[];
18
- addVideoCall?: true | undefined;
15
+ add_attendees: string[];
16
+ add_optional_attendees: string[];
17
+ remove_attendees: string[];
18
+ add_video_call?: true | undefined;
19
19
  }, {
20
20
  [x: string]: unknown;
21
21
  objectAnnotations?: {
@@ -78,15 +78,15 @@ export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): i
78
78
  response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
79
79
  }[];
80
80
  end: string;
81
- eventId: string;
81
+ event_id: string;
82
82
  label: string;
83
83
  location?: string | undefined;
84
84
  repeats?: boolean | undefined;
85
- seriesEventId?: string | undefined;
85
+ series_event_id?: string | undefined;
86
86
  start: string;
87
87
  title?: string | undefined;
88
88
  url?: string | undefined;
89
- videoCallUrl?: string | undefined;
89
+ video_call_url?: string | undefined;
90
90
  target: "updateCalendarEvent";
91
91
  }, {
92
92
  [x: string]: unknown;
@@ -150,14 +150,14 @@ export declare function createUpdateCalendarEventTool(ctx: GoogleToolContext): i
150
150
  response?: "accepted" | "declined" | "needsAction" | "tentative" | undefined;
151
151
  }[];
152
152
  end: string;
153
- eventId: string;
153
+ event_id: string;
154
154
  label: string;
155
155
  location?: string | undefined;
156
156
  repeats?: boolean | undefined;
157
- seriesEventId?: string | undefined;
157
+ series_event_id?: string | undefined;
158
158
  start: string;
159
159
  title?: string | undefined;
160
160
  url?: string | undefined;
161
- videoCallUrl?: string | undefined;
161
+ video_call_url?: string | undefined;
162
162
  target: "updateCalendarEvent";
163
163
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-google",
3
- "version": "0.275.0",
3
+ "version": "0.277.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.275.0"
28
+ "@sentry/junior-plugin-api": "0.277.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@oxlint/plugins": "1.79.0",