google-mcp-suite 1.16.0 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/ADOPTING.md +2 -2
  2. package/README.md +5 -5
  3. package/dist/calendar/entities/AclRole.d.ts +31 -0
  4. package/dist/calendar/entities/AclRole.d.ts.map +1 -0
  5. package/dist/calendar/entities/AclRole.js +30 -0
  6. package/dist/calendar/entities/AclRole.js.map +1 -0
  7. package/dist/calendar/entities/AclRule.d.ts +38 -0
  8. package/dist/calendar/entities/AclRule.d.ts.map +1 -0
  9. package/dist/calendar/entities/AclRule.js +23 -0
  10. package/dist/calendar/entities/AclRule.js.map +1 -0
  11. package/dist/calendar/entities/AclScope.d.ts +50 -0
  12. package/dist/calendar/entities/AclScope.d.ts.map +1 -0
  13. package/dist/calendar/entities/AclScope.js +48 -0
  14. package/dist/calendar/entities/AclScope.js.map +1 -0
  15. package/dist/calendar/instructions.d.ts.map +1 -1
  16. package/dist/calendar/instructions.js +9 -1
  17. package/dist/calendar/instructions.js.map +1 -1
  18. package/dist/calendar/lib/acl.d.ts +19 -0
  19. package/dist/calendar/lib/acl.d.ts.map +1 -0
  20. package/dist/calendar/lib/acl.js +33 -0
  21. package/dist/calendar/lib/acl.js.map +1 -0
  22. package/dist/calendar/methods/add_acl_rule/handler.d.ts +5 -0
  23. package/dist/calendar/methods/add_acl_rule/handler.d.ts.map +1 -0
  24. package/dist/calendar/methods/add_acl_rule/handler.js +13 -0
  25. package/dist/calendar/methods/add_acl_rule/handler.js.map +1 -0
  26. package/dist/calendar/methods/add_acl_rule/index.d.ts +60 -0
  27. package/dist/calendar/methods/add_acl_rule/index.d.ts.map +1 -0
  28. package/dist/calendar/methods/add_acl_rule/index.js +33 -0
  29. package/dist/calendar/methods/add_acl_rule/index.js.map +1 -0
  30. package/dist/calendar/methods/add_acl_rule/schema.d.ts +47 -0
  31. package/dist/calendar/methods/add_acl_rule/schema.d.ts.map +1 -0
  32. package/dist/calendar/methods/add_acl_rule/schema.js +20 -0
  33. package/dist/calendar/methods/add_acl_rule/schema.js.map +1 -0
  34. package/dist/calendar/methods/delete_acl_rule/handler.d.ts +5 -0
  35. package/dist/calendar/methods/delete_acl_rule/handler.d.ts.map +1 -0
  36. package/dist/calendar/methods/delete_acl_rule/handler.js +6 -0
  37. package/dist/calendar/methods/delete_acl_rule/handler.js.map +1 -0
  38. package/dist/calendar/methods/delete_acl_rule/index.d.ts +18 -0
  39. package/dist/calendar/methods/delete_acl_rule/index.d.ts.map +1 -0
  40. package/dist/calendar/methods/delete_acl_rule/index.js +26 -0
  41. package/dist/calendar/methods/delete_acl_rule/index.js.map +1 -0
  42. package/dist/calendar/methods/delete_acl_rule/schema.d.ts +13 -0
  43. package/dist/calendar/methods/delete_acl_rule/schema.d.ts.map +1 -0
  44. package/dist/calendar/methods/delete_acl_rule/schema.js +18 -0
  45. package/dist/calendar/methods/delete_acl_rule/schema.js.map +1 -0
  46. package/dist/calendar/methods/get_acl_rule/handler.d.ts +5 -0
  47. package/dist/calendar/methods/get_acl_rule/handler.d.ts.map +1 -0
  48. package/dist/calendar/methods/get_acl_rule/handler.js +9 -0
  49. package/dist/calendar/methods/get_acl_rule/handler.js.map +1 -0
  50. package/dist/calendar/methods/get_acl_rule/index.d.ts +31 -0
  51. package/dist/calendar/methods/get_acl_rule/index.d.ts.map +1 -0
  52. package/dist/calendar/methods/get_acl_rule/index.js +22 -0
  53. package/dist/calendar/methods/get_acl_rule/index.js.map +1 -0
  54. package/dist/calendar/methods/get_acl_rule/schema.d.ts +29 -0
  55. package/dist/calendar/methods/get_acl_rule/schema.d.ts.map +1 -0
  56. package/dist/calendar/methods/get_acl_rule/schema.js +15 -0
  57. package/dist/calendar/methods/get_acl_rule/schema.js.map +1 -0
  58. package/dist/calendar/methods/list_acl_rules/handler.d.ts +5 -0
  59. package/dist/calendar/methods/list_acl_rules/handler.d.ts.map +1 -0
  60. package/dist/calendar/methods/list_acl_rules/handler.js +15 -0
  61. package/dist/calendar/methods/list_acl_rules/handler.js.map +1 -0
  62. package/dist/calendar/methods/list_acl_rules/index.d.ts +38 -0
  63. package/dist/calendar/methods/list_acl_rules/index.d.ts.map +1 -0
  64. package/dist/calendar/methods/list_acl_rules/index.js +24 -0
  65. package/dist/calendar/methods/list_acl_rules/index.js.map +1 -0
  66. package/dist/calendar/methods/list_acl_rules/schema.d.ts +38 -0
  67. package/dist/calendar/methods/list_acl_rules/schema.d.ts.map +1 -0
  68. package/dist/calendar/methods/list_acl_rules/schema.js +34 -0
  69. package/dist/calendar/methods/list_acl_rules/schema.js.map +1 -0
  70. package/dist/calendar/methods/patch_acl_rule/handler.d.ts +5 -0
  71. package/dist/calendar/methods/patch_acl_rule/handler.d.ts.map +1 -0
  72. package/dist/calendar/methods/patch_acl_rule/handler.js +12 -0
  73. package/dist/calendar/methods/patch_acl_rule/handler.js.map +1 -0
  74. package/dist/calendar/methods/patch_acl_rule/index.d.ts +61 -0
  75. package/dist/calendar/methods/patch_acl_rule/index.d.ts.map +1 -0
  76. package/dist/calendar/methods/patch_acl_rule/index.js +33 -0
  77. package/dist/calendar/methods/patch_acl_rule/index.js.map +1 -0
  78. package/dist/calendar/methods/patch_acl_rule/schema.d.ts +48 -0
  79. package/dist/calendar/methods/patch_acl_rule/schema.d.ts.map +1 -0
  80. package/dist/calendar/methods/patch_acl_rule/schema.js +23 -0
  81. package/dist/calendar/methods/patch_acl_rule/schema.js.map +1 -0
  82. package/dist/calendar/methods/registry.d.ts +195 -0
  83. package/dist/calendar/methods/registry.d.ts.map +1 -1
  84. package/dist/calendar/methods/registry.js +20 -0
  85. package/dist/calendar/methods/registry.js.map +1 -1
  86. package/dist/calendar/methods/update_acl_rule/handler.d.ts +5 -0
  87. package/dist/calendar/methods/update_acl_rule/handler.d.ts.map +1 -0
  88. package/dist/calendar/methods/update_acl_rule/handler.js +12 -0
  89. package/dist/calendar/methods/update_acl_rule/handler.js.map +1 -0
  90. package/dist/calendar/methods/update_acl_rule/index.d.ts +71 -0
  91. package/dist/calendar/methods/update_acl_rule/index.d.ts.map +1 -0
  92. package/dist/calendar/methods/update_acl_rule/index.js +43 -0
  93. package/dist/calendar/methods/update_acl_rule/index.js.map +1 -0
  94. package/dist/calendar/methods/update_acl_rule/schema.d.ts +48 -0
  95. package/dist/calendar/methods/update_acl_rule/schema.d.ts.map +1 -0
  96. package/dist/calendar/methods/update_acl_rule/schema.js +23 -0
  97. package/dist/calendar/methods/update_acl_rule/schema.js.map +1 -0
  98. package/dist/gmail/methods/download_attachment/handler.d.ts.map +1 -1
  99. package/dist/gmail/methods/download_attachment/handler.js +17 -1
  100. package/dist/gmail/methods/download_attachment/handler.js.map +1 -1
  101. package/dist/gmail/methods/download_attachment/index.d.ts +6 -2
  102. package/dist/gmail/methods/download_attachment/index.d.ts.map +1 -1
  103. package/dist/gmail/methods/download_attachment/index.js +4 -2
  104. package/dist/gmail/methods/download_attachment/index.js.map +1 -1
  105. package/dist/gmail/methods/download_attachment/schema.d.ts +3 -1
  106. package/dist/gmail/methods/download_attachment/schema.d.ts.map +1 -1
  107. package/dist/gmail/methods/download_attachment/schema.js +15 -1
  108. package/dist/gmail/methods/download_attachment/schema.js.map +1 -1
  109. package/dist/gmail/methods/registry.d.ts +3 -1
  110. package/dist/gmail/methods/registry.d.ts.map +1 -1
  111. package/package.json +3 -3
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { AclRole } from '../../entities/AclRole.js';
3
+ import { AclRule } from '../../entities/AclRule.js';
4
+ import { AclScope } from '../../entities/AclScope.js';
5
+ export const schema = {
6
+ 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
+ scope: AclScope.describe('Who the role is granted to.'),
9
+ calendarId: z
10
+ .string()
11
+ .optional()
12
+ .describe("The calendar ID to share. The default is the user's primary calendar."),
13
+ sendNotifications: z
14
+ .boolean()
15
+ .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
+ }),
18
+ output: AclRule,
19
+ };
20
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,5 @@
1
+ import type { calendar_v3 } from '@googleapis/calendar';
2
+ import type { z } from 'zod';
3
+ import type { schema } from './schema.js';
4
+ export declare function handler(calendar: calendar_v3.Calendar, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
5
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/delete_acl_rule/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAIxC"}
@@ -0,0 +1,6 @@
1
+ export async function handler(calendar, args) {
2
+ const calendarId = args.calendarId ?? 'primary';
3
+ await calendar.acl.delete({ calendarId, ruleId: args.ruleId });
4
+ return { ruleId: args.ruleId, calendarId };
5
+ }
6
+ //# sourceMappingURL=handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/calendar/methods/delete_acl_rule/handler.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,QAA8B,EAC9B,IAAkC;IAElC,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,SAAS,CAAC;IAChD,MAAM,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC/D,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC;AAC7C,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { z } from 'zod';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n calendar: calendar_v3.Calendar,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const calendarId = args.calendarId ?? 'primary';\n await calendar.acl.delete({ calendarId, ruleId: args.ruleId });\n return { ruleId: args.ruleId, calendarId };\n}\n"]}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Revokes a grant: the scope loses the access the rule conferred. Destructive
3
+ * under the rubric's removal cluster, and idempotent in effect (a revoked
4
+ * rule stays revoked, though a second call 404s on the missing rule).
5
+ *
6
+ * Closed-world, unlike the other writes: Google sends no notification on
7
+ * access removal, so this operation reaches no external party and takes no
8
+ * sendNotifications parameter. To leave a rule in place but strip its
9
+ * access, patch its role to `none` instead.
10
+ */
11
+ export declare const delete_acl_rule: import("../../../lib/operation.js").Operation<import("@googleapis/calendar").calendar_v3.Calendar, import("zod").ZodObject<{
12
+ ruleId: import("zod").ZodString;
13
+ calendarId: import("zod").ZodOptional<import("zod").ZodString>;
14
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
15
+ ruleId: import("zod").ZodString;
16
+ calendarId: import("zod").ZodString;
17
+ }, import("zod/v4/core").$strip>>;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/delete_acl_rule/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe;;;;;;iCAY1B,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { calendarOperation } from '../../operation.js';
2
+ import { handler } from './handler.js';
3
+ import { schema } from './schema.js';
4
+ /**
5
+ * Revokes a grant: the scope loses the access the rule conferred. Destructive
6
+ * under the rubric's removal cluster, and idempotent in effect (a revoked
7
+ * rule stays revoked, though a second call 404s on the missing rule).
8
+ *
9
+ * Closed-world, unlike the other writes: Google sends no notification on
10
+ * access removal, so this operation reaches no external party and takes no
11
+ * sendNotifications parameter. To leave a rule in place but strip its
12
+ * access, patch its role to `none` instead.
13
+ */
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.",
16
+ annotations: {
17
+ readOnlyHint: false,
18
+ destructiveHint: true,
19
+ idempotentHint: true,
20
+ openWorldHint: false,
21
+ },
22
+ source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/delete',
23
+ schema,
24
+ handler,
25
+ });
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ export declare const schema: {
3
+ input: z.ZodObject<{
4
+ ruleId: z.ZodString;
5
+ calendarId: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strict>;
7
+ /** Delete returns no body; we confirm what was revoked. */
8
+ output: z.ZodObject<{
9
+ ruleId: z.ZodString;
10
+ calendarId: z.ZodString;
11
+ }, z.core.$strip>;
12
+ };
13
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/delete_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,MAAM;IACjB,KAAK;;;;IAWL,2DAA2D;IAC3D,MAAM;;;;CAIP,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ export const schema = {
3
+ input: z.strictObject({
4
+ ruleId: z
5
+ .string()
6
+ .describe('The identifier of the rule to revoke, as returned by list_acl_rules (for example "user:someone@example.com").'),
7
+ calendarId: z
8
+ .string()
9
+ .optional()
10
+ .describe("The calendar ID the rule belongs to. The default is the user's primary calendar."),
11
+ }),
12
+ /** Delete returns no body; we confirm what was revoked. */
13
+ output: z.object({
14
+ ruleId: z.string().describe('The ID of the revoked rule.'),
15
+ calendarId: z.string().describe('The ID of the calendar the rule was revoked from.'),
16
+ }),
17
+ };
18
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/delete_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,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,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,kFAAkF,CAAC;KAChG,CAAC;IACF,2DAA2D;IAC3D,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;QAC1D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mDAAmD,CAAC;KACrF,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\n\nexport const schema = {\n input: z.strictObject({\n ruleId: z\n .string()\n .describe(\n 'The identifier of the rule to revoke, as returned by list_acl_rules (for example \"user:someone@example.com\").',\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 }),\n /** Delete returns no body; we confirm what was revoked. */\n output: z.object({\n ruleId: z.string().describe('The ID of the revoked rule.'),\n calendarId: z.string().describe('The ID of the calendar the rule was revoked from.'),\n }),\n};\n"]}
@@ -0,0 +1,5 @@
1
+ import type { calendar_v3 } from '@googleapis/calendar';
2
+ import type { z } from 'zod';
3
+ import type { schema } from './schema.js';
4
+ export declare function handler(calendar: calendar_v3.Calendar, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
5
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/get_acl_rule/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAMxC"}
@@ -0,0 +1,9 @@
1
+ import { projectAclRule } from '../../lib/acl.js';
2
+ export async function handler(calendar, args) {
3
+ const { data } = await calendar.acl.get({
4
+ calendarId: args.calendarId ?? 'primary',
5
+ ruleId: args.ruleId,
6
+ });
7
+ return projectAclRule(data);
8
+ }
9
+ //# sourceMappingURL=handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/calendar/methods/get_acl_rule/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,QAA8B,EAC9B,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC;QACtC,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;QACxC,MAAM,EAAE,IAAI,CAAC,MAAM;KACpB,CAAC,CAAC;IACH,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { z } from 'zod';\nimport { projectAclRule } from '../../lib/acl.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n calendar: calendar_v3.Calendar,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { data } = await calendar.acl.get({\n calendarId: args.calendarId ?? 'primary',\n ruleId: args.ruleId,\n });\n return projectAclRule(data);\n}\n"]}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * One rule by id. The id is derived from the scope
3
+ * (`user:someone@example.com`, `domain:example.com`, or the bare `default`
4
+ * for the public rule), so it can be constructed rather than looked up when
5
+ * the scope is already known.
6
+ */
7
+ export declare const get_acl_rule: import("../../../lib/operation.js").Operation<import("@googleapis/calendar").calendar_v3.Calendar, import("zod").ZodObject<{
8
+ ruleId: import("zod").ZodString;
9
+ calendarId: import("zod").ZodOptional<import("zod").ZodString>;
10
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
11
+ id: import("zod").ZodString;
12
+ role: import("zod").ZodOptional<import("zod").ZodEnum<{
13
+ freeBusyReader: "freeBusyReader";
14
+ none: "none";
15
+ owner: "owner";
16
+ reader: "reader";
17
+ writer: "writer";
18
+ writerWithoutPrivateAccess: "writerWithoutPrivateAccess";
19
+ }>>;
20
+ scope: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
21
+ type: import("zod").ZodLiteral<"default">;
22
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
23
+ type: import("zod").ZodEnum<{
24
+ domain: "domain";
25
+ group: "group";
26
+ user: "user";
27
+ }>;
28
+ value: import("zod").ZodString;
29
+ }, import("zod/v4/core").$strict>], "type">>;
30
+ }, import("zod/v4/core").$strip>>;
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/get_acl_rule/index.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;iCAYvB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { calendarOperation } from '../../operation.js';
2
+ import { handler } from './handler.js';
3
+ import { schema } from './schema.js';
4
+ /**
5
+ * One rule by id. The id is derived from the scope
6
+ * (`user:someone@example.com`, `domain:example.com`, or the bare `default`
7
+ * for the public rule), so it can be constructed rather than looked up when
8
+ * the scope is already known.
9
+ */
10
+ export const get_acl_rule = calendarOperation({
11
+ description: "Get a single rule from a calendar's access control list by its rule ID: the role it grants and the scope it grants to.",
12
+ annotations: {
13
+ readOnlyHint: true,
14
+ destructiveHint: false,
15
+ idempotentHint: true,
16
+ openWorldHint: false,
17
+ },
18
+ source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/get',
19
+ schema,
20
+ handler,
21
+ });
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/get_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;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,iBAAiB,CAAC;IAC5C,WAAW,EACT,wHAAwH;IAC1H,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EAAE,2EAA2E;IACnF,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 * One rule by id. The id is derived from the scope\n * (`user:someone@example.com`, `domain:example.com`, or the bare `default`\n * for the public rule), so it can be constructed rather than looked up when\n * the scope is already known.\n */\nexport const get_acl_rule = calendarOperation({\n description:\n \"Get a single rule from a calendar's access control list by its rule ID: the role it grants and the scope it grants to.\",\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/get',\n schema,\n handler,\n});\n"]}
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ export declare const schema: {
3
+ input: z.ZodObject<{
4
+ ruleId: z.ZodString;
5
+ calendarId: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strict>;
7
+ output: z.ZodObject<{
8
+ id: z.ZodString;
9
+ role: z.ZodOptional<z.ZodEnum<{
10
+ freeBusyReader: "freeBusyReader";
11
+ none: "none";
12
+ owner: "owner";
13
+ reader: "reader";
14
+ writer: "writer";
15
+ writerWithoutPrivateAccess: "writerWithoutPrivateAccess";
16
+ }>>;
17
+ scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
18
+ type: z.ZodLiteral<"default">;
19
+ }, z.core.$strict>, z.ZodObject<{
20
+ type: z.ZodEnum<{
21
+ domain: "domain";
22
+ group: "group";
23
+ user: "user";
24
+ }>;
25
+ value: z.ZodString;
26
+ }, z.core.$strict>], "type">>;
27
+ }, z.core.$strip>;
28
+ };
29
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/get_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,MAAM;IACjB,KAAK;;;;IAWL,MAAM;;;;;;;;;;;;;;;;;;;;;CACP,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import { AclRule } from '../../entities/AclRule.js';
3
+ export const schema = {
4
+ input: z.strictObject({
5
+ ruleId: z
6
+ .string()
7
+ .describe('The identifier of the access control rule to get, as returned by list_acl_rules (for example "user:someone@example.com").'),
8
+ calendarId: z
9
+ .string()
10
+ .optional()
11
+ .describe("The calendar ID the rule belongs to. The default is the user's primary calendar."),
12
+ }),
13
+ output: AclRule,
14
+ };
15
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/get_acl_rule/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEpD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,QAAQ,CACP,2HAA2H,CAC5H;QACH,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,kFAAkF,CAAC;KAChG,CAAC;IACF,MAAM,EAAE,OAAO;CAChB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { AclRule } from '../../entities/AclRule.js';\n\nexport const schema = {\n input: z.strictObject({\n ruleId: z\n .string()\n .describe(\n 'The identifier of the access control rule to get, as returned by list_acl_rules (for example \"user:someone@example.com\").',\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 }),\n output: AclRule,\n};\n"]}
@@ -0,0 +1,5 @@
1
+ import type { calendar_v3 } from '@googleapis/calendar';
2
+ import type { z } from 'zod';
3
+ import type { schema } from './schema.js';
4
+ export declare function handler(calendar: calendar_v3.Calendar, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
5
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/list_acl_rules/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAaxC"}
@@ -0,0 +1,15 @@
1
+ import { forGoogle } from '../../../lib/optionality.js';
2
+ import { projectAclRule } from '../../lib/acl.js';
3
+ export async function handler(calendar, args) {
4
+ const { data } = await calendar.acl.list(forGoogle({
5
+ calendarId: args.calendarId ?? 'primary',
6
+ maxResults: args.maxResults,
7
+ pageToken: args.pageToken,
8
+ showDeleted: args.showDeleted,
9
+ }));
10
+ return {
11
+ rules: (data.items ?? []).map(projectAclRule),
12
+ nextPageToken: data.nextPageToken ?? undefined,
13
+ };
14
+ }
15
+ //# sourceMappingURL=handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/calendar/methods/list_acl_rules/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,QAA8B,EAC9B,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC,IAAI,CACtC,SAAS,CAAC;QACR,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;QACxC,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,WAAW,EAAE,IAAI,CAAC,WAAW;KAC9B,CAAC,CACH,CAAC;IACF,OAAO;QACL,KAAK,EAAE,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC;QAC7C,aAAa,EAAE,IAAI,CAAC,aAAa,IAAI,SAAS;KAC/C,CAAC;AACJ,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { z } from 'zod';\nimport { forGoogle } from '../../../lib/optionality.js';\nimport { projectAclRule } from '../../lib/acl.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n calendar: calendar_v3.Calendar,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { data } = await calendar.acl.list(\n forGoogle({\n calendarId: args.calendarId ?? 'primary',\n maxResults: args.maxResults,\n pageToken: args.pageToken,\n showDeleted: args.showDeleted,\n }),\n );\n return {\n rules: (data.items ?? []).map(projectAclRule),\n nextPageToken: data.nextPageToken ?? undefined,\n };\n}\n"]}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * The calendar's sharing, read whole: who has access and at what role. This
3
+ * is the operation to run before any of the writes, since a rule's id is
4
+ * derived from its scope and the writes address rules by that id.
5
+ *
6
+ * Reading a calendar's rules itself requires at least writer access to that
7
+ * calendar; a freeBusyReader or reader grant is not enough to see the list.
8
+ */
9
+ export declare const list_acl_rules: import("../../../lib/operation.js").Operation<import("@googleapis/calendar").calendar_v3.Calendar, import("zod").ZodObject<{
10
+ calendarId: import("zod").ZodOptional<import("zod").ZodString>;
11
+ maxResults: import("zod").ZodOptional<import("zod").ZodNumber>;
12
+ pageToken: import("zod").ZodOptional<import("zod").ZodString>;
13
+ showDeleted: import("zod").ZodOptional<import("zod").ZodBoolean>;
14
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
15
+ rules: import("zod").ZodArray<import("zod").ZodObject<{
16
+ id: import("zod").ZodString;
17
+ role: import("zod").ZodOptional<import("zod").ZodEnum<{
18
+ freeBusyReader: "freeBusyReader";
19
+ none: "none";
20
+ owner: "owner";
21
+ reader: "reader";
22
+ writer: "writer";
23
+ writerWithoutPrivateAccess: "writerWithoutPrivateAccess";
24
+ }>>;
25
+ scope: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
26
+ type: import("zod").ZodLiteral<"default">;
27
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
28
+ type: import("zod").ZodEnum<{
29
+ domain: "domain";
30
+ group: "group";
31
+ user: "user";
32
+ }>;
33
+ value: import("zod").ZodString;
34
+ }, import("zod/v4/core").$strict>], "type">>;
35
+ }, import("zod/v4/core").$strip>>;
36
+ nextPageToken: import("zod").ZodOptional<import("zod").ZodString>;
37
+ }, import("zod/v4/core").$strip>>;
38
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/list_acl_rules/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAYzB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { calendarOperation } from '../../operation.js';
2
+ import { handler } from './handler.js';
3
+ import { schema } from './schema.js';
4
+ /**
5
+ * The calendar's sharing, read whole: who has access and at what role. This
6
+ * is the operation to run before any of the writes, since a rule's id is
7
+ * derived from its scope and the writes address rules by that id.
8
+ *
9
+ * Reading a calendar's rules itself requires at least writer access to that
10
+ * calendar; a freeBusyReader or reader grant is not enough to see the list.
11
+ */
12
+ export const list_acl_rules = calendarOperation({
13
+ description: "List the rules on a calendar's access control list: who the calendar is shared with and at what role. Paginated.",
14
+ annotations: {
15
+ readOnlyHint: true,
16
+ destructiveHint: false,
17
+ idempotentHint: true,
18
+ openWorldHint: false,
19
+ },
20
+ source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/list',
21
+ schema,
22
+ handler,
23
+ });
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calendar/methods/list_acl_rules/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;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAC;IAC9C,WAAW,EACT,kHAAkH;IACpH,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EAAE,4EAA4E;IACpF,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 * The calendar's sharing, read whole: who has access and at what role. This\n * is the operation to run before any of the writes, since a rule's id is\n * derived from its scope and the writes address rules by that id.\n *\n * Reading a calendar's rules itself requires at least writer access to that\n * calendar; a freeBusyReader or reader grant is not enough to see the list.\n */\nexport const list_acl_rules = calendarOperation({\n description:\n \"List the rules on a calendar's access control list: who the calendar is shared with and at what role. Paginated.\",\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: false,\n },\n source: 'https://developers.google.com/workspace/calendar/api/v3/reference/acl/list',\n schema,\n handler,\n});\n"]}
@@ -0,0 +1,38 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * The response's nextSyncToken is intentionally not surfaced; incremental
4
+ * sync is deferred (issue #21), and with it the syncToken request parameter.
5
+ */
6
+ export declare const schema: {
7
+ input: z.ZodObject<{
8
+ calendarId: z.ZodOptional<z.ZodString>;
9
+ maxResults: z.ZodOptional<z.ZodNumber>;
10
+ pageToken: z.ZodOptional<z.ZodString>;
11
+ showDeleted: z.ZodOptional<z.ZodBoolean>;
12
+ }, z.core.$strict>;
13
+ output: z.ZodObject<{
14
+ rules: z.ZodArray<z.ZodObject<{
15
+ id: z.ZodString;
16
+ role: z.ZodOptional<z.ZodEnum<{
17
+ freeBusyReader: "freeBusyReader";
18
+ none: "none";
19
+ owner: "owner";
20
+ reader: "reader";
21
+ writer: "writer";
22
+ writerWithoutPrivateAccess: "writerWithoutPrivateAccess";
23
+ }>>;
24
+ scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
25
+ type: z.ZodLiteral<"default">;
26
+ }, z.core.$strict>, z.ZodObject<{
27
+ type: z.ZodEnum<{
28
+ domain: "domain";
29
+ group: "group";
30
+ user: "user";
31
+ }>;
32
+ value: z.ZodString;
33
+ }, z.core.$strict>], "type">>;
34
+ }, z.core.$strip>>;
35
+ nextPageToken: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strip>;
37
+ };
38
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/list_acl_rules/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;GAGG;AACH,eAAO,MAAM,MAAM;IACjB,KAAK;;;;;;IAsBL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { z } from 'zod';
2
+ import { AclRule } from '../../entities/AclRule.js';
3
+ /**
4
+ * The response's nextSyncToken is intentionally not surfaced; incremental
5
+ * sync is deferred (issue #21), and with it the syncToken request parameter.
6
+ */
7
+ export const schema = {
8
+ input: z.strictObject({
9
+ calendarId: z
10
+ .string()
11
+ .optional()
12
+ .describe("The calendar ID whose access control rules to list. The default is the user's primary calendar."),
13
+ maxResults: z
14
+ .number()
15
+ .int()
16
+ .min(1)
17
+ .max(250)
18
+ .optional()
19
+ .describe('Maximum number of rules returned on one result page (default 100, max 250).'),
20
+ pageToken: z.string().optional().describe('Token specifying which result page to return.'),
21
+ showDeleted: z
22
+ .boolean()
23
+ .optional()
24
+ .describe('Whether to include deleted rules in the result. Deleted rules are represented by a role of none. The default is false.'),
25
+ }),
26
+ output: z.object({
27
+ rules: z.array(AclRule).describe("The rules on the calendar's access control list."),
28
+ nextPageToken: z
29
+ .string()
30
+ .optional()
31
+ .describe('Token used to access the next page of this result.'),
32
+ }),
33
+ };
34
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/calendar/methods/list_acl_rules/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEpD;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;QACpB,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,iGAAiG,CAClG;QACH,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,GAAG,CAAC;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,6EAA6E,CAAC;QAC1F,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;QAC1F,WAAW,EAAE,CAAC;aACX,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,wHAAwH,CACzH;KACJ,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,kDAAkD,CAAC;QACpF,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,oDAAoD,CAAC;KAClE,CAAC;CACH,CAAC","sourcesContent":["import { z } from 'zod';\nimport { AclRule } from '../../entities/AclRule.js';\n\n/**\n * The response's nextSyncToken is intentionally not surfaced; incremental\n * sync is deferred (issue #21), and with it the syncToken request parameter.\n */\nexport const schema = {\n input: z.strictObject({\n calendarId: z\n .string()\n .optional()\n .describe(\n \"The calendar ID whose access control rules to list. The default is the user's primary calendar.\",\n ),\n maxResults: z\n .number()\n .int()\n .min(1)\n .max(250)\n .optional()\n .describe('Maximum number of rules returned on one result page (default 100, max 250).'),\n pageToken: z.string().optional().describe('Token specifying which result page to return.'),\n showDeleted: z\n .boolean()\n .optional()\n .describe(\n 'Whether to include deleted rules in the result. Deleted rules are represented by a role of none. The default is false.',\n ),\n }),\n output: z.object({\n rules: z.array(AclRule).describe(\"The rules on the calendar's access control list.\"),\n nextPageToken: z\n .string()\n .optional()\n .describe('Token used to access the next page of this result.'),\n }),\n};\n"]}
@@ -0,0 +1,5 @@
1
+ import type { calendar_v3 } from '@googleapis/calendar';
2
+ import type { z } from 'zod';
3
+ import type { schema } from './schema.js';
4
+ export declare function handler(calendar: calendar_v3.Calendar, args: z.infer<typeof schema.input>): Promise<z.infer<typeof schema.output>>;
5
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_acl_rule/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAsB,OAAO,CAC3B,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAUxC"}
@@ -0,0 +1,12 @@
1
+ import { forGoogle } from '../../../lib/optionality.js';
2
+ import { projectAclRule } from '../../lib/acl.js';
3
+ export async function handler(calendar, args) {
4
+ const { data } = await calendar.acl.patch(forGoogle({
5
+ calendarId: args.calendarId ?? 'primary',
6
+ ruleId: args.ruleId,
7
+ sendNotifications: args.sendNotifications,
8
+ requestBody: forGoogle({ role: args.role, scope: args.scope }),
9
+ }));
10
+ return projectAclRule(data);
11
+ }
12
+ //# sourceMappingURL=handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/calendar/methods/patch_acl_rule/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,QAA8B,EAC9B,IAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC,KAAK,CACvC,SAAS,CAAC;QACR,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS;QACxC,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;QACzC,WAAW,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;KAC/D,CAAC,CACH,CAAC;IACF,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["import type { calendar_v3 } from '@googleapis/calendar';\nimport type { z } from 'zod';\nimport { forGoogle } from '../../../lib/optionality.js';\nimport { projectAclRule } from '../../lib/acl.js';\nimport type { schema } from './schema.js';\n\nexport async function handler(\n calendar: calendar_v3.Calendar,\n args: z.infer<typeof schema.input>,\n): Promise<z.infer<typeof schema.output>> {\n const { data } = await calendar.acl.patch(\n forGoogle({\n calendarId: args.calendarId ?? 'primary',\n ruleId: args.ruleId,\n sendNotifications: args.sendNotifications,\n requestBody: forGoogle({ role: args.role, scope: args.scope }),\n }),\n );\n return projectAclRule(data);\n}\n"]}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Patch semantics: unset fields are left unchanged, so this is the operation
3
+ * for changing a grant's role without restating its scope. For a whole
4
+ * replacement, see update_acl_rule.
5
+ *
6
+ * Destructive on the standing-side-effect precedent of `gmail/create_filter`
7
+ * and `sheets/add_protected_range` rather than the rubric's update default:
8
+ * it changes who can reach a calendar, the access persists until revoked, and
9
+ * it can escalate a scope to `owner`.
10
+ *
11
+ * Open-world and not idempotent on the precedent of the sends
12
+ * (`gmail/send_message`, `gmail/send_draft`): `sendNotifications` defaults to
13
+ * true at Google, so replaying identical arguments can send a second email,
14
+ * 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.
17
+ */
18
+ export declare const patch_acl_rule: import("../../../lib/operation.js").Operation<import("@googleapis/calendar").calendar_v3.Calendar, import("zod").ZodObject<{
19
+ ruleId: import("zod").ZodString;
20
+ role: import("zod").ZodOptional<import("zod").ZodEnum<{
21
+ freeBusyReader: "freeBusyReader";
22
+ none: "none";
23
+ owner: "owner";
24
+ reader: "reader";
25
+ writer: "writer";
26
+ writerWithoutPrivateAccess: "writerWithoutPrivateAccess";
27
+ }>>;
28
+ scope: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
29
+ type: import("zod").ZodLiteral<"default">;
30
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
31
+ type: import("zod").ZodEnum<{
32
+ domain: "domain";
33
+ group: "group";
34
+ user: "user";
35
+ }>;
36
+ value: import("zod").ZodString;
37
+ }, import("zod/v4/core").$strict>], "type">>;
38
+ calendarId: import("zod").ZodOptional<import("zod").ZodString>;
39
+ sendNotifications: import("zod").ZodOptional<import("zod").ZodBoolean>;
40
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
41
+ id: import("zod").ZodString;
42
+ role: import("zod").ZodOptional<import("zod").ZodEnum<{
43
+ freeBusyReader: "freeBusyReader";
44
+ none: "none";
45
+ owner: "owner";
46
+ reader: "reader";
47
+ writer: "writer";
48
+ writerWithoutPrivateAccess: "writerWithoutPrivateAccess";
49
+ }>>;
50
+ scope: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
51
+ type: import("zod").ZodLiteral<"default">;
52
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
53
+ type: import("zod").ZodEnum<{
54
+ domain: "domain";
55
+ group: "group";
56
+ user: "user";
57
+ }>;
58
+ value: import("zod").ZodString;
59
+ }, import("zod/v4/core").$strict>], "type">>;
60
+ }, import("zod/v4/core").$strip>>;
61
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}