mcp-google-multi 5.2.0-alpha.2 → 5.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth.js +33 -0
- package/dist/discovery-client.js +13 -0
- package/dist/index.js +25 -3
- package/dist/tools/generated/admin.d.ts +2 -0
- package/dist/tools/generated/admin.js +1937 -0
- package/dist/tools/generated/appsmarket.d.ts +2 -0
- package/dist/tools/generated/appsmarket.js +33 -0
- package/dist/tools/generated/calendar.d.ts +2 -0
- package/dist/tools/generated/calendar.js +428 -0
- package/dist/tools/generated/chat.d.ts +2 -0
- package/dist/tools/generated/chat.js +666 -0
- package/dist/tools/generated/classroom.d.ts +2 -0
- package/dist/tools/generated/classroom.js +1610 -0
- package/dist/tools/generated/cloudidentity.d.ts +2 -0
- package/dist/tools/generated/cloudidentity.js +955 -0
- package/dist/tools/generated/cloudsearch.d.ts +2 -0
- package/dist/tools/generated/cloudsearch.js +754 -0
- package/dist/tools/generated/contacts.d.ts +2 -0
- package/dist/tools/generated/contacts.js +215 -0
- package/dist/tools/generated/drive.d.ts +2 -0
- package/dist/tools/generated/drive.js +543 -0
- package/dist/tools/generated/driveactivity.d.ts +2 -0
- package/dist/tools/generated/driveactivity.js +19 -0
- package/dist/tools/generated/drivelabels.d.ts +2 -0
- package/dist/tools/generated/drivelabels.js +389 -0
- package/dist/tools/generated/forms.d.ts +2 -0
- package/dist/tools/generated/forms.js +49 -0
- package/dist/tools/generated/gmail.d.ts +2 -0
- package/dist/tools/generated/gmail.js +835 -0
- package/dist/tools/generated/groupsmigration.d.ts +2 -0
- package/dist/tools/generated/groupsmigration.js +18 -0
- package/dist/tools/generated/groupssettings.d.ts +2 -0
- package/dist/tools/generated/groupssettings.js +47 -0
- package/dist/tools/generated/index.js +50 -0
- package/dist/tools/generated/keep.d.ts +2 -0
- package/dist/tools/generated/keep.js +102 -0
- package/dist/tools/generated/licensing.d.ts +2 -0
- package/dist/tools/generated/licensing.js +116 -0
- package/dist/tools/generated/meet.d.ts +2 -0
- package/dist/tools/generated/meet.js +186 -0
- package/dist/tools/generated/postmaster.d.ts +2 -0
- package/dist/tools/generated/postmaster.js +66 -0
- package/dist/tools/generated/reseller.d.ts +2 -0
- package/dist/tools/generated/reseller.js +249 -0
- package/dist/tools/generated/script.d.ts +2 -0
- package/dist/tools/generated/script.js +249 -0
- package/dist/tools/generated/searchconsole.d.ts +2 -0
- package/dist/tools/generated/searchconsole.js +19 -0
- package/dist/tools/generated/sheets.d.ts +2 -0
- package/dist/tools/generated/sheets.js +105 -0
- package/dist/tools/generated/vault.d.ts +2 -0
- package/dist/tools/generated/vault.js +479 -0
- package/dist/tools/generated/workspaceevents.d.ts +2 -0
- package/dist/tools/generated/workspaceevents.js +223 -0
- package/dist/tools/google-api.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
4
|
+
export function registerAppsmarketGeneratedTools(registry) {
|
|
5
|
+
registerGeneratedTool(registry, {
|
|
6
|
+
name: "appsmarket_customer_license_get",
|
|
7
|
+
cud: "read",
|
|
8
|
+
description: "Gets the customer's licensing status to determine if they have access to a given app. For more information, see [Getting app installation and licensing details]",
|
|
9
|
+
method: { id: "appsmarket.customerLicense.get", httpMethod: "GET", path: "appsmarket/v2/customerLicense/{applicationId}/{customerId}", baseUrl: "https://appsmarket.googleapis.com/", requiredParams: ["applicationId", "customerId"] },
|
|
10
|
+
params: [{ "field": "applicationId", "api": "applicationId", "location": "path" }, { "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
11
|
+
hasBody: false,
|
|
12
|
+
shape: {
|
|
13
|
+
account: accountField(),
|
|
14
|
+
applicationId: z.string().describe("The ID of the application."),
|
|
15
|
+
customerId: z.string().describe("The ID of the customer."),
|
|
16
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
registerGeneratedTool(registry, {
|
|
20
|
+
name: "appsmarket_user_license_get",
|
|
21
|
+
cud: "read",
|
|
22
|
+
description: "Gets the user's licensing status to determine if they have permission to use a given app. For more information, see [Getting app installation and licensing deta",
|
|
23
|
+
method: { id: "appsmarket.userLicense.get", httpMethod: "GET", path: "appsmarket/v2/userLicense/{applicationId}/{userId}", baseUrl: "https://appsmarket.googleapis.com/", requiredParams: ["applicationId", "userId"] },
|
|
24
|
+
params: [{ "field": "applicationId", "api": "applicationId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
25
|
+
hasBody: false,
|
|
26
|
+
shape: {
|
|
27
|
+
account: accountField(),
|
|
28
|
+
applicationId: z.string().describe("The ID of the application."),
|
|
29
|
+
userId: z.string().describe("The ID of the user."),
|
|
30
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
// GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { coerceArray, coerceBoolean, coerceJson } from '../_coerce.js';
|
|
4
|
+
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
5
|
+
export function registerCalendarGeneratedTools(registry) {
|
|
6
|
+
registerGeneratedTool(registry, {
|
|
7
|
+
name: "calendar_acl_delete",
|
|
8
|
+
cud: "delete",
|
|
9
|
+
description: "Deletes an access control rule.",
|
|
10
|
+
method: { id: "calendar.acl.delete", httpMethod: "DELETE", path: "calendars/{calendarId}/acl/{ruleId}", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId", "ruleId"] },
|
|
11
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "ruleId", "api": "ruleId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
12
|
+
hasBody: false,
|
|
13
|
+
shape: {
|
|
14
|
+
account: accountField(),
|
|
15
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
16
|
+
ruleId: z.string().describe("ACL rule identifier."),
|
|
17
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
registerGeneratedTool(registry, {
|
|
21
|
+
name: "calendar_acl_get",
|
|
22
|
+
cud: "read",
|
|
23
|
+
description: "Returns an access control rule.",
|
|
24
|
+
method: { id: "calendar.acl.get", httpMethod: "GET", path: "calendars/{calendarId}/acl/{ruleId}", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId", "ruleId"] },
|
|
25
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "ruleId", "api": "ruleId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
26
|
+
hasBody: false,
|
|
27
|
+
shape: {
|
|
28
|
+
account: accountField(),
|
|
29
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
30
|
+
ruleId: z.string().describe("ACL rule identifier."),
|
|
31
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
registerGeneratedTool(registry, {
|
|
35
|
+
name: "calendar_acl_insert",
|
|
36
|
+
cud: "create",
|
|
37
|
+
description: "Creates an access control rule.",
|
|
38
|
+
method: { id: "calendar.acl.insert", httpMethod: "POST", path: "calendars/{calendarId}/acl", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId"] },
|
|
39
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "sendNotifications", "api": "sendNotifications", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
40
|
+
hasBody: true,
|
|
41
|
+
shape: {
|
|
42
|
+
account: accountField(),
|
|
43
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
44
|
+
sendNotifications: coerceBoolean.describe("Whether to send notifications about the calendar sharing change. Optional. The default is True.").optional(),
|
|
45
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("AclRule JSON request body. Top-level fields: etag, id, kind, role, scope."),
|
|
46
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
registerGeneratedTool(registry, {
|
|
50
|
+
name: "calendar_acl_list",
|
|
51
|
+
cud: "read",
|
|
52
|
+
description: "Returns the rules in the access control list for the calendar.",
|
|
53
|
+
method: { id: "calendar.acl.list", httpMethod: "GET", path: "calendars/{calendarId}/acl", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId"] },
|
|
54
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "showDeleted", "api": "showDeleted", "location": "query" }, { "field": "syncToken", "api": "syncToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
55
|
+
hasBody: false,
|
|
56
|
+
shape: {
|
|
57
|
+
account: accountField(),
|
|
58
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
59
|
+
maxResults: z.number().describe("Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.").optional(),
|
|
60
|
+
pageToken: z.string().describe("Token specifying which result page to return. Optional.").optional(),
|
|
61
|
+
showDeleted: coerceBoolean.describe("Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to \"none\". Deleted ACLs will always be included if syncToken is provided. Optional. The default is False.").optional(),
|
|
62
|
+
syncToken: z.string().describe("Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since t").optional(),
|
|
63
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
registerGeneratedTool(registry, {
|
|
67
|
+
name: "calendar_acl_patch",
|
|
68
|
+
cud: "update",
|
|
69
|
+
description: "Updates an access control rule. This method supports patch semantics.",
|
|
70
|
+
method: { id: "calendar.acl.patch", httpMethod: "PATCH", path: "calendars/{calendarId}/acl/{ruleId}", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["ruleId", "calendarId"] },
|
|
71
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "ruleId", "api": "ruleId", "location": "path" }, { "field": "sendNotifications", "api": "sendNotifications", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
72
|
+
hasBody: true,
|
|
73
|
+
shape: {
|
|
74
|
+
account: accountField(),
|
|
75
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
76
|
+
ruleId: z.string().describe("ACL rule identifier."),
|
|
77
|
+
sendNotifications: coerceBoolean.describe("Whether to send notifications about the calendar sharing change. Note that there are no notifications on access removal. Optional. The default is True.").optional(),
|
|
78
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("AclRule JSON request body. Top-level fields: etag, id, kind, role, scope."),
|
|
79
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
registerGeneratedTool(registry, {
|
|
83
|
+
name: "calendar_acl_update",
|
|
84
|
+
cud: "update",
|
|
85
|
+
description: "Updates an access control rule.",
|
|
86
|
+
method: { id: "calendar.acl.update", httpMethod: "PUT", path: "calendars/{calendarId}/acl/{ruleId}", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["ruleId", "calendarId"] },
|
|
87
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "ruleId", "api": "ruleId", "location": "path" }, { "field": "sendNotifications", "api": "sendNotifications", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
88
|
+
hasBody: true,
|
|
89
|
+
shape: {
|
|
90
|
+
account: accountField(),
|
|
91
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
92
|
+
ruleId: z.string().describe("ACL rule identifier."),
|
|
93
|
+
sendNotifications: coerceBoolean.describe("Whether to send notifications about the calendar sharing change. Note that there are no notifications on access removal. Optional. The default is True.").optional(),
|
|
94
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("AclRule JSON request body. Top-level fields: etag, id, kind, role, scope."),
|
|
95
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
registerGeneratedTool(registry, {
|
|
99
|
+
name: "calendar_acl_watch",
|
|
100
|
+
cud: "create",
|
|
101
|
+
description: "Watch for changes to ACL resources.",
|
|
102
|
+
method: { id: "calendar.acl.watch", httpMethod: "POST", path: "calendars/{calendarId}/acl/watch", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId"] },
|
|
103
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "showDeleted", "api": "showDeleted", "location": "query" }, { "field": "syncToken", "api": "syncToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
104
|
+
hasBody: true,
|
|
105
|
+
shape: {
|
|
106
|
+
account: accountField(),
|
|
107
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
108
|
+
maxResults: z.number().describe("Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.").optional(),
|
|
109
|
+
pageToken: z.string().describe("Token specifying which result page to return. Optional.").optional(),
|
|
110
|
+
showDeleted: coerceBoolean.describe("Whether to include deleted ACLs in the result. Deleted ACLs are represented by role equal to \"none\". Deleted ACLs will always be included if syncToken is provided. Optional. The default is False.").optional(),
|
|
111
|
+
syncToken: z.string().describe("Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since t").optional(),
|
|
112
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Channel JSON request body. Top-level fields: address, expiration, id, kind, params, payload, resourceId, resourceUri, token, type."),
|
|
113
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
registerGeneratedTool(registry, {
|
|
117
|
+
name: "calendar_calendar_list_delete",
|
|
118
|
+
cud: "delete",
|
|
119
|
+
description: "Removes a calendar from the user's calendar list.",
|
|
120
|
+
method: { id: "calendar.calendarList.delete", httpMethod: "DELETE", path: "users/me/calendarList/{calendarId}", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId"] },
|
|
121
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
122
|
+
hasBody: false,
|
|
123
|
+
shape: {
|
|
124
|
+
account: accountField(),
|
|
125
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
126
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
127
|
+
},
|
|
128
|
+
});
|
|
129
|
+
registerGeneratedTool(registry, {
|
|
130
|
+
name: "calendar_calendar_list_get",
|
|
131
|
+
cud: "read",
|
|
132
|
+
description: "Returns a calendar from the user's calendar list.",
|
|
133
|
+
method: { id: "calendar.calendarList.get", httpMethod: "GET", path: "users/me/calendarList/{calendarId}", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId"] },
|
|
134
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
135
|
+
hasBody: false,
|
|
136
|
+
shape: {
|
|
137
|
+
account: accountField(),
|
|
138
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
139
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
140
|
+
},
|
|
141
|
+
});
|
|
142
|
+
registerGeneratedTool(registry, {
|
|
143
|
+
name: "calendar_calendar_list_insert",
|
|
144
|
+
cud: "create",
|
|
145
|
+
description: "Inserts an existing calendar into the user's calendar list.",
|
|
146
|
+
method: { id: "calendar.calendarList.insert", httpMethod: "POST", path: "users/me/calendarList", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: [] },
|
|
147
|
+
params: [{ "field": "colorRgbFormat", "api": "colorRgbFormat", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
148
|
+
hasBody: true,
|
|
149
|
+
shape: {
|
|
150
|
+
account: accountField(),
|
|
151
|
+
colorRgbFormat: coerceBoolean.describe("Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automat").optional(),
|
|
152
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("CalendarListEntry JSON request body. Top-level fields: accessRole, autoAcceptInvitations, backgroundColor, colorId, conferenceProperties, dataOwner, defaultReminders, deleted, description, etag, foregroundColor, hidden, +9 more."),
|
|
153
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
154
|
+
},
|
|
155
|
+
});
|
|
156
|
+
registerGeneratedTool(registry, {
|
|
157
|
+
name: "calendar_calendar_list_patch",
|
|
158
|
+
cud: "update",
|
|
159
|
+
description: "Updates an existing calendar on the user's calendar list. This method supports patch semantics.",
|
|
160
|
+
method: { id: "calendar.calendarList.patch", httpMethod: "PATCH", path: "users/me/calendarList/{calendarId}", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId"] },
|
|
161
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "colorRgbFormat", "api": "colorRgbFormat", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
162
|
+
hasBody: true,
|
|
163
|
+
shape: {
|
|
164
|
+
account: accountField(),
|
|
165
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
166
|
+
colorRgbFormat: coerceBoolean.describe("Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automat").optional(),
|
|
167
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("CalendarListEntry JSON request body. Top-level fields: accessRole, autoAcceptInvitations, backgroundColor, colorId, conferenceProperties, dataOwner, defaultReminders, deleted, description, etag, foregroundColor, hidden, +9 more."),
|
|
168
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
169
|
+
},
|
|
170
|
+
});
|
|
171
|
+
registerGeneratedTool(registry, {
|
|
172
|
+
name: "calendar_calendar_list_update",
|
|
173
|
+
cud: "update",
|
|
174
|
+
description: "Updates an existing calendar on the user's calendar list.",
|
|
175
|
+
method: { id: "calendar.calendarList.update", httpMethod: "PUT", path: "users/me/calendarList/{calendarId}", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId"] },
|
|
176
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "colorRgbFormat", "api": "colorRgbFormat", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
177
|
+
hasBody: true,
|
|
178
|
+
shape: {
|
|
179
|
+
account: accountField(),
|
|
180
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
181
|
+
colorRgbFormat: coerceBoolean.describe("Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automat").optional(),
|
|
182
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("CalendarListEntry JSON request body. Top-level fields: accessRole, autoAcceptInvitations, backgroundColor, colorId, conferenceProperties, dataOwner, defaultReminders, deleted, description, etag, foregroundColor, hidden, +9 more."),
|
|
183
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
184
|
+
},
|
|
185
|
+
});
|
|
186
|
+
registerGeneratedTool(registry, {
|
|
187
|
+
name: "calendar_calendar_list_watch",
|
|
188
|
+
cud: "create",
|
|
189
|
+
description: "Watch for changes to CalendarList resources.",
|
|
190
|
+
method: { id: "calendar.calendarList.watch", httpMethod: "POST", path: "users/me/calendarList/watch", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: [] },
|
|
191
|
+
params: [{ "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "minAccessRole", "api": "minAccessRole", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "showDeleted", "api": "showDeleted", "location": "query" }, { "field": "showHidden", "api": "showHidden", "location": "query" }, { "field": "showOwnOrganizationOnly", "api": "showOwnOrganizationOnly", "location": "query" }, { "field": "syncToken", "api": "syncToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
192
|
+
hasBody: true,
|
|
193
|
+
shape: {
|
|
194
|
+
account: accountField(),
|
|
195
|
+
maxResults: z.number().describe("Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.").optional(),
|
|
196
|
+
minAccessRole: z.enum(["freeBusyReader", "owner", "reader", "writer", "writerWithoutPrivateAccess"]).describe("The minimum access role for the user in the returned entries. Optional. The default is no restriction.").optional(),
|
|
197
|
+
pageToken: z.string().describe("Token specifying which result page to return. Optional.").optional(),
|
|
198
|
+
showDeleted: coerceBoolean.describe("Whether to include deleted calendar list entries in the result. Optional. The default is False.").optional(),
|
|
199
|
+
showHidden: coerceBoolean.describe("Whether to show hidden entries. Optional. The default is False.").optional(),
|
|
200
|
+
showOwnOrganizationOnly: coerceBoolean.describe("Whether to show only entries for calendars from the organization. This parameter is only applicable to Google Workspace users. Optional. The default is False.").optional(),
|
|
201
|
+
syncToken: z.string().describe("Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since t").optional(),
|
|
202
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Channel JSON request body. Top-level fields: address, expiration, id, kind, params, payload, resourceId, resourceUri, token, type."),
|
|
203
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
204
|
+
},
|
|
205
|
+
});
|
|
206
|
+
registerGeneratedTool(registry, {
|
|
207
|
+
name: "calendar_calendars_clear",
|
|
208
|
+
cud: "delete",
|
|
209
|
+
description: "Clears a primary calendar. This operation deletes all events associated with the primary calendar of an account.",
|
|
210
|
+
method: { id: "calendar.calendars.clear", httpMethod: "POST", path: "calendars/{calendarId}/clear", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId"] },
|
|
211
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
212
|
+
hasBody: false,
|
|
213
|
+
shape: {
|
|
214
|
+
account: accountField(),
|
|
215
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
216
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
217
|
+
},
|
|
218
|
+
});
|
|
219
|
+
registerGeneratedTool(registry, {
|
|
220
|
+
name: "calendar_calendars_delete",
|
|
221
|
+
cud: "delete",
|
|
222
|
+
description: "Deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars.",
|
|
223
|
+
method: { id: "calendar.calendars.delete", httpMethod: "DELETE", path: "calendars/{calendarId}", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId"] },
|
|
224
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
225
|
+
hasBody: false,
|
|
226
|
+
shape: {
|
|
227
|
+
account: accountField(),
|
|
228
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
229
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
230
|
+
},
|
|
231
|
+
});
|
|
232
|
+
registerGeneratedTool(registry, {
|
|
233
|
+
name: "calendar_calendars_get",
|
|
234
|
+
cud: "read",
|
|
235
|
+
description: "Returns metadata for a calendar.",
|
|
236
|
+
method: { id: "calendar.calendars.get", httpMethod: "GET", path: "calendars/{calendarId}", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId"] },
|
|
237
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
238
|
+
hasBody: false,
|
|
239
|
+
shape: {
|
|
240
|
+
account: accountField(),
|
|
241
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
242
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
243
|
+
},
|
|
244
|
+
});
|
|
245
|
+
registerGeneratedTool(registry, {
|
|
246
|
+
name: "calendar_calendars_patch",
|
|
247
|
+
cud: "update",
|
|
248
|
+
description: "Updates metadata for a calendar. This method supports patch semantics.",
|
|
249
|
+
method: { id: "calendar.calendars.patch", httpMethod: "PATCH", path: "calendars/{calendarId}", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId"] },
|
|
250
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
251
|
+
hasBody: true,
|
|
252
|
+
shape: {
|
|
253
|
+
account: accountField(),
|
|
254
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
255
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Calendar JSON request body. Top-level fields: autoAcceptInvitations, conferenceProperties, dataOwner, description, etag, id, kind, labelProperties, location, summary, timeZone."),
|
|
256
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
257
|
+
},
|
|
258
|
+
});
|
|
259
|
+
registerGeneratedTool(registry, {
|
|
260
|
+
name: "calendar_calendars_transfer_ownership",
|
|
261
|
+
cud: "create",
|
|
262
|
+
description: "Transfers a secondary calendar between users within a Google Workspace organization. Requires user authentication with Manage Calendars administrator privilege,",
|
|
263
|
+
method: { id: "calendar.calendars.transferOwnership", httpMethod: "POST", path: "calendars/{calendarId}/transferOwnership", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["newDataOwner", "useAdminAccess", "calendarId"] },
|
|
264
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "newDataOwner", "api": "newDataOwner", "location": "query" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
265
|
+
hasBody: false,
|
|
266
|
+
shape: {
|
|
267
|
+
account: accountField(),
|
|
268
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs, call the calendarList.list method."),
|
|
269
|
+
newDataOwner: z.string().describe("The email address of a user who will become the data owner of the calendar."),
|
|
270
|
+
useAdminAccess: coerceBoolean.describe("When true, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the Manage Calendars privilege. This method curren"),
|
|
271
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
272
|
+
},
|
|
273
|
+
});
|
|
274
|
+
registerGeneratedTool(registry, {
|
|
275
|
+
name: "calendar_calendars_update",
|
|
276
|
+
cud: "update",
|
|
277
|
+
description: "Updates metadata for a calendar.",
|
|
278
|
+
method: { id: "calendar.calendars.update", httpMethod: "PUT", path: "calendars/{calendarId}", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId"] },
|
|
279
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
280
|
+
hasBody: true,
|
|
281
|
+
shape: {
|
|
282
|
+
account: accountField(),
|
|
283
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
284
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Calendar JSON request body. Top-level fields: autoAcceptInvitations, conferenceProperties, dataOwner, description, etag, id, kind, labelProperties, location, summary, timeZone."),
|
|
285
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
286
|
+
},
|
|
287
|
+
});
|
|
288
|
+
registerGeneratedTool(registry, {
|
|
289
|
+
name: "calendar_channels_stop",
|
|
290
|
+
cud: "create",
|
|
291
|
+
description: "Stop watching resources through this channel",
|
|
292
|
+
method: { id: "calendar.channels.stop", httpMethod: "POST", path: "channels/stop", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: [] },
|
|
293
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
294
|
+
hasBody: true,
|
|
295
|
+
shape: {
|
|
296
|
+
account: accountField(),
|
|
297
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Channel JSON request body. Top-level fields: address, expiration, id, kind, params, payload, resourceId, resourceUri, token, type."),
|
|
298
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
299
|
+
},
|
|
300
|
+
});
|
|
301
|
+
registerGeneratedTool(registry, {
|
|
302
|
+
name: "calendar_colors_get",
|
|
303
|
+
cud: "read",
|
|
304
|
+
description: "Returns the color definitions for calendars and events.",
|
|
305
|
+
method: { id: "calendar.colors.get", httpMethod: "GET", path: "colors", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: [] },
|
|
306
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
307
|
+
hasBody: false,
|
|
308
|
+
shape: {
|
|
309
|
+
account: accountField(),
|
|
310
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
311
|
+
},
|
|
312
|
+
});
|
|
313
|
+
registerGeneratedTool(registry, {
|
|
314
|
+
name: "calendar_events_import",
|
|
315
|
+
cud: "create",
|
|
316
|
+
description: "Imports an event. This operation is used to add a private copy of an existing event to a calendar. Only events with an eventType of default may be imported.",
|
|
317
|
+
method: { id: "calendar.events.import", httpMethod: "POST", path: "calendars/{calendarId}/events/import", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId"] },
|
|
318
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "conferenceDataVersion", "api": "conferenceDataVersion", "location": "query" }, { "field": "eventLabelVersion", "api": "eventLabelVersion", "location": "query" }, { "field": "supportsAttachments", "api": "supportsAttachments", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
319
|
+
hasBody: true,
|
|
320
|
+
shape: {
|
|
321
|
+
account: accountField(),
|
|
322
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
323
|
+
conferenceDataVersion: z.number().describe("Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of Co").optional(),
|
|
324
|
+
eventLabelVersion: z.number().describe("Version number of the event label feature supported by the API client. Version 0 assumes no event label support and processes the colorId field for color management. Version 1 enables support for even").optional(),
|
|
325
|
+
supportsAttachments: coerceBoolean.describe("Whether API client performing operation supports event attachments. Optional. The default is False.").optional(),
|
|
326
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Event JSON request body. Top-level fields: anyoneCanAddSelf, attachments, attendees, attendeesOmitted, birthdayProperties, colorId, conferenceData, created, creator, description, end, endTimeUnspecified, +32 more."),
|
|
327
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
328
|
+
},
|
|
329
|
+
});
|
|
330
|
+
registerGeneratedTool(registry, {
|
|
331
|
+
name: "calendar_events_update",
|
|
332
|
+
cud: "update",
|
|
333
|
+
description: "Updates an event.",
|
|
334
|
+
method: { id: "calendar.events.update", httpMethod: "PUT", path: "calendars/{calendarId}/events/{eventId}", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["eventId", "calendarId"] },
|
|
335
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "eventId", "api": "eventId", "location": "path" }, { "field": "alwaysIncludeEmail", "api": "alwaysIncludeEmail", "location": "query" }, { "field": "conferenceDataVersion", "api": "conferenceDataVersion", "location": "query" }, { "field": "eventLabelVersion", "api": "eventLabelVersion", "location": "query" }, { "field": "maxAttendees", "api": "maxAttendees", "location": "query" }, { "field": "sendNotifications", "api": "sendNotifications", "location": "query" }, { "field": "sendUpdates", "api": "sendUpdates", "location": "query" }, { "field": "supportsAttachments", "api": "supportsAttachments", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
336
|
+
hasBody: true,
|
|
337
|
+
shape: {
|
|
338
|
+
account: accountField(),
|
|
339
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
340
|
+
eventId: z.string().describe("Event identifier."),
|
|
341
|
+
alwaysIncludeEmail: coerceBoolean.describe("Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value wil").optional(),
|
|
342
|
+
conferenceDataVersion: z.number().describe("Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of Co").optional(),
|
|
343
|
+
eventLabelVersion: z.number().describe("Version number of the event label feature supported by the API client. Version 0 assumes no event label support and processes the colorId field for color management. Version 1 enables support for even").optional(),
|
|
344
|
+
maxAttendees: z.number().describe("The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.").optional(),
|
|
345
|
+
sendNotifications: coerceBoolean.describe("Deprecated. Please use sendUpdates instead.").optional(),
|
|
346
|
+
sendUpdates: z.enum(["all", "externalOnly", "none"]).describe("Guests who should receive notifications about the event update (for example, title changes, etc.).").optional(),
|
|
347
|
+
supportsAttachments: coerceBoolean.describe("Whether API client performing operation supports event attachments. Optional. The default is False.").optional(),
|
|
348
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Event JSON request body. Top-level fields: anyoneCanAddSelf, attachments, attendees, attendeesOmitted, birthdayProperties, colorId, conferenceData, created, creator, description, end, endTimeUnspecified, +32 more."),
|
|
349
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
350
|
+
},
|
|
351
|
+
});
|
|
352
|
+
registerGeneratedTool(registry, {
|
|
353
|
+
name: "calendar_events_watch",
|
|
354
|
+
cud: "create",
|
|
355
|
+
description: "Watch for changes to Events resources.",
|
|
356
|
+
method: { id: "calendar.events.watch", httpMethod: "POST", path: "calendars/{calendarId}/events/watch", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["calendarId"] },
|
|
357
|
+
params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "alwaysIncludeEmail", "api": "alwaysIncludeEmail", "location": "query" }, { "field": "eventTypes", "api": "eventTypes", "location": "query" }, { "field": "iCalUID", "api": "iCalUID", "location": "query" }, { "field": "maxAttendees", "api": "maxAttendees", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "privateExtendedProperty", "api": "privateExtendedProperty", "location": "query" }, { "field": "q", "api": "q", "location": "query" }, { "field": "sharedExtendedProperty", "api": "sharedExtendedProperty", "location": "query" }, { "field": "showDeleted", "api": "showDeleted", "location": "query" }, { "field": "showHiddenInvitations", "api": "showHiddenInvitations", "location": "query" }, { "field": "singleEvents", "api": "singleEvents", "location": "query" }, { "field": "syncToken", "api": "syncToken", "location": "query" }, { "field": "timeMax", "api": "timeMax", "location": "query" }, { "field": "timeMin", "api": "timeMin", "location": "query" }, { "field": "timeZone", "api": "timeZone", "location": "query" }, { "field": "updatedMin", "api": "updatedMin", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
358
|
+
hasBody: true,
|
|
359
|
+
shape: {
|
|
360
|
+
account: accountField(),
|
|
361
|
+
calendarId: z.string().describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
|
|
362
|
+
alwaysIncludeEmail: coerceBoolean.describe("Deprecated and ignored.").optional(),
|
|
363
|
+
eventTypes: coerceArray(z.enum(["birthday", "default", "focusTime", "fromGmail", "outOfOffice", "workingLocation"])).describe("Event types to return. Optional. This parameter can be repeated multiple times to return events of different types. If unset, returns all event types.").optional(),
|
|
364
|
+
iCalUID: z.string().describe("Specifies an event ID in the iCalendar format to be provided in the response. Optional. Use this if you want to search for an event by its iCalendar ID.").optional(),
|
|
365
|
+
maxAttendees: z.number().describe("The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.").optional(),
|
|
366
|
+
maxResults: z.number().describe("Maximum number of events returned on one result page. The number of events in the resulting page may be less than this value, or none at all, even if there are more events matching the query. Incomple").optional(),
|
|
367
|
+
orderBy: z.enum(["startTime", "updated"]).describe("The order of the events returned in the result. Optional. The default is an unspecified, stable order.").optional(),
|
|
368
|
+
pageToken: z.string().describe("Token specifying which result page to return. Optional.").optional(),
|
|
369
|
+
privateExtendedProperty: coerceArray(z.string()).describe("Extended properties constraint specified as propertyName=value. Matches only private properties. This parameter might be repeated multiple times to return events that match all given constraints.").optional(),
|
|
370
|
+
q: z.string().describe("Free text search terms to find events that match these terms in the following fields:").optional(),
|
|
371
|
+
sharedExtendedProperty: coerceArray(z.string()).describe("Extended properties constraint specified as propertyName=value. Matches only shared properties. This parameter might be repeated multiple times to return events that match all given constraints.").optional(),
|
|
372
|
+
showDeleted: coerceBoolean.describe("Whether to include deleted events (with status equals \"cancelled\") in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included if showDeleted").optional(),
|
|
373
|
+
showHiddenInvitations: coerceBoolean.describe("Whether to include hidden invitations in the result. Optional. The default is False.").optional(),
|
|
374
|
+
singleEvents: coerceBoolean.describe("Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is ").optional(),
|
|
375
|
+
syncToken: z.string().describe("Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since t").optional(),
|
|
376
|
+
timeMax: z.string().describe("Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time. Must be an RFC3339 timestamp with mandatory time zone offset, for example, 2011-06").optional(),
|
|
377
|
+
timeMin: z.string().describe("Lower bound (exclusive) for an event's end time to filter by. Optional. The default is not to filter by end time. Must be an RFC3339 timestamp with mandatory time zone offset, for example, 2011-06-03T").optional(),
|
|
378
|
+
timeZone: z.string().describe("Time zone used in the response. Optional. The default is the time zone of the calendar.").optional(),
|
|
379
|
+
updatedMin: z.string().describe("Lower bound for an event's last modification time (as a RFC3339 timestamp) to filter by. When specified, entries deleted since this time will always be included regardless of showDeleted. Optional. Th").optional(),
|
|
380
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Channel JSON request body. Top-level fields: address, expiration, id, kind, params, payload, resourceId, resourceUri, token, type."),
|
|
381
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
382
|
+
},
|
|
383
|
+
});
|
|
384
|
+
registerGeneratedTool(registry, {
|
|
385
|
+
name: "calendar_settings_get",
|
|
386
|
+
cud: "read",
|
|
387
|
+
description: "Returns a single user setting.",
|
|
388
|
+
method: { id: "calendar.settings.get", httpMethod: "GET", path: "users/me/settings/{setting}", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: ["setting"] },
|
|
389
|
+
params: [{ "field": "setting", "api": "setting", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
390
|
+
hasBody: false,
|
|
391
|
+
shape: {
|
|
392
|
+
account: accountField(),
|
|
393
|
+
setting: z.string().describe("The id of the user setting."),
|
|
394
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
395
|
+
},
|
|
396
|
+
});
|
|
397
|
+
registerGeneratedTool(registry, {
|
|
398
|
+
name: "calendar_settings_list",
|
|
399
|
+
cud: "read",
|
|
400
|
+
description: "Returns all user settings for the authenticated user.",
|
|
401
|
+
method: { id: "calendar.settings.list", httpMethod: "GET", path: "users/me/settings", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: [] },
|
|
402
|
+
params: [{ "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "syncToken", "api": "syncToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
403
|
+
hasBody: false,
|
|
404
|
+
shape: {
|
|
405
|
+
account: accountField(),
|
|
406
|
+
maxResults: z.number().describe("Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.").optional(),
|
|
407
|
+
pageToken: z.string().describe("Token specifying which result page to return. Optional.").optional(),
|
|
408
|
+
syncToken: z.string().describe("Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since t").optional(),
|
|
409
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
410
|
+
},
|
|
411
|
+
});
|
|
412
|
+
registerGeneratedTool(registry, {
|
|
413
|
+
name: "calendar_settings_watch",
|
|
414
|
+
cud: "create",
|
|
415
|
+
description: "Watch for changes to Settings resources.",
|
|
416
|
+
method: { id: "calendar.settings.watch", httpMethod: "POST", path: "users/me/settings/watch", baseUrl: "https://www.googleapis.com/calendar/v3/", requiredParams: [] },
|
|
417
|
+
params: [{ "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "syncToken", "api": "syncToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
418
|
+
hasBody: true,
|
|
419
|
+
shape: {
|
|
420
|
+
account: accountField(),
|
|
421
|
+
maxResults: z.number().describe("Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.").optional(),
|
|
422
|
+
pageToken: z.string().describe("Token specifying which result page to return. Optional.").optional(),
|
|
423
|
+
syncToken: z.string().describe("Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since t").optional(),
|
|
424
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Channel JSON request body. Top-level fields: address, expiration, id, kind, params, payload, resourceId, resourceUri, token, type."),
|
|
425
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
426
|
+
},
|
|
427
|
+
});
|
|
428
|
+
}
|