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.
Files changed (165) hide show
  1. package/dist/accounts.d.ts +17 -1
  2. package/dist/accounts.js +52 -15
  3. package/dist/api-probe.d.ts +5 -0
  4. package/dist/api-probe.js +20 -15
  5. package/dist/arg-normalize.js +6 -5
  6. package/dist/arg-strict.d.ts +7 -0
  7. package/dist/arg-strict.js +34 -4
  8. package/dist/auth.d.ts +4 -3
  9. package/dist/auth.js +11 -13
  10. package/dist/boot-gates.d.ts +26 -0
  11. package/dist/boot-gates.js +38 -0
  12. package/dist/cimd-cache.d.ts +38 -0
  13. package/dist/cimd-cache.js +117 -0
  14. package/dist/client.d.ts +32 -2
  15. package/dist/client.js +0 -0
  16. package/dist/compose.d.ts +11 -0
  17. package/dist/compose.js +109 -0
  18. package/dist/config-file.d.ts +13 -0
  19. package/dist/config-file.js +37 -1
  20. package/dist/discover.js +3 -1
  21. package/dist/discovery-client.d.ts +3 -0
  22. package/dist/discovery-client.js +25 -2
  23. package/dist/doctor.d.ts +6 -2
  24. package/dist/doctor.js +119 -23
  25. package/dist/executor.d.ts +3 -0
  26. package/dist/executor.js +4 -2
  27. package/dist/fanout.d.ts +9 -1
  28. package/dist/fanout.js +44 -10
  29. package/dist/fs-atomic.d.ts +11 -0
  30. package/dist/fs-atomic.js +219 -28
  31. package/dist/hint-provider.d.ts +129 -0
  32. package/dist/hint-provider.js +64 -0
  33. package/dist/http-transport.d.ts +62 -4
  34. package/dist/http-transport.js +343 -24
  35. package/dist/identity.d.ts +4 -1
  36. package/dist/identity.js +25 -6
  37. package/dist/index.js +66 -138
  38. package/dist/master-key.js +13 -5
  39. package/dist/mcp-token.d.ts +136 -19
  40. package/dist/mcp-token.js +569 -72
  41. package/dist/migrate-config.js +2 -2
  42. package/dist/oauth-as.d.ts +103 -3
  43. package/dist/oauth-as.js +374 -79
  44. package/dist/oauth-consent.d.ts +10 -0
  45. package/dist/oauth-consent.js +16 -0
  46. package/dist/outbound-allowlist.js +5 -2
  47. package/dist/reauth-hint.d.ts +1 -1
  48. package/dist/reauth-hint.js +12 -8
  49. package/dist/registry-transfer.d.ts +5 -0
  50. package/dist/registry-transfer.js +65 -5
  51. package/dist/registry.d.ts +18 -1
  52. package/dist/registry.js +71 -15
  53. package/dist/scope-catalog.d.ts +11 -0
  54. package/dist/scope-catalog.js +23 -6
  55. package/dist/scope-observability.d.ts +8 -6
  56. package/dist/scope-observability.js +29 -13
  57. package/dist/services.d.ts +15 -10
  58. package/dist/services.js +59 -15
  59. package/dist/ssrf-guard.d.ts +23 -9
  60. package/dist/ssrf-guard.js +101 -62
  61. package/dist/tenant-purge.d.ts +26 -0
  62. package/dist/tenant-purge.js +67 -0
  63. package/dist/token-store.d.ts +20 -2
  64. package/dist/token-store.js +0 -0
  65. package/dist/tools/_errors.d.ts +3 -0
  66. package/dist/tools/_errors.js +53 -24
  67. package/dist/tools/_local-files.d.ts +9 -0
  68. package/dist/tools/_local-files.js +18 -0
  69. package/dist/tools/account-wizard.d.ts +10 -1
  70. package/dist/tools/account-wizard.js +74 -17
  71. package/dist/tools/accounts-tool.d.ts +7 -0
  72. package/dist/tools/accounts-tool.js +34 -18
  73. package/dist/tools/admin.d.ts +10 -1
  74. package/dist/tools/admin.js +15 -11
  75. package/dist/tools/analytics.d.ts +10 -1
  76. package/dist/tools/analytics.js +13 -8
  77. package/dist/tools/calendar.d.ts +2 -1
  78. package/dist/tools/calendar.js +18 -14
  79. package/dist/tools/chat.d.ts +10 -1
  80. package/dist/tools/chat.js +13 -8
  81. package/dist/tools/contacts.d.ts +2 -1
  82. package/dist/tools/contacts.js +17 -13
  83. package/dist/tools/docs.d.ts +2 -1
  84. package/dist/tools/docs.js +34 -30
  85. package/dist/tools/drive.d.ts +2 -1
  86. package/dist/tools/drive.js +65 -50
  87. package/dist/tools/forms.d.ts +10 -1
  88. package/dist/tools/forms.js +19 -12
  89. package/dist/tools/generated/_shared.d.ts +2 -1
  90. package/dist/tools/generated/_shared.js +7 -3
  91. package/dist/tools/generated/admin.d.ts +2 -1
  92. package/dist/tools/generated/admin.js +265 -265
  93. package/dist/tools/generated/analytics.d.ts +2 -1
  94. package/dist/tools/generated/analytics.js +125 -125
  95. package/dist/tools/generated/appsmarket.d.ts +2 -1
  96. package/dist/tools/generated/appsmarket.js +5 -5
  97. package/dist/tools/generated/calendar.d.ts +2 -1
  98. package/dist/tools/generated/calendar.js +55 -55
  99. package/dist/tools/generated/chat.d.ts +2 -1
  100. package/dist/tools/generated/chat.js +95 -95
  101. package/dist/tools/generated/classroom.d.ts +2 -1
  102. package/dist/tools/generated/classroom.js +209 -209
  103. package/dist/tools/generated/cloudidentity.d.ts +2 -1
  104. package/dist/tools/generated/cloudidentity.js +133 -133
  105. package/dist/tools/generated/cloudsearch.d.ts +2 -1
  106. package/dist/tools/generated/cloudsearch.js +99 -99
  107. package/dist/tools/generated/contacts.d.ts +2 -1
  108. package/dist/tools/generated/contacts.js +29 -29
  109. package/dist/tools/generated/drive.d.ts +2 -1
  110. package/dist/tools/generated/drive.js +71 -71
  111. package/dist/tools/generated/driveactivity.d.ts +2 -1
  112. package/dist/tools/generated/driveactivity.js +3 -3
  113. package/dist/tools/generated/drivelabels.d.ts +2 -1
  114. package/dist/tools/generated/drivelabels.js +53 -53
  115. package/dist/tools/generated/forms.d.ts +2 -1
  116. package/dist/tools/generated/forms.js +7 -7
  117. package/dist/tools/generated/gmail.d.ts +2 -1
  118. package/dist/tools/generated/gmail.js +117 -117
  119. package/dist/tools/generated/groupsmigration.d.ts +2 -1
  120. package/dist/tools/generated/groupsmigration.js +3 -3
  121. package/dist/tools/generated/groupssettings.d.ts +2 -1
  122. package/dist/tools/generated/groupssettings.js +7 -7
  123. package/dist/tools/generated/index.d.ts +2 -1
  124. package/dist/tools/generated/keep.d.ts +2 -1
  125. package/dist/tools/generated/keep.js +15 -15
  126. package/dist/tools/generated/licensing.d.ts +2 -1
  127. package/dist/tools/generated/licensing.js +15 -15
  128. package/dist/tools/generated/meet.d.ts +2 -1
  129. package/dist/tools/generated/meet.js +27 -27
  130. package/dist/tools/generated/postmaster.d.ts +2 -1
  131. package/dist/tools/generated/postmaster.js +9 -9
  132. package/dist/tools/generated/reseller.d.ts +2 -1
  133. package/dist/tools/generated/reseller.js +35 -35
  134. package/dist/tools/generated/script.d.ts +2 -1
  135. package/dist/tools/generated/script.js +33 -33
  136. package/dist/tools/generated/searchconsole.d.ts +2 -1
  137. package/dist/tools/generated/searchconsole.js +3 -3
  138. package/dist/tools/generated/sheets.d.ts +2 -1
  139. package/dist/tools/generated/sheets.js +15 -15
  140. package/dist/tools/generated/tasks.d.ts +2 -1
  141. package/dist/tools/generated/tasks.js +5 -5
  142. package/dist/tools/generated/vault.d.ts +2 -1
  143. package/dist/tools/generated/vault.js +67 -67
  144. package/dist/tools/generated/workspaceevents.d.ts +2 -1
  145. package/dist/tools/generated/workspaceevents.js +31 -31
  146. package/dist/tools/gmail.d.ts +2 -1
  147. package/dist/tools/gmail.js +45 -33
  148. package/dist/tools/google-api.d.ts +2 -3
  149. package/dist/tools/google-api.js +30 -16
  150. package/dist/tools/meet.d.ts +10 -1
  151. package/dist/tools/meet.js +13 -9
  152. package/dist/tools/searchconsole.d.ts +2 -1
  153. package/dist/tools/searchconsole.js +17 -13
  154. package/dist/tools/sheets.d.ts +2 -1
  155. package/dist/tools/sheets.js +36 -32
  156. package/dist/tools/slides.d.ts +10 -1
  157. package/dist/tools/slides.js +17 -10
  158. package/dist/tools/tasks.d.ts +2 -1
  159. package/dist/tools/tasks.js +19 -15
  160. package/dist/trim.d.ts +5 -0
  161. package/dist/trim.js +20 -0
  162. package/dist/usage-metrics.d.ts +23 -0
  163. package/dist/usage-metrics.js +65 -47
  164. package/dist/write-control.js +10 -2
  165. package/package.json +27 -1
@@ -1,7 +1,7 @@
1
1
  // GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
2
2
  import { z } from 'zod';
3
3
  import { accountField, registerGeneratedTool } from './_shared.js';
4
- export function registerPostmasterGeneratedTools(registry) {
4
+ export function registerPostmasterGeneratedTools(registry, deps = {}) {
5
5
  // Interned method scope sets (shared across tools; see scope-observability).
6
6
  const S_gmailpostmastertools_v1 = [
7
7
  ["https://www.googleapis.com/auth/postmaster.readonly"],
@@ -14,11 +14,11 @@ export function registerPostmasterGeneratedTools(registry) {
14
14
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
15
15
  hasBody: false,
16
16
  shape: {
17
- account: accountField(),
17
+ account: accountField(() => registry.accountAliases()),
18
18
  name: z.string().min(1).describe("The resource name of the domain. It should have the form `domains/{domain_name}`, where domain_name is the fully qualified domain name."),
19
19
  fields: z.string().optional().describe('Response field mask.'),
20
20
  },
21
- });
21
+ }, deps);
22
22
  registerGeneratedTool(registry, {
23
23
  name: "postmaster_domains_list",
24
24
  cud: "read",
@@ -27,12 +27,12 @@ export function registerPostmasterGeneratedTools(registry) {
27
27
  params: [{ "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
28
28
  hasBody: false,
29
29
  shape: {
30
- account: accountField(),
30
+ account: accountField(() => registry.accountAliases()),
31
31
  pageSize: z.number().describe("Requested page size. Server may return fewer domains than requested. If unspecified, server will pick an appropriate default.").optional(),
32
32
  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(),
33
33
  fields: z.string().optional().describe('Response field mask.'),
34
34
  },
35
- });
35
+ }, deps);
36
36
  registerGeneratedTool(registry, {
37
37
  name: "postmaster_domains_traffic_stats_get",
38
38
  cud: "read",
@@ -41,11 +41,11 @@ export function registerPostmasterGeneratedTools(registry) {
41
41
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
42
42
  hasBody: false,
43
43
  shape: {
44
- account: accountField(),
44
+ account: accountField(() => registry.accountAliases()),
45
45
  name: z.string().min(1).describe("The resource name of the traffic statistics to get. E.g., domains/mymail.mydomain.com/trafficStats/20160807."),
46
46
  fields: z.string().optional().describe('Response field mask.'),
47
47
  },
48
- });
48
+ }, deps);
49
49
  registerGeneratedTool(registry, {
50
50
  name: "postmaster_domains_traffic_stats_list",
51
51
  cud: "read",
@@ -54,7 +54,7 @@ export function registerPostmasterGeneratedTools(registry) {
54
54
  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" }],
55
55
  hasBody: false,
56
56
  shape: {
57
- account: accountField(),
57
+ account: accountField(() => registry.accountAliases()),
58
58
  parent: z.string().min(1).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."),
59
59
  "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(),
60
60
  "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(),
@@ -66,5 +66,5 @@ export function registerPostmasterGeneratedTools(registry) {
66
66
  "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(),
67
67
  fields: z.string().optional().describe('Response field mask.'),
68
68
  },
69
- });
69
+ }, deps);
70
70
  }
@@ -1,2 +1,3 @@
1
1
  import type { ToolRegistry } from '../../registry.js';
2
- export declare function registerResellerGeneratedTools(registry: ToolRegistry): void;
2
+ import { type ExecuteDeps } from './_shared.js';
3
+ export declare function registerResellerGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;
@@ -2,7 +2,7 @@
2
2
  import { z } from 'zod';
3
3
  import { coerceJson } from '../_coerce.js';
4
4
  import { accountField, registerGeneratedTool } from './_shared.js';
5
- export function registerResellerGeneratedTools(registry) {
5
+ export function registerResellerGeneratedTools(registry, deps = {}) {
6
6
  // Interned method scope sets (shared across tools; see scope-observability).
7
7
  const S_reseller_v1 = [
8
8
  ["https://www.googleapis.com/auth/apps.order", "https://www.googleapis.com/auth/apps.order.readonly"],
@@ -16,11 +16,11 @@ export function registerResellerGeneratedTools(registry) {
16
16
  params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
17
17
  hasBody: false,
18
18
  shape: {
19
- account: accountField(),
19
+ account: accountField(() => registry.accountAliases()),
20
20
  customerId: z.string().min(1).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"),
21
21
  fields: z.string().optional().describe('Response field mask.'),
22
22
  },
23
- });
23
+ }, deps);
24
24
  registerGeneratedTool(registry, {
25
25
  name: "reseller_customers_insert",
26
26
  cud: "create",
@@ -29,12 +29,12 @@ export function registerResellerGeneratedTools(registry) {
29
29
  params: [{ "field": "customerAuthToken", "api": "customerAuthToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
30
30
  hasBody: true,
31
31
  shape: {
32
- account: accountField(),
32
+ account: accountField(() => registry.accountAliases()),
33
33
  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(),
34
34
  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."),
35
35
  fields: z.string().optional().describe('Response field mask.'),
36
36
  },
37
- });
37
+ }, deps);
38
38
  registerGeneratedTool(registry, {
39
39
  name: "reseller_customers_patch",
40
40
  cud: "update",
@@ -43,12 +43,12 @@ export function registerResellerGeneratedTools(registry) {
43
43
  params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
44
44
  hasBody: true,
45
45
  shape: {
46
- account: accountField(),
46
+ account: accountField(() => registry.accountAliases()),
47
47
  customerId: z.string().min(1).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"),
48
48
  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."),
49
49
  fields: z.string().optional().describe('Response field mask.'),
50
50
  },
51
- });
51
+ }, deps);
52
52
  registerGeneratedTool(registry, {
53
53
  name: "reseller_customers_update",
54
54
  cud: "update",
@@ -57,12 +57,12 @@ export function registerResellerGeneratedTools(registry) {
57
57
  params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
58
58
  hasBody: true,
59
59
  shape: {
60
- account: accountField(),
60
+ account: accountField(() => registry.accountAliases()),
61
61
  customerId: z.string().min(1).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"),
62
62
  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."),
63
63
  fields: z.string().optional().describe('Response field mask.'),
64
64
  },
65
- });
65
+ }, deps);
66
66
  registerGeneratedTool(registry, {
67
67
  name: "reseller_resellernotify_getwatchdetails",
68
68
  cud: "read",
@@ -71,10 +71,10 @@ export function registerResellerGeneratedTools(registry) {
71
71
  params: [{ "field": "fields", "api": "fields", "location": "query" }],
72
72
  hasBody: false,
73
73
  shape: {
74
- account: accountField(),
74
+ account: accountField(() => registry.accountAliases()),
75
75
  fields: z.string().optional().describe('Response field mask.'),
76
76
  },
77
- });
77
+ }, deps);
78
78
  registerGeneratedTool(registry, {
79
79
  name: "reseller_resellernotify_register",
80
80
  cud: "create",
@@ -83,11 +83,11 @@ export function registerResellerGeneratedTools(registry) {
83
83
  params: [{ "field": "serviceAccountEmailAddress", "api": "serviceAccountEmailAddress", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
84
84
  hasBody: false,
85
85
  shape: {
86
- account: accountField(),
86
+ account: accountField(() => registry.accountAliases()),
87
87
  serviceAccountEmailAddress: z.string().describe("The service account which will own the created Cloud-PubSub topic.").optional(),
88
88
  fields: z.string().optional().describe('Response field mask.'),
89
89
  },
90
- });
90
+ }, deps);
91
91
  registerGeneratedTool(registry, {
92
92
  name: "reseller_resellernotify_unregister",
93
93
  cud: "delete",
@@ -96,11 +96,11 @@ export function registerResellerGeneratedTools(registry) {
96
96
  params: [{ "field": "serviceAccountEmailAddress", "api": "serviceAccountEmailAddress", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
97
97
  hasBody: false,
98
98
  shape: {
99
- account: accountField(),
99
+ account: accountField(() => registry.accountAliases()),
100
100
  serviceAccountEmailAddress: z.string().describe("The service account which owns the Cloud-PubSub topic.").optional(),
101
101
  fields: z.string().optional().describe('Response field mask.'),
102
102
  },
103
- });
103
+ }, deps);
104
104
  registerGeneratedTool(registry, {
105
105
  name: "reseller_subscriptions_activate",
106
106
  cud: "update",
@@ -109,12 +109,12 @@ export function registerResellerGeneratedTools(registry) {
109
109
  params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
110
110
  hasBody: false,
111
111
  shape: {
112
- account: accountField(),
112
+ account: accountField(() => registry.accountAliases()),
113
113
  customerId: z.string().min(1).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"),
114
114
  subscriptionId: z.string().min(1).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"),
115
115
  fields: z.string().optional().describe('Response field mask.'),
116
116
  },
117
- });
117
+ }, deps);
118
118
  registerGeneratedTool(registry, {
119
119
  name: "reseller_subscriptions_change_plan",
120
120
  cud: "update",
@@ -123,13 +123,13 @@ export function registerResellerGeneratedTools(registry) {
123
123
  params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
124
124
  hasBody: true,
125
125
  shape: {
126
- account: accountField(),
126
+ account: accountField(() => registry.accountAliases()),
127
127
  customerId: z.string().min(1).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"),
128
128
  subscriptionId: z.string().min(1).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"),
129
129
  body: coerceJson(z.record(z.string(), z.unknown())).describe("ChangePlanRequest JSON request body. Top-level fields: dealCode, kind, planName, purchaseOrderId, seats."),
130
130
  fields: z.string().optional().describe('Response field mask.'),
131
131
  },
132
- });
132
+ }, deps);
133
133
  registerGeneratedTool(registry, {
134
134
  name: "reseller_subscriptions_change_renewal_settings",
135
135
  cud: "update",
@@ -139,14 +139,14 @@ export function registerResellerGeneratedTools(registry) {
139
139
  hasBody: true,
140
140
  bodyParams: [{ "field": "kind", "api": "kind" }, { "field": "renewalType", "api": "renewalType" }],
141
141
  shape: {
142
- account: accountField(),
142
+ account: accountField(() => registry.accountAliases()),
143
143
  customerId: z.string().min(1).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"),
144
144
  subscriptionId: z.string().min(1).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"),
145
145
  kind: z.string().describe("Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`").optional(),
146
146
  renewalType: z.string().describe("Renewal settings for the annual commitment plan. For more detailed information, see renewal options in the administrator help center. When renewing a subscription, the `renewalType` is a required prop").optional(),
147
147
  fields: z.string().optional().describe('Response field mask.'),
148
148
  },
149
- });
149
+ }, deps);
150
150
  registerGeneratedTool(registry, {
151
151
  name: "reseller_subscriptions_change_seats",
152
152
  cud: "update",
@@ -156,7 +156,7 @@ export function registerResellerGeneratedTools(registry) {
156
156
  hasBody: true,
157
157
  bodyParams: [{ "field": "kind", "api": "kind" }, { "field": "licensedNumberOfSeats", "api": "licensedNumberOfSeats" }, { "field": "maximumNumberOfSeats", "api": "maximumNumberOfSeats" }, { "field": "numberOfSeats", "api": "numberOfSeats" }],
158
158
  shape: {
159
- account: accountField(),
159
+ account: accountField(() => registry.accountAliases()),
160
160
  customerId: z.string().min(1).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"),
161
161
  subscriptionId: z.string().min(1).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"),
162
162
  kind: z.string().describe("Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`").optional(),
@@ -165,7 +165,7 @@ export function registerResellerGeneratedTools(registry) {
165
165
  numberOfSeats: z.number().describe("This is a required property and is exclusive to subscriptions with `ANNUAL_MONTHLY_PAY` and `ANNUAL_YEARLY_PAY` plans. This property sets the maximum number of licenses assignable to users on a subscr").optional(),
166
166
  fields: z.string().optional().describe('Response field mask.'),
167
167
  },
168
- });
168
+ }, deps);
169
169
  registerGeneratedTool(registry, {
170
170
  name: "reseller_subscriptions_delete",
171
171
  cud: "delete",
@@ -174,13 +174,13 @@ export function registerResellerGeneratedTools(registry) {
174
174
  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" }],
175
175
  hasBody: false,
176
176
  shape: {
177
- account: accountField(),
177
+ account: accountField(() => registry.accountAliases()),
178
178
  customerId: z.string().min(1).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"),
179
179
  subscriptionId: z.string().min(1).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"),
180
180
  deletionType: z.enum(["deletion_type_undefined", "cancel", "transfer_to_direct"]).describe("The `deletionType` query string enables the cancellation, downgrade, or suspension of a subscription."),
181
181
  fields: z.string().optional().describe('Response field mask.'),
182
182
  },
183
- });
183
+ }, deps);
184
184
  registerGeneratedTool(registry, {
185
185
  name: "reseller_subscriptions_get",
186
186
  cud: "read",
@@ -189,12 +189,12 @@ export function registerResellerGeneratedTools(registry) {
189
189
  params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
190
190
  hasBody: false,
191
191
  shape: {
192
- account: accountField(),
192
+ account: accountField(() => registry.accountAliases()),
193
193
  customerId: z.string().min(1).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"),
194
194
  subscriptionId: z.string().min(1).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"),
195
195
  fields: z.string().optional().describe('Response field mask.'),
196
196
  },
197
- });
197
+ }, deps);
198
198
  registerGeneratedTool(registry, {
199
199
  name: "reseller_subscriptions_insert",
200
200
  cud: "create",
@@ -203,7 +203,7 @@ export function registerResellerGeneratedTools(registry) {
203
203
  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" }],
204
204
  hasBody: true,
205
205
  shape: {
206
- account: accountField(),
206
+ account: accountField(() => registry.accountAliases()),
207
207
  customerId: z.string().min(1).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"),
208
208
  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(),
209
209
  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(),
@@ -211,7 +211,7 @@ export function registerResellerGeneratedTools(registry) {
211
211
  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."),
212
212
  fields: z.string().optional().describe('Response field mask.'),
213
213
  },
214
- });
214
+ }, deps);
215
215
  registerGeneratedTool(registry, {
216
216
  name: "reseller_subscriptions_list",
217
217
  cud: "read",
@@ -220,7 +220,7 @@ export function registerResellerGeneratedTools(registry) {
220
220
  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" }],
221
221
  hasBody: false,
222
222
  shape: {
223
- account: accountField(),
223
+ account: accountField(() => registry.accountAliases()),
224
224
  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(),
225
225
  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(),
226
226
  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(),
@@ -228,7 +228,7 @@ export function registerResellerGeneratedTools(registry) {
228
228
  pageToken: z.string().describe("Token to specify next page in the list").optional(),
229
229
  fields: z.string().optional().describe('Response field mask.'),
230
230
  },
231
- });
231
+ }, deps);
232
232
  registerGeneratedTool(registry, {
233
233
  name: "reseller_subscriptions_start_paid_service",
234
234
  cud: "create",
@@ -237,12 +237,12 @@ export function registerResellerGeneratedTools(registry) {
237
237
  params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
238
238
  hasBody: false,
239
239
  shape: {
240
- account: accountField(),
240
+ account: accountField(() => registry.accountAliases()),
241
241
  customerId: z.string().min(1).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"),
242
242
  subscriptionId: z.string().min(1).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"),
243
243
  fields: z.string().optional().describe('Response field mask.'),
244
244
  },
245
- });
245
+ }, deps);
246
246
  registerGeneratedTool(registry, {
247
247
  name: "reseller_subscriptions_suspend",
248
248
  cud: "update",
@@ -251,10 +251,10 @@ export function registerResellerGeneratedTools(registry) {
251
251
  params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
252
252
  hasBody: false,
253
253
  shape: {
254
- account: accountField(),
254
+ account: accountField(() => registry.accountAliases()),
255
255
  customerId: z.string().min(1).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"),
256
256
  subscriptionId: z.string().min(1).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"),
257
257
  fields: z.string().optional().describe('Response field mask.'),
258
258
  },
259
- });
259
+ }, deps);
260
260
  }
@@ -1,2 +1,3 @@
1
1
  import type { ToolRegistry } from '../../registry.js';
2
- export declare function registerScriptGeneratedTools(registry: ToolRegistry): void;
2
+ import { type ExecuteDeps } from './_shared.js';
3
+ export declare function registerScriptGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;
@@ -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 registerScriptGeneratedTools(registry) {
5
+ export function registerScriptGeneratedTools(registry, deps = {}) {
6
6
  // Interned method scope sets (shared across tools; see scope-observability).
7
7
  const S_script_v1 = [
8
8
  ["https://www.googleapis.com/auth/script.processes"],
@@ -21,7 +21,7 @@ export function registerScriptGeneratedTools(registry) {
21
21
  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" }],
22
22
  hasBody: false,
23
23
  shape: {
24
- account: accountField(),
24
+ account: accountField(() => registry.accountAliases()),
25
25
  pageSize: z.number().describe("The maximum number of returned processes per page of results. Defaults to 50.").optional(),
26
26
  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(),
27
27
  "userProcessFilter.deploymentId": z.string().describe("Optional field used to limit returned processes to those originating from projects with a specific deployment ID.").optional(),
@@ -35,7 +35,7 @@ export function registerScriptGeneratedTools(registry) {
35
35
  "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(),
36
36
  fields: z.string().optional().describe('Response field mask.'),
37
37
  },
38
- });
38
+ }, deps);
39
39
  registerGeneratedTool(registry, {
40
40
  name: "script_processes_list_script_processes",
41
41
  cud: "read",
@@ -44,7 +44,7 @@ export function registerScriptGeneratedTools(registry) {
44
44
  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" }],
45
45
  hasBody: false,
46
46
  shape: {
47
- account: accountField(),
47
+ account: accountField(() => registry.accountAliases()),
48
48
  pageSize: z.number().describe("The maximum number of returned processes per page of results. Defaults to 50.").optional(),
49
49
  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(),
50
50
  scriptId: z.string().describe("The script ID of the project whose processes are listed.").optional(),
@@ -57,7 +57,7 @@ export function registerScriptGeneratedTools(registry) {
57
57
  "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(),
58
58
  fields: z.string().optional().describe('Response field mask.'),
59
59
  },
60
- });
60
+ }, deps);
61
61
  registerGeneratedTool(registry, {
62
62
  name: "script_projects_create",
63
63
  cud: "create",
@@ -67,12 +67,12 @@ export function registerScriptGeneratedTools(registry) {
67
67
  hasBody: true,
68
68
  bodyParams: [{ "field": "parentId", "api": "parentId" }, { "field": "title", "api": "title" }],
69
69
  shape: {
70
- account: accountField(),
70
+ account: accountField(() => registry.accountAliases()),
71
71
  parentId: z.string().describe("The Drive ID of a parent file that the created script project is bound to. This is usually the ID of a Google Doc, Google Sheet, Google Form, or Google Slides file. If not set, a standalone script pro").optional(),
72
72
  title: z.string().describe("The title for the project.").optional(),
73
73
  fields: z.string().optional().describe('Response field mask.'),
74
74
  },
75
- });
75
+ }, deps);
76
76
  registerGeneratedTool(registry, {
77
77
  name: "script_projects_deployments_create",
78
78
  cud: "create",
@@ -82,7 +82,7 @@ export function registerScriptGeneratedTools(registry) {
82
82
  hasBody: true,
83
83
  bodyParams: [{ "field": "description", "api": "description" }, { "field": "manifestFileName", "api": "manifestFileName" }, { "field": "scriptId_", "api": "scriptId" }, { "field": "versionNumber", "api": "versionNumber" }],
84
84
  shape: {
85
- account: accountField(),
85
+ account: accountField(() => registry.accountAliases()),
86
86
  scriptId: z.string().min(1).describe("The script project's Drive ID."),
87
87
  description: z.string().describe("The description for this deployment.").optional(),
88
88
  manifestFileName: z.string().describe("The manifest file name for this deployment.").optional(),
@@ -90,7 +90,7 @@ export function registerScriptGeneratedTools(registry) {
90
90
  versionNumber: z.number().describe("The version number on which this deployment is based.").optional(),
91
91
  fields: z.string().optional().describe('Response field mask.'),
92
92
  },
93
- });
93
+ }, deps);
94
94
  registerGeneratedTool(registry, {
95
95
  name: "script_projects_deployments_delete",
96
96
  cud: "delete",
@@ -99,12 +99,12 @@ export function registerScriptGeneratedTools(registry) {
99
99
  params: [{ "field": "deploymentId", "api": "deploymentId", "location": "path" }, { "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
100
100
  hasBody: false,
101
101
  shape: {
102
- account: accountField(),
102
+ account: accountField(() => registry.accountAliases()),
103
103
  deploymentId: z.string().min(1).describe("The deployment ID to be undeployed."),
104
104
  scriptId: z.string().min(1).describe("The script project's Drive ID."),
105
105
  fields: z.string().optional().describe('Response field mask.'),
106
106
  },
107
- });
107
+ }, deps);
108
108
  registerGeneratedTool(registry, {
109
109
  name: "script_projects_deployments_get",
110
110
  cud: "read",
@@ -113,12 +113,12 @@ export function registerScriptGeneratedTools(registry) {
113
113
  params: [{ "field": "deploymentId", "api": "deploymentId", "location": "path" }, { "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
114
114
  hasBody: false,
115
115
  shape: {
116
- account: accountField(),
116
+ account: accountField(() => registry.accountAliases()),
117
117
  deploymentId: z.string().min(1).describe("The deployment ID."),
118
118
  scriptId: z.string().min(1).describe("The script project's Drive ID."),
119
119
  fields: z.string().optional().describe('Response field mask.'),
120
120
  },
121
- });
121
+ }, deps);
122
122
  registerGeneratedTool(registry, {
123
123
  name: "script_projects_deployments_list",
124
124
  cud: "read",
@@ -127,13 +127,13 @@ export function registerScriptGeneratedTools(registry) {
127
127
  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" }],
128
128
  hasBody: false,
129
129
  shape: {
130
- account: accountField(),
130
+ account: accountField(() => registry.accountAliases()),
131
131
  scriptId: z.string().min(1).describe("The script project's Drive ID."),
132
132
  pageSize: z.number().describe("The maximum number of deployments on each returned page. Defaults to 50.").optional(),
133
133
  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(),
134
134
  fields: z.string().optional().describe('Response field mask.'),
135
135
  },
136
- });
136
+ }, deps);
137
137
  registerGeneratedTool(registry, {
138
138
  name: "script_projects_deployments_update",
139
139
  cud: "update",
@@ -142,13 +142,13 @@ export function registerScriptGeneratedTools(registry) {
142
142
  params: [{ "field": "deploymentId", "api": "deploymentId", "location": "path" }, { "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
143
143
  hasBody: true,
144
144
  shape: {
145
- account: accountField(),
145
+ account: accountField(() => registry.accountAliases()),
146
146
  deploymentId: z.string().min(1).describe("The deployment ID for this deployment."),
147
147
  scriptId: z.string().min(1).describe("The script project's Drive ID."),
148
148
  body: coerceJson(z.record(z.string(), z.unknown())).describe("UpdateDeploymentRequest JSON request body. Top-level fields: deploymentConfig."),
149
149
  fields: z.string().optional().describe('Response field mask.'),
150
150
  },
151
- });
151
+ }, deps);
152
152
  registerGeneratedTool(registry, {
153
153
  name: "script_projects_get",
154
154
  cud: "read",
@@ -157,11 +157,11 @@ export function registerScriptGeneratedTools(registry) {
157
157
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
158
158
  hasBody: false,
159
159
  shape: {
160
- account: accountField(),
160
+ account: accountField(() => registry.accountAliases()),
161
161
  scriptId: z.string().min(1).describe("The script project's Drive ID."),
162
162
  fields: z.string().optional().describe('Response field mask.'),
163
163
  },
164
- });
164
+ }, deps);
165
165
  registerGeneratedTool(registry, {
166
166
  name: "script_projects_get_content",
167
167
  cud: "read",
@@ -170,12 +170,12 @@ export function registerScriptGeneratedTools(registry) {
170
170
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "versionNumber", "api": "versionNumber", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
171
171
  hasBody: false,
172
172
  shape: {
173
- account: accountField(),
173
+ account: accountField(() => registry.accountAliases()),
174
174
  scriptId: z.string().min(1).describe("The script project's Drive ID."),
175
175
  versionNumber: z.number().describe("The version number of the project to retrieve. If not provided, the project's HEAD version is returned.").optional(),
176
176
  fields: z.string().optional().describe('Response field mask.'),
177
177
  },
178
- });
178
+ }, deps);
179
179
  registerGeneratedTool(registry, {
180
180
  name: "script_projects_get_metrics",
181
181
  cud: "read",
@@ -184,13 +184,13 @@ export function registerScriptGeneratedTools(registry) {
184
184
  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" }],
185
185
  hasBody: false,
186
186
  shape: {
187
- account: accountField(),
187
+ account: accountField(() => registry.accountAliases()),
188
188
  scriptId: z.string().min(1).describe("Required field indicating the script to get metrics for."),
189
189
  "metricsFilter.deploymentId": z.string().describe("Optional field indicating a specific deployment to retrieve metrics from.").optional(),
190
190
  metricsGranularity: z.enum(["UNSPECIFIED_GRANULARITY", "WEEKLY", "DAILY"]).describe("Required field indicating what granularity of metrics are returned.").optional(),
191
191
  fields: z.string().optional().describe('Response field mask.'),
192
192
  },
193
- });
193
+ }, deps);
194
194
  registerGeneratedTool(registry, {
195
195
  name: "script_projects_update_content",
196
196
  cud: "update",
@@ -199,12 +199,12 @@ export function registerScriptGeneratedTools(registry) {
199
199
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
200
200
  hasBody: true,
201
201
  shape: {
202
- account: accountField(),
202
+ account: accountField(() => registry.accountAliases()),
203
203
  scriptId: z.string().min(1).describe("The script project's Drive ID."),
204
204
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Content JSON request body. Top-level fields: files, scriptId."),
205
205
  fields: z.string().optional().describe('Response field mask.'),
206
206
  },
207
- });
207
+ }, deps);
208
208
  registerGeneratedTool(registry, {
209
209
  name: "script_projects_versions_create",
210
210
  cud: "create",
@@ -214,7 +214,7 @@ export function registerScriptGeneratedTools(registry) {
214
214
  hasBody: true,
215
215
  bodyParams: [{ "field": "createTime", "api": "createTime" }, { "field": "description", "api": "description" }, { "field": "scriptId_", "api": "scriptId" }, { "field": "versionNumber", "api": "versionNumber" }],
216
216
  shape: {
217
- account: accountField(),
217
+ account: accountField(() => registry.accountAliases()),
218
218
  scriptId: z.string().min(1).describe("The script project's Drive ID."),
219
219
  createTime: z.string().describe("When the version was created.").optional(),
220
220
  description: z.string().describe("The description for this version.").optional(),
@@ -222,7 +222,7 @@ export function registerScriptGeneratedTools(registry) {
222
222
  versionNumber: z.number().describe("The incremental ID that is created by Apps Script when a version is created. This is system assigned number and is immutable once created.").optional(),
223
223
  fields: z.string().optional().describe('Response field mask.'),
224
224
  },
225
- });
225
+ }, deps);
226
226
  registerGeneratedTool(registry, {
227
227
  name: "script_projects_versions_get",
228
228
  cud: "read",
@@ -231,12 +231,12 @@ export function registerScriptGeneratedTools(registry) {
231
231
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "versionNumber", "api": "versionNumber", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
232
232
  hasBody: false,
233
233
  shape: {
234
- account: accountField(),
234
+ account: accountField(() => registry.accountAliases()),
235
235
  scriptId: z.string().min(1).describe("The script project's Drive ID."),
236
236
  versionNumber: z.number().describe("The version number."),
237
237
  fields: z.string().optional().describe('Response field mask.'),
238
238
  },
239
- });
239
+ }, deps);
240
240
  registerGeneratedTool(registry, {
241
241
  name: "script_projects_versions_list",
242
242
  cud: "read",
@@ -245,13 +245,13 @@ export function registerScriptGeneratedTools(registry) {
245
245
  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" }],
246
246
  hasBody: false,
247
247
  shape: {
248
- account: accountField(),
248
+ account: accountField(() => registry.accountAliases()),
249
249
  scriptId: z.string().min(1).describe("The script project's Drive ID."),
250
250
  pageSize: z.number().describe("The maximum number of versions on each returned page. Defaults to 50.").optional(),
251
251
  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(),
252
252
  fields: z.string().optional().describe('Response field mask.'),
253
253
  },
254
- });
254
+ }, deps);
255
255
  registerGeneratedTool(registry, {
256
256
  name: "script_scripts_run",
257
257
  cud: "create",
@@ -260,10 +260,10 @@ export function registerScriptGeneratedTools(registry) {
260
260
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
261
261
  hasBody: true,
262
262
  shape: {
263
- account: accountField(),
263
+ account: accountField(() => registry.accountAliases()),
264
264
  scriptId: z.string().min(1).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"),
265
265
  body: coerceJson(z.record(z.string(), z.unknown())).describe("ExecutionRequest JSON request body. Top-level fields: devMode, function, parameters, sessionState."),
266
266
  fields: z.string().optional().describe('Response field mask.'),
267
267
  },
268
- });
268
+ }, deps);
269
269
  }