import * as pulumi from "@pulumi/pulumi";
import * as grantex from "@pulumi/grantex";
const agent = new grantex.Agent("calendar-bot", {
name: "Calendar Assistant",
description: "Manages calendar events",
scopes: ["read:calendar", "write:calendar"],
});
const policy = new grantex.Policy("business-hours", {
name: "Business Hours Only",
effect: "deny",
agentId: agent.agentId,
timeOfDayStart: "18:00",
timeOfDayEnd: "08:00",
});
const webhook = new grantex.Webhook("alerts", {
url: "https://hooks.slack.com/services/T00/B00/xxx",
events: ["grant.created", "grant.revoked"],
});
export const agentDid = agent.did;