google-mcp-suite 1.18.0 → 1.18.1

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.
Files changed (47) hide show
  1. package/dist/calendar/entities/AclRole.d.ts +7 -6
  2. package/dist/calendar/entities/AclRole.d.ts.map +1 -1
  3. package/dist/calendar/entities/AclRole.js +7 -6
  4. package/dist/calendar/entities/AclRole.js.map +1 -1
  5. package/dist/calendar/entities/AclScope.d.ts +14 -1
  6. package/dist/calendar/entities/AclScope.d.ts.map +1 -1
  7. package/dist/calendar/entities/AclScope.js +11 -5
  8. package/dist/calendar/entities/AclScope.js.map +1 -1
  9. package/dist/calendar/entities/CalendarListEntry.d.ts.map +1 -1
  10. package/dist/calendar/entities/CalendarListEntry.js +2 -1
  11. package/dist/calendar/entities/CalendarListEntry.js.map +1 -1
  12. package/dist/calendar/index.js +1 -1
  13. package/dist/calendar/index.js.map +1 -1
  14. package/dist/calendar/instructions.d.ts.map +1 -1
  15. package/dist/calendar/instructions.js +9 -9
  16. package/dist/calendar/instructions.js.map +1 -1
  17. package/dist/calendar/lib/roles.d.ts +12 -0
  18. package/dist/calendar/lib/roles.d.ts.map +1 -0
  19. package/dist/calendar/lib/roles.js +38 -0
  20. package/dist/calendar/lib/roles.js.map +1 -0
  21. package/dist/calendar/methods/add_acl_rule/index.d.ts +5 -4
  22. package/dist/calendar/methods/add_acl_rule/index.d.ts.map +1 -1
  23. package/dist/calendar/methods/add_acl_rule/index.js +7 -5
  24. package/dist/calendar/methods/add_acl_rule/index.js.map +1 -1
  25. package/dist/calendar/methods/add_acl_rule/schema.d.ts.map +1 -1
  26. package/dist/calendar/methods/add_acl_rule/schema.js +3 -2
  27. package/dist/calendar/methods/add_acl_rule/schema.js.map +1 -1
  28. package/dist/calendar/methods/delete_acl_rule/index.js +1 -1
  29. package/dist/calendar/methods/delete_acl_rule/index.js.map +1 -1
  30. package/dist/calendar/methods/list_event_instances/schema.d.ts.map +1 -1
  31. package/dist/calendar/methods/list_event_instances/schema.js +2 -1
  32. package/dist/calendar/methods/list_event_instances/schema.js.map +1 -1
  33. package/dist/calendar/methods/patch_acl_rule/index.d.ts +4 -3
  34. package/dist/calendar/methods/patch_acl_rule/index.d.ts.map +1 -1
  35. package/dist/calendar/methods/patch_acl_rule/index.js +5 -4
  36. package/dist/calendar/methods/patch_acl_rule/index.js.map +1 -1
  37. package/dist/calendar/methods/patch_acl_rule/schema.js +1 -1
  38. package/dist/calendar/methods/patch_acl_rule/schema.js.map +1 -1
  39. package/dist/calendar/methods/registry.d.ts +2 -2
  40. package/dist/calendar/methods/registry.js +2 -2
  41. package/dist/calendar/methods/registry.js.map +1 -1
  42. package/dist/calendar/methods/update_acl_rule/index.d.ts +4 -4
  43. package/dist/calendar/methods/update_acl_rule/index.js +5 -5
  44. package/dist/calendar/methods/update_acl_rule/index.js.map +1 -1
  45. package/dist/calendar/methods/update_acl_rule/schema.js +1 -1
  46. package/dist/calendar/methods/update_acl_rule/schema.js.map +1 -1
  47. package/package.json +1 -1
@@ -3,12 +3,13 @@ import { z } from 'zod';
3
3
  * The level of access an access control rule grants to its scope, from no
4
4
  * access at all up to manager access over the calendar's own sharing.
5
5
  *
6
- * `writer` and `writerWithoutPrivateAccess` both read and write, and differ on
7
- * two axes: the latter hides the details of private events the way `reader`
8
- * does, and only `writer` additionally carries read access to the calendar's
9
- * own ACLs, which is why listing a calendar's rules needs `writer` or `owner`
10
- * and a `reader` grant is not enough. `owner` is the escalation to watch,
11
- * carrying every
6
+ * `writer` and `writerWithoutPrivateAccess` differ on two axes. The latter
7
+ * reads and writes only the events that are not private, seeing private ones
8
+ * as opaque busy blocks, so it is a narrower grant than its name suggests:
9
+ * the restriction is on writing as well as reading. Only `writer`
10
+ * additionally carries read access to the calendar's own ACLs, which is why
11
+ * listing a calendar's rules needs `writer` or `owner` and a `reader` grant is
12
+ * not enough. `owner` is the escalation to watch, carrying every
12
13
  * `writer` permission plus the ability to modify other users' access levels,
13
14
  * so a rule granting it hands over control of the calendar's sharing. It is
14
15
  * distinct from the calendar's data owner, of which there is exactly one.
@@ -1 +1 @@
1
- {"version":3,"file":"AclRole.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/AclRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,OAAO;;;;;;;EAOlB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"AclRole.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/AclRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,OAAO;;;;;;;EAOlB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC"}
@@ -3,12 +3,13 @@ import { z } from 'zod';
3
3
  * The level of access an access control rule grants to its scope, from no
4
4
  * access at all up to manager access over the calendar's own sharing.
5
5
  *
6
- * `writer` and `writerWithoutPrivateAccess` both read and write, and differ on
7
- * two axes: the latter hides the details of private events the way `reader`
8
- * does, and only `writer` additionally carries read access to the calendar's
9
- * own ACLs, which is why listing a calendar's rules needs `writer` or `owner`
10
- * and a `reader` grant is not enough. `owner` is the escalation to watch,
11
- * carrying every
6
+ * `writer` and `writerWithoutPrivateAccess` differ on two axes. The latter
7
+ * reads and writes only the events that are not private, seeing private ones
8
+ * as opaque busy blocks, so it is a narrower grant than its name suggests:
9
+ * the restriction is on writing as well as reading. Only `writer`
10
+ * additionally carries read access to the calendar's own ACLs, which is why
11
+ * listing a calendar's rules needs `writer` or `owner` and a `reader` grant is
12
+ * not enough. `owner` is the escalation to watch, carrying every
12
13
  * `writer` permission plus the ability to modify other users' access levels,
13
14
  * so a rule granting it hands over control of the calendar's sharing. It is
14
15
  * distinct from the calendar's data owner, of which there is exactly one.
@@ -1 +1 @@
1
- {"version":3,"file":"AclRole.js","sourceRoot":"","sources":["../../../src/calendar/entities/AclRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC;IAC5B,MAAM;IACN,gBAAgB;IAChB,QAAQ;IACR,4BAA4B;IAC5B,QAAQ;IACR,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * The level of access an access control rule grants to its scope, from no\n * access at all up to manager access over the calendar's own sharing.\n *\n * `writer` and `writerWithoutPrivateAccess` both read and write, and differ on\n * two axes: the latter hides the details of private events the way `reader`\n * does, and only `writer` additionally carries read access to the calendar's\n * own ACLs, which is why listing a calendar's rules needs `writer` or `owner`\n * and a `reader` grant is not enough. `owner` is the escalation to watch,\n * carrying every\n * `writer` permission plus the ability to modify other users' access levels,\n * so a rule granting it hands over control of the calendar's sharing. It is\n * distinct from the calendar's data owner, of which there is exactly one.\n *\n * Ordered least to most access, and sourced from the discovery document\n * rather than the bundled client types, which omit\n * `writerWithoutPrivateAccess`.\n *\n * @see https://developers.google.com/workspace/calendar/api/concepts/sharing\n */\nexport const AclRole = z.enum([\n 'none',\n 'freeBusyReader',\n 'reader',\n 'writerWithoutPrivateAccess',\n 'writer',\n 'owner',\n]);\n\nexport type AclRole = z.infer<typeof AclRole>;\n"]}
1
+ {"version":3,"file":"AclRole.js","sourceRoot":"","sources":["../../../src/calendar/entities/AclRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC;IAC5B,MAAM;IACN,gBAAgB;IAChB,QAAQ;IACR,4BAA4B;IAC5B,QAAQ;IACR,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * The level of access an access control rule grants to its scope, from no\n * access at all up to manager access over the calendar's own sharing.\n *\n * `writer` and `writerWithoutPrivateAccess` differ on two axes. The latter\n * reads and writes only the events that are not private, seeing private ones\n * as opaque busy blocks, so it is a narrower grant than its name suggests:\n * the restriction is on writing as well as reading. Only `writer`\n * additionally carries read access to the calendar's own ACLs, which is why\n * listing a calendar's rules needs `writer` or `owner` and a `reader` grant is\n * not enough. `owner` is the escalation to watch, carrying every\n * `writer` permission plus the ability to modify other users' access levels,\n * so a rule granting it hands over control of the calendar's sharing. It is\n * distinct from the calendar's data owner, of which there is exactly one.\n *\n * Ordered least to most access, and sourced from the discovery document\n * rather than the bundled client types, which omit\n * `writerWithoutPrivateAccess`.\n *\n * @see https://developers.google.com/workspace/calendar/api/concepts/sharing\n */\nexport const AclRole = z.enum([\n 'none',\n 'freeBusyReader',\n 'reader',\n 'writerWithoutPrivateAccess',\n 'writer',\n 'owner',\n]);\n\nexport type AclRole = z.infer<typeof AclRole>;\n"]}
@@ -1,10 +1,23 @@
1
1
  import { z } from 'zod';
2
2
  /**
3
- * The kinds of principal a sharing rule can name.
3
+ * The scope types that name a principal, and so require a value. The union's
4
+ * named branch is built from this rather than repeating the list, so a new
5
+ * scope type cannot be accepted on input while the output projection silently
6
+ * drops it.
7
+ */
8
+ export declare const NamedAclScopeType: z.ZodEnum<{
9
+ domain: "domain";
10
+ group: "group";
11
+ user: "user";
12
+ }>;
13
+ export type NamedAclScopeType = z.infer<typeof NamedAclScopeType>;
14
+ /**
15
+ * The kinds of principal a sharing rule can name, the public scope included.
4
16
  *
5
17
  * Exported separately from AclScope because AclScope is a union and so has no
6
18
  * single `shape` to read the type list from; the projection narrows against
7
19
  * this (EXTENDING.md, "Enum policy": the allowed list derives from the entity).
20
+ * Derived from NamedAclScopeType so the two stay one vocabulary.
8
21
  */
9
22
  export declare const AclScopeType: z.ZodEnum<{
10
23
  default: "default";
@@ -1 +1 @@
1
- {"version":3,"file":"AclScope.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/AclScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;;;;;EAAiD,CAAC;AAE3E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;4BAgBnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"AclScope.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/AclScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;EAAsC,CAAC;AAErE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;;;;EAAoD,CAAC;AAE9E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;4BAgBnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
@@ -1,12 +1,20 @@
1
1
  import { z } from 'zod';
2
2
  /**
3
- * The kinds of principal a sharing rule can name.
3
+ * The scope types that name a principal, and so require a value. The union's
4
+ * named branch is built from this rather than repeating the list, so a new
5
+ * scope type cannot be accepted on input while the output projection silently
6
+ * drops it.
7
+ */
8
+ export const NamedAclScopeType = z.enum(['user', 'group', 'domain']);
9
+ /**
10
+ * The kinds of principal a sharing rule can name, the public scope included.
4
11
  *
5
12
  * Exported separately from AclScope because AclScope is a union and so has no
6
13
  * single `shape` to read the type list from; the projection narrows against
7
14
  * this (EXTENDING.md, "Enum policy": the allowed list derives from the entity).
15
+ * Derived from NamedAclScopeType so the two stay one vocabulary.
8
16
  */
9
- export const AclScopeType = z.enum(['default', 'user', 'group', 'domain']);
17
+ export const AclScopeType = z.enum(['default', ...NamedAclScopeType.options]);
10
18
  /**
11
19
  * The extent to which calendar access is granted by an access control rule:
12
20
  * who the rule is about.
@@ -37,9 +45,7 @@ export const AclScope = z.discriminatedUnion('type', [
37
45
  .describe('The public scope: access is granted to any user, authenticated or not.'),
38
46
  }),
39
47
  z.strictObject({
40
- type: z
41
- .enum(['user', 'group', 'domain'])
42
- .describe('The type of the scope: a single user, a group, or a whole domain.'),
48
+ type: NamedAclScopeType.describe('The type of the scope: a single user, a group, or a whole domain.'),
43
49
  value: z
44
50
  .string()
45
51
  .describe('The email address of a user or group, or the name of a domain, depending on the scope type.'),
@@ -1 +1 @@
1
- {"version":3,"file":"AclScope.js","sourceRoot":"","sources":["../../../src/calendar/entities/AclScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;AAI3E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACnD,CAAC,CAAC,YAAY,CAAC;QACb,IAAI,EAAE,CAAC;aACJ,OAAO,CAAC,SAAS,CAAC;aAClB,QAAQ,CAAC,wEAAwE,CAAC;KACtF,CAAC;IACF,CAAC,CAAC,YAAY,CAAC;QACb,IAAI,EAAE,CAAC;aACJ,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;aACjC,QAAQ,CAAC,mEAAmE,CAAC;QAChF,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,QAAQ,CACP,6FAA6F,CAC9F;KACJ,CAAC;CACH,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * The kinds of principal a sharing rule can name.\n *\n * Exported separately from AclScope because AclScope is a union and so has no\n * single `shape` to read the type list from; the projection narrows against\n * this (EXTENDING.md, \"Enum policy\": the allowed list derives from the entity).\n */\nexport const AclScopeType = z.enum(['default', 'user', 'group', 'domain']);\n\nexport type AclScopeType = z.infer<typeof AclScopeType>;\n\n/**\n * The extent to which calendar access is granted by an access control rule:\n * who the rule is about.\n *\n * A discriminated union rather than one object with an optional `value`,\n * because the two shapes genuinely differ: `default` is the public scope and\n * takes no value, while `user`, `group`, and `domain` each name a principal\n * and require one. Modeling it as a union is what makes the emitted JSON\n * Schema (`oneOf`, each branch with its own `required`) match what the server\n * actually accepts; a refinement would validate at runtime but advertise the\n * wider shape to every MCP client, so an agent would build a call the schema\n * told it was legal and then be rejected.\n *\n * The pairing is enforced rather than merely documented because Google does\n * not enforce it, and its failure mode is severe: sending a value alongside\n * type `default` is accepted, the value is discarded for\n * `__public_principal__`, and the calendar becomes public. Verified against\n * the live API, not inferred.\n *\n * Both branches are strict, per EXTENDING.md's strict-input rule.\n *\n * @see https://developers.google.com/workspace/calendar/api/concepts/sharing\n */\nexport const AclScope = z.discriminatedUnion('type', [\n z.strictObject({\n type: z\n .literal('default')\n .describe('The public scope: access is granted to any user, authenticated or not.'),\n }),\n z.strictObject({\n type: z\n .enum(['user', 'group', 'domain'])\n .describe('The type of the scope: a single user, a group, or a whole domain.'),\n value: z\n .string()\n .describe(\n 'The email address of a user or group, or the name of a domain, depending on the scope type.',\n ),\n }),\n]);\n\nexport type AclScope = z.infer<typeof AclScope>;\n"]}
1
+ {"version":3,"file":"AclScope.js","sourceRoot":"","sources":["../../../src/calendar/entities/AclScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;AAIrE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC;AAI9E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACnD,CAAC,CAAC,YAAY,CAAC;QACb,IAAI,EAAE,CAAC;aACJ,OAAO,CAAC,SAAS,CAAC;aAClB,QAAQ,CAAC,wEAAwE,CAAC;KACtF,CAAC;IACF,CAAC,CAAC,YAAY,CAAC;QACb,IAAI,EAAE,iBAAiB,CAAC,QAAQ,CAC9B,mEAAmE,CACpE;QACD,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,QAAQ,CACP,6FAA6F,CAC9F;KACJ,CAAC;CACH,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * The scope types that name a principal, and so require a value. The union's\n * named branch is built from this rather than repeating the list, so a new\n * scope type cannot be accepted on input while the output projection silently\n * drops it.\n */\nexport const NamedAclScopeType = z.enum(['user', 'group', 'domain']);\n\nexport type NamedAclScopeType = z.infer<typeof NamedAclScopeType>;\n\n/**\n * The kinds of principal a sharing rule can name, the public scope included.\n *\n * Exported separately from AclScope because AclScope is a union and so has no\n * single `shape` to read the type list from; the projection narrows against\n * this (EXTENDING.md, \"Enum policy\": the allowed list derives from the entity).\n * Derived from NamedAclScopeType so the two stay one vocabulary.\n */\nexport const AclScopeType = z.enum(['default', ...NamedAclScopeType.options]);\n\nexport type AclScopeType = z.infer<typeof AclScopeType>;\n\n/**\n * The extent to which calendar access is granted by an access control rule:\n * who the rule is about.\n *\n * A discriminated union rather than one object with an optional `value`,\n * because the two shapes genuinely differ: `default` is the public scope and\n * takes no value, while `user`, `group`, and `domain` each name a principal\n * and require one. Modeling it as a union is what makes the emitted JSON\n * Schema (`oneOf`, each branch with its own `required`) match what the server\n * actually accepts; a refinement would validate at runtime but advertise the\n * wider shape to every MCP client, so an agent would build a call the schema\n * told it was legal and then be rejected.\n *\n * The pairing is enforced rather than merely documented because Google does\n * not enforce it, and its failure mode is severe: sending a value alongside\n * type `default` is accepted, the value is discarded for\n * `__public_principal__`, and the calendar becomes public. Verified against\n * the live API, not inferred.\n *\n * Both branches are strict, per EXTENDING.md's strict-input rule.\n *\n * @see https://developers.google.com/workspace/calendar/api/concepts/sharing\n */\nexport const AclScope = z.discriminatedUnion('type', [\n z.strictObject({\n type: z\n .literal('default')\n .describe('The public scope: access is granted to any user, authenticated or not.'),\n }),\n z.strictObject({\n type: NamedAclScopeType.describe(\n 'The type of the scope: a single user, a group, or a whole domain.',\n ),\n value: z\n .string()\n .describe(\n 'The email address of a user or group, or the name of a domain, depending on the scope type.',\n ),\n }),\n]);\n\nexport type AclScope = z.infer<typeof AclScope>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarListEntry.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/CalendarListEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;iBAqD5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"CalendarListEntry.d.ts","sourceRoot":"","sources":["../../../src/calendar/entities/CalendarListEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;iBAqD5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { EFFECTIVE_ROLES, listRoles } from '../lib/roles.js';
2
3
  import { Reminder } from './Reminder.js';
3
4
  /**
4
5
  * A calendar as it appears on the user's calendar list: the per-user view
@@ -30,7 +31,7 @@ export const CalendarListEntry = z.object({
30
31
  accessRole: z
31
32
  .string()
32
33
  .optional()
33
- .describe("The user's effective access role on this calendar. One of: freeBusyReader, reader, writer, owner."),
34
+ .describe(`The user's effective access role on this calendar. One of: ${listRoles(EFFECTIVE_ROLES)}.`),
34
35
  colorId: z
35
36
  .string()
36
37
  .optional()
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarListEntry.js","sourceRoot":"","sources":["../../../src/calendar/entities/CalendarListEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IACtD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IACjE,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,8EAA8E,CAAC;IAC3F,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC3E,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,wDAAwD,CAAC;IACrE,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,oEAAoE,CAAC;IACjF,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,mGAAmG,CACpG;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0GAA0G,CAC3G;IACH,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,yFAAyF,CAC1F;IACH,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,+FAA+F,CAChG;IACH,MAAM,EAAE,CAAC;SACN,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,8EAA8E,CAAC;IAC3F,QAAQ,EAAE,CAAC;SACR,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,2DAA2D,CAAC;IACxE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;IACxF,gBAAgB,EAAE,CAAC;SAChB,KAAK,CAAC,QAAQ,CAAC;SACf,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;CACrE,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { Reminder } from './Reminder.js';\n\n/**\n * A calendar as it appears on the user's calendar list: the per-user view\n * (title override, colors, visibility, access role, default reminders)\n * layered on top of a calendar. Distinct from entities/Calendar, the\n * calendar's own metadata.\n *\n * Field docs use `.describe()` so they reach the wire JSON Schema an MCP\n * client reads.\n *\n * @see https://developers.google.com/workspace/calendar/api/v3/reference/calendarList\n */\nexport const CalendarListEntry = z.object({\n id: z.string().describe('Identifier of the calendar.'),\n summary: z.string().optional().describe('Title of the calendar.'),\n summaryOverride: z\n .string()\n .optional()\n .describe(\"The title the user has set for this calendar, overriding the calendar's own.\"),\n description: z.string().optional().describe('Description of the calendar.'),\n location: z\n .string()\n .optional()\n .describe('Geographic location of the calendar as free-form text.'),\n timeZone: z\n .string()\n .optional()\n .describe('The time zone of the calendar, as an IANA Time Zone Database name.'),\n accessRole: z\n .string()\n .optional()\n .describe(\n \"The user's effective access role on this calendar. One of: freeBusyReader, reader, writer, owner.\",\n ),\n colorId: z\n .string()\n .optional()\n .describe(\n 'The color of the calendar: an ID referring to an entry in the calendar section of the colors definition.',\n ),\n backgroundColor: z\n .string()\n .optional()\n .describe(\n 'The main color of the calendar in the hexadecimal format \"#0088aa\"; supersedes colorId.',\n ),\n foregroundColor: z\n .string()\n .optional()\n .describe(\n 'The foreground color of the calendar in the hexadecimal format \"#ffffff\"; supersedes colorId.',\n ),\n hidden: z\n .boolean()\n .optional()\n .describe('Whether the calendar has been hidden from the list. Only returned when true.'),\n selected: z\n .boolean()\n .optional()\n .describe('Whether the calendar content shows up in the calendar UI.'),\n primary: z.boolean().optional().describe(\"Whether this is the user's primary calendar.\"),\n defaultReminders: z\n .array(Reminder)\n .optional()\n .describe('The default reminders the user has for this calendar.'),\n});\n\nexport type CalendarListEntry = z.infer<typeof CalendarListEntry>;\n"]}
1
+ {"version":3,"file":"CalendarListEntry.js","sourceRoot":"","sources":["../../../src/calendar/entities/CalendarListEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IACtD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IACjE,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,8EAA8E,CAAC;IAC3F,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC3E,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,wDAAwD,CAAC;IACrE,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,oEAAoE,CAAC;IACjF,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,8DAA8D,SAAS,CAAC,eAAe,CAAC,GAAG,CAC5F;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0GAA0G,CAC3G;IACH,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,yFAAyF,CAC1F;IACH,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,+FAA+F,CAChG;IACH,MAAM,EAAE,CAAC;SACN,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,8EAA8E,CAAC;IAC3F,QAAQ,EAAE,CAAC;SACR,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,2DAA2D,CAAC;IACxE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;IACxF,gBAAgB,EAAE,CAAC;SAChB,KAAK,CAAC,QAAQ,CAAC;SACf,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;CACrE,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { EFFECTIVE_ROLES, listRoles } from '../lib/roles.js';\nimport { Reminder } from './Reminder.js';\n\n/**\n * A calendar as it appears on the user's calendar list: the per-user view\n * (title override, colors, visibility, access role, default reminders)\n * layered on top of a calendar. Distinct from entities/Calendar, the\n * calendar's own metadata.\n *\n * Field docs use `.describe()` so they reach the wire JSON Schema an MCP\n * client reads.\n *\n * @see https://developers.google.com/workspace/calendar/api/v3/reference/calendarList\n */\nexport const CalendarListEntry = z.object({\n id: z.string().describe('Identifier of the calendar.'),\n summary: z.string().optional().describe('Title of the calendar.'),\n summaryOverride: z\n .string()\n .optional()\n .describe(\"The title the user has set for this calendar, overriding the calendar's own.\"),\n description: z.string().optional().describe('Description of the calendar.'),\n location: z\n .string()\n .optional()\n .describe('Geographic location of the calendar as free-form text.'),\n timeZone: z\n .string()\n .optional()\n .describe('The time zone of the calendar, as an IANA Time Zone Database name.'),\n accessRole: z\n .string()\n .optional()\n .describe(\n `The user's effective access role on this calendar. One of: ${listRoles(EFFECTIVE_ROLES)}.`,\n ),\n colorId: z\n .string()\n .optional()\n .describe(\n 'The color of the calendar: an ID referring to an entry in the calendar section of the colors definition.',\n ),\n backgroundColor: z\n .string()\n .optional()\n .describe(\n 'The main color of the calendar in the hexadecimal format \"#0088aa\"; supersedes colorId.',\n ),\n foregroundColor: z\n .string()\n .optional()\n .describe(\n 'The foreground color of the calendar in the hexadecimal format \"#ffffff\"; supersedes colorId.',\n ),\n hidden: z\n .boolean()\n .optional()\n .describe('Whether the calendar has been hidden from the list. Only returned when true.'),\n selected: z\n .boolean()\n .optional()\n .describe('Whether the calendar content shows up in the calendar UI.'),\n primary: z.boolean().optional().describe(\"Whether this is the user's primary calendar.\"),\n defaultReminders: z\n .array(Reminder)\n .optional()\n .describe('The default reminders the user has for this calendar.'),\n});\n\nexport type CalendarListEntry = z.infer<typeof CalendarListEntry>;\n"]}
@@ -14,7 +14,7 @@ import { tools } from './tools/registry.js';
14
14
  await server({
15
15
  name: 'calendar',
16
16
  title: 'Google Calendar (google-mcp-suite)',
17
- description: 'Per-account Google Calendar MCP server: events, calendars, free/busy, and meeting-time suggestions.',
17
+ description: 'Per-account Google Calendar MCP server: events, calendars, sharing, free/busy, and meeting-time suggestions.',
18
18
  instructions,
19
19
  operations: mergeOperations(tools, methods),
20
20
  client: async (account) => calendar({ version: 'v3', auth: await authorizedClient(account) }),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/calendar/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,iFAAiF;AACjF,oFAAoF;AACpF,qFAAqF;AACrF,gFAAgF;AAChF,8DAA8D;AAC9D,MAAM,MAAM,CAAC;IACX,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,oCAAoC;IAC3C,WAAW,EACT,qGAAqG;IACvG,YAAY;IACZ,UAAU,EAAE,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC;IAC3C,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7F,OAAO,EAAE,WAAW;IACpB,gBAAgB,EAAE,cAAc;CACjC,CAAC,CAAC","sourcesContent":["#!/usr/bin/env node\nimport { calendar } from '@googleapis/calendar';\nimport { authorizedClient, isInvalidGrant, runAuthFlow } from '../auth/oauth.js';\nimport { mergeOperations } from '../lib/operation.js';\nimport { server } from '../lib/server.js';\nimport { instructions } from './instructions.js';\nimport { methods } from './methods/registry.js';\nimport { tools } from './tools/registry.js';\n\n// Cloning this for a new service? Add that service's OAuth scopes to `SCOPES` in\n// src/auth/config.ts BEFORE the first auth. The scope union is front-loaded so each\n// account consents once, and Google only re-issues a refresh token on a fresh grant;\n// adding a scope later forces re-consent of every account. Nothing in this file\n// references scopes, which is exactly why it is easy to miss.\nawait server({\n name: 'calendar',\n title: 'Google Calendar (google-mcp-suite)',\n description:\n 'Per-account Google Calendar MCP server: events, calendars, free/busy, and meeting-time suggestions.',\n instructions,\n operations: mergeOperations(tools, methods),\n client: async (account) => calendar({ version: 'v3', auth: await authorizedClient(account) }),\n runAuth: runAuthFlow,\n staleCredentials: isInvalidGrant,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/calendar/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,iFAAiF;AACjF,oFAAoF;AACpF,qFAAqF;AACrF,gFAAgF;AAChF,8DAA8D;AAC9D,MAAM,MAAM,CAAC;IACX,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,oCAAoC;IAC3C,WAAW,EACT,8GAA8G;IAChH,YAAY;IACZ,UAAU,EAAE,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC;IAC3C,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7F,OAAO,EAAE,WAAW;IACpB,gBAAgB,EAAE,cAAc;CACjC,CAAC,CAAC","sourcesContent":["#!/usr/bin/env node\nimport { calendar } from '@googleapis/calendar';\nimport { authorizedClient, isInvalidGrant, runAuthFlow } from '../auth/oauth.js';\nimport { mergeOperations } from '../lib/operation.js';\nimport { server } from '../lib/server.js';\nimport { instructions } from './instructions.js';\nimport { methods } from './methods/registry.js';\nimport { tools } from './tools/registry.js';\n\n// Cloning this for a new service? Add that service's OAuth scopes to `SCOPES` in\n// src/auth/config.ts BEFORE the first auth. The scope union is front-loaded so each\n// account consents once, and Google only re-issues a refresh token on a fresh grant;\n// adding a scope later forces re-consent of every account. Nothing in this file\n// references scopes, which is exactly why it is easy to miss.\nawait server({\n name: 'calendar',\n title: 'Google Calendar (google-mcp-suite)',\n description:\n 'Per-account Google Calendar MCP server: events, calendars, sharing, free/busy, and meeting-time suggestions.',\n instructions,\n operations: mergeOperations(tools, methods),\n client: async (account) => calendar({ version: 'v3', auth: await authorizedClient(account) }),\n runAuth: runAuthFlow,\n staleCredentials: isInvalidGrant,\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../src/calendar/instructions.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,QAoByB,CAAC"}
1
+ {"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../src/calendar/instructions.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,QAoByC,CAAC"}
@@ -15,13 +15,13 @@ export const instructions = identityInstructions('Google account') +
15
15
  'attendees can email guests, controlled by notificationLevel on tools and ' +
16
16
  'sendUpdates on methods. suggest_time refuses to answer, rather than ' +
17
17
  "proposing slots that may conflict, when any requested calendar's " +
18
- 'free/busy is unreadable. The access control rules that constitute ' +
19
- 'calendar sharing are read with list_acl_rules and changed with ' +
20
- 'add_acl_rule, update_acl_rule, patch_acl_rule, and delete_acl_rule, of ' +
21
- 'which the first three take sendNotifications; a ' +
22
- 'rule ID derives from its scope, granting owner lets the grantee change ' +
23
- "the calendar's own sharing, and sendNotifications defaults to true, so a " +
24
- 'write sends sharing notifications unless it is passed as false, though ' +
25
- 'never on access removal. A scope of type default is the public scope and ' +
26
- 'carries no value; the other types require one.';
18
+ 'free/busy is unreadable. Calendar sharing is a list of access control ' +
19
+ 'rules, read with list_acl_rules and get_acl_rule and changed with ' +
20
+ 'add_acl_rule, update_acl_rule, patch_acl_rule, and delete_acl_rule. ' +
21
+ 'A rule ID derives from its scope, and granting owner lets that scope ' +
22
+ "change the calendar's own sharing. The three writes other than " +
23
+ 'delete_acl_rule take sendNotifications, which Google enables by default, ' +
24
+ 'so sharing notifications remain enabled unless it is passed as false; ' +
25
+ 'access removal never notifies. A scope of type default is the public ' +
26
+ 'scope and carries no value, while the other types require one.';
27
27
  //# sourceMappingURL=instructions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../src/calendar/instructions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,YAAY,GACvB,oBAAoB,CAAC,gBAAgB,CAAC;IACtC,sBAAsB,CAAC;QACrB,KAAK,EAAE,wCAAwC;QAC/C,OAAO,EAAE,kCAAkC;KAC5C,CAAC;IACF,4BAA4B,EAAE;IAC9B,qEAAqE;IACrE,wEAAwE;IACxE,2EAA2E;IAC3E,sEAAsE;IACtE,mEAAmE;IACnE,oEAAoE;IACpE,iEAAiE;IACjE,yEAAyE;IACzE,kDAAkD;IAClD,yEAAyE;IACzE,2EAA2E;IAC3E,yEAAyE;IACzE,2EAA2E;IAC3E,gDAAgD,CAAC","sourcesContent":["/**\n * Served in the MCP initialize result; see `ServerOptions.instructions` in\n * src/lib/server.ts. A standalone module so tests can pin the content without\n * booting the server (index.ts's import side effect is `await server()`).\n */\nimport {\n identityInstructions,\n untrustedContentInstructions,\n vocabularyInstructions,\n} from '../lib/instructions.js';\n\nexport const instructions =\n identityInstructions('Google account') +\n vocabularyInstructions({\n tools: 'startTime, pageSize, notificationLevel',\n methods: 'timeMin, maxResults, sendUpdates',\n }) +\n untrustedContentInstructions() +\n 'Event start and end take exactly one of date (all-day) or dateTime ' +\n '(timed); timeZone is required for recurring events. Writes that touch ' +\n 'attendees can email guests, controlled by notificationLevel on tools and ' +\n 'sendUpdates on methods. suggest_time refuses to answer, rather than ' +\n \"proposing slots that may conflict, when any requested calendar's \" +\n 'free/busy is unreadable. The access control rules that constitute ' +\n 'calendar sharing are read with list_acl_rules and changed with ' +\n 'add_acl_rule, update_acl_rule, patch_acl_rule, and delete_acl_rule, of ' +\n 'which the first three take sendNotifications; a ' +\n 'rule ID derives from its scope, granting owner lets the grantee change ' +\n \"the calendar's own sharing, and sendNotifications defaults to true, so a \" +\n 'write sends sharing notifications unless it is passed as false, though ' +\n 'never on access removal. A scope of type default is the public scope and ' +\n 'carries no value; the other types require one.';\n"]}
1
+ {"version":3,"file":"instructions.js","sourceRoot":"","sources":["../../src/calendar/instructions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,YAAY,GACvB,oBAAoB,CAAC,gBAAgB,CAAC;IACtC,sBAAsB,CAAC;QACrB,KAAK,EAAE,wCAAwC;QAC/C,OAAO,EAAE,kCAAkC;KAC5C,CAAC;IACF,4BAA4B,EAAE;IAC9B,qEAAqE;IACrE,wEAAwE;IACxE,2EAA2E;IAC3E,sEAAsE;IACtE,mEAAmE;IACnE,wEAAwE;IACxE,oEAAoE;IACpE,sEAAsE;IACtE,uEAAuE;IACvE,iEAAiE;IACjE,2EAA2E;IAC3E,wEAAwE;IACxE,uEAAuE;IACvE,gEAAgE,CAAC","sourcesContent":["/**\n * Served in the MCP initialize result; see `ServerOptions.instructions` in\n * src/lib/server.ts. A standalone module so tests can pin the content without\n * booting the server (index.ts's import side effect is `await server()`).\n */\nimport {\n identityInstructions,\n untrustedContentInstructions,\n vocabularyInstructions,\n} from '../lib/instructions.js';\n\nexport const instructions =\n identityInstructions('Google account') +\n vocabularyInstructions({\n tools: 'startTime, pageSize, notificationLevel',\n methods: 'timeMin, maxResults, sendUpdates',\n }) +\n untrustedContentInstructions() +\n 'Event start and end take exactly one of date (all-day) or dateTime ' +\n '(timed); timeZone is required for recurring events. Writes that touch ' +\n 'attendees can email guests, controlled by notificationLevel on tools and ' +\n 'sendUpdates on methods. suggest_time refuses to answer, rather than ' +\n \"proposing slots that may conflict, when any requested calendar's \" +\n 'free/busy is unreadable. Calendar sharing is a list of access control ' +\n 'rules, read with list_acl_rules and get_acl_rule and changed with ' +\n 'add_acl_rule, update_acl_rule, patch_acl_rule, and delete_acl_rule. ' +\n 'A rule ID derives from its scope, and granting owner lets that scope ' +\n \"change the calendar's own sharing. The three writes other than \" +\n 'delete_acl_rule take sendNotifications, which Google enables by default, ' +\n 'so sharing notifications remain enabled unless it is passed as false; ' +\n 'access removal never notifies. A scope of type default is the public ' +\n 'scope and carries no value, while the other types require one.';\n"]}
@@ -0,0 +1,12 @@
1
+ import { AclRole } from '../entities/AclRole.js';
2
+ /** `none, freeBusyReader, reader, ...`: the bare vocabulary, in order. */
3
+ export declare function listRoles(roles?: readonly AclRole[]): string;
4
+ /** `none (no access), freeBusyReader (free/busy only), ...`: each role glossed. */
5
+ export declare function describeRoles(roles?: readonly AclRole[]): string;
6
+ /**
7
+ * The roles that can appear as an effective `accessRole` on a calendar you can
8
+ * already see. `none` cannot: a calendar on your list grants at least
9
+ * free/busy.
10
+ */
11
+ export declare const EFFECTIVE_ROLES: readonly AclRole[];
12
+ //# sourceMappingURL=roles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../src/calendar/lib/roles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAwBjD,0EAA0E;AAC1E,wBAAgB,SAAS,CAAC,KAAK,GAAE,SAAS,OAAO,EAAoB,GAAG,MAAM,CAE7E;AAED,mFAAmF;AACnF,wBAAgB,aAAa,CAAC,KAAK,GAAE,SAAS,OAAO,EAAoB,GAAG,MAAM,CAIjF;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,OAAO,EAE7C,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { AclRole } from '../entities/AclRole.js';
2
+ /**
3
+ * What each access role actually grants, in one clause, sourced from Google's
4
+ * calendar-sharing concepts page.
5
+ *
6
+ * Keyed by `AclRole`, so adding a role to the enum without describing it here
7
+ * is a compile error rather than prose that silently goes stale. That matters
8
+ * because the vocabulary is restated on four agent-facing surfaces, and the
9
+ * last role Google added reached the enum while every description kept the old
10
+ * list.
11
+ *
12
+ * @see https://developers.google.com/workspace/calendar/api/concepts/sharing
13
+ */
14
+ const ROLE_GLOSS = {
15
+ none: 'no access',
16
+ freeBusyReader: 'free/busy only',
17
+ reader: 'event details, with private events hidden',
18
+ writerWithoutPrivateAccess: 'read and write only the events that are not private, seeing private ones as busy blocks',
19
+ writer: "read and write everything, plus read access to the calendar's own sharing",
20
+ owner: "everything writer grants, plus the ability to change other users' access",
21
+ };
22
+ /** `none, freeBusyReader, reader, ...`: the bare vocabulary, in order. */
23
+ export function listRoles(roles = AclRole.options) {
24
+ return roles.join(', ');
25
+ }
26
+ /** `none (no access), freeBusyReader (free/busy only), ...`: each role glossed. */
27
+ export function describeRoles(roles = AclRole.options) {
28
+ const described = roles.map((role) => `${role} (${ROLE_GLOSS[role]})`);
29
+ const last = described.pop();
30
+ return described.length > 0 ? `${described.join(', ')}, or ${last}` : `${last}`;
31
+ }
32
+ /**
33
+ * The roles that can appear as an effective `accessRole` on a calendar you can
34
+ * already see. `none` cannot: a calendar on your list grants at least
35
+ * free/busy.
36
+ */
37
+ export const EFFECTIVE_ROLES = AclRole.options.filter((role) => role !== 'none');
38
+ //# sourceMappingURL=roles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles.js","sourceRoot":"","sources":["../../../src/calendar/lib/roles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,GAA4B;IAC1C,IAAI,EAAE,WAAW;IACjB,cAAc,EAAE,gBAAgB;IAChC,MAAM,EAAE,2CAA2C;IACnD,0BAA0B,EACxB,yFAAyF;IAC3F,MAAM,EAAE,2EAA2E;IACnF,KAAK,EAAE,0EAA0E;CAClF,CAAC;AAEF,0EAA0E;AAC1E,MAAM,UAAU,SAAS,CAAC,KAAK,GAAuB,OAAO,CAAC,OAAO;IACnE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,mFAAmF;AACnF,MAAM,UAAU,aAAa,CAAC,KAAK,GAAuB,OAAO,CAAC,OAAO;IACvE,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,KAAK,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvE,MAAM,IAAI,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC;IAC7B,OAAO,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC;AAClF,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAuB,OAAO,CAAC,OAAO,CAAC,MAAM,CACvE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,MAAM,CAC1B,CAAC","sourcesContent":["import { AclRole } from '../entities/AclRole.js';\n\n/**\n * What each access role actually grants, in one clause, sourced from Google's\n * calendar-sharing concepts page.\n *\n * Keyed by `AclRole`, so adding a role to the enum without describing it here\n * is a compile error rather than prose that silently goes stale. That matters\n * because the vocabulary is restated on four agent-facing surfaces, and the\n * last role Google added reached the enum while every description kept the old\n * list.\n *\n * @see https://developers.google.com/workspace/calendar/api/concepts/sharing\n */\nconst ROLE_GLOSS: Record<AclRole, string> = {\n none: 'no access',\n freeBusyReader: 'free/busy only',\n reader: 'event details, with private events hidden',\n writerWithoutPrivateAccess:\n 'read and write only the events that are not private, seeing private ones as busy blocks',\n writer: \"read and write everything, plus read access to the calendar's own sharing\",\n owner: \"everything writer grants, plus the ability to change other users' access\",\n};\n\n/** `none, freeBusyReader, reader, ...`: the bare vocabulary, in order. */\nexport function listRoles(roles: readonly AclRole[] = AclRole.options): string {\n return roles.join(', ');\n}\n\n/** `none (no access), freeBusyReader (free/busy only), ...`: each role glossed. */\nexport function describeRoles(roles: readonly AclRole[] = AclRole.options): string {\n const described = roles.map((role) => `${role} (${ROLE_GLOSS[role]})`);\n const last = described.pop();\n return described.length > 0 ? `${described.join(', ')}, or ${last}` : `${last}`;\n}\n\n/**\n * The roles that can appear as an effective `accessRole` on a calendar you can\n * already see. `none` cannot: a calendar on your list grants at least\n * free/busy.\n */\nexport const EFFECTIVE_ROLES: readonly AclRole[] = AclRole.options.filter(\n (role) => role !== 'none',\n);\n"]}
@@ -3,11 +3,12 @@
3
3
  * standing-side-effect cluster (the `create_filter` and
4
4
  * `sheets/add_protected_range` precedents): the grant keeps conferring access
5
5
  * until something revokes it, so it is not merely additive, and `owner` hands
6
- * the grantee control of this calendar's sharing.
6
+ * the scope control of this calendar's sharing.
7
7
  *
8
- * Open-world because `sendNotifications` defaults to true at Google, so a
9
- * grant emails the scope, which may be an address outside the organization
10
- * entirely. Pass `sendNotifications: false` to grant silently.
8
+ * Open-world on the precedent of the sends (`gmail/send_message`,
9
+ * `gmail/send_draft`), because `sendNotifications` defaults to true at Google, so a
10
+ * grant can send sharing notifications, potentially outside the
11
+ * organization entirely. Pass `sendNotifications: false` to grant silently.
11
12
  *
12
13
  * A rule's id derives from its scope, so granting a scope that already has a
13
14
  * rule replaces that rule's role rather than adding a second one, and does not
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAYvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/index.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAWvB,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { listRoles } from '../../lib/roles.js';
1
2
  import { calendarOperation } from '../../operation.js';
2
3
  import { handler } from './handler.js';
3
4
  import { schema } from './schema.js';
@@ -6,11 +7,12 @@ import { schema } from './schema.js';
6
7
  * standing-side-effect cluster (the `create_filter` and
7
8
  * `sheets/add_protected_range` precedents): the grant keeps conferring access
8
9
  * until something revokes it, so it is not merely additive, and `owner` hands
9
- * the grantee control of this calendar's sharing.
10
+ * the scope control of this calendar's sharing.
10
11
  *
11
- * Open-world because `sendNotifications` defaults to true at Google, so a
12
- * grant emails the scope, which may be an address outside the organization
13
- * entirely. Pass `sendNotifications: false` to grant silently.
12
+ * Open-world on the precedent of the sends (`gmail/send_message`,
13
+ * `gmail/send_draft`), because `sendNotifications` defaults to true at Google, so a
14
+ * grant can send sharing notifications, potentially outside the
15
+ * organization entirely. Pass `sendNotifications: false` to grant silently.
14
16
  *
15
17
  * A rule's id derives from its scope, so granting a scope that already has a
16
18
  * rule replaces that rule's role rather than adding a second one, and does not
@@ -19,7 +21,7 @@ import { schema } from './schema.js';
19
21
  * the calendar was left with one rule for that scope.
20
22
  */
21
23
  export const add_acl_rule = calendarOperation({
22
- description: 'Share a calendar by adding a rule to its access control list, granting a role (none, freeBusyReader, reader, writerWithoutPrivateAccess, writer, or owner) to a scope (a user, a group, a domain, or the public). Sends the grantee a sharing notification unless sendNotifications is false.',
24
+ description: `Share a calendar by adding a rule to its access control list, granting a role (${listRoles()}) to a scope (a user, a group, a domain, or the public). If the scope already has a rule, this replaces that rule's role rather than creating a duplicate. Sharing notifications are enabled by default; pass sendNotifications false to suppress them.`,
23
25
  annotations: {
24
26
  readOnlyHint: false,
25
27
  destructiveHint: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,iBAAiB,CAAC;IAC5C,WAAW,EACT,+RAA+R;IACjS,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK;QACrB,aAAa,EAAE,IAAI;KACpB;IACD,MAAM,EAAE,8EAA8E;IACtF,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { calendarOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * Grants access to a calendar. Destructive under the rubric's\n * standing-side-effect cluster (the `create_filter` and\n * `sheets/add_protected_range` precedents): the grant keeps conferring access\n * until something revokes it, so it is not merely additive, and `owner` hands\n * the grantee control of this calendar's sharing.\n *\n * Open-world because `sendNotifications` defaults to true at Google, so a\n * grant emails the scope, which may be an address outside the organization\n * entirely. Pass `sendNotifications: false` to grant silently.\n *\n * A rule's id derives from its scope, so granting a scope that already has a\n * rule replaces that rule's role rather than adding a second one, and does not\n * conflict. Verified against the live API rather than inferred: a second\n * insert for the same scope returned the same rule id with the new role, and\n * the calendar was left with one rule for that scope.\n */\nexport const add_acl_rule = calendarOperation({\n description:\n 'Share a calendar by adding a rule to its access control list, granting a role (none, freeBusyReader, reader, writerWithoutPrivateAccess, writer, or owner) to a scope (a user, a group, a domain, or the public). Sends the grantee a sharing notification unless sendNotifications is false.',\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: false,\n openWorldHint: true,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/insert',\n schema,\n handler,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,iBAAiB,CAAC;IAC5C,WAAW,EAAE,kFAAkF,SAAS,EAAE,yPAAyP;IACnW,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK;QACrB,aAAa,EAAE,IAAI;KACpB;IACD,MAAM,EAAE,8EAA8E;IACtF,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { listRoles } from '../../lib/roles.js';\nimport { calendarOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * Grants access to a calendar. Destructive under the rubric's\n * standing-side-effect cluster (the `create_filter` and\n * `sheets/add_protected_range` precedents): the grant keeps conferring access\n * until something revokes it, so it is not merely additive, and `owner` hands\n * the scope control of this calendar's sharing.\n *\n * Open-world on the precedent of the sends (`gmail/send_message`,\n * `gmail/send_draft`), because `sendNotifications` defaults to true at Google, so a\n * grant can send sharing notifications, potentially outside the\n * organization entirely. Pass `sendNotifications: false` to grant silently.\n *\n * A rule's id derives from its scope, so granting a scope that already has a\n * rule replaces that rule's role rather than adding a second one, and does not\n * conflict. Verified against the live API rather than inferred: a second\n * insert for the same scope returned the same rule id with the new role, and\n * the calendar was left with one rule for that scope.\n */\nexport const add_acl_rule = calendarOperation({\n description: `Share a calendar by adding a rule to its access control list, granting a role (${listRoles()}) to a scope (a user, a group, a domain, or the public). If the scope already has a rule, this replaces that rule's role rather than creating a duplicate. Sharing notifications are enabled by default; pass sendNotifications false to suppress them.`,\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: false,\n openWorldHint: true,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/insert',\n schema,\n handler,\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,MAAM;IACjB,KAAK;;;;;;;;;;;;;;;;;;;;;;IAgBL,MAAM;;;;;;;;;;;;;;;;;;;;;CACP,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,MAAM;IACjB,KAAK;;;;;;;;;;;;;;;;;;;;;;IAcL,MAAM;;;;;;;;;;;;;;;;;;;;;CACP,CAAC"}
@@ -2,9 +2,10 @@ import { z } from 'zod';
2
2
  import { AclRole } from '../../entities/AclRole.js';
3
3
  import { AclRule } from '../../entities/AclRule.js';
4
4
  import { AclScope } from '../../entities/AclScope.js';
5
+ import { describeRoles } from '../../lib/roles.js';
5
6
  export const schema = {
6
7
  input: z.strictObject({
7
- role: AclRole.describe("The role to grant: none, freeBusyReader (free/busy only), reader (event details, private events hidden), writerWithoutPrivateAccess (read and write, private event details hidden), writer (read and write, private event details visible), or owner (writer plus the ability to change other users' access)."),
8
+ role: AclRole.describe(`The role to grant: ${describeRoles()}.`),
8
9
  scope: AclScope.describe('Who the role is granted to.'),
9
10
  calendarId: z
10
11
  .string()
@@ -13,7 +14,7 @@ export const schema = {
13
14
  sendNotifications: z
14
15
  .boolean()
15
16
  .optional()
16
- .describe('Whether to email the grantee about the sharing change. Google defaults this to true, so leaving it unset sends mail to the scope; pass false to grant access silently.'),
17
+ .describe('Whether to send sharing notifications about the change. Google enables them by default, so leaving this unset leaves sharing notifications enabled; pass false to grant access silently.'),
17
18
  }),
18
19
  output: AclRule,
19
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,IAAI,EAAE,OAAO,CAAC,QAAQ,CACpB,+SAA+S,CAChT;QACD,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,6BAA6B,CAAC;QACvD,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,uEAAuE,CAAC;QACpF,iBAAiB,EAAE,CAAC;aACjB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,wKAAwK,CACzK;KACJ,CAAC;IACF,MAAM,EAAE,OAAO;CAChB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { AclRole } from '../../entities/AclRole.js';\nimport { AclRule } from '../../entities/AclRule.js';\nimport { AclScope } from '../../entities/AclScope.js';\n\nexport const schema = {\n input: z.strictObject({\n role: AclRole.describe(\n \"The role to grant: none, freeBusyReader (free/busy only), reader (event details, private events hidden), writerWithoutPrivateAccess (read and write, private event details hidden), writer (read and write, private event details visible), or owner (writer plus the ability to change other users' access).\",\n ),\n scope: AclScope.describe('Who the role is granted to.'),\n calendarId: z\n .string()\n .optional()\n .describe(\"The calendar ID to share. The default is the user's primary calendar.\"),\n sendNotifications: z\n .boolean()\n .optional()\n .describe(\n 'Whether to email the grantee about the sharing change. Google defaults this to true, so leaving it unset sends mail to the scope; pass false to grant access silently.',\n ),\n }),\n output: AclRule,\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/add_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,sBAAsB,aAAa,EAAE,GAAG,CAAC;QAChE,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,6BAA6B,CAAC;QACvD,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,uEAAuE,CAAC;QACpF,iBAAiB,EAAE,CAAC;aACjB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,0LAA0L,CAC3L;KACJ,CAAC;IACF,MAAM,EAAE,OAAO;CAChB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { AclRole } from '../../entities/AclRole.js';\nimport { AclRule } from '../../entities/AclRule.js';\nimport { AclScope } from '../../entities/AclScope.js';\nimport { describeRoles } from '../../lib/roles.js';\n\nexport const schema = {\n input: z.strictObject({\n role: AclRole.describe(`The role to grant: ${describeRoles()}.`),\n scope: AclScope.describe('Who the role is granted to.'),\n calendarId: z\n .string()\n .optional()\n .describe(\"The calendar ID to share. The default is the user's primary calendar.\"),\n sendNotifications: z\n .boolean()\n .optional()\n .describe(\n 'Whether to send sharing notifications about the change. Google enables them by default, so leaving this unset leaves sharing notifications enabled; pass false to grant access silently.',\n ),\n }),\n output: AclRule,\n};\n"]}
@@ -12,7 +12,7 @@ import { schema } from './schema.js';
12
12
  * access, patch its role to `none` instead.
13
13
  */
14
14
  export const delete_acl_rule = calendarOperation({
15
- description: "Revoke a rule from a calendar's access control list, removing that scope's access to the calendar. The grantee is not notified.",
15
+ description: "Revoke a rule from a calendar's access control list, removing that scope's access to the calendar. Access removal does not send sharing notifications.",
16
16
  annotations: {
17
17
  readOnlyHint: false,
18
18
  destructiveHint: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/delete_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EACT,iIAAiI;IACnI,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EAAE,8EAA8E;IACtF,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { calendarOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * Revokes a grant: the scope loses the access the rule conferred. Destructive\n * under the rubric's removal cluster, and idempotent in effect (a revoked\n * rule stays revoked, though a second call 404s on the missing rule).\n *\n * Closed-world, unlike the other writes: Google sends no notification on\n * access removal, so this operation reaches no external party and takes no\n * sendNotifications parameter. To leave a rule in place but strip its\n * access, patch its role to `none` instead.\n */\nexport const delete_acl_rule = calendarOperation({\n description:\n \"Revoke a rule from a calendar's access control list, removing that scope's access to the calendar. The grantee is not notified.\",\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/delete',\n schema,\n handler,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/delete_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EACT,wJAAwJ;IAC1J,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EAAE,8EAA8E;IACtF,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { calendarOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * Revokes a grant: the scope loses the access the rule conferred. Destructive\n * under the rubric's removal cluster, and idempotent in effect (a revoked\n * rule stays revoked, though a second call 404s on the missing rule).\n *\n * Closed-world, unlike the other writes: Google sends no notification on\n * access removal, so this operation reaches no external party and takes no\n * sendNotifications parameter. To leave a rule in place but strip its\n * access, patch its role to `none` instead.\n */\nexport const delete_acl_rule = calendarOperation({\n description:\n \"Revoke a rule from a calendar's access control list, removing that scope's access to the calendar. Access removal does not send sharing notifications.\",\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: false,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/delete',\n schema,\n handler,\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/list_event_instances/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,MAAM;IACjB,KAAK;;;;;;;;;;;IA4CL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BP,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/list_event_instances/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,MAAM;IACjB,KAAK;;;;;;;;;;;IA4CL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBP,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { Event } from '../../entities/Event.js';
3
3
  import { Reminder } from '../../entities/Reminder.js';
4
+ import { listRoles } from '../../lib/roles.js';
4
5
  export const schema = {
5
6
  input: z.strictObject({
6
7
  eventId: z.string().describe('The ID of the recurring event to expand.'),
@@ -47,7 +48,7 @@ export const schema = {
47
48
  accessRole: z
48
49
  .string()
49
50
  .optional()
50
- .describe("The user's access role for this calendar. One of: none, freeBusyReader, reader, writer, owner."),
51
+ .describe(`The user's access role for this calendar. One of: ${listRoles()}.`),
51
52
  defaultReminders: z
52
53
  .array(Reminder)
53
54
  .optional()
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/list_event_instances/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;QACxE,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,qFAAqF,CACtF;QACH,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,IAAI,CAAC;aACT,QAAQ,EAAE;aACV,QAAQ,CAAC,kFAAkF,CAAC;QAC/F,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;QAC1F,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,6EAA6E,CAAC;QAC1F,WAAW,EAAE,CAAC;aACX,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,qGAAqG,CACtG;QACH,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,6JAA6J,CAC9J;QACH,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,kHAAkH,CACnH;QACH,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,8GAA8G,CAC/G;KACJ,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;QACjE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;QAC3E,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,oEAAoE,CAAC;QACjF,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;QAC1E,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,gGAAgG,CACjG;QACH,gBAAgB,EAAE,CAAC;aAChB,KAAK,CAAC,QAAQ,CAAC;aACf,QAAQ,EAAE;aACV,QAAQ,CACP,yFAAyF,CAC1F;QACH,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QACxE,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,oDAAoD,CAAC;KAClE,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\nimport { Event } from '../../entities/Event.js';\nimport { Reminder } from '../../entities/Reminder.js';\n\nexport const schema = {\n input: z.strictObject({\n eventId: z.string().describe('The ID of the recurring event to expand.'),\n calendarId: z\n .string()\n .optional()\n .describe(\n \"The calendar ID of the recurring event. The default is the user's primary calendar.\",\n ),\n maxResults: z\n .number()\n .int()\n .max(2500)\n .optional()\n .describe('Maximum number of instances returned on one result page (default 250, max 2500).'),\n pageToken: z.string().optional().describe('Token specifying which result page to return.'),\n originalStart: z\n .string()\n .optional()\n .describe('Filter to the single instance whose original start time matches this value.'),\n showDeleted: z\n .boolean()\n .optional()\n .describe(\n 'Whether to include deleted instances (with status \"cancelled\") in the result. The default is false.',\n ),\n timeMin: z\n .string()\n .optional()\n .describe(\n \"Lower bound (inclusive) for an instance's end time, as an RFC3339 timestamp with a mandatory time zone offset. Unlike list_events, this bound is inclusive.\",\n ),\n timeMax: z\n .string()\n .optional()\n .describe(\n \"Upper bound (exclusive) for an instance's start time, as an RFC3339 timestamp with a mandatory time zone offset.\",\n ),\n timeZone: z\n .string()\n .optional()\n .describe(\n \"Time zone used in the response, as an IANA Time Zone Database name. The default is the calendar's time zone.\",\n ),\n }),\n output: z.object({\n summary: z.string().optional().describe('Title of the calendar.'),\n description: z.string().optional().describe('Description of the calendar.'),\n updated: z\n .string()\n .optional()\n .describe('Last modification time of the calendar (as an ISO 8601 timestamp).'),\n timeZone: z.string().optional().describe('The time zone of the calendar.'),\n accessRole: z\n .string()\n .optional()\n .describe(\n \"The user's access role for this calendar. One of: none, freeBusyReader, reader, writer, owner.\",\n ),\n defaultReminders: z\n .array(Reminder)\n .optional()\n .describe(\n 'The default reminders on the calendar, applied to all events that do not override them.',\n ),\n events: z.array(Event).describe('The instances of the recurring event.'),\n nextPageToken: z\n .string()\n .optional()\n .describe('Token used to access the next page of this result.'),\n }),\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/list_event_instances/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;QACxE,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,qFAAqF,CACtF;QACH,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,IAAI,CAAC;aACT,QAAQ,EAAE;aACV,QAAQ,CAAC,kFAAkF,CAAC;QAC/F,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;QAC1F,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,6EAA6E,CAAC;QAC1F,WAAW,EAAE,CAAC;aACX,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,qGAAqG,CACtG;QACH,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,6JAA6J,CAC9J;QACH,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,kHAAkH,CACnH;QACH,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,8GAA8G,CAC/G;KACJ,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;QACjE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;QAC3E,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,oEAAoE,CAAC;QACjF,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;QAC1E,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,qDAAqD,SAAS,EAAE,GAAG,CAAC;QAChF,gBAAgB,EAAE,CAAC;aAChB,KAAK,CAAC,QAAQ,CAAC;aACf,QAAQ,EAAE;aACV,QAAQ,CACP,yFAAyF,CAC1F;QACH,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QACxE,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,oDAAoD,CAAC;KAClE,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\nimport { Event } from '../../entities/Event.js';\nimport { Reminder } from '../../entities/Reminder.js';\nimport { listRoles } from '../../lib/roles.js';\n\nexport const schema = {\n input: z.strictObject({\n eventId: z.string().describe('The ID of the recurring event to expand.'),\n calendarId: z\n .string()\n .optional()\n .describe(\n \"The calendar ID of the recurring event. The default is the user's primary calendar.\",\n ),\n maxResults: z\n .number()\n .int()\n .max(2500)\n .optional()\n .describe('Maximum number of instances returned on one result page (default 250, max 2500).'),\n pageToken: z.string().optional().describe('Token specifying which result page to return.'),\n originalStart: z\n .string()\n .optional()\n .describe('Filter to the single instance whose original start time matches this value.'),\n showDeleted: z\n .boolean()\n .optional()\n .describe(\n 'Whether to include deleted instances (with status \"cancelled\") in the result. The default is false.',\n ),\n timeMin: z\n .string()\n .optional()\n .describe(\n \"Lower bound (inclusive) for an instance's end time, as an RFC3339 timestamp with a mandatory time zone offset. Unlike list_events, this bound is inclusive.\",\n ),\n timeMax: z\n .string()\n .optional()\n .describe(\n \"Upper bound (exclusive) for an instance's start time, as an RFC3339 timestamp with a mandatory time zone offset.\",\n ),\n timeZone: z\n .string()\n .optional()\n .describe(\n \"Time zone used in the response, as an IANA Time Zone Database name. The default is the calendar's time zone.\",\n ),\n }),\n output: z.object({\n summary: z.string().optional().describe('Title of the calendar.'),\n description: z.string().optional().describe('Description of the calendar.'),\n updated: z\n .string()\n .optional()\n .describe('Last modification time of the calendar (as an ISO 8601 timestamp).'),\n timeZone: z.string().optional().describe('The time zone of the calendar.'),\n accessRole: z\n .string()\n .optional()\n .describe(`The user's access role for this calendar. One of: ${listRoles()}.`),\n defaultReminders: z\n .array(Reminder)\n .optional()\n .describe(\n 'The default reminders on the calendar, applied to all events that do not override them.',\n ),\n events: z.array(Event).describe('The instances of the recurring event.'),\n nextPageToken: z\n .string()\n .optional()\n .describe('Token used to access the next page of this result.'),\n }),\n};\n"]}
@@ -10,10 +10,11 @@
10
10
  *
11
11
  * Open-world and not idempotent on the precedent of the sends
12
12
  * (`gmail/send_message`, `gmail/send_draft`): `sendNotifications` defaults to
13
- * true at Google, so replaying identical arguments can send a second email,
13
+ * true at Google, so replaying identical arguments can emit another round
14
+ * of sharing notifications,
14
15
  * and `src/lib/server.ts` reads `idempotentHint` as permission to silently
15
- * retry after a credential refresh. Lowering a role sends nothing, since
16
- * Google does not notify on access removal.
16
+ * retry after a credential refresh. Access removal sends no sharing
17
+ * notifications.
17
18
  */
18
19
  export declare const patch_acl_rule: import("../../../lib/operation.js").Operation<import("@googleapis/calendar").calendar_v3.Calendar, import("zod").ZodObject<{
19
20
  ruleId: import("zod").ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_acl_rule/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAYzB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_acl_rule/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAYzB,CAAC"}
@@ -13,13 +13,14 @@ import { schema } from './schema.js';
13
13
  *
14
14
  * Open-world and not idempotent on the precedent of the sends
15
15
  * (`gmail/send_message`, `gmail/send_draft`): `sendNotifications` defaults to
16
- * true at Google, so replaying identical arguments can send a second email,
16
+ * true at Google, so replaying identical arguments can emit another round
17
+ * of sharing notifications,
17
18
  * and `src/lib/server.ts` reads `idempotentHint` as permission to silently
18
- * retry after a credential refresh. Lowering a role sends nothing, since
19
- * Google does not notify on access removal.
19
+ * retry after a credential refresh. Access removal sends no sharing
20
+ * notifications.
20
21
  */
21
22
  export const patch_acl_rule = calendarOperation({
22
- description: "Update a rule on a calendar's access control list, changing the role granted to a scope; unset fields are left unchanged. Granting or raising access sends the grantee a sharing notification unless sendNotifications is false; lowering or removing access never notifies.",
23
+ description: "Update a rule on a calendar's access control list, changing the role granted to a scope; unset fields are left unchanged. Sharing notifications are enabled by default; pass sendNotifications false to suppress them. Access removal never notifies.",
23
24
  annotations: {
24
25
  readOnlyHint: false,
25
26
  destructiveHint: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAC;IAC9C,WAAW,EACT,8QAA8Q;IAChR,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK;QACrB,aAAa,EAAE,IAAI;KACpB;IACD,MAAM,EAAE,6EAA6E;IACrF,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { calendarOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * Patch semantics: unset fields are left unchanged, so this is the operation\n * for changing a grant's role without restating its scope. For a whole\n * replacement, see update_acl_rule.\n *\n * Destructive on the standing-side-effect precedent of `gmail/create_filter`\n * and `sheets/add_protected_range` rather than the rubric's update default:\n * it changes who can reach a calendar, the access persists until revoked, and\n * it can escalate a scope to `owner`.\n *\n * Open-world and not idempotent on the precedent of the sends\n * (`gmail/send_message`, `gmail/send_draft`): `sendNotifications` defaults to\n * true at Google, so replaying identical arguments can send a second email,\n * and `src/lib/server.ts` reads `idempotentHint` as permission to silently\n * retry after a credential refresh. Lowering a role sends nothing, since\n * Google does not notify on access removal.\n */\nexport const patch_acl_rule = calendarOperation({\n description:\n \"Update a rule on a calendar's access control list, changing the role granted to a scope; unset fields are left unchanged. Granting or raising access sends the grantee a sharing notification unless sendNotifications is false; lowering or removing access never notifies.\",\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: false,\n openWorldHint: true,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/patch',\n schema,\n handler,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAC;IAC9C,WAAW,EACT,uPAAuP;IACzP,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK;QACrB,aAAa,EAAE,IAAI;KACpB;IACD,MAAM,EAAE,6EAA6E;IACrF,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { calendarOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * Patch semantics: unset fields are left unchanged, so this is the operation\n * for changing a grant's role without restating its scope. For a whole\n * replacement, see update_acl_rule.\n *\n * Destructive on the standing-side-effect precedent of `gmail/create_filter`\n * and `sheets/add_protected_range` rather than the rubric's update default:\n * it changes who can reach a calendar, the access persists until revoked, and\n * it can escalate a scope to `owner`.\n *\n * Open-world and not idempotent on the precedent of the sends\n * (`gmail/send_message`, `gmail/send_draft`): `sendNotifications` defaults to\n * true at Google, so replaying identical arguments can emit another round\n * of sharing notifications,\n * and `src/lib/server.ts` reads `idempotentHint` as permission to silently\n * retry after a credential refresh. Access removal sends no sharing\n * notifications.\n */\nexport const patch_acl_rule = calendarOperation({\n description:\n \"Update a rule on a calendar's access control list, changing the role granted to a scope; unset fields are left unchanged. Sharing notifications are enabled by default; pass sendNotifications false to suppress them. Access removal never notifies.\",\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: false,\n openWorldHint: true,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/patch',\n schema,\n handler,\n});\n"]}
@@ -16,7 +16,7 @@ export const schema = {
16
16
  sendNotifications: z
17
17
  .boolean()
18
18
  .optional()
19
- .describe('Whether to email the grantee about the sharing change. Google defaults this to true, so leaving it unset sends mail to the scope; pass false to change access silently. There is never a notification on access removal.'),
19
+ .describe('Whether to send sharing notifications about the change. Google enables them by default, so leaving this unset leaves sharing notifications enabled; pass false to change access silently. Access removal never notifies.'),
20
20
  }),
21
21
  output: AclRule,
22
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,CACP,+GAA+G,CAChH;QACH,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;QAC7F,KAAK,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjC,6IAA6I,CAC9I;QACD,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,kFAAkF,CAAC;QAC/F,iBAAiB,EAAE,CAAC;aACjB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,0NAA0N,CAC3N;KACJ,CAAC;IACF,MAAM,EAAE,OAAO;CAChB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { AclRole } from '../../entities/AclRole.js';\nimport { AclRule } from '../../entities/AclRule.js';\nimport { AclScope } from '../../entities/AclScope.js';\n\nexport const schema = {\n input: z.strictObject({\n ruleId: z\n .string()\n .describe(\n 'The identifier of the rule to update, as returned by list_acl_rules (for example \"user:someone@example.com\").',\n ),\n role: AclRole.optional().describe('The new role the rule grants; left unchanged when unset.'),\n scope: AclScope.optional().describe(\n 'The new scope the role is granted to; left unchanged when unset. A rule id derives from its scope, so changing it is rarely what is wanted.',\n ),\n calendarId: z\n .string()\n .optional()\n .describe(\"The calendar ID the rule belongs to. The default is the user's primary calendar.\"),\n sendNotifications: z\n .boolean()\n .optional()\n .describe(\n 'Whether to email the grantee about the sharing change. Google defaults this to true, so leaving it unset sends mail to the scope; pass false to change access silently. There is never a notification on access removal.',\n ),\n }),\n output: AclRule,\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,CACP,+GAA+G,CAChH;QACH,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;QAC7F,KAAK,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjC,6IAA6I,CAC9I;QACD,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,kFAAkF,CAAC;QAC/F,iBAAiB,EAAE,CAAC;aACjB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,0NAA0N,CAC3N;KACJ,CAAC;IACF,MAAM,EAAE,OAAO;CAChB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { AclRole } from '../../entities/AclRole.js';\nimport { AclRule } from '../../entities/AclRule.js';\nimport { AclScope } from '../../entities/AclScope.js';\n\nexport const schema = {\n input: z.strictObject({\n ruleId: z\n .string()\n .describe(\n 'The identifier of the rule to update, as returned by list_acl_rules (for example \"user:someone@example.com\").',\n ),\n role: AclRole.optional().describe('The new role the rule grants; left unchanged when unset.'),\n scope: AclScope.optional().describe(\n 'The new scope the role is granted to; left unchanged when unset. A rule id derives from its scope, so changing it is rarely what is wanted.',\n ),\n calendarId: z\n .string()\n .optional()\n .describe(\"The calendar ID the rule belongs to. The default is the user's primary calendar.\"),\n sendNotifications: z\n .boolean()\n .optional()\n .describe(\n 'Whether to send sharing notifications about the change. Google enables them by default, so leaving this unset leaves sharing notifications enabled; pass false to change access silently. Access removal never notifies.',\n ),\n }),\n output: AclRule,\n};\n"]}
@@ -10,8 +10,8 @@ import type { calendar_v3 } from '@googleapis/calendar';
10
10
  * sharing grant is a standing side effect (the `create_filter` and
11
11
  * `sheets/add_protected_range` precedents) and can escalate a scope to
12
12
  * `owner`. Those three that take `sendNotifications` are also the only
13
- * open-world operations on this surface, since Google defaults it to true
14
- * and emails the grantee.
13
+ * open-world operations on this surface: Google defaults it to true, so they
14
+ * can send sharing notifications, potentially outside the organization.
15
15
  */
16
16
  export declare const methods: {
17
17
  list_event_instances: import("../../lib/operation.js").Operation<calendar_v3.Calendar, import("zod").ZodObject<{
@@ -32,8 +32,8 @@ import { update_calendar_entry } from './update_calendar_entry/index.js';
32
32
  * sharing grant is a standing side effect (the `create_filter` and
33
33
  * `sheets/add_protected_range` precedents) and can escalate a scope to
34
34
  * `owner`. Those three that take `sendNotifications` are also the only
35
- * open-world operations on this surface, since Google defaults it to true
36
- * and emails the grantee.
35
+ * open-world operations on this surface: Google defaults it to true, so they
36
+ * can send sharing notifications, potentially outside the organization.
37
37
  */
38
38
  export const methods = {
39
39
  // events
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/calendar/methods/registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,SAAS;IACT,oBAAoB;IACpB,UAAU;IACV,eAAe;IACf,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,eAAe;IACf,eAAe;IACf,cAAc;IACd,wBAAwB;IACxB,kBAAkB;IAClB,kBAAkB;IAClB,qBAAqB;IACrB,qBAAqB;IACrB,iBAAiB;IACjB,cAAc;IACd,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,cAAc;IACd,eAAe;IACf,eAAe;IACf,eAAe;IACf,UAAU;IACV,UAAU;IACV,aAAa;IACb,WAAW;CACiD,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { AnyOperation } from '../../lib/operation.js';\nimport { add_acl_rule } from './add_acl_rule/index.js';\nimport { add_calendar_entry } from './add_calendar_entry/index.js';\nimport { clear_calendar } from './clear_calendar/index.js';\nimport { create_calendar } from './create_calendar/index.js';\nimport { delete_acl_rule } from './delete_acl_rule/index.js';\nimport { delete_calendar } from './delete_calendar/index.js';\nimport { get_acl_rule } from './get_acl_rule/index.js';\nimport { get_calendar } from './get_calendar/index.js';\nimport { get_calendar_entry } from './get_calendar_entry/index.js';\nimport { get_colors } from './get_colors/index.js';\nimport { get_setting } from './get_setting/index.js';\nimport { list_acl_rules } from './list_acl_rules/index.js';\nimport { list_event_instances } from './list_event_instances/index.js';\nimport { list_settings } from './list_settings/index.js';\nimport { move_event } from './move_event/index.js';\nimport { patch_acl_rule } from './patch_acl_rule/index.js';\nimport { patch_event } from './patch_event/index.js';\nimport { query_free_busy } from './query_free_busy/index.js';\nimport { quick_add_event } from './quick_add_event/index.js';\nimport { remove_calendar_entry } from './remove_calendar_entry/index.js';\nimport { update_acl_rule } from './update_acl_rule/index.js';\nimport { update_calendar } from './update_calendar/index.js';\nimport { update_calendar_entry } from './update_calendar_entry/index.js';\n\n/**\n * REST-sourced operations (beyond the MCP toolset), sourced from\n * `developers.google.com/workspace/calendar/api/v3/reference`. Same wire\n * surface as tools; merged into the registry by the server. Removals (the\n * deletes and clear_calendar; reversible ones included) carry\n * `destructiveHint`; see EXTENDING.md's annotation rubric.\n *\n * The access-control writes carry it too, though they are not removals: a\n * sharing grant is a standing side effect (the `create_filter` and\n * `sheets/add_protected_range` precedents) and can escalate a scope to\n * `owner`. Those three that take `sendNotifications` are also the only\n * open-world operations on this surface, since Google defaults it to true\n * and emails the grantee.\n */\nexport const methods = {\n // events\n list_event_instances,\n move_event,\n quick_add_event,\n patch_event,\n // calendars\n get_calendar,\n create_calendar,\n update_calendar,\n delete_calendar,\n clear_calendar,\n // calendar list entries\n get_calendar_entry,\n add_calendar_entry,\n update_calendar_entry,\n remove_calendar_entry,\n // access control\n list_acl_rules,\n get_acl_rule,\n add_acl_rule,\n update_acl_rule,\n patch_acl_rule,\n delete_acl_rule,\n // availability\n query_free_busy,\n // account\n get_colors,\n list_settings,\n get_setting,\n} satisfies Record<string, AnyOperation<calendar_v3.Calendar>>;\n"]}
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/calendar/methods/registry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,SAAS;IACT,oBAAoB;IACpB,UAAU;IACV,eAAe;IACf,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,eAAe;IACf,eAAe;IACf,cAAc;IACd,wBAAwB;IACxB,kBAAkB;IAClB,kBAAkB;IAClB,qBAAqB;IACrB,qBAAqB;IACrB,iBAAiB;IACjB,cAAc;IACd,YAAY;IACZ,YAAY;IACZ,eAAe;IACf,cAAc;IACd,eAAe;IACf,eAAe;IACf,eAAe;IACf,UAAU;IACV,UAAU;IACV,aAAa;IACb,WAAW;CACiD,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { AnyOperation } from '../../lib/operation.js';\nimport { add_acl_rule } from './add_acl_rule/index.js';\nimport { add_calendar_entry } from './add_calendar_entry/index.js';\nimport { clear_calendar } from './clear_calendar/index.js';\nimport { create_calendar } from './create_calendar/index.js';\nimport { delete_acl_rule } from './delete_acl_rule/index.js';\nimport { delete_calendar } from './delete_calendar/index.js';\nimport { get_acl_rule } from './get_acl_rule/index.js';\nimport { get_calendar } from './get_calendar/index.js';\nimport { get_calendar_entry } from './get_calendar_entry/index.js';\nimport { get_colors } from './get_colors/index.js';\nimport { get_setting } from './get_setting/index.js';\nimport { list_acl_rules } from './list_acl_rules/index.js';\nimport { list_event_instances } from './list_event_instances/index.js';\nimport { list_settings } from './list_settings/index.js';\nimport { move_event } from './move_event/index.js';\nimport { patch_acl_rule } from './patch_acl_rule/index.js';\nimport { patch_event } from './patch_event/index.js';\nimport { query_free_busy } from './query_free_busy/index.js';\nimport { quick_add_event } from './quick_add_event/index.js';\nimport { remove_calendar_entry } from './remove_calendar_entry/index.js';\nimport { update_acl_rule } from './update_acl_rule/index.js';\nimport { update_calendar } from './update_calendar/index.js';\nimport { update_calendar_entry } from './update_calendar_entry/index.js';\n\n/**\n * REST-sourced operations (beyond the MCP toolset), sourced from\n * `developers.google.com/workspace/calendar/api/v3/reference`. Same wire\n * surface as tools; merged into the registry by the server. Removals (the\n * deletes and clear_calendar; reversible ones included) carry\n * `destructiveHint`; see EXTENDING.md's annotation rubric.\n *\n * The access-control writes carry it too, though they are not removals: a\n * sharing grant is a standing side effect (the `create_filter` and\n * `sheets/add_protected_range` precedents) and can escalate a scope to\n * `owner`. Those three that take `sendNotifications` are also the only\n * open-world operations on this surface: Google defaults it to true, so they\n * can send sharing notifications, potentially outside the organization.\n */\nexport const methods = {\n // events\n list_event_instances,\n move_event,\n quick_add_event,\n patch_event,\n // calendars\n get_calendar,\n create_calendar,\n update_calendar,\n delete_calendar,\n clear_calendar,\n // calendar list entries\n get_calendar_entry,\n add_calendar_entry,\n update_calendar_entry,\n remove_calendar_entry,\n // access control\n list_acl_rules,\n get_acl_rule,\n add_acl_rule,\n update_acl_rule,\n patch_acl_rule,\n delete_acl_rule,\n // availability\n query_free_busy,\n // account\n get_colors,\n list_settings,\n get_setting,\n} satisfies Record<string, AnyOperation<calendar_v3.Calendar>>;\n"]}
@@ -18,12 +18,12 @@
18
18
  *
19
19
  * Open-world and NOT idempotent on the precedent of the sends
20
20
  * (`gmail/send_message`, `gmail/send_draft`), because `sendNotifications`
21
- * defaults to true at Google: a replay with identical arguments can send the
22
- * grantee a second email, which is an additional effect on the environment.
21
+ * defaults to true at Google: a replay with identical arguments can send
22
+ * another round of sharing notifications, which is an additional effect on
23
+ * the environment.
23
24
  * The hint describes the riskiest accepted input, and `src/lib/server.ts`
24
25
  * reads `idempotentHint` as permission to silently retry after a credential
25
- * refresh. Lowering a role sends nothing, since Google does not notify on
26
- * access removal.
26
+ * refresh. Access removal sends no sharing notifications.
27
27
  */
28
28
  export declare const update_acl_rule: import("../../../lib/operation.js").Operation<import("@googleapis/calendar").calendar_v3.Calendar, import("zod").ZodObject<{
29
29
  ruleId: import("zod").ZodString;
@@ -21,15 +21,15 @@ import { schema } from './schema.js';
21
21
  *
22
22
  * Open-world and NOT idempotent on the precedent of the sends
23
23
  * (`gmail/send_message`, `gmail/send_draft`), because `sendNotifications`
24
- * defaults to true at Google: a replay with identical arguments can send the
25
- * grantee a second email, which is an additional effect on the environment.
24
+ * defaults to true at Google: a replay with identical arguments can send
25
+ * another round of sharing notifications, which is an additional effect on
26
+ * the environment.
26
27
  * The hint describes the riskiest accepted input, and `src/lib/server.ts`
27
28
  * reads `idempotentHint` as permission to silently retry after a credential
28
- * refresh. Lowering a role sends nothing, since Google does not notify on
29
- * access removal.
29
+ * refresh. Access removal sends no sharing notifications.
30
30
  */
31
31
  export const update_acl_rule = calendarOperation({
32
- description: "Replace a rule on a calendar's access control list, setting the role granted to a scope. Granting or raising access sends the grantee a sharing notification unless sendNotifications is false; lowering or removing access never notifies.",
32
+ description: "Replace a rule on a calendar's access control list, setting the role granted to a scope. Sharing notifications are enabled by default; pass sendNotifications false to suppress them. Access removal never notifies.",
33
33
  annotations: {
34
34
  readOnlyHint: false,
35
35
  destructiveHint: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/update_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EACT,6OAA6O;IAC/O,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK;QACrB,aAAa,EAAE,IAAI;KACpB;IACD,MAAM,EAAE,8EAA8E;IACtF,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { calendarOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * Replaces a rule whole. `scope` is required and `role` is not, mirroring the\n * discovery document, which marks `role` required for `acl.insert` alone. For\n * changing only the role and leaving the rest alone, see patch_acl_rule.\n *\n * This is a PUT, which COVERAGE.md otherwise says the suite skips in favor of\n * patch. The reason that policy exists (a full-resource PUT over a lossy\n * projection clobbers the fields the projection dropped) does not apply here:\n * `role` and `scope` are the whole writable surface of an ACL rule, and both\n * are projected, so nothing can be clobbered by omission.\n *\n * Destructive despite the rubric's \"updates are not destructive\" default\n * (the `update_event` precedent), following instead the standing-side-effect\n * cluster of `gmail/create_filter` and `sheets/add_protected_range`: this\n * update changes who can reach a calendar, the access it confers persists\n * until something revokes it, and it can escalate a scope to `owner`, which\n * confers control over the calendar's own sharing.\n *\n * Open-world and NOT idempotent on the precedent of the sends\n * (`gmail/send_message`, `gmail/send_draft`), because `sendNotifications`\n * defaults to true at Google: a replay with identical arguments can send the\n * grantee a second email, which is an additional effect on the environment.\n * The hint describes the riskiest accepted input, and `src/lib/server.ts`\n * reads `idempotentHint` as permission to silently retry after a credential\n * refresh. Lowering a role sends nothing, since Google does not notify on\n * access removal.\n */\nexport const update_acl_rule = calendarOperation({\n description:\n \"Replace a rule on a calendar's access control list, setting the role granted to a scope. Granting or raising access sends the grantee a sharing notification unless sendNotifications is false; lowering or removing access never notifies.\",\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: false,\n openWorldHint: true,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/update',\n schema,\n handler,\n});\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/update_acl_rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC/C,WAAW,EACT,sNAAsN;IACxN,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,IAAI;QACrB,cAAc,EAAE,KAAK;QACrB,aAAa,EAAE,IAAI;KACpB;IACD,MAAM,EAAE,8EAA8E;IACtF,MAAM;IACN,OAAO;CACR,CAAC,CAAC","sourcesContent":["import { calendarOperation } from '../../operation.js';\nimport { handler } from './handler.js';\nimport { schema } from './schema.js';\n\n/**\n * Replaces a rule whole. `scope` is required and `role` is not, mirroring the\n * discovery document, which marks `role` required for `acl.insert` alone. For\n * changing only the role and leaving the rest alone, see patch_acl_rule.\n *\n * This is a PUT, which COVERAGE.md otherwise says the suite skips in favor of\n * patch. The reason that policy exists (a full-resource PUT over a lossy\n * projection clobbers the fields the projection dropped) does not apply here:\n * `role` and `scope` are the whole writable surface of an ACL rule, and both\n * are projected, so nothing can be clobbered by omission.\n *\n * Destructive despite the rubric's \"updates are not destructive\" default\n * (the `update_event` precedent), following instead the standing-side-effect\n * cluster of `gmail/create_filter` and `sheets/add_protected_range`: this\n * update changes who can reach a calendar, the access it confers persists\n * until something revokes it, and it can escalate a scope to `owner`, which\n * confers control over the calendar's own sharing.\n *\n * Open-world and NOT idempotent on the precedent of the sends\n * (`gmail/send_message`, `gmail/send_draft`), because `sendNotifications`\n * defaults to true at Google: a replay with identical arguments can send\n * another round of sharing notifications, which is an additional effect on\n * the environment.\n * The hint describes the riskiest accepted input, and `src/lib/server.ts`\n * reads `idempotentHint` as permission to silently retry after a credential\n * refresh. Access removal sends no sharing notifications.\n */\nexport const update_acl_rule = calendarOperation({\n description:\n \"Replace a rule on a calendar's access control list, setting the role granted to a scope. Sharing notifications are enabled by default; pass sendNotifications false to suppress them. Access removal never notifies.\",\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: false,\n openWorldHint: true,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/update',\n schema,\n handler,\n});\n"]}
@@ -16,7 +16,7 @@ export const schema = {
16
16
  sendNotifications: z
17
17
  .boolean()
18
18
  .optional()
19
- .describe('Whether to email the grantee about the sharing change. Google defaults this to true, so leaving it unset sends mail to the scope; pass false to change access silently. There is never a notification on access removal.'),
19
+ .describe('Whether to send sharing notifications about the change. Google enables them by default, so leaving this unset leaves sharing notifications enabled; pass false to change access silently. Access removal never notifies.'),
20
20
  }),
21
21
  output: AclRule,
22
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/update_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,CACP,gHAAgH,CACjH;QACH,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC/B,+IAA+I,CAChJ;QACD,KAAK,EAAE,QAAQ,CAAC,QAAQ,CACtB,+FAA+F,CAChG;QACD,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,kFAAkF,CAAC;QAC/F,iBAAiB,EAAE,CAAC;aACjB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,0NAA0N,CAC3N;KACJ,CAAC;IACF,MAAM,EAAE,OAAO;CAChB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { AclRole } from '../../entities/AclRole.js';\nimport { AclRule } from '../../entities/AclRule.js';\nimport { AclScope } from '../../entities/AclScope.js';\n\nexport const schema = {\n input: z.strictObject({\n ruleId: z\n .string()\n .describe(\n 'The identifier of the rule to replace, as returned by list_acl_rules (for example \"user:someone@example.com\").',\n ),\n role: AclRole.optional().describe(\n 'The role the rule grants after the replacement. Optional: the discovery document marks role required for acl.insert only, not for acl.update.',\n ),\n scope: AclScope.describe(\n 'Who the role is granted to. A rule id derives from its scope, so this must agree with ruleId.',\n ),\n calendarId: z\n .string()\n .optional()\n .describe(\"The calendar ID the rule belongs to. The default is the user's primary calendar.\"),\n sendNotifications: z\n .boolean()\n .optional()\n .describe(\n 'Whether to email the grantee about the sharing change. Google defaults this to true, so leaving it unset sends mail to the scope; pass false to change access silently. There is never a notification on access removal.',\n ),\n }),\n output: AclRule,\n};\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/update_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,CACP,gHAAgH,CACjH;QACH,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC/B,+IAA+I,CAChJ;QACD,KAAK,EAAE,QAAQ,CAAC,QAAQ,CACtB,+FAA+F,CAChG;QACD,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,kFAAkF,CAAC;QAC/F,iBAAiB,EAAE,CAAC;aACjB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,0NAA0N,CAC3N;KACJ,CAAC;IACF,MAAM,EAAE,OAAO;CAChB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { AclRole } from '../../entities/AclRole.js';\nimport { AclRule } from '../../entities/AclRule.js';\nimport { AclScope } from '../../entities/AclScope.js';\n\nexport const schema = {\n input: z.strictObject({\n ruleId: z\n .string()\n .describe(\n 'The identifier of the rule to replace, as returned by list_acl_rules (for example \"user:someone@example.com\").',\n ),\n role: AclRole.optional().describe(\n 'The role the rule grants after the replacement. Optional: the discovery document marks role required for acl.insert only, not for acl.update.',\n ),\n scope: AclScope.describe(\n 'Who the role is granted to. A rule id derives from its scope, so this must agree with ruleId.',\n ),\n calendarId: z\n .string()\n .optional()\n .describe(\"The calendar ID the rule belongs to. The default is the user's primary calendar.\"),\n sendNotifications: z\n .boolean()\n .optional()\n .describe(\n 'Whether to send sharing notifications about the change. Google enables them by default, so leaving this unset leaves sharing notifications enabled; pass false to change access silently. Access removal never notifies.',\n ),\n }),\n output: AclRule,\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "google-mcp-suite",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "type": "module",
5
5
  "description": "Google Workspace MCP servers for AI agents, one per service per account: Gmail, Google Calendar, Google Drive, Google Docs, and Google Sheets. Identity is bound to the running instance, so an agent (Claude, Cursor, or any MCP client) can never act on the wrong account; each server exposes Google's curated MCP toolset (where one exists) plus the broader REST surface.",
6
6
  "keywords": [