@hostwebhook/node-types 1.18.0 → 1.19.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.
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* dashboard owns the UI form schema, the api owns the dispatch logic),
|
|
13
13
|
* but the canonical list of valid operation strings lives here.
|
|
14
14
|
*/
|
|
15
|
-
export declare const GOOGLE_CALENDAR_OPERATIONS: readonly ["createEvent", "updateEvent", "deleteEvent", "listEvents", "getEvent"];
|
|
15
|
+
export declare const GOOGLE_CALENDAR_OPERATIONS: readonly ["createEvent", "updateEvent", "deleteEvent", "listEvents", "getEvent", "listCalendars", "findFreeSlots", "proposeEvent", "confirmEvent"];
|
|
16
16
|
export type GoogleCalendarOperation = (typeof GOOGLE_CALENDAR_OPERATIONS)[number];
|
|
17
17
|
/** Type guard — useful when validating untrusted input (DTOs, tool calls). */
|
|
18
18
|
export declare function isGoogleCalendarOperation(value: unknown): value is GoogleCalendarOperation;
|
|
@@ -22,6 +22,19 @@ exports.GOOGLE_CALENDAR_OPERATIONS = [
|
|
|
22
22
|
'deleteEvent',
|
|
23
23
|
'listEvents',
|
|
24
24
|
'getEvent',
|
|
25
|
+
/** List all calendars the user can write to. Lets the LLM discover
|
|
26
|
+
* ids before passing `calendarId` to other ops. */
|
|
27
|
+
'listCalendars',
|
|
28
|
+
/** freebusy.query — returns free windows in a date range. Optionally
|
|
29
|
+
* combine across attendees to find common availability. */
|
|
30
|
+
'findFreeSlots',
|
|
31
|
+
/** Create a tentative event (status: tentative, no invites sent). The
|
|
32
|
+
* user sees it greyed out in their calendar; LLM follows up with
|
|
33
|
+
* confirmEvent to promote. Mirrors emailAction's createDraft → sendDraft. */
|
|
34
|
+
'proposeEvent',
|
|
35
|
+
/** Promote a tentative event to confirmed + send invites. Mirrors
|
|
36
|
+
* emailAction's sendDraft. */
|
|
37
|
+
'confirmEvent',
|
|
25
38
|
];
|
|
26
39
|
/** Type guard — useful when validating untrusted input (DTOs, tool calls). */
|
|
27
40
|
function isGoogleCalendarOperation(value) {
|
package/package.json
CHANGED