@sentry/junior-google 0.299.0 → 0.301.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -1
- package/dist/credentials.d.ts +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1520 -1221
- package/dist/links/calendar.d.ts +11 -0
- package/dist/links/files.d.ts +11 -0
- package/dist/links/summary.d.ts +13 -0
- package/dist/tools/cancel-event.d.ts +38 -2
- package/dist/tools/create-doc.d.ts +38 -2
- package/dist/tools/create-event.d.ts +38 -2
- package/dist/tools/files.d.ts +11 -1
- package/dist/tools/find-meeting-times.d.ts +38 -2
- package/dist/tools/insert-doc-content.d.ts +38 -2
- package/dist/tools/list-events.d.ts +38 -2
- package/dist/tools/list-file-comments.d.ts +38 -2
- package/dist/tools/read-doc.d.ts +8 -165
- package/dist/tools/read-file.d.ts +241 -0
- package/dist/tools/read-meeting-transcript.d.ts +38 -2
- package/dist/tools/read-sheet.d.ts +12 -170
- package/dist/tools/read-slides.d.ts +12 -169
- package/dist/tools/replace-doc-content.d.ts +38 -2
- package/dist/tools/replace-doc-text.d.ts +38 -2
- package/dist/tools/search-files.d.ts +42 -2
- package/dist/tools/shared.d.ts +20 -2
- package/dist/tools/update-event.d.ts +38 -2
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -28,6 +28,8 @@ not use the Google credentials of the people it helps.
|
|
|
28
28
|
Anyone who can talk to Junior can read what the Junior account can see. Share
|
|
29
29
|
calendars and files with that account only when that is acceptable. Given a
|
|
30
30
|
link, Junior opens any Doc, Sheet, or Slides file shared with its account.
|
|
31
|
+
One tool, `readGoogleFile`, reads all three. It takes the type from the link,
|
|
32
|
+
or from Drive for a bare file id.
|
|
31
33
|
Search finds only files that any employee could already find in Drive, and
|
|
32
34
|
files shared with the requester by name. Files shared by link, or only with
|
|
33
35
|
other people or groups, never show up in search. Search also drops every file
|
|
@@ -36,6 +38,15 @@ have no owner, so search shows them only when they are shared with the
|
|
|
36
38
|
requester by name. Search returns nothing for a requester outside those
|
|
37
39
|
domains.
|
|
38
40
|
|
|
41
|
+
The dashboard shows a card for a Doc, Sheet, Slides, or Calendar event link
|
|
42
|
+
only when the signed-in viewer can open it too. A file must name the
|
|
43
|
+
viewer's email as a reader, writer, or owner, be open to anyone with the
|
|
44
|
+
link, or be open to the viewer's domain and owned in that domain. Access
|
|
45
|
+
through a Google group gets no card. An event must be on the Junior
|
|
46
|
+
account's calendar, with the viewer as its organizer, creator, or a guest.
|
|
47
|
+
A file card shows the title, type, owner, and modified time. An event card
|
|
48
|
+
shows the title and time. Cards never show content or guests.
|
|
49
|
+
|
|
39
50
|
Junior edits a Doc only for a requester who can edit it through their own
|
|
40
51
|
email, their domain, or an editable link. Access through a Google group is not
|
|
41
52
|
checked. Anyone who can talk to Junior can read a Doc that Junior edits, if
|
|
@@ -45,7 +56,7 @@ new ownership. Junior cannot read or edit that Doc again unless the requester
|
|
|
45
56
|
shares it back. This only works for requesters in the same Workspace
|
|
46
57
|
organization as Junior's account.
|
|
47
58
|
|
|
48
|
-
Each edit of an existing Doc needs the `revision_id` that `
|
|
59
|
+
Each edit of an existing Doc needs the `revision_id` that `readGoogleFile` or
|
|
49
60
|
the last edit returned. If someone changed the Doc after that, the edit is
|
|
50
61
|
refused, so Junior never changes text that it did not read.
|
|
51
62
|
|
package/dist/credentials.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Credential issuing and egress policy for Google APIs.
|
|
3
3
|
*
|
|
4
|
-
* Only this plugin's own tools may use Junior's Google
|
|
5
|
-
* enforce disclosure and invite rules in code, so the sandbox
|
|
6
|
-
* callers get no Google credential at all.
|
|
4
|
+
* Only this plugin's own tools and link cards may use Junior's Google
|
|
5
|
+
* account. They enforce disclosure and invite rules in code, so the sandbox
|
|
6
|
+
* and other callers get no Google credential at all.
|
|
7
7
|
*/
|
|
8
8
|
import { type EgressHookContext, type IssueCredentialHookContext, type PluginCredentialResult, type PluginGrant } from "@sentry/junior-plugin-api";
|
|
9
9
|
/** Calendar and Drive API host. */
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Junior acts as its own Google Workspace account. A Junior admin connects
|
|
5
5
|
* that account out of band, through the dashboard Admin page or the CLI.
|
|
6
|
-
* Calendar, Docs, Sheets, and Slides tools use host-owned
|
|
7
|
-
* sandbox gets no Google credential.
|
|
6
|
+
* Calendar, Docs, Sheets, and Slides tools and link cards use host-owned
|
|
7
|
+
* egress, and the sandbox gets no Google credential.
|
|
8
8
|
*/
|
|
9
9
|
import { type PluginRegistration } from "@sentry/junior-plugin-api";
|
|
10
10
|
/** Register Junior's Google Workspace plugin. */
|