mcp-google-multi 6.0.0-beta.2 → 6.0.0-beta.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/accounts.d.ts +17 -1
- package/dist/accounts.js +52 -15
- package/dist/api-probe.d.ts +5 -0
- package/dist/api-probe.js +20 -15
- package/dist/arg-normalize.js +6 -5
- package/dist/arg-strict.d.ts +7 -0
- package/dist/arg-strict.js +34 -4
- package/dist/auth.d.ts +4 -3
- package/dist/auth.js +11 -13
- package/dist/boot-gates.d.ts +26 -0
- package/dist/boot-gates.js +38 -0
- package/dist/cimd-cache.d.ts +38 -0
- package/dist/cimd-cache.js +117 -0
- package/dist/client.d.ts +32 -2
- package/dist/client.js +0 -0
- package/dist/compose.d.ts +11 -0
- package/dist/compose.js +109 -0
- package/dist/config-file.d.ts +13 -0
- package/dist/config-file.js +37 -1
- package/dist/discover.js +3 -1
- package/dist/discovery-client.d.ts +3 -0
- package/dist/discovery-client.js +25 -2
- package/dist/doctor.d.ts +6 -2
- package/dist/doctor.js +119 -23
- package/dist/executor.d.ts +3 -0
- package/dist/executor.js +4 -2
- package/dist/fanout.d.ts +9 -1
- package/dist/fanout.js +44 -10
- package/dist/fs-atomic.d.ts +11 -0
- package/dist/fs-atomic.js +219 -28
- package/dist/hint-provider.d.ts +129 -0
- package/dist/hint-provider.js +64 -0
- package/dist/http-transport.d.ts +62 -4
- package/dist/http-transport.js +343 -24
- package/dist/identity.d.ts +4 -1
- package/dist/identity.js +25 -6
- package/dist/index.js +66 -138
- package/dist/master-key.js +13 -5
- package/dist/mcp-token.d.ts +136 -19
- package/dist/mcp-token.js +569 -72
- package/dist/migrate-config.js +2 -2
- package/dist/oauth-as.d.ts +103 -3
- package/dist/oauth-as.js +374 -79
- package/dist/oauth-consent.d.ts +10 -0
- package/dist/oauth-consent.js +16 -0
- package/dist/outbound-allowlist.js +5 -2
- package/dist/reauth-hint.d.ts +1 -1
- package/dist/reauth-hint.js +12 -8
- package/dist/registry-transfer.d.ts +5 -0
- package/dist/registry-transfer.js +65 -5
- package/dist/registry.d.ts +18 -1
- package/dist/registry.js +71 -15
- package/dist/scope-catalog.d.ts +11 -0
- package/dist/scope-catalog.js +23 -6
- package/dist/scope-observability.d.ts +8 -6
- package/dist/scope-observability.js +29 -13
- package/dist/services.d.ts +15 -10
- package/dist/services.js +59 -15
- package/dist/ssrf-guard.d.ts +23 -9
- package/dist/ssrf-guard.js +101 -62
- package/dist/tenant-purge.d.ts +26 -0
- package/dist/tenant-purge.js +67 -0
- package/dist/token-store.d.ts +20 -2
- package/dist/token-store.js +0 -0
- package/dist/tools/_errors.d.ts +3 -0
- package/dist/tools/_errors.js +53 -24
- package/dist/tools/_local-files.d.ts +9 -0
- package/dist/tools/_local-files.js +18 -0
- package/dist/tools/account-wizard.d.ts +10 -1
- package/dist/tools/account-wizard.js +74 -17
- package/dist/tools/accounts-tool.d.ts +7 -0
- package/dist/tools/accounts-tool.js +34 -18
- package/dist/tools/admin.d.ts +10 -1
- package/dist/tools/admin.js +15 -11
- package/dist/tools/analytics.d.ts +10 -1
- package/dist/tools/analytics.js +13 -8
- package/dist/tools/calendar.d.ts +2 -1
- package/dist/tools/calendar.js +18 -14
- package/dist/tools/chat.d.ts +10 -1
- package/dist/tools/chat.js +13 -8
- package/dist/tools/contacts.d.ts +2 -1
- package/dist/tools/contacts.js +17 -13
- package/dist/tools/docs.d.ts +2 -1
- package/dist/tools/docs.js +34 -30
- package/dist/tools/drive.d.ts +2 -1
- package/dist/tools/drive.js +65 -50
- package/dist/tools/forms.d.ts +10 -1
- package/dist/tools/forms.js +19 -12
- package/dist/tools/generated/_shared.d.ts +2 -1
- package/dist/tools/generated/_shared.js +7 -3
- package/dist/tools/generated/admin.d.ts +2 -1
- package/dist/tools/generated/admin.js +265 -265
- package/dist/tools/generated/analytics.d.ts +2 -1
- package/dist/tools/generated/analytics.js +125 -125
- package/dist/tools/generated/appsmarket.d.ts +2 -1
- package/dist/tools/generated/appsmarket.js +5 -5
- package/dist/tools/generated/calendar.d.ts +2 -1
- package/dist/tools/generated/calendar.js +55 -55
- package/dist/tools/generated/chat.d.ts +2 -1
- package/dist/tools/generated/chat.js +95 -95
- package/dist/tools/generated/classroom.d.ts +2 -1
- package/dist/tools/generated/classroom.js +209 -209
- package/dist/tools/generated/cloudidentity.d.ts +2 -1
- package/dist/tools/generated/cloudidentity.js +133 -133
- package/dist/tools/generated/cloudsearch.d.ts +2 -1
- package/dist/tools/generated/cloudsearch.js +99 -99
- package/dist/tools/generated/contacts.d.ts +2 -1
- package/dist/tools/generated/contacts.js +29 -29
- package/dist/tools/generated/drive.d.ts +2 -1
- package/dist/tools/generated/drive.js +71 -71
- package/dist/tools/generated/driveactivity.d.ts +2 -1
- package/dist/tools/generated/driveactivity.js +3 -3
- package/dist/tools/generated/drivelabels.d.ts +2 -1
- package/dist/tools/generated/drivelabels.js +53 -53
- package/dist/tools/generated/forms.d.ts +2 -1
- package/dist/tools/generated/forms.js +7 -7
- package/dist/tools/generated/gmail.d.ts +2 -1
- package/dist/tools/generated/gmail.js +117 -117
- package/dist/tools/generated/groupsmigration.d.ts +2 -1
- package/dist/tools/generated/groupsmigration.js +3 -3
- package/dist/tools/generated/groupssettings.d.ts +2 -1
- package/dist/tools/generated/groupssettings.js +7 -7
- package/dist/tools/generated/index.d.ts +2 -1
- package/dist/tools/generated/keep.d.ts +2 -1
- package/dist/tools/generated/keep.js +15 -15
- package/dist/tools/generated/licensing.d.ts +2 -1
- package/dist/tools/generated/licensing.js +15 -15
- package/dist/tools/generated/meet.d.ts +2 -1
- package/dist/tools/generated/meet.js +27 -27
- package/dist/tools/generated/postmaster.d.ts +2 -1
- package/dist/tools/generated/postmaster.js +9 -9
- package/dist/tools/generated/reseller.d.ts +2 -1
- package/dist/tools/generated/reseller.js +35 -35
- package/dist/tools/generated/script.d.ts +2 -1
- package/dist/tools/generated/script.js +33 -33
- package/dist/tools/generated/searchconsole.d.ts +2 -1
- package/dist/tools/generated/searchconsole.js +3 -3
- package/dist/tools/generated/sheets.d.ts +2 -1
- package/dist/tools/generated/sheets.js +15 -15
- package/dist/tools/generated/tasks.d.ts +2 -1
- package/dist/tools/generated/tasks.js +5 -5
- package/dist/tools/generated/vault.d.ts +2 -1
- package/dist/tools/generated/vault.js +67 -67
- package/dist/tools/generated/workspaceevents.d.ts +2 -1
- package/dist/tools/generated/workspaceevents.js +31 -31
- package/dist/tools/gmail.d.ts +2 -1
- package/dist/tools/gmail.js +45 -33
- package/dist/tools/google-api.d.ts +2 -3
- package/dist/tools/google-api.js +30 -16
- package/dist/tools/meet.d.ts +10 -1
- package/dist/tools/meet.js +13 -9
- package/dist/tools/searchconsole.d.ts +2 -1
- package/dist/tools/searchconsole.js +17 -13
- package/dist/tools/sheets.d.ts +2 -1
- package/dist/tools/sheets.js +36 -32
- package/dist/tools/slides.d.ts +10 -1
- package/dist/tools/slides.js +17 -10
- package/dist/tools/tasks.d.ts +2 -1
- package/dist/tools/tasks.js +19 -15
- package/dist/trim.d.ts +5 -0
- package/dist/trim.js +20 -0
- package/dist/usage-metrics.d.ts +23 -0
- package/dist/usage-metrics.js +65 -47
- package/dist/write-control.js +10 -2
- package/package.json +27 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { coerceArray, coerceJson } from '../_coerce.js';
|
|
4
4
|
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
5
|
-
export function registerClassroomGeneratedTools(registry) {
|
|
5
|
+
export function registerClassroomGeneratedTools(registry, deps = {}) {
|
|
6
6
|
// Interned method scope sets (shared across tools; see scope-observability).
|
|
7
7
|
const S_classroom_v1 = [
|
|
8
8
|
["https://www.googleapis.com/auth/classroom.courses"],
|
|
@@ -39,12 +39,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
39
39
|
hasBody: true,
|
|
40
40
|
bodyParams: [{ "field": "alias", "api": "alias" }],
|
|
41
41
|
shape: {
|
|
42
|
-
account: accountField(),
|
|
42
|
+
account: accountField(() => registry.accountAliases()),
|
|
43
43
|
courseId: z.string().min(1).describe("Identifier of the course to alias. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
44
44
|
alias: z.string().describe("Alias string. The format of the string indicates the desired alias scoping. * `d:` indicates a domain-scoped alias. Example: `d:math_101` * `p:` indicates a project-scoped alias. Example: `p:abc123` T").optional(),
|
|
45
45
|
fields: z.string().optional().describe('Response field mask.'),
|
|
46
46
|
},
|
|
47
|
-
});
|
|
47
|
+
}, deps);
|
|
48
48
|
registerGeneratedTool(registry, {
|
|
49
49
|
name: "classroom_courses_aliases_delete",
|
|
50
50
|
cud: "delete",
|
|
@@ -53,12 +53,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
53
53
|
params: [{ "field": "alias", "api": "alias", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
54
54
|
hasBody: false,
|
|
55
55
|
shape: {
|
|
56
|
-
account: accountField(),
|
|
56
|
+
account: accountField(() => registry.accountAliases()),
|
|
57
57
|
alias: z.string().min(1).describe("Alias to delete. This may not be the Classroom-assigned identifier."),
|
|
58
58
|
courseId: z.string().min(1).describe("Identifier of the course whose alias should be deleted. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
59
59
|
fields: z.string().optional().describe('Response field mask.'),
|
|
60
60
|
},
|
|
61
|
-
});
|
|
61
|
+
}, deps);
|
|
62
62
|
registerGeneratedTool(registry, {
|
|
63
63
|
name: "classroom_courses_aliases_list",
|
|
64
64
|
cud: "read",
|
|
@@ -67,13 +67,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
67
67
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
68
68
|
hasBody: false,
|
|
69
69
|
shape: {
|
|
70
|
-
account: accountField(),
|
|
70
|
+
account: accountField(() => registry.accountAliases()),
|
|
71
71
|
courseId: z.string().min(1).describe("The identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
72
72
|
pageSize: z.number().describe("Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results.").optional(),
|
|
73
73
|
pageToken: z.string().describe("nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this").optional(),
|
|
74
74
|
fields: z.string().optional().describe('Response field mask.'),
|
|
75
75
|
},
|
|
76
|
-
});
|
|
76
|
+
}, deps);
|
|
77
77
|
registerGeneratedTool(registry, {
|
|
78
78
|
name: "classroom_courses_announcements_add_on_attachments_create",
|
|
79
79
|
cud: "create",
|
|
@@ -82,7 +82,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
82
82
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "addOnToken", "api": "addOnToken", "location": "query" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
83
83
|
hasBody: true,
|
|
84
84
|
shape: {
|
|
85
|
-
account: accountField(),
|
|
85
|
+
account: accountField(() => registry.accountAliases()),
|
|
86
86
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
87
87
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which to create the attachment. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
88
88
|
addOnToken: z.string().describe("Optional. Token that authorizes the request. The token is passed as a query parameter when the user is redirected from Classroom to the add-on's URL. This authorization token is required for in-Classr").optional(),
|
|
@@ -90,7 +90,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
90
90
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("AddOnAttachment JSON request body. Top-level fields: copyHistory, courseId, dueDate, dueTime, id, itemId, maxPoints, postId, studentViewUri, studentWorkReviewUri, teacherViewUri, title."),
|
|
91
91
|
fields: z.string().optional().describe('Response field mask.'),
|
|
92
92
|
},
|
|
93
|
-
});
|
|
93
|
+
}, deps);
|
|
94
94
|
registerGeneratedTool(registry, {
|
|
95
95
|
name: "classroom_courses_announcements_add_on_attachments_delete",
|
|
96
96
|
cud: "delete",
|
|
@@ -99,14 +99,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
99
99
|
params: [{ "field": "attachmentId", "api": "attachmentId", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
100
100
|
hasBody: false,
|
|
101
101
|
shape: {
|
|
102
|
-
account: accountField(),
|
|
102
|
+
account: accountField(() => registry.accountAliases()),
|
|
103
103
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
104
104
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
105
105
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
106
106
|
postId: z.string().describe("Optional. Deprecated, use `item_id` instead.").optional(),
|
|
107
107
|
fields: z.string().optional().describe('Response field mask.'),
|
|
108
108
|
},
|
|
109
|
-
});
|
|
109
|
+
}, deps);
|
|
110
110
|
registerGeneratedTool(registry, {
|
|
111
111
|
name: "classroom_courses_announcements_add_on_attachments_get",
|
|
112
112
|
cud: "read",
|
|
@@ -115,14 +115,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
115
115
|
params: [{ "field": "attachmentId", "api": "attachmentId", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
116
116
|
hasBody: false,
|
|
117
117
|
shape: {
|
|
118
|
-
account: accountField(),
|
|
118
|
+
account: accountField(() => registry.accountAliases()),
|
|
119
119
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
120
120
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
121
121
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
122
122
|
postId: z.string().describe("Optional. Deprecated, use `item_id` instead.").optional(),
|
|
123
123
|
fields: z.string().optional().describe('Response field mask.'),
|
|
124
124
|
},
|
|
125
|
-
});
|
|
125
|
+
}, deps);
|
|
126
126
|
registerGeneratedTool(registry, {
|
|
127
127
|
name: "classroom_courses_announcements_add_on_attachments_list",
|
|
128
128
|
cud: "read",
|
|
@@ -131,7 +131,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
131
131
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
132
132
|
hasBody: false,
|
|
133
133
|
shape: {
|
|
134
|
-
account: accountField(),
|
|
134
|
+
account: accountField(() => registry.accountAliases()),
|
|
135
135
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
136
136
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` whose attachments should be enumerated. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
137
137
|
pageSize: z.number().describe("The maximum number of attachments to return. The service may return fewer than this value. If unspecified, at most 20 attachments will be returned. The maximum value is 20; values above 20 will be coe").optional(),
|
|
@@ -139,7 +139,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
139
139
|
postId: z.string().describe("Optional. Identifier of the post under the course whose attachments to enumerate. Deprecated, use `item_id` instead.").optional(),
|
|
140
140
|
fields: z.string().optional().describe('Response field mask.'),
|
|
141
141
|
},
|
|
142
|
-
});
|
|
142
|
+
}, deps);
|
|
143
143
|
registerGeneratedTool(registry, {
|
|
144
144
|
name: "classroom_courses_announcements_add_on_attachments_patch",
|
|
145
145
|
cud: "update",
|
|
@@ -148,7 +148,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
148
148
|
params: [{ "field": "attachmentId", "api": "attachmentId", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
149
149
|
hasBody: true,
|
|
150
150
|
shape: {
|
|
151
|
-
account: accountField(),
|
|
151
|
+
account: accountField(() => registry.accountAliases()),
|
|
152
152
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
153
153
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
154
154
|
itemId: z.string().min(1).describe("Identifier of the post under which the attachment is attached."),
|
|
@@ -157,7 +157,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
157
157
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("AddOnAttachment JSON request body. Top-level fields: copyHistory, courseId, dueDate, dueTime, id, itemId, maxPoints, postId, studentViewUri, studentWorkReviewUri, teacherViewUri, title."),
|
|
158
158
|
fields: z.string().optional().describe('Response field mask.'),
|
|
159
159
|
},
|
|
160
|
-
});
|
|
160
|
+
}, deps);
|
|
161
161
|
registerGeneratedTool(registry, {
|
|
162
162
|
name: "classroom_courses_announcements_create",
|
|
163
163
|
cud: "create",
|
|
@@ -166,12 +166,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
166
166
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
167
167
|
hasBody: true,
|
|
168
168
|
shape: {
|
|
169
|
-
account: accountField(),
|
|
169
|
+
account: accountField(() => registry.accountAliases()),
|
|
170
170
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
171
171
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Announcement JSON request body. Top-level fields: alternateLink, assigneeMode, courseId, creationTime, creatorUserId, id, individualStudentsOptions, materials, scheduledTime, state, text, updateTime."),
|
|
172
172
|
fields: z.string().optional().describe('Response field mask.'),
|
|
173
173
|
},
|
|
174
|
-
});
|
|
174
|
+
}, deps);
|
|
175
175
|
registerGeneratedTool(registry, {
|
|
176
176
|
name: "classroom_courses_announcements_delete",
|
|
177
177
|
cud: "delete",
|
|
@@ -180,12 +180,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
180
180
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
181
181
|
hasBody: false,
|
|
182
182
|
shape: {
|
|
183
|
-
account: accountField(),
|
|
183
|
+
account: accountField(() => registry.accountAliases()),
|
|
184
184
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
185
185
|
id: z.string().min(1).describe("Identifier of the announcement to delete. This identifier is a Classroom-assigned identifier."),
|
|
186
186
|
fields: z.string().optional().describe('Response field mask.'),
|
|
187
187
|
},
|
|
188
|
-
});
|
|
188
|
+
}, deps);
|
|
189
189
|
registerGeneratedTool(registry, {
|
|
190
190
|
name: "classroom_courses_announcements_get",
|
|
191
191
|
cud: "read",
|
|
@@ -194,12 +194,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
194
194
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
195
195
|
hasBody: false,
|
|
196
196
|
shape: {
|
|
197
|
-
account: accountField(),
|
|
197
|
+
account: accountField(() => registry.accountAliases()),
|
|
198
198
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
199
199
|
id: z.string().min(1).describe("Identifier of the announcement."),
|
|
200
200
|
fields: z.string().optional().describe('Response field mask.'),
|
|
201
201
|
},
|
|
202
|
-
});
|
|
202
|
+
}, deps);
|
|
203
203
|
registerGeneratedTool(registry, {
|
|
204
204
|
name: "classroom_courses_announcements_get_add_on_context",
|
|
205
205
|
cud: "read",
|
|
@@ -208,7 +208,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
208
208
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "addOnToken", "api": "addOnToken", "location": "query" }, { "field": "attachmentId", "api": "attachmentId", "location": "query" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
209
209
|
hasBody: false,
|
|
210
210
|
shape: {
|
|
211
|
-
account: accountField(),
|
|
211
|
+
account: accountField(() => registry.accountAliases()),
|
|
212
212
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
213
213
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
214
214
|
addOnToken: z.string().describe("Optional. Token that authorizes the request. The token is passed as a query parameter when the user is redirected from Classroom to the add-on's URL. The authorization token is required when neither o").optional(),
|
|
@@ -216,7 +216,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
216
216
|
postId: z.string().describe("Optional. Deprecated, use `item_id` instead.").optional(),
|
|
217
217
|
fields: z.string().optional().describe('Response field mask.'),
|
|
218
218
|
},
|
|
219
|
-
});
|
|
219
|
+
}, deps);
|
|
220
220
|
registerGeneratedTool(registry, {
|
|
221
221
|
name: "classroom_courses_announcements_list",
|
|
222
222
|
cud: "read",
|
|
@@ -225,7 +225,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
225
225
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "announcementStates", "api": "announcementStates", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
226
226
|
hasBody: false,
|
|
227
227
|
shape: {
|
|
228
|
-
account: accountField(),
|
|
228
|
+
account: accountField(() => registry.accountAliases()),
|
|
229
229
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
230
230
|
announcementStates: coerceArray(z.enum(["ANNOUNCEMENT_STATE_UNSPECIFIED", "PUBLISHED", "DRAFT", "DELETED"])).describe("Restriction on the `state` of announcements returned. If this argument is left unspecified, the default value is `PUBLISHED`.").optional(),
|
|
231
231
|
orderBy: z.string().describe("Optional sort ordering for results. A comma-separated list of fields with an optional sort direction keyword. Supported field is `updateTime`. Supported direction keywords are `asc` and `desc`. If not").optional(),
|
|
@@ -233,7 +233,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
233
233
|
pageToken: z.string().describe("nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this").optional(),
|
|
234
234
|
fields: z.string().optional().describe('Response field mask.'),
|
|
235
235
|
},
|
|
236
|
-
});
|
|
236
|
+
}, deps);
|
|
237
237
|
registerGeneratedTool(registry, {
|
|
238
238
|
name: "classroom_courses_announcements_modify_assignees",
|
|
239
239
|
cud: "update",
|
|
@@ -242,13 +242,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
242
242
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
243
243
|
hasBody: true,
|
|
244
244
|
shape: {
|
|
245
|
-
account: accountField(),
|
|
245
|
+
account: accountField(() => registry.accountAliases()),
|
|
246
246
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
247
247
|
id: z.string().min(1).describe("Identifier of the announcement."),
|
|
248
248
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("ModifyAnnouncementAssigneesRequest JSON request body. Top-level fields: assigneeMode, modifyIndividualStudentsOptions."),
|
|
249
249
|
fields: z.string().optional().describe('Response field mask.'),
|
|
250
250
|
},
|
|
251
|
-
});
|
|
251
|
+
}, deps);
|
|
252
252
|
registerGeneratedTool(registry, {
|
|
253
253
|
name: "classroom_courses_announcements_patch",
|
|
254
254
|
cud: "update",
|
|
@@ -257,14 +257,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
257
257
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
258
258
|
hasBody: true,
|
|
259
259
|
shape: {
|
|
260
|
-
account: accountField(),
|
|
260
|
+
account: accountField(() => registry.accountAliases()),
|
|
261
261
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
262
262
|
id: z.string().min(1).describe("Identifier of the announcement."),
|
|
263
263
|
updateMask: z.string().describe("Mask that identifies which fields on the announcement to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it can be c").optional(),
|
|
264
264
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Announcement JSON request body. Top-level fields: alternateLink, assigneeMode, courseId, creationTime, creatorUserId, id, individualStudentsOptions, materials, scheduledTime, state, text, updateTime."),
|
|
265
265
|
fields: z.string().optional().describe('Response field mask.'),
|
|
266
266
|
},
|
|
267
|
-
});
|
|
267
|
+
}, deps);
|
|
268
268
|
registerGeneratedTool(registry, {
|
|
269
269
|
name: "classroom_courses_course_work_add_on_attachments_create",
|
|
270
270
|
cud: "create",
|
|
@@ -273,7 +273,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
273
273
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "addOnToken", "api": "addOnToken", "location": "query" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
274
274
|
hasBody: true,
|
|
275
275
|
shape: {
|
|
276
|
-
account: accountField(),
|
|
276
|
+
account: accountField(() => registry.accountAliases()),
|
|
277
277
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
278
278
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which to create the attachment. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
279
279
|
addOnToken: z.string().describe("Optional. Token that authorizes the request. The token is passed as a query parameter when the user is redirected from Classroom to the add-on's URL. This authorization token is required for in-Classr").optional(),
|
|
@@ -281,7 +281,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
281
281
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("AddOnAttachment JSON request body. Top-level fields: copyHistory, courseId, dueDate, dueTime, id, itemId, maxPoints, postId, studentViewUri, studentWorkReviewUri, teacherViewUri, title."),
|
|
282
282
|
fields: z.string().optional().describe('Response field mask.'),
|
|
283
283
|
},
|
|
284
|
-
});
|
|
284
|
+
}, deps);
|
|
285
285
|
registerGeneratedTool(registry, {
|
|
286
286
|
name: "classroom_courses_course_work_add_on_attachments_delete",
|
|
287
287
|
cud: "delete",
|
|
@@ -290,14 +290,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
290
290
|
params: [{ "field": "attachmentId", "api": "attachmentId", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
291
291
|
hasBody: false,
|
|
292
292
|
shape: {
|
|
293
|
-
account: accountField(),
|
|
293
|
+
account: accountField(() => registry.accountAliases()),
|
|
294
294
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
295
295
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
296
296
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
297
297
|
postId: z.string().describe("Optional. Deprecated, use `item_id` instead.").optional(),
|
|
298
298
|
fields: z.string().optional().describe('Response field mask.'),
|
|
299
299
|
},
|
|
300
|
-
});
|
|
300
|
+
}, deps);
|
|
301
301
|
registerGeneratedTool(registry, {
|
|
302
302
|
name: "classroom_courses_course_work_add_on_attachments_get",
|
|
303
303
|
cud: "read",
|
|
@@ -306,14 +306,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
306
306
|
params: [{ "field": "attachmentId", "api": "attachmentId", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
307
307
|
hasBody: false,
|
|
308
308
|
shape: {
|
|
309
|
-
account: accountField(),
|
|
309
|
+
account: accountField(() => registry.accountAliases()),
|
|
310
310
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
311
311
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
312
312
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
313
313
|
postId: z.string().describe("Optional. Deprecated, use `item_id` instead.").optional(),
|
|
314
314
|
fields: z.string().optional().describe('Response field mask.'),
|
|
315
315
|
},
|
|
316
|
-
});
|
|
316
|
+
}, deps);
|
|
317
317
|
registerGeneratedTool(registry, {
|
|
318
318
|
name: "classroom_courses_course_work_add_on_attachments_list",
|
|
319
319
|
cud: "read",
|
|
@@ -322,7 +322,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
322
322
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
323
323
|
hasBody: false,
|
|
324
324
|
shape: {
|
|
325
|
-
account: accountField(),
|
|
325
|
+
account: accountField(() => registry.accountAliases()),
|
|
326
326
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
327
327
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` whose attachments should be enumerated. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
328
328
|
pageSize: z.number().describe("The maximum number of attachments to return. The service may return fewer than this value. If unspecified, at most 20 attachments will be returned. The maximum value is 20; values above 20 will be coe").optional(),
|
|
@@ -330,7 +330,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
330
330
|
postId: z.string().describe("Optional. Identifier of the post under the course whose attachments to enumerate. Deprecated, use `item_id` instead.").optional(),
|
|
331
331
|
fields: z.string().optional().describe('Response field mask.'),
|
|
332
332
|
},
|
|
333
|
-
});
|
|
333
|
+
}, deps);
|
|
334
334
|
registerGeneratedTool(registry, {
|
|
335
335
|
name: "classroom_courses_course_work_add_on_attachments_patch",
|
|
336
336
|
cud: "update",
|
|
@@ -339,7 +339,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
339
339
|
params: [{ "field": "attachmentId", "api": "attachmentId", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
340
340
|
hasBody: true,
|
|
341
341
|
shape: {
|
|
342
|
-
account: accountField(),
|
|
342
|
+
account: accountField(() => registry.accountAliases()),
|
|
343
343
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
344
344
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
345
345
|
itemId: z.string().min(1).describe("Identifier of the post under which the attachment is attached."),
|
|
@@ -348,7 +348,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
348
348
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("AddOnAttachment JSON request body. Top-level fields: copyHistory, courseId, dueDate, dueTime, id, itemId, maxPoints, postId, studentViewUri, studentWorkReviewUri, teacherViewUri, title."),
|
|
349
349
|
fields: z.string().optional().describe('Response field mask.'),
|
|
350
350
|
},
|
|
351
|
-
});
|
|
351
|
+
}, deps);
|
|
352
352
|
registerGeneratedTool(registry, {
|
|
353
353
|
name: "classroom_coursework_addon_submissions_get",
|
|
354
354
|
cud: "read",
|
|
@@ -357,7 +357,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
357
357
|
params: [{ "field": "attachmentId", "api": "attachmentId", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "submissionId", "api": "submissionId", "location": "path" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
358
358
|
hasBody: false,
|
|
359
359
|
shape: {
|
|
360
|
-
account: accountField(),
|
|
360
|
+
account: accountField(() => registry.accountAliases()),
|
|
361
361
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
362
362
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
363
363
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
@@ -365,7 +365,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
365
365
|
postId: z.string().describe("Optional. Deprecated, use `item_id` instead.").optional(),
|
|
366
366
|
fields: z.string().optional().describe('Response field mask.'),
|
|
367
367
|
},
|
|
368
|
-
});
|
|
368
|
+
}, deps);
|
|
369
369
|
registerGeneratedTool(registry, {
|
|
370
370
|
name: "classroom_coursework_addon_submissions_patch",
|
|
371
371
|
cud: "update",
|
|
@@ -375,7 +375,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
375
375
|
hasBody: true,
|
|
376
376
|
bodyParams: [{ "field": "courseWorkSubmissionId", "api": "courseWorkSubmissionId" }, { "field": "id", "api": "id" }, { "field": "pointsEarned", "api": "pointsEarned" }, { "field": "postSubmissionState", "api": "postSubmissionState" }, { "field": "userId", "api": "userId" }],
|
|
377
377
|
shape: {
|
|
378
|
-
account: accountField(),
|
|
378
|
+
account: accountField(() => registry.accountAliases()),
|
|
379
379
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
380
380
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
381
381
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
@@ -389,7 +389,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
389
389
|
userId: z.string().describe("Identifier for the student that owns this submission. Requires the user to be a teacher in the course and have permission to read student submissions. See [`courseWork.studentSubmissions.get`](/worksp").optional(),
|
|
390
390
|
fields: z.string().optional().describe('Response field mask.'),
|
|
391
391
|
},
|
|
392
|
-
});
|
|
392
|
+
}, deps);
|
|
393
393
|
registerGeneratedTool(registry, {
|
|
394
394
|
name: "classroom_courses_course_work_create",
|
|
395
395
|
cud: "create",
|
|
@@ -398,12 +398,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
398
398
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
399
399
|
hasBody: true,
|
|
400
400
|
shape: {
|
|
401
|
-
account: accountField(),
|
|
401
|
+
account: accountField(() => registry.accountAliases()),
|
|
402
402
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
403
403
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("CourseWork JSON request body. Top-level fields: alternateLink, assigneeMode, assignment, associatedWithDeveloper, courseId, creationTime, creatorUserId, description, dueDate, dueTime, gradeCategory, gradingPeriodId, +12 more."),
|
|
404
404
|
fields: z.string().optional().describe('Response field mask.'),
|
|
405
405
|
},
|
|
406
|
-
});
|
|
406
|
+
}, deps);
|
|
407
407
|
registerGeneratedTool(registry, {
|
|
408
408
|
name: "classroom_courses_course_work_delete",
|
|
409
409
|
cud: "delete",
|
|
@@ -412,12 +412,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
412
412
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
413
413
|
hasBody: false,
|
|
414
414
|
shape: {
|
|
415
|
-
account: accountField(),
|
|
415
|
+
account: accountField(() => registry.accountAliases()),
|
|
416
416
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
417
417
|
id: z.string().min(1).describe("Identifier of the course work to delete. This identifier is a Classroom-assigned identifier."),
|
|
418
418
|
fields: z.string().optional().describe('Response field mask.'),
|
|
419
419
|
},
|
|
420
|
-
});
|
|
420
|
+
}, deps);
|
|
421
421
|
registerGeneratedTool(registry, {
|
|
422
422
|
name: "classroom_courses_course_work_get",
|
|
423
423
|
cud: "read",
|
|
@@ -426,12 +426,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
426
426
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
427
427
|
hasBody: false,
|
|
428
428
|
shape: {
|
|
429
|
-
account: accountField(),
|
|
429
|
+
account: accountField(() => registry.accountAliases()),
|
|
430
430
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
431
431
|
id: z.string().min(1).describe("Identifier of the course work."),
|
|
432
432
|
fields: z.string().optional().describe('Response field mask.'),
|
|
433
433
|
},
|
|
434
|
-
});
|
|
434
|
+
}, deps);
|
|
435
435
|
registerGeneratedTool(registry, {
|
|
436
436
|
name: "classroom_courses_course_work_get_add_on_context",
|
|
437
437
|
cud: "read",
|
|
@@ -440,7 +440,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
440
440
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "addOnToken", "api": "addOnToken", "location": "query" }, { "field": "attachmentId", "api": "attachmentId", "location": "query" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
441
441
|
hasBody: false,
|
|
442
442
|
shape: {
|
|
443
|
-
account: accountField(),
|
|
443
|
+
account: accountField(() => registry.accountAliases()),
|
|
444
444
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
445
445
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
446
446
|
addOnToken: z.string().describe("Optional. Token that authorizes the request. The token is passed as a query parameter when the user is redirected from Classroom to the add-on's URL. The authorization token is required when neither o").optional(),
|
|
@@ -448,7 +448,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
448
448
|
postId: z.string().describe("Optional. Deprecated, use `item_id` instead.").optional(),
|
|
449
449
|
fields: z.string().optional().describe('Response field mask.'),
|
|
450
450
|
},
|
|
451
|
-
});
|
|
451
|
+
}, deps);
|
|
452
452
|
registerGeneratedTool(registry, {
|
|
453
453
|
name: "classroom_courses_course_work_list",
|
|
454
454
|
cud: "read",
|
|
@@ -457,7 +457,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
457
457
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "courseWorkStates", "api": "courseWorkStates", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
458
458
|
hasBody: false,
|
|
459
459
|
shape: {
|
|
460
|
-
account: accountField(),
|
|
460
|
+
account: accountField(() => registry.accountAliases()),
|
|
461
461
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
462
462
|
courseWorkStates: coerceArray(z.enum(["COURSE_WORK_STATE_UNSPECIFIED", "PUBLISHED", "DRAFT", "DELETED"])).describe("Restriction on the work status to return. Only courseWork that matches is returned. If unspecified, items with a work status of `PUBLISHED` is returned.").optional(),
|
|
463
463
|
orderBy: z.string().describe("Optional sort ordering for results. A comma-separated list of fields with an optional sort direction keyword. Supported fields are `updateTime` and `dueDate`. Supported direction keywords are `asc` an").optional(),
|
|
@@ -465,7 +465,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
465
465
|
pageToken: z.string().describe("nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this").optional(),
|
|
466
466
|
fields: z.string().optional().describe('Response field mask.'),
|
|
467
467
|
},
|
|
468
|
-
});
|
|
468
|
+
}, deps);
|
|
469
469
|
registerGeneratedTool(registry, {
|
|
470
470
|
name: "classroom_courses_course_work_modify_assignees",
|
|
471
471
|
cud: "update",
|
|
@@ -474,13 +474,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
474
474
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
475
475
|
hasBody: true,
|
|
476
476
|
shape: {
|
|
477
|
-
account: accountField(),
|
|
477
|
+
account: accountField(() => registry.accountAliases()),
|
|
478
478
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
479
479
|
id: z.string().min(1).describe("Identifier of the coursework."),
|
|
480
480
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("ModifyCourseWorkAssigneesRequest JSON request body. Top-level fields: assigneeMode, modifyIndividualStudentsOptions."),
|
|
481
481
|
fields: z.string().optional().describe('Response field mask.'),
|
|
482
482
|
},
|
|
483
|
-
});
|
|
483
|
+
}, deps);
|
|
484
484
|
registerGeneratedTool(registry, {
|
|
485
485
|
name: "classroom_courses_course_work_patch",
|
|
486
486
|
cud: "update",
|
|
@@ -489,14 +489,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
489
489
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
490
490
|
hasBody: true,
|
|
491
491
|
shape: {
|
|
492
|
-
account: accountField(),
|
|
492
|
+
account: accountField(() => registry.accountAliases()),
|
|
493
493
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
494
494
|
id: z.string().min(1).describe("Identifier of the course work."),
|
|
495
495
|
updateMask: z.string().describe("Mask that identifies which fields on the course work to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it can be cl").optional(),
|
|
496
496
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("CourseWork JSON request body. Top-level fields: alternateLink, assigneeMode, assignment, associatedWithDeveloper, courseId, creationTime, creatorUserId, description, dueDate, dueTime, gradeCategory, gradingPeriodId, +12 more."),
|
|
497
497
|
fields: z.string().optional().describe('Response field mask.'),
|
|
498
498
|
},
|
|
499
|
-
});
|
|
499
|
+
}, deps);
|
|
500
500
|
registerGeneratedTool(registry, {
|
|
501
501
|
name: "classroom_courses_course_work_rubrics_create",
|
|
502
502
|
cud: "create",
|
|
@@ -505,13 +505,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
505
505
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "courseWorkId", "api": "courseWorkId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
506
506
|
hasBody: true,
|
|
507
507
|
shape: {
|
|
508
|
-
account: accountField(),
|
|
508
|
+
account: accountField(() => registry.accountAliases()),
|
|
509
509
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
510
510
|
courseWorkId: z.string().min(1).describe("Required. Identifier of the course work."),
|
|
511
511
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Rubric JSON request body. Top-level fields: courseId, courseWorkId, creationTime, criteria, id, sourceSpreadsheetId, updateTime."),
|
|
512
512
|
fields: z.string().optional().describe('Response field mask.'),
|
|
513
513
|
},
|
|
514
|
-
});
|
|
514
|
+
}, deps);
|
|
515
515
|
registerGeneratedTool(registry, {
|
|
516
516
|
name: "classroom_courses_course_work_rubrics_delete",
|
|
517
517
|
cud: "delete",
|
|
@@ -520,13 +520,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
520
520
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "courseWorkId", "api": "courseWorkId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
521
521
|
hasBody: false,
|
|
522
522
|
shape: {
|
|
523
|
-
account: accountField(),
|
|
523
|
+
account: accountField(() => registry.accountAliases()),
|
|
524
524
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
525
525
|
courseWorkId: z.string().min(1).describe("Required. Identifier of the course work."),
|
|
526
526
|
id: z.string().min(1).describe("Required. Identifier of the rubric."),
|
|
527
527
|
fields: z.string().optional().describe('Response field mask.'),
|
|
528
528
|
},
|
|
529
|
-
});
|
|
529
|
+
}, deps);
|
|
530
530
|
registerGeneratedTool(registry, {
|
|
531
531
|
name: "classroom_courses_course_work_rubrics_get",
|
|
532
532
|
cud: "read",
|
|
@@ -535,13 +535,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
535
535
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "courseWorkId", "api": "courseWorkId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
536
536
|
hasBody: false,
|
|
537
537
|
shape: {
|
|
538
|
-
account: accountField(),
|
|
538
|
+
account: accountField(() => registry.accountAliases()),
|
|
539
539
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
540
540
|
courseWorkId: z.string().min(1).describe("Required. Identifier of the course work."),
|
|
541
541
|
id: z.string().min(1).describe("Required. Identifier of the rubric."),
|
|
542
542
|
fields: z.string().optional().describe('Response field mask.'),
|
|
543
543
|
},
|
|
544
|
-
});
|
|
544
|
+
}, deps);
|
|
545
545
|
registerGeneratedTool(registry, {
|
|
546
546
|
name: "classroom_courses_course_work_rubrics_list",
|
|
547
547
|
cud: "read",
|
|
@@ -550,14 +550,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
550
550
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "courseWorkId", "api": "courseWorkId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
551
551
|
hasBody: false,
|
|
552
552
|
shape: {
|
|
553
|
-
account: accountField(),
|
|
553
|
+
account: accountField(() => registry.accountAliases()),
|
|
554
554
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
555
555
|
courseWorkId: z.string().min(1).describe("Required. Identifier of the course work."),
|
|
556
556
|
pageSize: z.number().describe("The maximum number of rubrics to return. If unspecified, at most 1 rubric is returned. The maximum value is 1; values above 1 are coerced to 1.").optional(),
|
|
557
557
|
pageToken: z.string().describe("nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this").optional(),
|
|
558
558
|
fields: z.string().optional().describe('Response field mask.'),
|
|
559
559
|
},
|
|
560
|
-
});
|
|
560
|
+
}, deps);
|
|
561
561
|
registerGeneratedTool(registry, {
|
|
562
562
|
name: "classroom_courses_course_work_rubrics_patch",
|
|
563
563
|
cud: "update",
|
|
@@ -566,7 +566,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
566
566
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "courseWorkId", "api": "courseWorkId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
567
567
|
hasBody: true,
|
|
568
568
|
shape: {
|
|
569
|
-
account: accountField(),
|
|
569
|
+
account: accountField(() => registry.accountAliases()),
|
|
570
570
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
571
571
|
courseWorkId: z.string().min(1).describe("Required. Identifier of the course work."),
|
|
572
572
|
id: z.string().min(1).describe("Optional. Identifier of the rubric."),
|
|
@@ -574,7 +574,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
574
574
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Rubric JSON request body. Top-level fields: courseId, courseWorkId, creationTime, criteria, id, sourceSpreadsheetId, updateTime."),
|
|
575
575
|
fields: z.string().optional().describe('Response field mask.'),
|
|
576
576
|
},
|
|
577
|
-
});
|
|
577
|
+
}, deps);
|
|
578
578
|
registerGeneratedTool(registry, {
|
|
579
579
|
name: "classroom_courses_course_work_student_submissions_get",
|
|
580
580
|
cud: "read",
|
|
@@ -583,13 +583,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
583
583
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "courseWorkId", "api": "courseWorkId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
584
584
|
hasBody: false,
|
|
585
585
|
shape: {
|
|
586
|
-
account: accountField(),
|
|
586
|
+
account: accountField(() => registry.accountAliases()),
|
|
587
587
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
588
588
|
courseWorkId: z.string().min(1).describe("Identifier of the course work."),
|
|
589
589
|
id: z.string().min(1).describe("Identifier of the student submission."),
|
|
590
590
|
fields: z.string().optional().describe('Response field mask.'),
|
|
591
591
|
},
|
|
592
|
-
});
|
|
592
|
+
}, deps);
|
|
593
593
|
registerGeneratedTool(registry, {
|
|
594
594
|
name: "classroom_courses_course_work_student_submissions_list",
|
|
595
595
|
cud: "read",
|
|
@@ -598,7 +598,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
598
598
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "courseWorkId", "api": "courseWorkId", "location": "path" }, { "field": "late", "api": "late", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "states", "api": "states", "location": "query" }, { "field": "userId", "api": "userId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
599
599
|
hasBody: false,
|
|
600
600
|
shape: {
|
|
601
|
-
account: accountField(),
|
|
601
|
+
account: accountField(() => registry.accountAliases()),
|
|
602
602
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
603
603
|
courseWorkId: z.string().min(1).describe("Identifier of the student work to request. This may be set to the string literal `\"-\"` to request student work for all course work in the specified course."),
|
|
604
604
|
late: z.enum(["LATE_VALUES_UNSPECIFIED", "LATE_ONLY", "NOT_LATE_ONLY"]).describe("Requested lateness value. If specified, returned student submissions are restricted by the requested value. If unspecified, submissions are returned regardless of `late` value.").optional(),
|
|
@@ -608,7 +608,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
608
608
|
userId: z.string().describe("Optional argument to restrict returned student work to those owned by the student with the specified identifier. The identifier can be one of the following: * the numeric identifier for the user * the").optional(),
|
|
609
609
|
fields: z.string().optional().describe('Response field mask.'),
|
|
610
610
|
},
|
|
611
|
-
});
|
|
611
|
+
}, deps);
|
|
612
612
|
registerGeneratedTool(registry, {
|
|
613
613
|
name: "classroom_coursework_submissions_modify_attachments",
|
|
614
614
|
cud: "update",
|
|
@@ -617,14 +617,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
617
617
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "courseWorkId", "api": "courseWorkId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
618
618
|
hasBody: true,
|
|
619
619
|
shape: {
|
|
620
|
-
account: accountField(),
|
|
620
|
+
account: accountField(() => registry.accountAliases()),
|
|
621
621
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
622
622
|
courseWorkId: z.string().min(1).describe("Identifier of the course work."),
|
|
623
623
|
id: z.string().min(1).describe("Identifier of the student submission."),
|
|
624
624
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("ModifyAttachmentsRequest JSON request body. Top-level fields: addAttachments."),
|
|
625
625
|
fields: z.string().optional().describe('Response field mask.'),
|
|
626
626
|
},
|
|
627
|
-
});
|
|
627
|
+
}, deps);
|
|
628
628
|
registerGeneratedTool(registry, {
|
|
629
629
|
name: "classroom_courses_course_work_student_submissions_patch",
|
|
630
630
|
cud: "update",
|
|
@@ -633,7 +633,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
633
633
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "courseWorkId", "api": "courseWorkId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
634
634
|
hasBody: true,
|
|
635
635
|
shape: {
|
|
636
|
-
account: accountField(),
|
|
636
|
+
account: accountField(() => registry.accountAliases()),
|
|
637
637
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
638
638
|
courseWorkId: z.string().min(1).describe("Identifier of the course work."),
|
|
639
639
|
id: z.string().min(1).describe("Identifier of the student submission."),
|
|
@@ -641,7 +641,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
641
641
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("StudentSubmission JSON request body. Top-level fields: alternateLink, assignedGrade, assignedRubricGrades, assignmentSubmission, associatedWithDeveloper, courseId, courseWorkId, courseWorkType, creationTime, draftGrade, draftRubricGrades, id, +7 more."),
|
|
642
642
|
fields: z.string().optional().describe('Response field mask.'),
|
|
643
643
|
},
|
|
644
|
-
});
|
|
644
|
+
}, deps);
|
|
645
645
|
registerGeneratedTool(registry, {
|
|
646
646
|
name: "classroom_courses_course_work_student_submissions_reclaim",
|
|
647
647
|
cud: "update",
|
|
@@ -651,13 +651,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
651
651
|
hasBody: true,
|
|
652
652
|
bodyParams: [],
|
|
653
653
|
shape: {
|
|
654
|
-
account: accountField(),
|
|
654
|
+
account: accountField(() => registry.accountAliases()),
|
|
655
655
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
656
656
|
courseWorkId: z.string().min(1).describe("Identifier of the course work."),
|
|
657
657
|
id: z.string().min(1).describe("Identifier of the student submission."),
|
|
658
658
|
fields: z.string().optional().describe('Response field mask.'),
|
|
659
659
|
},
|
|
660
|
-
});
|
|
660
|
+
}, deps);
|
|
661
661
|
registerGeneratedTool(registry, {
|
|
662
662
|
name: "classroom_courses_course_work_student_submissions_return",
|
|
663
663
|
cud: "update",
|
|
@@ -667,13 +667,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
667
667
|
hasBody: true,
|
|
668
668
|
bodyParams: [],
|
|
669
669
|
shape: {
|
|
670
|
-
account: accountField(),
|
|
670
|
+
account: accountField(() => registry.accountAliases()),
|
|
671
671
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
672
672
|
courseWorkId: z.string().min(1).describe("Identifier of the course work."),
|
|
673
673
|
id: z.string().min(1).describe("Identifier of the student submission."),
|
|
674
674
|
fields: z.string().optional().describe('Response field mask.'),
|
|
675
675
|
},
|
|
676
|
-
});
|
|
676
|
+
}, deps);
|
|
677
677
|
registerGeneratedTool(registry, {
|
|
678
678
|
name: "classroom_courses_course_work_student_submissions_turn_in",
|
|
679
679
|
cud: "update",
|
|
@@ -683,13 +683,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
683
683
|
hasBody: true,
|
|
684
684
|
bodyParams: [],
|
|
685
685
|
shape: {
|
|
686
|
-
account: accountField(),
|
|
686
|
+
account: accountField(() => registry.accountAliases()),
|
|
687
687
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
688
688
|
courseWorkId: z.string().min(1).describe("Identifier of the course work."),
|
|
689
689
|
id: z.string().min(1).describe("Identifier of the student submission."),
|
|
690
690
|
fields: z.string().optional().describe('Response field mask.'),
|
|
691
691
|
},
|
|
692
|
-
});
|
|
692
|
+
}, deps);
|
|
693
693
|
registerGeneratedTool(registry, {
|
|
694
694
|
name: "classroom_courses_course_work_update_rubric",
|
|
695
695
|
cud: "update",
|
|
@@ -698,7 +698,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
698
698
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "courseWorkId", "api": "courseWorkId", "location": "path" }, { "field": "id", "api": "id", "location": "query" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
699
699
|
hasBody: true,
|
|
700
700
|
shape: {
|
|
701
|
-
account: accountField(),
|
|
701
|
+
account: accountField(() => registry.accountAliases()),
|
|
702
702
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
703
703
|
courseWorkId: z.string().min(1).describe("Required. Identifier of the course work."),
|
|
704
704
|
id: z.string().describe("Optional. Identifier of the rubric.").optional(),
|
|
@@ -706,7 +706,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
706
706
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Rubric JSON request body. Top-level fields: courseId, courseWorkId, creationTime, criteria, id, sourceSpreadsheetId, updateTime."),
|
|
707
707
|
fields: z.string().optional().describe('Response field mask.'),
|
|
708
708
|
},
|
|
709
|
-
});
|
|
709
|
+
}, deps);
|
|
710
710
|
registerGeneratedTool(registry, {
|
|
711
711
|
name: "classroom_coursework_materials_addons_create",
|
|
712
712
|
cud: "create",
|
|
@@ -715,7 +715,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
715
715
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "addOnToken", "api": "addOnToken", "location": "query" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
716
716
|
hasBody: true,
|
|
717
717
|
shape: {
|
|
718
|
-
account: accountField(),
|
|
718
|
+
account: accountField(() => registry.accountAliases()),
|
|
719
719
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
720
720
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which to create the attachment. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
721
721
|
addOnToken: z.string().describe("Optional. Token that authorizes the request. The token is passed as a query parameter when the user is redirected from Classroom to the add-on's URL. This authorization token is required for in-Classr").optional(),
|
|
@@ -723,7 +723,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
723
723
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("AddOnAttachment JSON request body. Top-level fields: copyHistory, courseId, dueDate, dueTime, id, itemId, maxPoints, postId, studentViewUri, studentWorkReviewUri, teacherViewUri, title."),
|
|
724
724
|
fields: z.string().optional().describe('Response field mask.'),
|
|
725
725
|
},
|
|
726
|
-
});
|
|
726
|
+
}, deps);
|
|
727
727
|
registerGeneratedTool(registry, {
|
|
728
728
|
name: "classroom_coursework_materials_addons_delete",
|
|
729
729
|
cud: "delete",
|
|
@@ -732,14 +732,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
732
732
|
params: [{ "field": "attachmentId", "api": "attachmentId", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
733
733
|
hasBody: false,
|
|
734
734
|
shape: {
|
|
735
|
-
account: accountField(),
|
|
735
|
+
account: accountField(() => registry.accountAliases()),
|
|
736
736
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
737
737
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
738
738
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
739
739
|
postId: z.string().describe("Optional. Deprecated, use `item_id` instead.").optional(),
|
|
740
740
|
fields: z.string().optional().describe('Response field mask.'),
|
|
741
741
|
},
|
|
742
|
-
});
|
|
742
|
+
}, deps);
|
|
743
743
|
registerGeneratedTool(registry, {
|
|
744
744
|
name: "classroom_courses_course_work_materials_add_on_attachments_get",
|
|
745
745
|
cud: "read",
|
|
@@ -748,14 +748,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
748
748
|
params: [{ "field": "attachmentId", "api": "attachmentId", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
749
749
|
hasBody: false,
|
|
750
750
|
shape: {
|
|
751
|
-
account: accountField(),
|
|
751
|
+
account: accountField(() => registry.accountAliases()),
|
|
752
752
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
753
753
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
754
754
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
755
755
|
postId: z.string().describe("Optional. Deprecated, use `item_id` instead.").optional(),
|
|
756
756
|
fields: z.string().optional().describe('Response field mask.'),
|
|
757
757
|
},
|
|
758
|
-
});
|
|
758
|
+
}, deps);
|
|
759
759
|
registerGeneratedTool(registry, {
|
|
760
760
|
name: "classroom_courses_course_work_materials_add_on_attachments_list",
|
|
761
761
|
cud: "read",
|
|
@@ -764,7 +764,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
764
764
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
765
765
|
hasBody: false,
|
|
766
766
|
shape: {
|
|
767
|
-
account: accountField(),
|
|
767
|
+
account: accountField(() => registry.accountAliases()),
|
|
768
768
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
769
769
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` whose attachments should be enumerated. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
770
770
|
pageSize: z.number().describe("The maximum number of attachments to return. The service may return fewer than this value. If unspecified, at most 20 attachments will be returned. The maximum value is 20; values above 20 will be coe").optional(),
|
|
@@ -772,7 +772,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
772
772
|
postId: z.string().describe("Optional. Identifier of the post under the course whose attachments to enumerate. Deprecated, use `item_id` instead.").optional(),
|
|
773
773
|
fields: z.string().optional().describe('Response field mask.'),
|
|
774
774
|
},
|
|
775
|
-
});
|
|
775
|
+
}, deps);
|
|
776
776
|
registerGeneratedTool(registry, {
|
|
777
777
|
name: "classroom_courses_course_work_materials_add_on_attachments_patch",
|
|
778
778
|
cud: "update",
|
|
@@ -781,7 +781,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
781
781
|
params: [{ "field": "attachmentId", "api": "attachmentId", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
782
782
|
hasBody: true,
|
|
783
783
|
shape: {
|
|
784
|
-
account: accountField(),
|
|
784
|
+
account: accountField(() => registry.accountAliases()),
|
|
785
785
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
786
786
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
787
787
|
itemId: z.string().min(1).describe("Identifier of the post under which the attachment is attached."),
|
|
@@ -790,7 +790,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
790
790
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("AddOnAttachment JSON request body. Top-level fields: copyHistory, courseId, dueDate, dueTime, id, itemId, maxPoints, postId, studentViewUri, studentWorkReviewUri, teacherViewUri, title."),
|
|
791
791
|
fields: z.string().optional().describe('Response field mask.'),
|
|
792
792
|
},
|
|
793
|
-
});
|
|
793
|
+
}, deps);
|
|
794
794
|
registerGeneratedTool(registry, {
|
|
795
795
|
name: "classroom_courses_course_work_materials_create",
|
|
796
796
|
cud: "create",
|
|
@@ -799,12 +799,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
799
799
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
800
800
|
hasBody: true,
|
|
801
801
|
shape: {
|
|
802
|
-
account: accountField(),
|
|
802
|
+
account: accountField(() => registry.accountAliases()),
|
|
803
803
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
804
804
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("CourseWorkMaterial JSON request body. Top-level fields: alternateLink, assigneeMode, courseId, creationTime, creatorUserId, description, id, individualStudentsOptions, materials, scheduledTime, state, title, +2 more."),
|
|
805
805
|
fields: z.string().optional().describe('Response field mask.'),
|
|
806
806
|
},
|
|
807
|
-
});
|
|
807
|
+
}, deps);
|
|
808
808
|
registerGeneratedTool(registry, {
|
|
809
809
|
name: "classroom_courses_course_work_materials_delete",
|
|
810
810
|
cud: "delete",
|
|
@@ -813,12 +813,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
813
813
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
814
814
|
hasBody: false,
|
|
815
815
|
shape: {
|
|
816
|
-
account: accountField(),
|
|
816
|
+
account: accountField(() => registry.accountAliases()),
|
|
817
817
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
818
818
|
id: z.string().min(1).describe("Identifier of the course work material to delete. This identifier is a Classroom-assigned identifier."),
|
|
819
819
|
fields: z.string().optional().describe('Response field mask.'),
|
|
820
820
|
},
|
|
821
|
-
});
|
|
821
|
+
}, deps);
|
|
822
822
|
registerGeneratedTool(registry, {
|
|
823
823
|
name: "classroom_courses_course_work_materials_get",
|
|
824
824
|
cud: "read",
|
|
@@ -827,12 +827,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
827
827
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
828
828
|
hasBody: false,
|
|
829
829
|
shape: {
|
|
830
|
-
account: accountField(),
|
|
830
|
+
account: accountField(() => registry.accountAliases()),
|
|
831
831
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
832
832
|
id: z.string().min(1).describe("Identifier of the course work material."),
|
|
833
833
|
fields: z.string().optional().describe('Response field mask.'),
|
|
834
834
|
},
|
|
835
|
-
});
|
|
835
|
+
}, deps);
|
|
836
836
|
registerGeneratedTool(registry, {
|
|
837
837
|
name: "classroom_courses_course_work_materials_get_add_on_context",
|
|
838
838
|
cud: "read",
|
|
@@ -841,7 +841,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
841
841
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "path" }, { "field": "addOnToken", "api": "addOnToken", "location": "query" }, { "field": "attachmentId", "api": "attachmentId", "location": "query" }, { "field": "postId", "api": "postId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
842
842
|
hasBody: false,
|
|
843
843
|
shape: {
|
|
844
|
-
account: accountField(),
|
|
844
|
+
account: accountField(() => registry.accountAliases()),
|
|
845
845
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
846
846
|
itemId: z.string().min(1).describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id."),
|
|
847
847
|
addOnToken: z.string().describe("Optional. Token that authorizes the request. The token is passed as a query parameter when the user is redirected from Classroom to the add-on's URL. The authorization token is required when neither o").optional(),
|
|
@@ -849,7 +849,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
849
849
|
postId: z.string().describe("Optional. Deprecated, use `item_id` instead.").optional(),
|
|
850
850
|
fields: z.string().optional().describe('Response field mask.'),
|
|
851
851
|
},
|
|
852
|
-
});
|
|
852
|
+
}, deps);
|
|
853
853
|
registerGeneratedTool(registry, {
|
|
854
854
|
name: "classroom_courses_course_work_materials_list",
|
|
855
855
|
cud: "read",
|
|
@@ -858,7 +858,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
858
858
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "courseWorkMaterialStates", "api": "courseWorkMaterialStates", "location": "query" }, { "field": "materialDriveId", "api": "materialDriveId", "location": "query" }, { "field": "materialLink", "api": "materialLink", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
859
859
|
hasBody: false,
|
|
860
860
|
shape: {
|
|
861
|
-
account: accountField(),
|
|
861
|
+
account: accountField(() => registry.accountAliases()),
|
|
862
862
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
863
863
|
courseWorkMaterialStates: coerceArray(z.enum(["COURSEWORK_MATERIAL_STATE_UNSPECIFIED", "PUBLISHED", "DRAFT", "DELETED"])).describe("Restriction on the work status to return. Only course work material that matches is returned. If unspecified, items with a work status of `PUBLISHED` is returned.").optional(),
|
|
864
864
|
materialDriveId: z.string().describe("Optional filtering for course work material with at least one Drive material whose ID matches the provided string. If `material_link` is also specified, course work material must have materials matchi").optional(),
|
|
@@ -868,7 +868,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
868
868
|
pageToken: z.string().describe("nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this").optional(),
|
|
869
869
|
fields: z.string().optional().describe('Response field mask.'),
|
|
870
870
|
},
|
|
871
|
-
});
|
|
871
|
+
}, deps);
|
|
872
872
|
registerGeneratedTool(registry, {
|
|
873
873
|
name: "classroom_courses_course_work_materials_patch",
|
|
874
874
|
cud: "update",
|
|
@@ -877,14 +877,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
877
877
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
878
878
|
hasBody: true,
|
|
879
879
|
shape: {
|
|
880
|
-
account: accountField(),
|
|
880
|
+
account: accountField(() => registry.accountAliases()),
|
|
881
881
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
882
882
|
id: z.string().min(1).describe("Identifier of the course work material."),
|
|
883
883
|
updateMask: z.string().describe("Mask that identifies which fields on the course work material to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it ").optional(),
|
|
884
884
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("CourseWorkMaterial JSON request body. Top-level fields: alternateLink, assigneeMode, courseId, creationTime, creatorUserId, description, id, individualStudentsOptions, materials, scheduledTime, state, title, +2 more."),
|
|
885
885
|
fields: z.string().optional().describe('Response field mask.'),
|
|
886
886
|
},
|
|
887
|
-
});
|
|
887
|
+
}, deps);
|
|
888
888
|
registerGeneratedTool(registry, {
|
|
889
889
|
name: "classroom_courses_create",
|
|
890
890
|
cud: "create",
|
|
@@ -893,11 +893,11 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
893
893
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
894
894
|
hasBody: true,
|
|
895
895
|
shape: {
|
|
896
|
-
account: accountField(),
|
|
896
|
+
account: accountField(() => registry.accountAliases()),
|
|
897
897
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Course JSON request body. Top-level fields: alternateLink, calendarId, courseGroupEmail, courseMaterialSets, courseState, creationTime, description, descriptionHeading, enrollmentCode, gradebookSettings, guardiansEnabled, id, +9 more."),
|
|
898
898
|
fields: z.string().optional().describe('Response field mask.'),
|
|
899
899
|
},
|
|
900
|
-
});
|
|
900
|
+
}, deps);
|
|
901
901
|
registerGeneratedTool(registry, {
|
|
902
902
|
name: "classroom_courses_delete",
|
|
903
903
|
cud: "delete",
|
|
@@ -906,11 +906,11 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
906
906
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
907
907
|
hasBody: false,
|
|
908
908
|
shape: {
|
|
909
|
-
account: accountField(),
|
|
909
|
+
account: accountField(() => registry.accountAliases()),
|
|
910
910
|
id: z.string().min(1).describe("Identifier of the course to delete. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
911
911
|
fields: z.string().optional().describe('Response field mask.'),
|
|
912
912
|
},
|
|
913
|
-
});
|
|
913
|
+
}, deps);
|
|
914
914
|
registerGeneratedTool(registry, {
|
|
915
915
|
name: "classroom_courses_get",
|
|
916
916
|
cud: "read",
|
|
@@ -919,11 +919,11 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
919
919
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
920
920
|
hasBody: false,
|
|
921
921
|
shape: {
|
|
922
|
-
account: accountField(),
|
|
922
|
+
account: accountField(() => registry.accountAliases()),
|
|
923
923
|
id: z.string().min(1).describe("Identifier of the course to return. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
924
924
|
fields: z.string().optional().describe('Response field mask.'),
|
|
925
925
|
},
|
|
926
|
-
});
|
|
926
|
+
}, deps);
|
|
927
927
|
registerGeneratedTool(registry, {
|
|
928
928
|
name: "classroom_courses_get_grading_period_settings",
|
|
929
929
|
cud: "read",
|
|
@@ -932,11 +932,11 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
932
932
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
933
933
|
hasBody: false,
|
|
934
934
|
shape: {
|
|
935
|
-
account: accountField(),
|
|
935
|
+
account: accountField(() => registry.accountAliases()),
|
|
936
936
|
courseId: z.string().min(1).describe("Required. The identifier of the course."),
|
|
937
937
|
fields: z.string().optional().describe('Response field mask.'),
|
|
938
938
|
},
|
|
939
|
-
});
|
|
939
|
+
}, deps);
|
|
940
940
|
registerGeneratedTool(registry, {
|
|
941
941
|
name: "classroom_courses_list",
|
|
942
942
|
cud: "read",
|
|
@@ -945,7 +945,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
945
945
|
params: [{ "field": "courseStates", "api": "courseStates", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "studentId", "api": "studentId", "location": "query" }, { "field": "teacherId", "api": "teacherId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
946
946
|
hasBody: false,
|
|
947
947
|
shape: {
|
|
948
|
-
account: accountField(),
|
|
948
|
+
account: accountField(() => registry.accountAliases()),
|
|
949
949
|
courseStates: coerceArray(z.enum(["COURSE_STATE_UNSPECIFIED", "ACTIVE", "ARCHIVED", "PROVISIONED", "DECLINED", "SUSPENDED"])).describe("Restricts returned courses to those in one of the specified states. If unspecified, Courses in any state are returned.").optional(),
|
|
950
950
|
pageSize: z.number().describe("Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results.").optional(),
|
|
951
951
|
pageToken: z.string().describe("nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this").optional(),
|
|
@@ -953,7 +953,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
953
953
|
teacherId: z.string().describe("Restricts returned courses to those having a teacher with the specified identifier. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * ").optional(),
|
|
954
954
|
fields: z.string().optional().describe('Response field mask.'),
|
|
955
955
|
},
|
|
956
|
-
});
|
|
956
|
+
}, deps);
|
|
957
957
|
registerGeneratedTool(registry, {
|
|
958
958
|
name: "classroom_courses_patch",
|
|
959
959
|
cud: "update",
|
|
@@ -962,13 +962,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
962
962
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
963
963
|
hasBody: true,
|
|
964
964
|
shape: {
|
|
965
|
-
account: accountField(),
|
|
965
|
+
account: accountField(() => registry.accountAliases()),
|
|
966
966
|
id: z.string().min(1).describe("Identifier of the course to update. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
967
967
|
updateMask: z.string().describe("Mask that identifies which fields on the course to update. This field is required to do an update. The update will fail if invalid fields are specified. The following fields are valid: * `courseState`").optional(),
|
|
968
968
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Course JSON request body. Top-level fields: alternateLink, calendarId, courseGroupEmail, courseMaterialSets, courseState, creationTime, description, descriptionHeading, enrollmentCode, gradebookSettings, guardiansEnabled, id, +9 more."),
|
|
969
969
|
fields: z.string().optional().describe('Response field mask.'),
|
|
970
970
|
},
|
|
971
|
-
});
|
|
971
|
+
}, deps);
|
|
972
972
|
registerGeneratedTool(registry, {
|
|
973
973
|
name: "classroom_courses_posts_add_on_attachments_create",
|
|
974
974
|
cud: "create",
|
|
@@ -977,7 +977,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
977
977
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "postId", "api": "postId", "location": "path" }, { "field": "addOnToken", "api": "addOnToken", "location": "query" }, { "field": "itemId", "api": "itemId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
978
978
|
hasBody: true,
|
|
979
979
|
shape: {
|
|
980
|
-
account: accountField(),
|
|
980
|
+
account: accountField(() => registry.accountAliases()),
|
|
981
981
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
982
982
|
postId: z.string().min(1).describe("Optional. Deprecated, use `item_id` instead."),
|
|
983
983
|
addOnToken: z.string().describe("Optional. Token that authorizes the request. The token is passed as a query parameter when the user is redirected from Classroom to the add-on's URL. This authorization token is required for in-Classr").optional(),
|
|
@@ -985,7 +985,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
985
985
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("AddOnAttachment JSON request body. Top-level fields: copyHistory, courseId, dueDate, dueTime, id, itemId, maxPoints, postId, studentViewUri, studentWorkReviewUri, teacherViewUri, title."),
|
|
986
986
|
fields: z.string().optional().describe('Response field mask.'),
|
|
987
987
|
},
|
|
988
|
-
});
|
|
988
|
+
}, deps);
|
|
989
989
|
registerGeneratedTool(registry, {
|
|
990
990
|
name: "classroom_courses_posts_add_on_attachments_delete",
|
|
991
991
|
cud: "delete",
|
|
@@ -994,14 +994,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
994
994
|
params: [{ "field": "attachmentId", "api": "attachmentId", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "postId", "api": "postId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
995
995
|
hasBody: false,
|
|
996
996
|
shape: {
|
|
997
|
-
account: accountField(),
|
|
997
|
+
account: accountField(() => registry.accountAliases()),
|
|
998
998
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
999
999
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
1000
1000
|
postId: z.string().min(1).describe("Optional. Deprecated, use `item_id` instead."),
|
|
1001
1001
|
itemId: z.string().describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id.").optional(),
|
|
1002
1002
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1003
1003
|
},
|
|
1004
|
-
});
|
|
1004
|
+
}, deps);
|
|
1005
1005
|
registerGeneratedTool(registry, {
|
|
1006
1006
|
name: "classroom_courses_posts_add_on_attachments_get",
|
|
1007
1007
|
cud: "read",
|
|
@@ -1010,14 +1010,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1010
1010
|
params: [{ "field": "attachmentId", "api": "attachmentId", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "postId", "api": "postId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1011
1011
|
hasBody: false,
|
|
1012
1012
|
shape: {
|
|
1013
|
-
account: accountField(),
|
|
1013
|
+
account: accountField(() => registry.accountAliases()),
|
|
1014
1014
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
1015
1015
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
1016
1016
|
postId: z.string().min(1).describe("Optional. Deprecated, use `item_id` instead."),
|
|
1017
1017
|
itemId: z.string().describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id.").optional(),
|
|
1018
1018
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1019
1019
|
},
|
|
1020
|
-
});
|
|
1020
|
+
}, deps);
|
|
1021
1021
|
registerGeneratedTool(registry, {
|
|
1022
1022
|
name: "classroom_courses_posts_add_on_attachments_list",
|
|
1023
1023
|
cud: "read",
|
|
@@ -1026,7 +1026,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1026
1026
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "postId", "api": "postId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1027
1027
|
hasBody: false,
|
|
1028
1028
|
shape: {
|
|
1029
|
-
account: accountField(),
|
|
1029
|
+
account: accountField(() => registry.accountAliases()),
|
|
1030
1030
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
1031
1031
|
postId: z.string().min(1).describe("Optional. Identifier of the post under the course whose attachments to enumerate. Deprecated, use `item_id` instead."),
|
|
1032
1032
|
itemId: z.string().describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` whose attachments should be enumerated. This field is required, but is not marked as such while we are migrating from post_id.").optional(),
|
|
@@ -1034,7 +1034,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1034
1034
|
pageToken: z.string().describe("A page token, received from a previous `ListAddOnAttachments` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAddOnAttachments` must match th").optional(),
|
|
1035
1035
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1036
1036
|
},
|
|
1037
|
-
});
|
|
1037
|
+
}, deps);
|
|
1038
1038
|
registerGeneratedTool(registry, {
|
|
1039
1039
|
name: "classroom_courses_posts_add_on_attachments_patch",
|
|
1040
1040
|
cud: "update",
|
|
@@ -1043,7 +1043,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1043
1043
|
params: [{ "field": "attachmentId", "api": "attachmentId", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "postId", "api": "postId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "query" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1044
1044
|
hasBody: true,
|
|
1045
1045
|
shape: {
|
|
1046
|
-
account: accountField(),
|
|
1046
|
+
account: accountField(() => registry.accountAliases()),
|
|
1047
1047
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
1048
1048
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
1049
1049
|
postId: z.string().min(1).describe("Required. Identifier of the post under which the attachment is attached."),
|
|
@@ -1052,7 +1052,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1052
1052
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("AddOnAttachment JSON request body. Top-level fields: copyHistory, courseId, dueDate, dueTime, id, itemId, maxPoints, postId, studentViewUri, studentWorkReviewUri, teacherViewUri, title."),
|
|
1053
1053
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1054
1054
|
},
|
|
1055
|
-
});
|
|
1055
|
+
}, deps);
|
|
1056
1056
|
registerGeneratedTool(registry, {
|
|
1057
1057
|
name: "classroom_posts_addon_submissions_get",
|
|
1058
1058
|
cud: "read",
|
|
@@ -1061,7 +1061,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1061
1061
|
params: [{ "field": "attachmentId", "api": "attachmentId", "location": "path" }, { "field": "courseId", "api": "courseId", "location": "path" }, { "field": "postId", "api": "postId", "location": "path" }, { "field": "submissionId", "api": "submissionId", "location": "path" }, { "field": "itemId", "api": "itemId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1062
1062
|
hasBody: false,
|
|
1063
1063
|
shape: {
|
|
1064
|
-
account: accountField(),
|
|
1064
|
+
account: accountField(() => registry.accountAliases()),
|
|
1065
1065
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
1066
1066
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
1067
1067
|
postId: z.string().min(1).describe("Optional. Deprecated, use `item_id` instead."),
|
|
@@ -1069,7 +1069,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1069
1069
|
itemId: z.string().describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id.").optional(),
|
|
1070
1070
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1071
1071
|
},
|
|
1072
|
-
});
|
|
1072
|
+
}, deps);
|
|
1073
1073
|
registerGeneratedTool(registry, {
|
|
1074
1074
|
name: "classroom_posts_addon_submissions_patch",
|
|
1075
1075
|
cud: "update",
|
|
@@ -1079,7 +1079,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1079
1079
|
hasBody: true,
|
|
1080
1080
|
bodyParams: [{ "field": "courseWorkSubmissionId", "api": "courseWorkSubmissionId" }, { "field": "id", "api": "id" }, { "field": "pointsEarned", "api": "pointsEarned" }, { "field": "postSubmissionState", "api": "postSubmissionState" }, { "field": "userId", "api": "userId" }],
|
|
1081
1081
|
shape: {
|
|
1082
|
-
account: accountField(),
|
|
1082
|
+
account: accountField(() => registry.accountAliases()),
|
|
1083
1083
|
attachmentId: z.string().min(1).describe("Required. Identifier of the attachment."),
|
|
1084
1084
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
1085
1085
|
postId: z.string().min(1).describe("Optional. Deprecated, use `item_id` instead."),
|
|
@@ -1093,7 +1093,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1093
1093
|
userId: z.string().describe("Identifier for the student that owns this submission. Requires the user to be a teacher in the course and have permission to read student submissions. See [`courseWork.studentSubmissions.get`](/worksp").optional(),
|
|
1094
1094
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1095
1095
|
},
|
|
1096
|
-
});
|
|
1096
|
+
}, deps);
|
|
1097
1097
|
registerGeneratedTool(registry, {
|
|
1098
1098
|
name: "classroom_courses_posts_get_add_on_context",
|
|
1099
1099
|
cud: "read",
|
|
@@ -1102,7 +1102,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1102
1102
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "postId", "api": "postId", "location": "path" }, { "field": "addOnToken", "api": "addOnToken", "location": "query" }, { "field": "attachmentId", "api": "attachmentId", "location": "query" }, { "field": "itemId", "api": "itemId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1103
1103
|
hasBody: false,
|
|
1104
1104
|
shape: {
|
|
1105
|
-
account: accountField(),
|
|
1105
|
+
account: accountField(() => registry.accountAliases()),
|
|
1106
1106
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
1107
1107
|
postId: z.string().min(1).describe("Optional. Deprecated, use `item_id` instead."),
|
|
1108
1108
|
addOnToken: z.string().describe("Optional. Token that authorizes the request. The token is passed as a query parameter when the user is redirected from Classroom to the add-on's URL. The authorization token is required when neither o").optional(),
|
|
@@ -1110,7 +1110,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1110
1110
|
itemId: z.string().describe("Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. This field is required, but is not marked as such while we are migrating from post_id.").optional(),
|
|
1111
1111
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1112
1112
|
},
|
|
1113
|
-
});
|
|
1113
|
+
}, deps);
|
|
1114
1114
|
registerGeneratedTool(registry, {
|
|
1115
1115
|
name: "classroom_courses_student_groups_create",
|
|
1116
1116
|
cud: "create",
|
|
@@ -1120,14 +1120,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1120
1120
|
hasBody: true,
|
|
1121
1121
|
bodyParams: [{ "field": "courseId_", "api": "courseId" }, { "field": "id", "api": "id" }, { "field": "title", "api": "title" }],
|
|
1122
1122
|
shape: {
|
|
1123
|
-
account: accountField(),
|
|
1123
|
+
account: accountField(() => registry.accountAliases()),
|
|
1124
1124
|
courseId: z.string().min(1).describe("Required. The identifier of the course."),
|
|
1125
1125
|
courseId_: z.string().describe("The identifier of the course.").optional(),
|
|
1126
1126
|
id: z.string().describe("The identifier of the student group.").optional(),
|
|
1127
1127
|
title: z.string().describe("The title of the student group.").optional(),
|
|
1128
1128
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1129
1129
|
},
|
|
1130
|
-
});
|
|
1130
|
+
}, deps);
|
|
1131
1131
|
registerGeneratedTool(registry, {
|
|
1132
1132
|
name: "classroom_courses_student_groups_delete",
|
|
1133
1133
|
cud: "delete",
|
|
@@ -1136,12 +1136,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1136
1136
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1137
1137
|
hasBody: false,
|
|
1138
1138
|
shape: {
|
|
1139
|
-
account: accountField(),
|
|
1139
|
+
account: accountField(() => registry.accountAliases()),
|
|
1140
1140
|
courseId: z.string().min(1).describe("Required. The identifier of the course containing the student group to delete."),
|
|
1141
1141
|
id: z.string().min(1).describe("Required. The identifier of the student group to delete."),
|
|
1142
1142
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1143
1143
|
},
|
|
1144
|
-
});
|
|
1144
|
+
}, deps);
|
|
1145
1145
|
registerGeneratedTool(registry, {
|
|
1146
1146
|
name: "classroom_courses_student_groups_list",
|
|
1147
1147
|
cud: "read",
|
|
@@ -1150,13 +1150,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1150
1150
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1151
1151
|
hasBody: false,
|
|
1152
1152
|
shape: {
|
|
1153
|
-
account: accountField(),
|
|
1153
|
+
account: accountField(() => registry.accountAliases()),
|
|
1154
1154
|
courseId: z.string().min(1).describe("Required. The identifier of the course."),
|
|
1155
1155
|
pageSize: z.number().describe("Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum, which is currently set to 75 items. The server may return fewer than the specified number of resu").optional(),
|
|
1156
1156
|
pageToken: z.string().describe("nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this").optional(),
|
|
1157
1157
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1158
1158
|
},
|
|
1159
|
-
});
|
|
1159
|
+
}, deps);
|
|
1160
1160
|
registerGeneratedTool(registry, {
|
|
1161
1161
|
name: "classroom_courses_student_groups_patch",
|
|
1162
1162
|
cud: "update",
|
|
@@ -1166,7 +1166,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1166
1166
|
hasBody: true,
|
|
1167
1167
|
bodyParams: [{ "field": "courseId_", "api": "courseId" }, { "field": "id_", "api": "id" }, { "field": "title", "api": "title" }],
|
|
1168
1168
|
shape: {
|
|
1169
|
-
account: accountField(),
|
|
1169
|
+
account: accountField(() => registry.accountAliases()),
|
|
1170
1170
|
courseId: z.string().min(1).describe("Required. Identifier of the course."),
|
|
1171
1171
|
id: z.string().min(1).describe("Required. Identifier of the student group."),
|
|
1172
1172
|
updateMask: z.string().describe("Required. Mask that identifies which fields on the student group to update. This field is required to do an update. The update fails if invalid fields are specified. The following fields can be specif").optional(),
|
|
@@ -1175,7 +1175,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1175
1175
|
title: z.string().describe("The title of the student group.").optional(),
|
|
1176
1176
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1177
1177
|
},
|
|
1178
|
-
});
|
|
1178
|
+
}, deps);
|
|
1179
1179
|
registerGeneratedTool(registry, {
|
|
1180
1180
|
name: "classroom_courses_student_groups_student_group_members_create",
|
|
1181
1181
|
cud: "create",
|
|
@@ -1185,7 +1185,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1185
1185
|
hasBody: true,
|
|
1186
1186
|
bodyParams: [{ "field": "courseId_", "api": "courseId" }, { "field": "studentGroupId_", "api": "studentGroupId" }, { "field": "userId", "api": "userId" }],
|
|
1187
1187
|
shape: {
|
|
1188
|
-
account: accountField(),
|
|
1188
|
+
account: accountField(() => registry.accountAliases()),
|
|
1189
1189
|
courseId: z.string().min(1).describe("Required. The identifier of the course."),
|
|
1190
1190
|
studentGroupId: z.string().min(1).describe("Required. The identifier of the student group."),
|
|
1191
1191
|
courseId_: z.string().describe("The identifier of the course.").optional(),
|
|
@@ -1193,7 +1193,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1193
1193
|
userId: z.string().describe("Identifier of the student.").optional(),
|
|
1194
1194
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1195
1195
|
},
|
|
1196
|
-
});
|
|
1196
|
+
}, deps);
|
|
1197
1197
|
registerGeneratedTool(registry, {
|
|
1198
1198
|
name: "classroom_courses_student_groups_student_group_members_delete",
|
|
1199
1199
|
cud: "delete",
|
|
@@ -1202,13 +1202,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1202
1202
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "studentGroupId", "api": "studentGroupId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1203
1203
|
hasBody: false,
|
|
1204
1204
|
shape: {
|
|
1205
|
-
account: accountField(),
|
|
1205
|
+
account: accountField(() => registry.accountAliases()),
|
|
1206
1206
|
courseId: z.string().min(1).describe("Required. The identifier of the course containing the relevant student group."),
|
|
1207
1207
|
studentGroupId: z.string().min(1).describe("Required. The identifier of the student group containing the student group member to delete."),
|
|
1208
1208
|
userId: z.string().min(1).describe("Required. The identifier of the student group member to delete."),
|
|
1209
1209
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1210
1210
|
},
|
|
1211
|
-
});
|
|
1211
|
+
}, deps);
|
|
1212
1212
|
registerGeneratedTool(registry, {
|
|
1213
1213
|
name: "classroom_courses_student_groups_student_group_members_list",
|
|
1214
1214
|
cud: "read",
|
|
@@ -1217,14 +1217,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1217
1217
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "studentGroupId", "api": "studentGroupId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1218
1218
|
hasBody: false,
|
|
1219
1219
|
shape: {
|
|
1220
|
-
account: accountField(),
|
|
1220
|
+
account: accountField(() => registry.accountAliases()),
|
|
1221
1221
|
courseId: z.string().min(1).describe("Required. The identifier of the course."),
|
|
1222
1222
|
studentGroupId: z.string().min(1).describe("Required. The identifier of the student group."),
|
|
1223
1223
|
pageSize: z.number().describe("Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results.").optional(),
|
|
1224
1224
|
pageToken: z.string().describe("nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this").optional(),
|
|
1225
1225
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1226
1226
|
},
|
|
1227
|
-
});
|
|
1227
|
+
}, deps);
|
|
1228
1228
|
registerGeneratedTool(registry, {
|
|
1229
1229
|
name: "classroom_courses_students_create",
|
|
1230
1230
|
cud: "create",
|
|
@@ -1233,13 +1233,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1233
1233
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "enrollmentCode", "api": "enrollmentCode", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1234
1234
|
hasBody: true,
|
|
1235
1235
|
shape: {
|
|
1236
|
-
account: accountField(),
|
|
1236
|
+
account: accountField(() => registry.accountAliases()),
|
|
1237
1237
|
courseId: z.string().min(1).describe("Identifier of the course to create the student in. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
1238
1238
|
enrollmentCode: z.string().describe("Enrollment code of the course to create the student in. This code is required if userId corresponds to the requesting user; it may be omitted if the requesting user has administrative permissions to c").optional(),
|
|
1239
1239
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Student JSON request body. Top-level fields: courseId, profile, studentWorkFolder, userId."),
|
|
1240
1240
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1241
1241
|
},
|
|
1242
|
-
});
|
|
1242
|
+
}, deps);
|
|
1243
1243
|
registerGeneratedTool(registry, {
|
|
1244
1244
|
name: "classroom_courses_students_delete",
|
|
1245
1245
|
cud: "delete",
|
|
@@ -1248,12 +1248,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1248
1248
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1249
1249
|
hasBody: false,
|
|
1250
1250
|
shape: {
|
|
1251
|
-
account: accountField(),
|
|
1251
|
+
account: accountField(() => registry.accountAliases()),
|
|
1252
1252
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
1253
1253
|
userId: z.string().min(1).describe("Identifier of the student to delete. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `\"me\"`, indicating the reque"),
|
|
1254
1254
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1255
1255
|
},
|
|
1256
|
-
});
|
|
1256
|
+
}, deps);
|
|
1257
1257
|
registerGeneratedTool(registry, {
|
|
1258
1258
|
name: "classroom_courses_students_get",
|
|
1259
1259
|
cud: "read",
|
|
@@ -1262,12 +1262,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1262
1262
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1263
1263
|
hasBody: false,
|
|
1264
1264
|
shape: {
|
|
1265
|
-
account: accountField(),
|
|
1265
|
+
account: accountField(() => registry.accountAliases()),
|
|
1266
1266
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
1267
1267
|
userId: z.string().min(1).describe("Identifier of the student to return. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `\"me\"`, indicating the reque"),
|
|
1268
1268
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1269
1269
|
},
|
|
1270
|
-
});
|
|
1270
|
+
}, deps);
|
|
1271
1271
|
registerGeneratedTool(registry, {
|
|
1272
1272
|
name: "classroom_courses_students_list",
|
|
1273
1273
|
cud: "read",
|
|
@@ -1276,13 +1276,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1276
1276
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1277
1277
|
hasBody: false,
|
|
1278
1278
|
shape: {
|
|
1279
|
-
account: accountField(),
|
|
1279
|
+
account: accountField(() => registry.accountAliases()),
|
|
1280
1280
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
1281
1281
|
pageSize: z.number().describe("Maximum number of items to return. The default is 30 if unspecified or `0`. The server may return fewer than the specified number of results.").optional(),
|
|
1282
1282
|
pageToken: z.string().describe("nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this").optional(),
|
|
1283
1283
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1284
1284
|
},
|
|
1285
|
-
});
|
|
1285
|
+
}, deps);
|
|
1286
1286
|
registerGeneratedTool(registry, {
|
|
1287
1287
|
name: "classroom_courses_teachers_create",
|
|
1288
1288
|
cud: "create",
|
|
@@ -1291,12 +1291,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1291
1291
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1292
1292
|
hasBody: true,
|
|
1293
1293
|
shape: {
|
|
1294
|
-
account: accountField(),
|
|
1294
|
+
account: accountField(() => registry.accountAliases()),
|
|
1295
1295
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
1296
1296
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Teacher JSON request body. Top-level fields: courseId, profile, userId."),
|
|
1297
1297
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1298
1298
|
},
|
|
1299
|
-
});
|
|
1299
|
+
}, deps);
|
|
1300
1300
|
registerGeneratedTool(registry, {
|
|
1301
1301
|
name: "classroom_courses_teachers_delete",
|
|
1302
1302
|
cud: "delete",
|
|
@@ -1305,12 +1305,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1305
1305
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1306
1306
|
hasBody: false,
|
|
1307
1307
|
shape: {
|
|
1308
|
-
account: accountField(),
|
|
1308
|
+
account: accountField(() => registry.accountAliases()),
|
|
1309
1309
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
1310
1310
|
userId: z.string().min(1).describe("Identifier of the teacher to delete. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `\"me\"`, indicating the reque"),
|
|
1311
1311
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1312
1312
|
},
|
|
1313
|
-
});
|
|
1313
|
+
}, deps);
|
|
1314
1314
|
registerGeneratedTool(registry, {
|
|
1315
1315
|
name: "classroom_courses_teachers_get",
|
|
1316
1316
|
cud: "read",
|
|
@@ -1319,12 +1319,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1319
1319
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1320
1320
|
hasBody: false,
|
|
1321
1321
|
shape: {
|
|
1322
|
-
account: accountField(),
|
|
1322
|
+
account: accountField(() => registry.accountAliases()),
|
|
1323
1323
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
1324
1324
|
userId: z.string().min(1).describe("Identifier of the teacher to return. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `\"me\"`, indicating the reque"),
|
|
1325
1325
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1326
1326
|
},
|
|
1327
|
-
});
|
|
1327
|
+
}, deps);
|
|
1328
1328
|
registerGeneratedTool(registry, {
|
|
1329
1329
|
name: "classroom_courses_teachers_list",
|
|
1330
1330
|
cud: "read",
|
|
@@ -1333,13 +1333,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1333
1333
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1334
1334
|
hasBody: false,
|
|
1335
1335
|
shape: {
|
|
1336
|
-
account: accountField(),
|
|
1336
|
+
account: accountField(() => registry.accountAliases()),
|
|
1337
1337
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
1338
1338
|
pageSize: z.number().describe("Maximum number of items to return. The default is 30 if unspecified or `0`. The server may return fewer than the specified number of results.").optional(),
|
|
1339
1339
|
pageToken: z.string().describe("nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this").optional(),
|
|
1340
1340
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1341
1341
|
},
|
|
1342
|
-
});
|
|
1342
|
+
}, deps);
|
|
1343
1343
|
registerGeneratedTool(registry, {
|
|
1344
1344
|
name: "classroom_courses_topics_create",
|
|
1345
1345
|
cud: "create",
|
|
@@ -1349,7 +1349,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1349
1349
|
hasBody: true,
|
|
1350
1350
|
bodyParams: [{ "field": "courseId_", "api": "courseId" }, { "field": "name", "api": "name" }, { "field": "topicId", "api": "topicId" }, { "field": "updateTime", "api": "updateTime" }],
|
|
1351
1351
|
shape: {
|
|
1352
|
-
account: accountField(),
|
|
1352
|
+
account: accountField(() => registry.accountAliases()),
|
|
1353
1353
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
1354
1354
|
courseId_: z.string().describe("Identifier of the course. Read-only.").optional(),
|
|
1355
1355
|
name: z.string().describe("The name of the topic, generated by the user. Leading and trailing whitespaces, if any, are trimmed. Also, multiple consecutive whitespaces are collapsed into one inside the name. The result must be a").optional(),
|
|
@@ -1357,7 +1357,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1357
1357
|
updateTime: z.string().describe("The time the topic was last updated by the system. Read-only.").optional(),
|
|
1358
1358
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1359
1359
|
},
|
|
1360
|
-
});
|
|
1360
|
+
}, deps);
|
|
1361
1361
|
registerGeneratedTool(registry, {
|
|
1362
1362
|
name: "classroom_courses_topics_delete",
|
|
1363
1363
|
cud: "delete",
|
|
@@ -1366,12 +1366,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1366
1366
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1367
1367
|
hasBody: false,
|
|
1368
1368
|
shape: {
|
|
1369
|
-
account: accountField(),
|
|
1369
|
+
account: accountField(() => registry.accountAliases()),
|
|
1370
1370
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
1371
1371
|
id: z.string().min(1).describe("Identifier of the topic to delete."),
|
|
1372
1372
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1373
1373
|
},
|
|
1374
|
-
});
|
|
1374
|
+
}, deps);
|
|
1375
1375
|
registerGeneratedTool(registry, {
|
|
1376
1376
|
name: "classroom_courses_topics_get",
|
|
1377
1377
|
cud: "read",
|
|
@@ -1380,12 +1380,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1380
1380
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1381
1381
|
hasBody: false,
|
|
1382
1382
|
shape: {
|
|
1383
|
-
account: accountField(),
|
|
1383
|
+
account: accountField(() => registry.accountAliases()),
|
|
1384
1384
|
courseId: z.string().min(1).describe("Identifier of the course."),
|
|
1385
1385
|
id: z.string().min(1).describe("Identifier of the topic."),
|
|
1386
1386
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1387
1387
|
},
|
|
1388
|
-
});
|
|
1388
|
+
}, deps);
|
|
1389
1389
|
registerGeneratedTool(registry, {
|
|
1390
1390
|
name: "classroom_courses_topics_list",
|
|
1391
1391
|
cud: "read",
|
|
@@ -1394,13 +1394,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1394
1394
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1395
1395
|
hasBody: false,
|
|
1396
1396
|
shape: {
|
|
1397
|
-
account: accountField(),
|
|
1397
|
+
account: accountField(() => registry.accountAliases()),
|
|
1398
1398
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
1399
1399
|
pageSize: z.number().describe("Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results.").optional(),
|
|
1400
1400
|
pageToken: z.string().describe("nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this").optional(),
|
|
1401
1401
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1402
1402
|
},
|
|
1403
|
-
});
|
|
1403
|
+
}, deps);
|
|
1404
1404
|
registerGeneratedTool(registry, {
|
|
1405
1405
|
name: "classroom_courses_topics_patch",
|
|
1406
1406
|
cud: "update",
|
|
@@ -1410,7 +1410,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1410
1410
|
hasBody: true,
|
|
1411
1411
|
bodyParams: [{ "field": "courseId_", "api": "courseId" }, { "field": "name", "api": "name" }, { "field": "topicId", "api": "topicId" }, { "field": "updateTime", "api": "updateTime" }],
|
|
1412
1412
|
shape: {
|
|
1413
|
-
account: accountField(),
|
|
1413
|
+
account: accountField(() => registry.accountAliases()),
|
|
1414
1414
|
courseId: z.string().min(1).describe("Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
1415
1415
|
id: z.string().min(1).describe("Identifier of the topic."),
|
|
1416
1416
|
updateMask: z.string().describe("Mask that identifies which fields on the topic to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it can be cleared ").optional(),
|
|
@@ -1420,7 +1420,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1420
1420
|
updateTime: z.string().describe("The time the topic was last updated by the system. Read-only.").optional(),
|
|
1421
1421
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1422
1422
|
},
|
|
1423
|
-
});
|
|
1423
|
+
}, deps);
|
|
1424
1424
|
registerGeneratedTool(registry, {
|
|
1425
1425
|
name: "classroom_courses_update",
|
|
1426
1426
|
cud: "update",
|
|
@@ -1429,12 +1429,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1429
1429
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1430
1430
|
hasBody: true,
|
|
1431
1431
|
shape: {
|
|
1432
|
-
account: accountField(),
|
|
1432
|
+
account: accountField(() => registry.accountAliases()),
|
|
1433
1433
|
id: z.string().min(1).describe("Identifier of the course to update. This identifier can be either the Classroom-assigned identifier or an alias."),
|
|
1434
1434
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Course JSON request body. Top-level fields: alternateLink, calendarId, courseGroupEmail, courseMaterialSets, courseState, creationTime, description, descriptionHeading, enrollmentCode, gradebookSettings, guardiansEnabled, id, +9 more."),
|
|
1435
1435
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1436
1436
|
},
|
|
1437
|
-
});
|
|
1437
|
+
}, deps);
|
|
1438
1438
|
registerGeneratedTool(registry, {
|
|
1439
1439
|
name: "classroom_courses_update_grading_period_settings",
|
|
1440
1440
|
cud: "update",
|
|
@@ -1443,13 +1443,13 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1443
1443
|
params: [{ "field": "courseId", "api": "courseId", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1444
1444
|
hasBody: true,
|
|
1445
1445
|
shape: {
|
|
1446
|
-
account: accountField(),
|
|
1446
|
+
account: accountField(() => registry.accountAliases()),
|
|
1447
1447
|
courseId: z.string().min(1).describe("Required. The identifier of the course."),
|
|
1448
1448
|
updateMask: z.string().describe("Mask that identifies which fields in the GradingPeriodSettings to update. The GradingPeriodSettings `grading_periods` list will be fully replaced by the grading periods specified in the update request").optional(),
|
|
1449
1449
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GradingPeriodSettings JSON request body. Top-level fields: applyToExistingCoursework, gradingPeriods."),
|
|
1450
1450
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1451
1451
|
},
|
|
1452
|
-
});
|
|
1452
|
+
}, deps);
|
|
1453
1453
|
registerGeneratedTool(registry, {
|
|
1454
1454
|
name: "classroom_invitations_accept",
|
|
1455
1455
|
cud: "update",
|
|
@@ -1458,11 +1458,11 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1458
1458
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1459
1459
|
hasBody: false,
|
|
1460
1460
|
shape: {
|
|
1461
|
-
account: accountField(),
|
|
1461
|
+
account: accountField(() => registry.accountAliases()),
|
|
1462
1462
|
id: z.string().min(1).describe("Identifier of the invitation to accept."),
|
|
1463
1463
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1464
1464
|
},
|
|
1465
|
-
});
|
|
1465
|
+
}, deps);
|
|
1466
1466
|
registerGeneratedTool(registry, {
|
|
1467
1467
|
name: "classroom_invitations_create",
|
|
1468
1468
|
cud: "create",
|
|
@@ -1472,14 +1472,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1472
1472
|
hasBody: true,
|
|
1473
1473
|
bodyParams: [{ "field": "courseId", "api": "courseId" }, { "field": "id", "api": "id" }, { "field": "role", "api": "role" }, { "field": "userId", "api": "userId" }],
|
|
1474
1474
|
shape: {
|
|
1475
|
-
account: accountField(),
|
|
1475
|
+
account: accountField(() => registry.accountAliases()),
|
|
1476
1476
|
courseId: z.string().describe("Identifier of the course to invite the user to.").optional(),
|
|
1477
1477
|
id: z.string().describe("Identifier assigned by Classroom. Read-only.").optional(),
|
|
1478
1478
|
role: z.enum(["COURSE_ROLE_UNSPECIFIED", "STUDENT", "TEACHER", "OWNER"]).describe("Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`.").optional(),
|
|
1479
1479
|
userId: z.string().describe("Identifier of the invited user. When specified as a parameter of a request, this identifier can be set to one of the following: * the numeric identifier for the user * the email address of the user * ").optional(),
|
|
1480
1480
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1481
1481
|
},
|
|
1482
|
-
});
|
|
1482
|
+
}, deps);
|
|
1483
1483
|
registerGeneratedTool(registry, {
|
|
1484
1484
|
name: "classroom_invitations_delete",
|
|
1485
1485
|
cud: "delete",
|
|
@@ -1488,11 +1488,11 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1488
1488
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1489
1489
|
hasBody: false,
|
|
1490
1490
|
shape: {
|
|
1491
|
-
account: accountField(),
|
|
1491
|
+
account: accountField(() => registry.accountAliases()),
|
|
1492
1492
|
id: z.string().min(1).describe("Identifier of the invitation to delete."),
|
|
1493
1493
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1494
1494
|
},
|
|
1495
|
-
});
|
|
1495
|
+
}, deps);
|
|
1496
1496
|
registerGeneratedTool(registry, {
|
|
1497
1497
|
name: "classroom_invitations_get",
|
|
1498
1498
|
cud: "read",
|
|
@@ -1501,11 +1501,11 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1501
1501
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1502
1502
|
hasBody: false,
|
|
1503
1503
|
shape: {
|
|
1504
|
-
account: accountField(),
|
|
1504
|
+
account: accountField(() => registry.accountAliases()),
|
|
1505
1505
|
id: z.string().min(1).describe("Identifier of the invitation to return."),
|
|
1506
1506
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1507
1507
|
},
|
|
1508
|
-
});
|
|
1508
|
+
}, deps);
|
|
1509
1509
|
registerGeneratedTool(registry, {
|
|
1510
1510
|
name: "classroom_invitations_list",
|
|
1511
1511
|
cud: "read",
|
|
@@ -1514,14 +1514,14 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1514
1514
|
params: [{ "field": "courseId", "api": "courseId", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "userId", "api": "userId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1515
1515
|
hasBody: false,
|
|
1516
1516
|
shape: {
|
|
1517
|
-
account: accountField(),
|
|
1517
|
+
account: accountField(() => registry.accountAliases()),
|
|
1518
1518
|
courseId: z.string().describe("Restricts returned invitations to those for a course with the specified identifier.").optional(),
|
|
1519
1519
|
pageSize: z.number().describe("Maximum number of items to return. The default is 500 if unspecified or `0`. The server may return fewer than the specified number of results.").optional(),
|
|
1520
1520
|
pageToken: z.string().describe("nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this").optional(),
|
|
1521
1521
|
userId: z.string().describe("Restricts returned invitations to those for a specific user. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `\"me").optional(),
|
|
1522
1522
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1523
1523
|
},
|
|
1524
|
-
});
|
|
1524
|
+
}, deps);
|
|
1525
1525
|
registerGeneratedTool(registry, {
|
|
1526
1526
|
name: "classroom_registrations_create",
|
|
1527
1527
|
cud: "create",
|
|
@@ -1530,11 +1530,11 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1530
1530
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
1531
1531
|
hasBody: true,
|
|
1532
1532
|
shape: {
|
|
1533
|
-
account: accountField(),
|
|
1533
|
+
account: accountField(() => registry.accountAliases()),
|
|
1534
1534
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Registration JSON request body. Top-level fields: cloudPubsubTopic, expiryTime, feed, registrationId."),
|
|
1535
1535
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1536
1536
|
},
|
|
1537
|
-
});
|
|
1537
|
+
}, deps);
|
|
1538
1538
|
registerGeneratedTool(registry, {
|
|
1539
1539
|
name: "classroom_registrations_delete",
|
|
1540
1540
|
cud: "delete",
|
|
@@ -1543,11 +1543,11 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1543
1543
|
params: [{ "field": "registrationId", "api": "registrationId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1544
1544
|
hasBody: false,
|
|
1545
1545
|
shape: {
|
|
1546
|
-
account: accountField(),
|
|
1546
|
+
account: accountField(() => registry.accountAliases()),
|
|
1547
1547
|
registrationId: z.string().min(1).describe("The `registration_id` of the `Registration` to be deleted."),
|
|
1548
1548
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1549
1549
|
},
|
|
1550
|
-
});
|
|
1550
|
+
}, deps);
|
|
1551
1551
|
registerGeneratedTool(registry, {
|
|
1552
1552
|
name: "classroom_user_profiles_get",
|
|
1553
1553
|
cud: "read",
|
|
@@ -1556,11 +1556,11 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1556
1556
|
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1557
1557
|
hasBody: false,
|
|
1558
1558
|
shape: {
|
|
1559
|
-
account: accountField(),
|
|
1559
|
+
account: accountField(() => registry.accountAliases()),
|
|
1560
1560
|
userId: z.string().min(1).describe("Identifier of the profile to return. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `\"me\"`, indicating the reque"),
|
|
1561
1561
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1562
1562
|
},
|
|
1563
|
-
});
|
|
1563
|
+
}, deps);
|
|
1564
1564
|
registerGeneratedTool(registry, {
|
|
1565
1565
|
name: "classroom_user_profiles_guardian_invitations_create",
|
|
1566
1566
|
cud: "create",
|
|
@@ -1570,7 +1570,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1570
1570
|
hasBody: true,
|
|
1571
1571
|
bodyParams: [{ "field": "creationTime", "api": "creationTime" }, { "field": "invitationId", "api": "invitationId" }, { "field": "invitedEmailAddress", "api": "invitedEmailAddress" }, { "field": "state", "api": "state" }, { "field": "studentId_", "api": "studentId" }],
|
|
1572
1572
|
shape: {
|
|
1573
|
-
account: accountField(),
|
|
1573
|
+
account: accountField(() => registry.accountAliases()),
|
|
1574
1574
|
studentId: z.string().min(1).describe("ID of the student (in standard format)"),
|
|
1575
1575
|
creationTime: z.string().describe("The time that this invitation was created. Read-only.").optional(),
|
|
1576
1576
|
invitationId: z.string().describe("Unique identifier for this invitation. Read-only.").optional(),
|
|
@@ -1579,7 +1579,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1579
1579
|
studentId_: z.string().describe("ID of the student (in standard format)").optional(),
|
|
1580
1580
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1581
1581
|
},
|
|
1582
|
-
});
|
|
1582
|
+
}, deps);
|
|
1583
1583
|
registerGeneratedTool(registry, {
|
|
1584
1584
|
name: "classroom_user_profiles_guardian_invitations_get",
|
|
1585
1585
|
cud: "read",
|
|
@@ -1588,12 +1588,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1588
1588
|
params: [{ "field": "invitationId", "api": "invitationId", "location": "path" }, { "field": "studentId", "api": "studentId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1589
1589
|
hasBody: false,
|
|
1590
1590
|
shape: {
|
|
1591
|
-
account: accountField(),
|
|
1591
|
+
account: accountField(() => registry.accountAliases()),
|
|
1592
1592
|
invitationId: z.string().min(1).describe("The `id` field of the `GuardianInvitation` being requested."),
|
|
1593
1593
|
studentId: z.string().min(1).describe("The ID of the student whose guardian invitation is being requested."),
|
|
1594
1594
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1595
1595
|
},
|
|
1596
|
-
});
|
|
1596
|
+
}, deps);
|
|
1597
1597
|
registerGeneratedTool(registry, {
|
|
1598
1598
|
name: "classroom_user_profiles_guardian_invitations_list",
|
|
1599
1599
|
cud: "read",
|
|
@@ -1602,7 +1602,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1602
1602
|
params: [{ "field": "studentId", "api": "studentId", "location": "path" }, { "field": "invitedEmailAddress", "api": "invitedEmailAddress", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "states", "api": "states", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1603
1603
|
hasBody: false,
|
|
1604
1604
|
shape: {
|
|
1605
|
-
account: accountField(),
|
|
1605
|
+
account: accountField(() => registry.accountAliases()),
|
|
1606
1606
|
studentId: z.string().min(1).describe("The ID of the student whose guardian invitations are to be returned. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string lite"),
|
|
1607
1607
|
invitedEmailAddress: z.string().describe("If specified, only results with the specified `invited_email_address` are returned.").optional(),
|
|
1608
1608
|
pageSize: z.number().describe("Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results.").optional(),
|
|
@@ -1610,7 +1610,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1610
1610
|
states: coerceArray(z.enum(["GUARDIAN_INVITATION_STATE_UNSPECIFIED", "PENDING", "COMPLETE"])).describe("If specified, only results with the specified `state` values are returned. Otherwise, results with a `state` of `PENDING` are returned.").optional(),
|
|
1611
1611
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1612
1612
|
},
|
|
1613
|
-
});
|
|
1613
|
+
}, deps);
|
|
1614
1614
|
registerGeneratedTool(registry, {
|
|
1615
1615
|
name: "classroom_user_profiles_guardian_invitations_patch",
|
|
1616
1616
|
cud: "update",
|
|
@@ -1620,7 +1620,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1620
1620
|
hasBody: true,
|
|
1621
1621
|
bodyParams: [{ "field": "creationTime", "api": "creationTime" }, { "field": "invitationId_", "api": "invitationId" }, { "field": "invitedEmailAddress", "api": "invitedEmailAddress" }, { "field": "state", "api": "state" }, { "field": "studentId_", "api": "studentId" }],
|
|
1622
1622
|
shape: {
|
|
1623
|
-
account: accountField(),
|
|
1623
|
+
account: accountField(() => registry.accountAliases()),
|
|
1624
1624
|
invitationId: z.string().min(1).describe("The `id` field of the `GuardianInvitation` to be modified."),
|
|
1625
1625
|
studentId: z.string().min(1).describe("The ID of the student whose guardian invitation is to be modified."),
|
|
1626
1626
|
updateMask: z.string().describe("Mask that identifies which fields on the course to update. This field is required to do an update. The update fails if invalid fields are specified. The following fields are valid: * `state` When set ").optional(),
|
|
@@ -1631,7 +1631,7 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1631
1631
|
studentId_: z.string().describe("ID of the student (in standard format)").optional(),
|
|
1632
1632
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1633
1633
|
},
|
|
1634
|
-
});
|
|
1634
|
+
}, deps);
|
|
1635
1635
|
registerGeneratedTool(registry, {
|
|
1636
1636
|
name: "classroom_user_profiles_guardians_delete",
|
|
1637
1637
|
cud: "delete",
|
|
@@ -1640,12 +1640,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1640
1640
|
params: [{ "field": "guardianId", "api": "guardianId", "location": "path" }, { "field": "studentId", "api": "studentId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1641
1641
|
hasBody: false,
|
|
1642
1642
|
shape: {
|
|
1643
|
-
account: accountField(),
|
|
1643
|
+
account: accountField(() => registry.accountAliases()),
|
|
1644
1644
|
guardianId: z.string().min(1).describe("The `id` field from a `Guardian`."),
|
|
1645
1645
|
studentId: z.string().min(1).describe("The student whose guardian is to be deleted. One of the following: * the numeric identifier for the user * the email address of the user * the string literal `\"me\"`, indicating the requesting user"),
|
|
1646
1646
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1647
1647
|
},
|
|
1648
|
-
});
|
|
1648
|
+
}, deps);
|
|
1649
1649
|
registerGeneratedTool(registry, {
|
|
1650
1650
|
name: "classroom_user_profiles_guardians_get",
|
|
1651
1651
|
cud: "read",
|
|
@@ -1654,12 +1654,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1654
1654
|
params: [{ "field": "guardianId", "api": "guardianId", "location": "path" }, { "field": "studentId", "api": "studentId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1655
1655
|
hasBody: false,
|
|
1656
1656
|
shape: {
|
|
1657
|
-
account: accountField(),
|
|
1657
|
+
account: accountField(() => registry.accountAliases()),
|
|
1658
1658
|
guardianId: z.string().min(1).describe("The `id` field from a `Guardian`."),
|
|
1659
1659
|
studentId: z.string().min(1).describe("The student whose guardian is being requested. One of the following: * the numeric identifier for the user * the email address of the user * the string literal `\"me\"`, indicating the requesting user"),
|
|
1660
1660
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1661
1661
|
},
|
|
1662
|
-
});
|
|
1662
|
+
}, deps);
|
|
1663
1663
|
registerGeneratedTool(registry, {
|
|
1664
1664
|
name: "classroom_user_profiles_guardians_list",
|
|
1665
1665
|
cud: "read",
|
|
@@ -1668,12 +1668,12 @@ export function registerClassroomGeneratedTools(registry) {
|
|
|
1668
1668
|
params: [{ "field": "studentId", "api": "studentId", "location": "path" }, { "field": "invitedEmailAddress", "api": "invitedEmailAddress", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1669
1669
|
hasBody: false,
|
|
1670
1670
|
shape: {
|
|
1671
|
-
account: accountField(),
|
|
1671
|
+
account: accountField(() => registry.accountAliases()),
|
|
1672
1672
|
studentId: z.string().min(1).describe("Filter results by the student who the guardian is linked to. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `\"me"),
|
|
1673
1673
|
invitedEmailAddress: z.string().describe("Filter results by the email address that the original invitation was sent to, resulting in this guardian link. This filter can only be used by domain administrators.").optional(),
|
|
1674
1674
|
pageSize: z.number().describe("Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results.").optional(),
|
|
1675
1675
|
pageToken: z.string().describe("nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this").optional(),
|
|
1676
1676
|
fields: z.string().optional().describe('Response field mask.'),
|
|
1677
1677
|
},
|
|
1678
|
-
});
|
|
1678
|
+
}, deps);
|
|
1679
1679
|
}
|