@assemblyline-agents/google-calendar 5.0.9 → 6.0.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 CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Official Assembly Line Google Calendar connection plugin.
4
4
 
5
- It exposes calendars, events, availability, and scheduling through a reviewed direct Google Calendar REST API connection. Calendar authorization is stored independently from Gmail and Google Drive. The package exports `defineGoogleCalendarConnection(options)`.
5
+ The selected plugin exposes calendars, events, availability, and scheduling through a reviewed direct REST connection. Calendar authorization is independent from Gmail and Google Drive.
6
6
 
7
7
  ## Install
8
8
 
9
9
  ```sh
10
- npm install @assemblyline-agents/google-calendar
10
+ assembly-line add google-calendar agent
11
11
  ```
12
12
 
13
- Create a Google OAuth web client, enable the Google Calendar API, and set `GOOGLE_CLIENT_ID` and `GOOGLE_CLIENT_SECRET`. Optionally set `GOOGLE_REDIRECT_URI` or `GOOGLE_CALENDAR_API_BASE_URL`. Assembly Line runs Authorization Code + PKCE, requests offline access, and stores the refreshable grant host-side. New connections enable reviewed Calendar tools without requiring an approval surface. Set `access: "approval-required"` if event changes should pause for approval, or `access: "read-only"` to omit event mutations and their OAuth scope.
13
+ Create a Google OAuth web client, enable the Google Calendar API, and set `GOOGLE_CLIENT_ID` and `GOOGLE_CLIENT_SECRET`. Optionally set `GOOGLE_REDIRECT_URI` or `GOOGLE_CALENDAR_API_BASE_URL`. Assembly Line runs Authorization Code + PKCE, requests offline access, and stores the refreshable grant host-side. Gate or remove named actions through `plugins.google-calendar.connections.google-calendar.approval` or `disable`.
14
14
 
15
15
  ## Part of Assembly Line
16
16
 
@@ -0,0 +1,78 @@
1
+ {
2
+ "kind": "google-calendar",
3
+ "role": "connection",
4
+ "packageName": "@assemblyline-agents/google-calendar",
5
+ "helper": "defineGoogleCalendarConnection",
6
+ "protocol": "http",
7
+ "provider": "google_calendar",
8
+ "description": "Google Calendar lists, events, availability, and scheduling through the Google Calendar REST API.",
9
+ "defaultBaseUrl": "https://www.googleapis.com/calendar/v3",
10
+ "baseUrlEnv": "GOOGLE_CALENDAR_API_BASE_URL",
11
+ "capabilities": [
12
+ "http-api",
13
+ "oauth",
14
+ "pkce",
15
+ "refresh-token",
16
+ "live-tools"
17
+ ],
18
+ "scopes": [
19
+ "https://www.googleapis.com/auth/calendar.readonly",
20
+ "https://www.googleapis.com/auth/calendar.events"
21
+ ],
22
+ "subject": "user",
23
+ "tools": {
24
+ "allow": [
25
+ "google_calendar_list_calendars",
26
+ "google_calendar_get_calendar",
27
+ "google_calendar_list_events",
28
+ "google_calendar_get_event",
29
+ "google_calendar_list_instances",
30
+ "google_calendar_query_freebusy",
31
+ "google_calendar_create_event",
32
+ "google_calendar_update_event",
33
+ "google_calendar_delete_event",
34
+ "google_calendar_move_event"
35
+ ]
36
+ },
37
+ "readToolPatterns": [
38
+ "google_calendar_list_calendars",
39
+ "google_calendar_get_calendar",
40
+ "google_calendar_list_events",
41
+ "google_calendar_get_event",
42
+ "google_calendar_list_instances",
43
+ "google_calendar_query_freebusy"
44
+ ],
45
+ "writeToolPatterns": [
46
+ "google_calendar_create_event",
47
+ "google_calendar_update_event",
48
+ "google_calendar_delete_event",
49
+ "google_calendar_move_event"
50
+ ],
51
+ "eventCatalog": [
52
+ "calendar.changed"
53
+ ],
54
+ "defaultEvents": [
55
+ "calendar.changed"
56
+ ],
57
+ "eventMode": "watch",
58
+ "eventScope": "principal",
59
+ "setup": [
60
+ {
61
+ "kind": "connection",
62
+ "name": "google-calendar-oauth-configuration",
63
+ "required": true,
64
+ "message": "Create a Google OAuth web client, enable the Google Calendar API, set GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET, and register the Assembly Line connection callback URL. Calendar authorization is stored as its own connection grant."
65
+ }
66
+ ],
67
+ "requiredConfig": [
68
+ "GOOGLE_CLIENT_ID"
69
+ ],
70
+ "optionalConfig": [
71
+ "GOOGLE_REDIRECT_URI",
72
+ "GOOGLE_CALENDAR_API_BASE_URL"
73
+ ],
74
+ "requiredCredentials": [
75
+ "GOOGLE_CLIENT_SECRET"
76
+ ],
77
+ "optionalCredentials": []
78
+ }
@@ -0,0 +1,9 @@
1
+ module.exports = {
2
+ "connections": {
3
+ "google-calendar": {
4
+ "contract": "./ai.assemblyline/connections/google-calendar.json",
5
+ "definition": "@assemblyline-agents/google-calendar",
6
+ "factory": "defineGoogleCalendarConnection"
7
+ }
8
+ }
9
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACpC,MAAM,2BAA2B,CAAC;AAOnC,MAAM,WAAW,+BAAgC,SAAQ,IAAI,CAAC,8BAA8B,EAAE,MAAM,GAAG,YAAY,CAAC;IAClH,IAAI,CAAC,EAAE,wBAAwB,GAAG,KAAK,CAAC;CACzC;AAED,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,+BAAoC,oIAU3F;AAED,eAAO,MAAM,kBAAkB,kDAA0C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,EACpC,MAAM,2BAA2B,CAAC;AAOnC,MAAM,WAAW,+BAAgC,SAAQ,IAAI,CAAC,8BAA8B,EAAE,MAAM,GAAG,YAAY,CAAC;IAClH,IAAI,CAAC,EAAE,wBAAwB,GAAG,KAAK,CAAC;CACzC;AAED,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,+BAAoC,oIAU3F;AAED,eAAO,MAAM,kBAAkB,kDAA0C,CAAC"}
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
- import { connectionPluginMetadata, defineConnectionPluginEvents, defineHttpApiPluginConnection, definePlugin } from "@assemblyline-agents/core";
1
+ import connectionContract_google_calendar from "../ai.assemblyline/connections/google-calendar.json" with { type: "json" };
2
+ import { defineConnectionPluginEvents, defineHttpApiPluginConnection, definePlugin } from "@assemblyline-agents/core";
2
3
  import { googleCalendarOAuth } from "./auth.js";
3
4
  import { googleCalendarEvents } from "./events.js";
4
5
  import { GOOGLE_CALENDAR_OPERATIONS } from "./operations.js";
5
- const PLUGIN = connectionPluginMetadata("google-calendar");
6
+ const PLUGIN = connectionContract_google_calendar;
6
7
  export function defineGoogleCalendarConnection(options = {}) {
7
8
  const { auth, ...connection } = options;
8
9
  const definition = defineHttpApiPluginConnection(PLUGIN, {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,6BAA6B,EAC7B,YAAY,EAGb,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,MAAM,GAAG,wBAAwB,CAAC,iBAAiB,CAAE,CAAC;AAM5D,MAAM,UAAU,8BAA8B,CAAC,UAA2C,EAAE;IAC1F,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,EAAE,GAAG,OAAO,CAAC;IACxC,MAAM,UAAU,GAAG,6BAA6B,CAAC,MAAM,EAAE;QACvD,GAAG,UAAU;QACb,UAAU,EAAE,0BAA0B;QACtC,IAAI,EAAE,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,mBAAmB,CAAC,OAAO,CAAC,MAAM,CAAC;KAC3E,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,4BAA4B,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAC1F,IAAI,MAAM;QAAE,UAAU,CAAC,MAAM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json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assemblyline-agents/google-calendar",
3
- "version": "5.0.9",
3
+ "version": "6.0.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -9,11 +9,13 @@
9
9
  }
10
10
  },
11
11
  "dependencies": {
12
- "@assemblyline-agents/core": "5.0.9"
12
+ "@assemblyline-agents/core": "6.0.0"
13
13
  },
14
14
  "description": "Official Assembly Line direct Google Calendar API connection plugin.",
15
15
  "files": [
16
- "dist"
16
+ "dist",
17
+ "plugin.json",
18
+ "ai.assemblyline"
17
19
  ],
18
20
  "engines": {
19
21
  "node": ">=22.19.0"
package/plugin.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "google-calendar",
4
+ "version": "6.0.0",
5
+ "description": "Official Assembly Line direct Google Calendar API connection plugin.",
6
+ "extensions": {
7
+ "ai.assemblyline": {
8
+ "entry": "./ai.assemblyline/index.cjs"
9
+ }
10
+ }
11
+ }