mcp-google-multi 5.2.0-alpha.2 → 5.2.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/auth.js +33 -0
  2. package/dist/discovery-client.js +13 -0
  3. package/dist/index.js +25 -3
  4. package/dist/tools/generated/admin.d.ts +2 -0
  5. package/dist/tools/generated/admin.js +1937 -0
  6. package/dist/tools/generated/appsmarket.d.ts +2 -0
  7. package/dist/tools/generated/appsmarket.js +33 -0
  8. package/dist/tools/generated/calendar.d.ts +2 -0
  9. package/dist/tools/generated/calendar.js +428 -0
  10. package/dist/tools/generated/chat.d.ts +2 -0
  11. package/dist/tools/generated/chat.js +666 -0
  12. package/dist/tools/generated/classroom.d.ts +2 -0
  13. package/dist/tools/generated/classroom.js +1610 -0
  14. package/dist/tools/generated/cloudidentity.d.ts +2 -0
  15. package/dist/tools/generated/cloudidentity.js +955 -0
  16. package/dist/tools/generated/cloudsearch.d.ts +2 -0
  17. package/dist/tools/generated/cloudsearch.js +754 -0
  18. package/dist/tools/generated/contacts.d.ts +2 -0
  19. package/dist/tools/generated/contacts.js +215 -0
  20. package/dist/tools/generated/drive.d.ts +2 -0
  21. package/dist/tools/generated/drive.js +543 -0
  22. package/dist/tools/generated/driveactivity.d.ts +2 -0
  23. package/dist/tools/generated/driveactivity.js +19 -0
  24. package/dist/tools/generated/drivelabels.d.ts +2 -0
  25. package/dist/tools/generated/drivelabels.js +389 -0
  26. package/dist/tools/generated/forms.d.ts +2 -0
  27. package/dist/tools/generated/forms.js +49 -0
  28. package/dist/tools/generated/gmail.d.ts +2 -0
  29. package/dist/tools/generated/gmail.js +835 -0
  30. package/dist/tools/generated/groupsmigration.d.ts +2 -0
  31. package/dist/tools/generated/groupsmigration.js +18 -0
  32. package/dist/tools/generated/groupssettings.d.ts +2 -0
  33. package/dist/tools/generated/groupssettings.js +47 -0
  34. package/dist/tools/generated/index.js +50 -0
  35. package/dist/tools/generated/keep.d.ts +2 -0
  36. package/dist/tools/generated/keep.js +102 -0
  37. package/dist/tools/generated/licensing.d.ts +2 -0
  38. package/dist/tools/generated/licensing.js +116 -0
  39. package/dist/tools/generated/meet.d.ts +2 -0
  40. package/dist/tools/generated/meet.js +186 -0
  41. package/dist/tools/generated/postmaster.d.ts +2 -0
  42. package/dist/tools/generated/postmaster.js +66 -0
  43. package/dist/tools/generated/reseller.d.ts +2 -0
  44. package/dist/tools/generated/reseller.js +249 -0
  45. package/dist/tools/generated/script.d.ts +2 -0
  46. package/dist/tools/generated/script.js +249 -0
  47. package/dist/tools/generated/searchconsole.d.ts +2 -0
  48. package/dist/tools/generated/searchconsole.js +19 -0
  49. package/dist/tools/generated/sheets.d.ts +2 -0
  50. package/dist/tools/generated/sheets.js +105 -0
  51. package/dist/tools/generated/vault.d.ts +2 -0
  52. package/dist/tools/generated/vault.js +479 -0
  53. package/dist/tools/generated/workspaceevents.d.ts +2 -0
  54. package/dist/tools/generated/workspaceevents.js +223 -0
  55. package/dist/tools/google-api.js +1 -0
  56. package/package.json +1 -1
@@ -0,0 +1,66 @@
1
+ // GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
2
+ import { z } from 'zod';
3
+ import { accountField, registerGeneratedTool } from './_shared.js';
4
+ export function registerPostmasterGeneratedTools(registry) {
5
+ registerGeneratedTool(registry, {
6
+ name: "postmaster_domains_get",
7
+ cud: "read",
8
+ description: "Gets a specific domain registered by the client. Returns NOT_FOUND if the domain does not exist.",
9
+ method: { id: "gmailpostmastertools.domains.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://gmailpostmastertools.googleapis.com/", requiredParams: ["name"] },
10
+ params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
11
+ hasBody: false,
12
+ shape: {
13
+ account: accountField(),
14
+ name: z.string().describe("The resource name of the domain. It should have the form `domains/{domain_name}`, where domain_name is the fully qualified domain name."),
15
+ fields: z.string().optional().describe('Response field mask.'),
16
+ },
17
+ });
18
+ registerGeneratedTool(registry, {
19
+ name: "postmaster_domains_list",
20
+ cud: "read",
21
+ description: "Lists the domains that have been registered by the client. The order of domains in the response is unspecified and non-deterministic. Newly created domains will",
22
+ method: { id: "gmailpostmastertools.domains.list", httpMethod: "GET", path: "v1/domains", baseUrl: "https://gmailpostmastertools.googleapis.com/", requiredParams: [] },
23
+ params: [{ "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
24
+ hasBody: false,
25
+ shape: {
26
+ account: accountField(),
27
+ pageSize: z.number().describe("Requested page size. Server may return fewer domains than requested. If unspecified, server will pick an appropriate default.").optional(),
28
+ pageToken: z.string().describe("The next_page_token value returned from a previous List request, if any. This is the value of ListDomainsResponse.next_page_token returned from the previous call to `ListDomains` method.").optional(),
29
+ fields: z.string().optional().describe('Response field mask.'),
30
+ },
31
+ });
32
+ registerGeneratedTool(registry, {
33
+ name: "postmaster_domains_traffic_stats_get",
34
+ cud: "read",
35
+ description: "Get traffic statistics for a domain on a specific date. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain.",
36
+ method: { id: "gmailpostmastertools.domains.trafficStats.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://gmailpostmastertools.googleapis.com/", requiredParams: ["name"] },
37
+ params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
38
+ hasBody: false,
39
+ shape: {
40
+ account: accountField(),
41
+ name: z.string().describe("The resource name of the traffic statistics to get. E.g., domains/mymail.mydomain.com/trafficStats/20160807."),
42
+ fields: z.string().optional().describe('Response field mask.'),
43
+ },
44
+ });
45
+ registerGeneratedTool(registry, {
46
+ name: "postmaster_domains_traffic_stats_list",
47
+ cud: "read",
48
+ description: "List traffic statistics for all available days. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain.",
49
+ method: { id: "gmailpostmastertools.domains.trafficStats.list", httpMethod: "GET", path: "v1/{+parent}/trafficStats", baseUrl: "https://gmailpostmastertools.googleapis.com/", requiredParams: ["parent"] },
50
+ params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "endDate.day", "api": "endDate.day", "location": "query" }, { "field": "endDate.month", "api": "endDate.month", "location": "query" }, { "field": "endDate.year", "api": "endDate.year", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "startDate.day", "api": "startDate.day", "location": "query" }, { "field": "startDate.month", "api": "startDate.month", "location": "query" }, { "field": "startDate.year", "api": "startDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
51
+ hasBody: false,
52
+ shape: {
53
+ account: accountField(),
54
+ parent: z.string().describe("The resource name of the domain whose traffic statistics we'd like to list. It should have the form `domains/{domain_name}`, where domain_name is the fully qualified domain name."),
55
+ "endDate.day": z.number().describe("Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.").optional(),
56
+ "endDate.month": z.number().describe("Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.").optional(),
57
+ "endDate.year": z.number().describe("Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.").optional(),
58
+ pageSize: z.number().describe("Requested page size. Server may return fewer TrafficStats than requested. If unspecified, server will pick an appropriate default.").optional(),
59
+ pageToken: z.string().describe("The next_page_token value returned from a previous List request, if any. This is the value of ListTrafficStatsResponse.next_page_token returned from the previous call to `ListTrafficStats` method.").optional(),
60
+ "startDate.day": z.number().describe("Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.").optional(),
61
+ "startDate.month": z.number().describe("Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.").optional(),
62
+ "startDate.year": z.number().describe("Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.").optional(),
63
+ fields: z.string().optional().describe('Response field mask.'),
64
+ },
65
+ });
66
+ }
@@ -0,0 +1,2 @@
1
+ import type { ToolRegistry } from '../../registry.js';
2
+ export declare function registerResellerGeneratedTools(registry: ToolRegistry): void;
@@ -0,0 +1,249 @@
1
+ // GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
2
+ import { z } from 'zod';
3
+ import { coerceJson } from '../_coerce.js';
4
+ import { accountField, registerGeneratedTool } from './_shared.js';
5
+ export function registerResellerGeneratedTools(registry) {
6
+ registerGeneratedTool(registry, {
7
+ name: "reseller_customers_get",
8
+ cud: "read",
9
+ description: "Gets a customer account. Use this operation to see a customer account already in your reseller management, or to see the minimal account information for an exis",
10
+ method: { id: "reseller.customers.get", httpMethod: "GET", path: "apps/reseller/v1/customers/{customerId}", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId"] },
11
+ params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
12
+ hasBody: false,
13
+ shape: {
14
+ account: accountField(),
15
+ customerId: z.string().describe("This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the"),
16
+ fields: z.string().optional().describe('Response field mask.'),
17
+ },
18
+ });
19
+ registerGeneratedTool(registry, {
20
+ name: "reseller_customers_insert",
21
+ cud: "create",
22
+ description: "Orders a new customer's account. Before ordering a new customer account, establish whether the customer account already exists using the [`customers.get`](https",
23
+ method: { id: "reseller.customers.insert", httpMethod: "POST", path: "apps/reseller/v1/customers", baseUrl: "https://reseller.googleapis.com/", requiredParams: [] },
24
+ params: [{ "field": "customerAuthToken", "api": "customerAuthToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
25
+ hasBody: true,
26
+ shape: {
27
+ account: accountField(),
28
+ customerAuthToken: z.string().describe("The `customerAuthToken` query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller m").optional(),
29
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Customer JSON request body. Top-level fields: alternateEmail, customerDomain, customerDomainVerified, customerId, customerType, kind, phoneNumber, postalAddress, primaryAdmin, resourceUiUrl."),
30
+ fields: z.string().optional().describe('Response field mask.'),
31
+ },
32
+ });
33
+ registerGeneratedTool(registry, {
34
+ name: "reseller_customers_patch",
35
+ cud: "update",
36
+ description: "Updates a customer account's settings. This method supports patch semantics. You cannot update `customerType` via the Reseller API, but a `\"team\"` customer can",
37
+ method: { id: "reseller.customers.patch", httpMethod: "PATCH", path: "apps/reseller/v1/customers/{customerId}", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId"] },
38
+ params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
39
+ hasBody: true,
40
+ shape: {
41
+ account: accountField(),
42
+ customerId: z.string().describe("This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the"),
43
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Customer JSON request body. Top-level fields: alternateEmail, customerDomain, customerDomainVerified, customerId, customerType, kind, phoneNumber, postalAddress, primaryAdmin, resourceUiUrl."),
44
+ fields: z.string().optional().describe('Response field mask.'),
45
+ },
46
+ });
47
+ registerGeneratedTool(registry, {
48
+ name: "reseller_customers_update",
49
+ cud: "update",
50
+ description: "Updates a customer account's settings. You cannot update `customerType` via the Reseller API, but a `\"team\"` customer can verify their domain and become `custom",
51
+ method: { id: "reseller.customers.update", httpMethod: "PUT", path: "apps/reseller/v1/customers/{customerId}", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId"] },
52
+ params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
53
+ hasBody: true,
54
+ shape: {
55
+ account: accountField(),
56
+ customerId: z.string().describe("This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the"),
57
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Customer JSON request body. Top-level fields: alternateEmail, customerDomain, customerDomainVerified, customerId, customerType, kind, phoneNumber, postalAddress, primaryAdmin, resourceUiUrl."),
58
+ fields: z.string().optional().describe('Response field mask.'),
59
+ },
60
+ });
61
+ registerGeneratedTool(registry, {
62
+ name: "reseller_resellernotify_getwatchdetails",
63
+ cud: "read",
64
+ description: "Returns all the details of the watch corresponding to the reseller.",
65
+ method: { id: "reseller.resellernotify.getwatchdetails", httpMethod: "GET", path: "apps/reseller/v1/resellernotify/getwatchdetails", baseUrl: "https://reseller.googleapis.com/", requiredParams: [] },
66
+ params: [{ "field": "fields", "api": "fields", "location": "query" }],
67
+ hasBody: false,
68
+ shape: {
69
+ account: accountField(),
70
+ fields: z.string().optional().describe('Response field mask.'),
71
+ },
72
+ });
73
+ registerGeneratedTool(registry, {
74
+ name: "reseller_resellernotify_register",
75
+ cud: "create",
76
+ description: "Registers a Reseller for receiving notifications.",
77
+ method: { id: "reseller.resellernotify.register", httpMethod: "POST", path: "apps/reseller/v1/resellernotify/register", baseUrl: "https://reseller.googleapis.com/", requiredParams: [] },
78
+ params: [{ "field": "serviceAccountEmailAddress", "api": "serviceAccountEmailAddress", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
79
+ hasBody: false,
80
+ shape: {
81
+ account: accountField(),
82
+ serviceAccountEmailAddress: z.string().describe("The service account which will own the created Cloud-PubSub topic.").optional(),
83
+ fields: z.string().optional().describe('Response field mask.'),
84
+ },
85
+ });
86
+ registerGeneratedTool(registry, {
87
+ name: "reseller_resellernotify_unregister",
88
+ cud: "create",
89
+ description: "Unregisters a Reseller for receiving notifications.",
90
+ method: { id: "reseller.resellernotify.unregister", httpMethod: "POST", path: "apps/reseller/v1/resellernotify/unregister", baseUrl: "https://reseller.googleapis.com/", requiredParams: [] },
91
+ params: [{ "field": "serviceAccountEmailAddress", "api": "serviceAccountEmailAddress", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
92
+ hasBody: false,
93
+ shape: {
94
+ account: accountField(),
95
+ serviceAccountEmailAddress: z.string().describe("The service account which owns the Cloud-PubSub topic.").optional(),
96
+ fields: z.string().optional().describe('Response field mask.'),
97
+ },
98
+ });
99
+ registerGeneratedTool(registry, {
100
+ name: "reseller_subscriptions_activate",
101
+ cud: "create",
102
+ description: "Activates a subscription previously suspended by the reseller. If you did not suspend the customer subscription and it is suspended for any other reason, such a",
103
+ method: { id: "reseller.subscriptions.activate", httpMethod: "POST", path: "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId", "subscriptionId"] },
104
+ params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
105
+ hasBody: false,
106
+ shape: {
107
+ account: accountField(),
108
+ customerId: z.string().describe("This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the"),
109
+ subscriptionId: z.string().describe("This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not u"),
110
+ fields: z.string().optional().describe('Response field mask.'),
111
+ },
112
+ });
113
+ registerGeneratedTool(registry, {
114
+ name: "reseller_subscriptions_change_plan",
115
+ cud: "create",
116
+ description: "Updates a subscription plan. Use this method to update a plan for a 30-day trial or a flexible plan subscription to an annual commitment plan with monthly or ye",
117
+ method: { id: "reseller.subscriptions.changePlan", httpMethod: "POST", path: "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId", "subscriptionId"] },
118
+ params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
119
+ hasBody: true,
120
+ shape: {
121
+ account: accountField(),
122
+ customerId: z.string().describe("This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the"),
123
+ subscriptionId: z.string().describe("This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not u"),
124
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("ChangePlanRequest JSON request body. Top-level fields: dealCode, kind, planName, purchaseOrderId, seats."),
125
+ fields: z.string().optional().describe('Response field mask.'),
126
+ },
127
+ });
128
+ registerGeneratedTool(registry, {
129
+ name: "reseller_subscriptions_change_renewal_settings",
130
+ cud: "create",
131
+ description: "Updates a user license's renewal settings. This is applicable for accounts with annual commitment plans only. For more information, see the description in [mana",
132
+ method: { id: "reseller.subscriptions.changeRenewalSettings", httpMethod: "POST", path: "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId", "subscriptionId"] },
133
+ params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
134
+ hasBody: true,
135
+ shape: {
136
+ account: accountField(),
137
+ customerId: z.string().describe("This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the"),
138
+ subscriptionId: z.string().describe("This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not u"),
139
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("RenewalSettings JSON request body. Top-level fields: kind, renewalType."),
140
+ fields: z.string().optional().describe('Response field mask.'),
141
+ },
142
+ });
143
+ registerGeneratedTool(registry, {
144
+ name: "reseller_subscriptions_change_seats",
145
+ cud: "create",
146
+ description: "Updates a subscription's user license settings. For more information about updating an annual commitment plan or a flexible plan subscription’s licenses, see [M",
147
+ method: { id: "reseller.subscriptions.changeSeats", httpMethod: "POST", path: "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId", "subscriptionId"] },
148
+ params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
149
+ hasBody: true,
150
+ shape: {
151
+ account: accountField(),
152
+ customerId: z.string().describe("This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the"),
153
+ subscriptionId: z.string().describe("This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not u"),
154
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Seats JSON request body. Top-level fields: kind, licensedNumberOfSeats, maximumNumberOfSeats, numberOfSeats."),
155
+ fields: z.string().optional().describe('Response field mask.'),
156
+ },
157
+ });
158
+ registerGeneratedTool(registry, {
159
+ name: "reseller_subscriptions_delete",
160
+ cud: "delete",
161
+ description: "Cancels, suspends, or transfers a subscription to direct.",
162
+ method: { id: "reseller.subscriptions.delete", httpMethod: "DELETE", path: "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId", "subscriptionId", "deletionType"] },
163
+ params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "deletionType", "api": "deletionType", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
164
+ hasBody: false,
165
+ shape: {
166
+ account: accountField(),
167
+ customerId: z.string().describe("This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the"),
168
+ subscriptionId: z.string().describe("This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not u"),
169
+ deletionType: z.enum(["deletion_type_undefined", "cancel", "transfer_to_direct"]).describe("The `deletionType` query string enables the cancellation, downgrade, or suspension of a subscription."),
170
+ fields: z.string().optional().describe('Response field mask.'),
171
+ },
172
+ });
173
+ registerGeneratedTool(registry, {
174
+ name: "reseller_subscriptions_get",
175
+ cud: "read",
176
+ description: "Gets a specific subscription. The `subscriptionId` can be found using the [Retrieve all reseller subscriptions](https://developers.google.com/workspace/admin/re",
177
+ method: { id: "reseller.subscriptions.get", httpMethod: "GET", path: "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId", "subscriptionId"] },
178
+ params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
179
+ hasBody: false,
180
+ shape: {
181
+ account: accountField(),
182
+ customerId: z.string().describe("This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the"),
183
+ subscriptionId: z.string().describe("This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not u"),
184
+ fields: z.string().optional().describe('Response field mask.'),
185
+ },
186
+ });
187
+ registerGeneratedTool(registry, {
188
+ name: "reseller_subscriptions_insert",
189
+ cud: "create",
190
+ description: "Creates or transfer a subscription. Create a subscription for a customer's account that you ordered using the [Order a new customer account](https://developers.",
191
+ method: { id: "reseller.subscriptions.insert", httpMethod: "POST", path: "apps/reseller/v1/customers/{customerId}/subscriptions", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId"] },
192
+ params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "action", "api": "action", "location": "query" }, { "field": "customerAuthToken", "api": "customerAuthToken", "location": "query" }, { "field": "sourceSkuId", "api": "sourceSkuId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
193
+ hasBody: true,
194
+ shape: {
195
+ account: accountField(),
196
+ customerId: z.string().describe("This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the"),
197
+ action: z.enum(["actionUnspecified", "buy", "switch"]).describe("The intented insert action. Advised to set this when the customer already has a subscription for a different SKU in the same product.").optional(),
198
+ customerAuthToken: z.string().describe("The `customerAuthToken` query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller m").optional(),
199
+ sourceSkuId: z.string().describe("The sku_id of the existing subscription to be upgraded or downgraded. This is required when action is SWITCH.").optional(),
200
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Subscription JSON request body. Top-level fields: billingMethod, creationTime, customerDomain, customerId, dealCode, kind, plan, purchaseOrderId, renewalSettings, resourceUiUrl, seats, skuId, +6 more."),
201
+ fields: z.string().optional().describe('Response field mask.'),
202
+ },
203
+ });
204
+ registerGeneratedTool(registry, {
205
+ name: "reseller_subscriptions_list",
206
+ cud: "read",
207
+ description: "Lists of subscriptions managed by the reseller. The list can be all subscriptions, all of a customer's subscriptions, or all of a customer's transferable subscr",
208
+ method: { id: "reseller.subscriptions.list", httpMethod: "GET", path: "apps/reseller/v1/subscriptions", baseUrl: "https://reseller.googleapis.com/", requiredParams: [] },
209
+ params: [{ "field": "customerAuthToken", "api": "customerAuthToken", "location": "query" }, { "field": "customerId", "api": "customerId", "location": "query" }, { "field": "customerNamePrefix", "api": "customerNamePrefix", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
210
+ hasBody: false,
211
+ shape: {
212
+ account: accountField(),
213
+ customerAuthToken: z.string().describe("The `customerAuthToken` query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller m").optional(),
214
+ customerId: z.string().describe("This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the").optional(),
215
+ customerNamePrefix: z.string().describe("When retrieving all of your subscriptions and filtering for specific customers, you can enter a prefix for a customer name. Using an example customer group that includes `exam.com`, `example20.com` an").optional(),
216
+ maxResults: z.number().describe("When retrieving a large list, the `maxResults` is the maximum number of results per page. The `nextPageToken` value takes you to the next page. The default is 20.").optional(),
217
+ pageToken: z.string().describe("Token to specify next page in the list").optional(),
218
+ fields: z.string().optional().describe('Response field mask.'),
219
+ },
220
+ });
221
+ registerGeneratedTool(registry, {
222
+ name: "reseller_subscriptions_start_paid_service",
223
+ cud: "create",
224
+ description: "Immediately move a 30-day free trial subscription to a paid service subscription. This method is only applicable if a payment plan has already been set up for t",
225
+ method: { id: "reseller.subscriptions.startPaidService", httpMethod: "POST", path: "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId", "subscriptionId"] },
226
+ params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
227
+ hasBody: false,
228
+ shape: {
229
+ account: accountField(),
230
+ customerId: z.string().describe("This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the"),
231
+ subscriptionId: z.string().describe("This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not u"),
232
+ fields: z.string().optional().describe('Response field mask.'),
233
+ },
234
+ });
235
+ registerGeneratedTool(registry, {
236
+ name: "reseller_subscriptions_suspend",
237
+ cud: "create",
238
+ description: "Suspends an active subscription. You can use this method to suspend a paid subscription that is currently in the `ACTIVE` state. * For `FLEXIBLE` subscriptions,",
239
+ method: { id: "reseller.subscriptions.suspend", httpMethod: "POST", path: "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId", "subscriptionId"] },
240
+ params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
241
+ hasBody: false,
242
+ shape: {
243
+ account: accountField(),
244
+ customerId: z.string().describe("This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the"),
245
+ subscriptionId: z.string().describe("This is a required property. The `subscriptionId` is the subscription identifier and is unique for each customer. Since a `subscriptionId` changes when a subscription is updated, we recommend to not u"),
246
+ fields: z.string().optional().describe('Response field mask.'),
247
+ },
248
+ });
249
+ }
@@ -0,0 +1,2 @@
1
+ import type { ToolRegistry } from '../../registry.js';
2
+ export declare function registerScriptGeneratedTools(registry: ToolRegistry): void;
@@ -0,0 +1,249 @@
1
+ // GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
2
+ import { z } from 'zod';
3
+ import { coerceArray, coerceJson } from '../_coerce.js';
4
+ import { accountField, registerGeneratedTool } from './_shared.js';
5
+ export function registerScriptGeneratedTools(registry) {
6
+ registerGeneratedTool(registry, {
7
+ name: "script_processes_list",
8
+ cud: "read",
9
+ description: "List information about processes made by or on behalf of a user, such as process type and current status.",
10
+ method: { id: "script.processes.list", httpMethod: "GET", path: "v1/processes", baseUrl: "https://script.googleapis.com/", requiredParams: [] },
11
+ params: [{ "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "userProcessFilter.deploymentId", "api": "userProcessFilter.deploymentId", "location": "query" }, { "field": "userProcessFilter.endTime", "api": "userProcessFilter.endTime", "location": "query" }, { "field": "userProcessFilter.functionName", "api": "userProcessFilter.functionName", "location": "query" }, { "field": "userProcessFilter.projectName", "api": "userProcessFilter.projectName", "location": "query" }, { "field": "userProcessFilter.scriptId", "api": "userProcessFilter.scriptId", "location": "query" }, { "field": "userProcessFilter.startTime", "api": "userProcessFilter.startTime", "location": "query" }, { "field": "userProcessFilter.statuses", "api": "userProcessFilter.statuses", "location": "query" }, { "field": "userProcessFilter.types", "api": "userProcessFilter.types", "location": "query" }, { "field": "userProcessFilter.userAccessLevels", "api": "userProcessFilter.userAccessLevels", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
12
+ hasBody: false,
13
+ shape: {
14
+ account: accountField(),
15
+ pageSize: z.number().describe("The maximum number of returned processes per page of results. Defaults to 50.").optional(),
16
+ pageToken: z.string().describe("The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response.").optional(),
17
+ "userProcessFilter.deploymentId": z.string().describe("Optional field used to limit returned processes to those originating from projects with a specific deployment ID.").optional(),
18
+ "userProcessFilter.endTime": z.string().describe("Optional field used to limit returned processes to those that completed on or before the given timestamp.").optional(),
19
+ "userProcessFilter.functionName": z.string().describe("Optional field used to limit returned processes to those originating from a script function with the given function name.").optional(),
20
+ "userProcessFilter.projectName": z.string().describe("Optional field used to limit returned processes to those originating from projects with project names containing a specific string.").optional(),
21
+ "userProcessFilter.scriptId": z.string().describe("Optional field used to limit returned processes to those originating from projects with a specific script ID.").optional(),
22
+ "userProcessFilter.startTime": z.string().describe("Optional field used to limit returned processes to those that were started on or after the given timestamp.").optional(),
23
+ "userProcessFilter.statuses": coerceArray(z.enum(["PROCESS_STATUS_UNSPECIFIED", "RUNNING", "PAUSED", "COMPLETED", "CANCELED", "FAILED", "TIMED_OUT", "UNKNOWN", "DELAYED", "EXECUTION_DISABLED"])).describe("Optional field used to limit returned processes to those having one of the specified process statuses.").optional(),
24
+ "userProcessFilter.types": coerceArray(z.enum(["PROCESS_TYPE_UNSPECIFIED", "ADD_ON", "EXECUTION_API", "TIME_DRIVEN", "TRIGGER", "WEBAPP", "EDITOR", "SIMPLE_TRIGGER", "MENU", "BATCH_TASK"])).describe("Optional field used to limit returned processes to those having one of the specified process types.").optional(),
25
+ "userProcessFilter.userAccessLevels": coerceArray(z.enum(["USER_ACCESS_LEVEL_UNSPECIFIED", "NONE", "READ", "WRITE", "OWNER"])).describe("Optional field used to limit returned processes to those having one of the specified user access levels.").optional(),
26
+ fields: z.string().optional().describe('Response field mask.'),
27
+ },
28
+ });
29
+ registerGeneratedTool(registry, {
30
+ name: "script_processes_list_script_processes",
31
+ cud: "read",
32
+ description: "List information about a script's executed processes, such as process type and current status.",
33
+ method: { id: "script.processes.listScriptProcesses", httpMethod: "GET", path: "v1/processes:listScriptProcesses", baseUrl: "https://script.googleapis.com/", requiredParams: [] },
34
+ params: [{ "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "scriptId", "api": "scriptId", "location": "query" }, { "field": "scriptProcessFilter.deploymentId", "api": "scriptProcessFilter.deploymentId", "location": "query" }, { "field": "scriptProcessFilter.endTime", "api": "scriptProcessFilter.endTime", "location": "query" }, { "field": "scriptProcessFilter.functionName", "api": "scriptProcessFilter.functionName", "location": "query" }, { "field": "scriptProcessFilter.startTime", "api": "scriptProcessFilter.startTime", "location": "query" }, { "field": "scriptProcessFilter.statuses", "api": "scriptProcessFilter.statuses", "location": "query" }, { "field": "scriptProcessFilter.types", "api": "scriptProcessFilter.types", "location": "query" }, { "field": "scriptProcessFilter.userAccessLevels", "api": "scriptProcessFilter.userAccessLevels", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
35
+ hasBody: false,
36
+ shape: {
37
+ account: accountField(),
38
+ pageSize: z.number().describe("The maximum number of returned processes per page of results. Defaults to 50.").optional(),
39
+ pageToken: z.string().describe("The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response.").optional(),
40
+ scriptId: z.string().describe("The script ID of the project whose processes are listed.").optional(),
41
+ "scriptProcessFilter.deploymentId": z.string().describe("Optional field used to limit returned processes to those originating from projects with a specific deployment ID.").optional(),
42
+ "scriptProcessFilter.endTime": z.string().describe("Optional field used to limit returned processes to those that completed on or before the given timestamp.").optional(),
43
+ "scriptProcessFilter.functionName": z.string().describe("Optional field used to limit returned processes to those originating from a script function with the given function name.").optional(),
44
+ "scriptProcessFilter.startTime": z.string().describe("Optional field used to limit returned processes to those that were started on or after the given timestamp.").optional(),
45
+ "scriptProcessFilter.statuses": coerceArray(z.enum(["PROCESS_STATUS_UNSPECIFIED", "RUNNING", "PAUSED", "COMPLETED", "CANCELED", "FAILED", "TIMED_OUT", "UNKNOWN", "DELAYED", "EXECUTION_DISABLED"])).describe("Optional field used to limit returned processes to those having one of the specified process statuses.").optional(),
46
+ "scriptProcessFilter.types": coerceArray(z.enum(["PROCESS_TYPE_UNSPECIFIED", "ADD_ON", "EXECUTION_API", "TIME_DRIVEN", "TRIGGER", "WEBAPP", "EDITOR", "SIMPLE_TRIGGER", "MENU", "BATCH_TASK"])).describe("Optional field used to limit returned processes to those having one of the specified process types.").optional(),
47
+ "scriptProcessFilter.userAccessLevels": coerceArray(z.enum(["USER_ACCESS_LEVEL_UNSPECIFIED", "NONE", "READ", "WRITE", "OWNER"])).describe("Optional field used to limit returned processes to those having one of the specified user access levels.").optional(),
48
+ fields: z.string().optional().describe('Response field mask.'),
49
+ },
50
+ });
51
+ registerGeneratedTool(registry, {
52
+ name: "script_projects_create",
53
+ cud: "create",
54
+ description: "Creates a new, empty script project with no script files and a base manifest file.",
55
+ method: { id: "script.projects.create", httpMethod: "POST", path: "v1/projects", baseUrl: "https://script.googleapis.com/", requiredParams: [] },
56
+ params: [{ "field": "fields", "api": "fields", "location": "query" }],
57
+ hasBody: true,
58
+ shape: {
59
+ account: accountField(),
60
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("CreateProjectRequest JSON request body. Top-level fields: parentId, title."),
61
+ fields: z.string().optional().describe('Response field mask.'),
62
+ },
63
+ });
64
+ registerGeneratedTool(registry, {
65
+ name: "script_projects_deployments_create",
66
+ cud: "create",
67
+ description: "Creates a deployment of an Apps Script project.",
68
+ method: { id: "script.projects.deployments.create", httpMethod: "POST", path: "v1/projects/{scriptId}/deployments", baseUrl: "https://script.googleapis.com/", requiredParams: ["scriptId"] },
69
+ params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
70
+ hasBody: true,
71
+ shape: {
72
+ account: accountField(),
73
+ scriptId: z.string().describe("The script project's Drive ID."),
74
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("DeploymentConfig JSON request body. Top-level fields: description, manifestFileName, scriptId, versionNumber."),
75
+ fields: z.string().optional().describe('Response field mask.'),
76
+ },
77
+ });
78
+ registerGeneratedTool(registry, {
79
+ name: "script_projects_deployments_delete",
80
+ cud: "delete",
81
+ description: "Deletes a deployment of an Apps Script project.",
82
+ method: { id: "script.projects.deployments.delete", httpMethod: "DELETE", path: "v1/projects/{scriptId}/deployments/{deploymentId}", baseUrl: "https://script.googleapis.com/", requiredParams: ["scriptId", "deploymentId"] },
83
+ params: [{ "field": "deploymentId", "api": "deploymentId", "location": "path" }, { "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
84
+ hasBody: false,
85
+ shape: {
86
+ account: accountField(),
87
+ deploymentId: z.string().describe("The deployment ID to be undeployed."),
88
+ scriptId: z.string().describe("The script project's Drive ID."),
89
+ fields: z.string().optional().describe('Response field mask.'),
90
+ },
91
+ });
92
+ registerGeneratedTool(registry, {
93
+ name: "script_projects_deployments_get",
94
+ cud: "read",
95
+ description: "Gets a deployment of an Apps Script project.",
96
+ method: { id: "script.projects.deployments.get", httpMethod: "GET", path: "v1/projects/{scriptId}/deployments/{deploymentId}", baseUrl: "https://script.googleapis.com/", requiredParams: ["scriptId", "deploymentId"] },
97
+ params: [{ "field": "deploymentId", "api": "deploymentId", "location": "path" }, { "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
98
+ hasBody: false,
99
+ shape: {
100
+ account: accountField(),
101
+ deploymentId: z.string().describe("The deployment ID."),
102
+ scriptId: z.string().describe("The script project's Drive ID."),
103
+ fields: z.string().optional().describe('Response field mask.'),
104
+ },
105
+ });
106
+ registerGeneratedTool(registry, {
107
+ name: "script_projects_deployments_list",
108
+ cud: "read",
109
+ description: "Lists the deployments of an Apps Script project.",
110
+ method: { id: "script.projects.deployments.list", httpMethod: "GET", path: "v1/projects/{scriptId}/deployments", baseUrl: "https://script.googleapis.com/", requiredParams: ["scriptId"] },
111
+ params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
112
+ hasBody: false,
113
+ shape: {
114
+ account: accountField(),
115
+ scriptId: z.string().describe("The script project's Drive ID."),
116
+ pageSize: z.number().describe("The maximum number of deployments on each returned page. Defaults to 50.").optional(),
117
+ pageToken: z.string().describe("The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response.").optional(),
118
+ fields: z.string().optional().describe('Response field mask.'),
119
+ },
120
+ });
121
+ registerGeneratedTool(registry, {
122
+ name: "script_projects_deployments_update",
123
+ cud: "update",
124
+ description: "Updates a deployment of an Apps Script project.",
125
+ method: { id: "script.projects.deployments.update", httpMethod: "PUT", path: "v1/projects/{scriptId}/deployments/{deploymentId}", baseUrl: "https://script.googleapis.com/", requiredParams: ["scriptId", "deploymentId"] },
126
+ params: [{ "field": "deploymentId", "api": "deploymentId", "location": "path" }, { "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
127
+ hasBody: true,
128
+ shape: {
129
+ account: accountField(),
130
+ deploymentId: z.string().describe("The deployment ID for this deployment."),
131
+ scriptId: z.string().describe("The script project's Drive ID."),
132
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("UpdateDeploymentRequest JSON request body. Top-level fields: deploymentConfig."),
133
+ fields: z.string().optional().describe('Response field mask.'),
134
+ },
135
+ });
136
+ registerGeneratedTool(registry, {
137
+ name: "script_projects_get",
138
+ cud: "read",
139
+ description: "Gets a script project's metadata.",
140
+ method: { id: "script.projects.get", httpMethod: "GET", path: "v1/projects/{scriptId}", baseUrl: "https://script.googleapis.com/", requiredParams: ["scriptId"] },
141
+ params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
142
+ hasBody: false,
143
+ shape: {
144
+ account: accountField(),
145
+ scriptId: z.string().describe("The script project's Drive ID."),
146
+ fields: z.string().optional().describe('Response field mask.'),
147
+ },
148
+ });
149
+ registerGeneratedTool(registry, {
150
+ name: "script_projects_get_content",
151
+ cud: "read",
152
+ description: "Gets the content of the script project, including the code source and metadata for each script file.",
153
+ method: { id: "script.projects.getContent", httpMethod: "GET", path: "v1/projects/{scriptId}/content", baseUrl: "https://script.googleapis.com/", requiredParams: ["scriptId"] },
154
+ params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "versionNumber", "api": "versionNumber", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
155
+ hasBody: false,
156
+ shape: {
157
+ account: accountField(),
158
+ scriptId: z.string().describe("The script project's Drive ID."),
159
+ versionNumber: z.number().describe("The version number of the project to retrieve. If not provided, the project's HEAD version is returned.").optional(),
160
+ fields: z.string().optional().describe('Response field mask.'),
161
+ },
162
+ });
163
+ registerGeneratedTool(registry, {
164
+ name: "script_projects_get_metrics",
165
+ cud: "read",
166
+ description: "Get metrics data for scripts, such as number of executions and active users.",
167
+ method: { id: "script.projects.getMetrics", httpMethod: "GET", path: "v1/projects/{scriptId}/metrics", baseUrl: "https://script.googleapis.com/", requiredParams: ["scriptId"] },
168
+ params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "metricsFilter.deploymentId", "api": "metricsFilter.deploymentId", "location": "query" }, { "field": "metricsGranularity", "api": "metricsGranularity", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
169
+ hasBody: false,
170
+ shape: {
171
+ account: accountField(),
172
+ scriptId: z.string().describe("Required field indicating the script to get metrics for."),
173
+ "metricsFilter.deploymentId": z.string().describe("Optional field indicating a specific deployment to retrieve metrics from.").optional(),
174
+ metricsGranularity: z.enum(["UNSPECIFIED_GRANULARITY", "WEEKLY", "DAILY"]).describe("Required field indicating what granularity of metrics are returned.").optional(),
175
+ fields: z.string().optional().describe('Response field mask.'),
176
+ },
177
+ });
178
+ registerGeneratedTool(registry, {
179
+ name: "script_projects_update_content",
180
+ cud: "update",
181
+ description: "Updates the content of the specified script project. This content is stored as the HEAD version, and is used when the script is executed as a trigger, in the sc",
182
+ method: { id: "script.projects.updateContent", httpMethod: "PUT", path: "v1/projects/{scriptId}/content", baseUrl: "https://script.googleapis.com/", requiredParams: ["scriptId"] },
183
+ params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
184
+ hasBody: true,
185
+ shape: {
186
+ account: accountField(),
187
+ scriptId: z.string().describe("The script project's Drive ID."),
188
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Content JSON request body. Top-level fields: files, scriptId."),
189
+ fields: z.string().optional().describe('Response field mask.'),
190
+ },
191
+ });
192
+ registerGeneratedTool(registry, {
193
+ name: "script_projects_versions_create",
194
+ cud: "create",
195
+ description: "Creates a new immutable version using the current code, with a unique version number.",
196
+ method: { id: "script.projects.versions.create", httpMethod: "POST", path: "v1/projects/{scriptId}/versions", baseUrl: "https://script.googleapis.com/", requiredParams: ["scriptId"] },
197
+ params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
198
+ hasBody: true,
199
+ shape: {
200
+ account: accountField(),
201
+ scriptId: z.string().describe("The script project's Drive ID."),
202
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Version JSON request body. Top-level fields: createTime, description, scriptId, versionNumber."),
203
+ fields: z.string().optional().describe('Response field mask.'),
204
+ },
205
+ });
206
+ registerGeneratedTool(registry, {
207
+ name: "script_projects_versions_get",
208
+ cud: "read",
209
+ description: "Gets a version of a script project.",
210
+ method: { id: "script.projects.versions.get", httpMethod: "GET", path: "v1/projects/{scriptId}/versions/{versionNumber}", baseUrl: "https://script.googleapis.com/", requiredParams: ["versionNumber", "scriptId"] },
211
+ params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "versionNumber", "api": "versionNumber", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
212
+ hasBody: false,
213
+ shape: {
214
+ account: accountField(),
215
+ scriptId: z.string().describe("The script project's Drive ID."),
216
+ versionNumber: z.number().describe("The version number."),
217
+ fields: z.string().optional().describe('Response field mask.'),
218
+ },
219
+ });
220
+ registerGeneratedTool(registry, {
221
+ name: "script_projects_versions_list",
222
+ cud: "read",
223
+ description: "List the versions of a script project.",
224
+ method: { id: "script.projects.versions.list", httpMethod: "GET", path: "v1/projects/{scriptId}/versions", baseUrl: "https://script.googleapis.com/", requiredParams: ["scriptId"] },
225
+ params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
226
+ hasBody: false,
227
+ shape: {
228
+ account: accountField(),
229
+ scriptId: z.string().describe("The script project's Drive ID."),
230
+ pageSize: z.number().describe("The maximum number of versions on each returned page. Defaults to 50.").optional(),
231
+ pageToken: z.string().describe("The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response.").optional(),
232
+ fields: z.string().optional().describe('Response field mask.'),
233
+ },
234
+ });
235
+ registerGeneratedTool(registry, {
236
+ name: "script_scripts_run",
237
+ cud: "create",
238
+ description: "POST script.scripts.run",
239
+ method: { id: "script.scripts.run", httpMethod: "POST", path: "v1/scripts/{scriptId}:run", baseUrl: "https://script.googleapis.com/", requiredParams: ["scriptId"] },
240
+ params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
241
+ hasBody: true,
242
+ shape: {
243
+ account: accountField(),
244
+ scriptId: z.string().describe("The script ID of the script to be executed. Find the script ID on the **Project settings** page under \"IDs.\" As multiple executable APIs can be deployed in new IDE for same script, this field should b"),
245
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("ExecutionRequest JSON request body. Top-level fields: devMode, function, parameters, sessionState."),
246
+ fields: z.string().optional().describe('Response field mask.'),
247
+ },
248
+ });
249
+ }
@@ -0,0 +1,2 @@
1
+ import type { ToolRegistry } from '../../registry.js';
2
+ export declare function registerSearchconsoleGeneratedTools(registry: ToolRegistry): void;