mcp-google-multi 6.0.0-beta.1 → 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 (182) hide show
  1. package/README.md +5 -3
  2. package/dist/accounts.d.ts +22 -1
  3. package/dist/accounts.js +64 -16
  4. package/dist/api-probe.d.ts +5 -0
  5. package/dist/api-probe.js +23 -15
  6. package/dist/arg-normalize.d.ts +61 -4
  7. package/dist/arg-normalize.js +229 -4
  8. package/dist/arg-strict.d.ts +61 -0
  9. package/dist/arg-strict.js +193 -0
  10. package/dist/auth.d.ts +4 -3
  11. package/dist/auth.js +26 -85
  12. package/dist/boot-gates.d.ts +26 -0
  13. package/dist/boot-gates.js +38 -0
  14. package/dist/cimd-cache.d.ts +38 -0
  15. package/dist/cimd-cache.js +117 -0
  16. package/dist/client.d.ts +32 -2
  17. package/dist/client.js +0 -0
  18. package/dist/compose.d.ts +11 -0
  19. package/dist/compose.js +109 -0
  20. package/dist/config-file.d.ts +14 -0
  21. package/dist/config-file.js +41 -1
  22. package/dist/discover.js +38 -15
  23. package/dist/discovery-client.d.ts +11 -1
  24. package/dist/discovery-client.js +120 -18
  25. package/dist/doctor.d.ts +15 -3
  26. package/dist/doctor.js +151 -27
  27. package/dist/env-load.d.ts +11 -0
  28. package/dist/env-load.js +23 -1
  29. package/dist/executor.d.ts +3 -0
  30. package/dist/executor.js +16 -3
  31. package/dist/fanout.d.ts +9 -1
  32. package/dist/fanout.js +83 -14
  33. package/dist/fs-atomic.d.ts +11 -0
  34. package/dist/fs-atomic.js +219 -28
  35. package/dist/hint-provider.d.ts +129 -0
  36. package/dist/hint-provider.js +64 -0
  37. package/dist/http-transport.d.ts +73 -6
  38. package/dist/http-transport.js +350 -26
  39. package/dist/identity.d.ts +4 -1
  40. package/dist/identity.js +25 -6
  41. package/dist/index.js +142 -114
  42. package/dist/master-key.js +13 -5
  43. package/dist/mcp-token.d.ts +136 -19
  44. package/dist/mcp-token.js +569 -72
  45. package/dist/metrics-cli.d.ts +21 -0
  46. package/dist/metrics-cli.js +206 -0
  47. package/dist/metrics-tap.d.ts +12 -0
  48. package/dist/metrics-tap.js +95 -0
  49. package/dist/migrate-config.js +2 -2
  50. package/dist/oauth-as.d.ts +103 -3
  51. package/dist/oauth-as.js +374 -79
  52. package/dist/oauth-consent.d.ts +35 -10
  53. package/dist/oauth-consent.js +101 -39
  54. package/dist/outbound-allowlist.d.ts +34 -0
  55. package/dist/outbound-allowlist.js +111 -0
  56. package/dist/reauth-hint.d.ts +1 -1
  57. package/dist/reauth-hint.js +12 -8
  58. package/dist/registry-transfer.d.ts +5 -0
  59. package/dist/registry-transfer.js +65 -5
  60. package/dist/registry.d.ts +66 -2
  61. package/dist/registry.js +214 -18
  62. package/dist/scope-catalog.d.ts +11 -0
  63. package/dist/scope-catalog.js +39 -6
  64. package/dist/scope-observability.d.ts +8 -6
  65. package/dist/scope-observability.js +29 -13
  66. package/dist/services.d.ts +17 -4
  67. package/dist/services.js +77 -6
  68. package/dist/setup-prompt.d.ts +1 -1
  69. package/dist/setup-prompt.js +1 -1
  70. package/dist/ssrf-guard.d.ts +23 -9
  71. package/dist/ssrf-guard.js +101 -62
  72. package/dist/tenant-purge.d.ts +26 -0
  73. package/dist/tenant-purge.js +67 -0
  74. package/dist/token-store.d.ts +20 -2
  75. package/dist/token-store.js +0 -0
  76. package/dist/tools/_coerce.d.ts +5 -0
  77. package/dist/tools/_coerce.js +11 -0
  78. package/dist/tools/_errors.d.ts +34 -3
  79. package/dist/tools/_errors.js +346 -53
  80. package/dist/tools/_local-files.d.ts +9 -0
  81. package/dist/tools/_local-files.js +25 -2
  82. package/dist/tools/account-wizard.d.ts +34 -2
  83. package/dist/tools/account-wizard.js +223 -65
  84. package/dist/tools/accounts-tool.d.ts +7 -0
  85. package/dist/tools/accounts-tool.js +34 -18
  86. package/dist/tools/admin.d.ts +10 -1
  87. package/dist/tools/admin.js +21 -16
  88. package/dist/tools/analytics.d.ts +27 -0
  89. package/dist/tools/analytics.js +289 -0
  90. package/dist/tools/calendar.d.ts +9 -1
  91. package/dist/tools/calendar.js +93 -29
  92. package/dist/tools/chat.d.ts +10 -1
  93. package/dist/tools/chat.js +20 -12
  94. package/dist/tools/contacts.d.ts +2 -1
  95. package/dist/tools/contacts.js +74 -43
  96. package/dist/tools/docs.d.ts +2 -1
  97. package/dist/tools/docs.js +90 -84
  98. package/dist/tools/drive.d.ts +2 -1
  99. package/dist/tools/drive.js +197 -120
  100. package/dist/tools/forms.d.ts +10 -1
  101. package/dist/tools/forms.js +26 -19
  102. package/dist/tools/generated/_shared.d.ts +8 -1
  103. package/dist/tools/generated/_shared.js +18 -4
  104. package/dist/tools/generated/admin.d.ts +2 -1
  105. package/dist/tools/generated/admin.js +610 -479
  106. package/dist/tools/generated/analytics.d.ts +3 -0
  107. package/dist/tools/generated/analytics.js +981 -0
  108. package/dist/tools/generated/appsmarket.d.ts +2 -1
  109. package/dist/tools/generated/appsmarket.js +9 -9
  110. package/dist/tools/generated/calendar.d.ts +2 -1
  111. package/dist/tools/generated/calendar.js +83 -83
  112. package/dist/tools/generated/chat.d.ts +2 -1
  113. package/dist/tools/generated/chat.js +178 -151
  114. package/dist/tools/generated/classroom.d.ts +2 -1
  115. package/dist/tools/generated/classroom.js +467 -425
  116. package/dist/tools/generated/cloudidentity.d.ts +2 -1
  117. package/dist/tools/generated/cloudidentity.js +209 -201
  118. package/dist/tools/generated/cloudsearch.d.ts +2 -1
  119. package/dist/tools/generated/cloudsearch.js +139 -138
  120. package/dist/tools/generated/contacts.d.ts +2 -1
  121. package/dist/tools/generated/contacts.js +49 -40
  122. package/dist/tools/generated/drive.d.ts +2 -1
  123. package/dist/tools/generated/drive.js +133 -124
  124. package/dist/tools/generated/driveactivity.d.ts +2 -1
  125. package/dist/tools/generated/driveactivity.js +3 -3
  126. package/dist/tools/generated/drivelabels.d.ts +2 -1
  127. package/dist/tools/generated/drivelabels.js +113 -85
  128. package/dist/tools/generated/forms.d.ts +2 -1
  129. package/dist/tools/generated/forms.js +14 -14
  130. package/dist/tools/generated/gmail.d.ts +2 -1
  131. package/dist/tools/generated/gmail.js +253 -226
  132. package/dist/tools/generated/groupsmigration.d.ts +2 -1
  133. package/dist/tools/generated/groupsmigration.js +4 -4
  134. package/dist/tools/generated/groupssettings.d.ts +2 -1
  135. package/dist/tools/generated/groupssettings.js +10 -10
  136. package/dist/tools/generated/index.d.ts +2 -1
  137. package/dist/tools/generated/index.js +2 -0
  138. package/dist/tools/generated/keep.d.ts +2 -1
  139. package/dist/tools/generated/keep.js +23 -22
  140. package/dist/tools/generated/licensing.d.ts +2 -1
  141. package/dist/tools/generated/licensing.js +54 -38
  142. package/dist/tools/generated/meet.d.ts +2 -1
  143. package/dist/tools/generated/meet.js +41 -41
  144. package/dist/tools/generated/method-map.d.ts +2 -0
  145. package/dist/tools/generated/method-map.js +894 -0
  146. package/dist/tools/generated/postmaster.d.ts +2 -1
  147. package/dist/tools/generated/postmaster.js +12 -12
  148. package/dist/tools/generated/reseller.d.ts +2 -1
  149. package/dist/tools/generated/reseller.js +69 -63
  150. package/dist/tools/generated/script.d.ts +2 -1
  151. package/dist/tools/generated/script.js +62 -52
  152. package/dist/tools/generated/searchconsole.d.ts +2 -1
  153. package/dist/tools/generated/searchconsole.js +8 -6
  154. package/dist/tools/generated/sheets.d.ts +2 -1
  155. package/dist/tools/generated/sheets.js +25 -24
  156. package/dist/tools/generated/tasks.d.ts +2 -1
  157. package/dist/tools/generated/tasks.js +15 -9
  158. package/dist/tools/generated/vault.d.ts +2 -1
  159. package/dist/tools/generated/vault.js +132 -123
  160. package/dist/tools/generated/workspaceevents.d.ts +2 -1
  161. package/dist/tools/generated/workspaceevents.js +48 -47
  162. package/dist/tools/gmail.d.ts +12 -2
  163. package/dist/tools/gmail.js +95 -51
  164. package/dist/tools/google-api.d.ts +2 -3
  165. package/dist/tools/google-api.js +76 -33
  166. package/dist/tools/meet.d.ts +10 -1
  167. package/dist/tools/meet.js +18 -11
  168. package/dist/tools/searchconsole.d.ts +2 -1
  169. package/dist/tools/searchconsole.js +27 -23
  170. package/dist/tools/sheets.d.ts +2 -1
  171. package/dist/tools/sheets.js +72 -80
  172. package/dist/tools/slides.d.ts +10 -1
  173. package/dist/tools/slides.js +23 -16
  174. package/dist/tools/tasks.d.ts +2 -1
  175. package/dist/tools/tasks.js +35 -31
  176. package/dist/trim.d.ts +26 -0
  177. package/dist/trim.js +67 -0
  178. package/dist/usage-metrics.d.ts +178 -0
  179. package/dist/usage-metrics.js +621 -0
  180. package/dist/write-control.d.ts +27 -1
  181. package/dist/write-control.js +99 -12
  182. package/package.json +34 -3
@@ -1,2 +1,3 @@
1
1
  import type { ToolRegistry } from '../../registry.js';
2
- export declare function registerPostmasterGeneratedTools(registry: ToolRegistry): void;
2
+ import { type ExecuteDeps } from './_shared.js';
3
+ export declare function registerPostmasterGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;
@@ -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(),
18
- 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."),
17
+ account: accountField(() => registry.accountAliases()),
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(),
45
- name: z.string().describe("The resource name of the traffic statistics to get. E.g., domains/mymail.mydomain.com/trafficStats/20160807."),
44
+ account: accountField(() => registry.accountAliases()),
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,8 +54,8 @@ 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(),
58
- 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."),
57
+ account: accountField(() => registry.accountAliases()),
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(),
61
61
  "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(),
@@ -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(),
20
- 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"),
19
+ account: accountField(() => registry.accountAliases()),
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(),
47
- 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"),
46
+ account: accountField(() => registry.accountAliases()),
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(),
61
- 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"),
60
+ account: accountField(() => registry.accountAliases()),
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,83 +83,89 @@ 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
- cud: "create",
93
+ cud: "delete",
94
94
  description: "Unregisters a Reseller for receiving notifications.",
95
95
  method: { id: "reseller.resellernotify.unregister", httpMethod: "POST", path: "apps/reseller/v1/resellernotify/unregister", baseUrl: "https://reseller.googleapis.com/", requiredParams: [], scopes: S_reseller_v1[1] },
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
- cud: "create",
106
+ cud: "update",
107
107
  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",
108
108
  method: { id: "reseller.subscriptions.activate", httpMethod: "POST", path: "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId", "subscriptionId"], scopes: S_reseller_v1[1] },
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(),
113
- 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"),
114
- 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"),
112
+ account: accountField(() => registry.accountAliases()),
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
+ 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
- cud: "create",
120
+ cud: "update",
121
121
  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",
122
122
  method: { id: "reseller.subscriptions.changePlan", httpMethod: "POST", path: "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId", "subscriptionId"], scopes: S_reseller_v1[1] },
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(),
127
- 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"),
128
- 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"),
126
+ account: accountField(() => registry.accountAliases()),
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
+ 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
- cud: "create",
135
+ cud: "update",
136
136
  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",
137
137
  method: { id: "reseller.subscriptions.changeRenewalSettings", httpMethod: "POST", path: "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId", "subscriptionId"], scopes: S_reseller_v1[1] },
138
138
  params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
139
139
  hasBody: true,
140
+ bodyParams: [{ "field": "kind", "api": "kind" }, { "field": "renewalType", "api": "renewalType" }],
140
141
  shape: {
141
- account: accountField(),
142
- 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"),
143
- 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"),
144
- body: coerceJson(z.record(z.string(), z.unknown())).describe("RenewalSettings JSON request body. Top-level fields: kind, renewalType."),
142
+ account: accountField(() => registry.accountAliases()),
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
+ 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
+ kind: z.string().describe("Identifies the resource as a subscription renewal setting. Value: `subscriptions#renewalSettings`").optional(),
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(),
145
147
  fields: z.string().optional().describe('Response field mask.'),
146
148
  },
147
- });
149
+ }, deps);
148
150
  registerGeneratedTool(registry, {
149
151
  name: "reseller_subscriptions_change_seats",
150
- cud: "create",
152
+ cud: "update",
151
153
  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",
152
154
  method: { id: "reseller.subscriptions.changeSeats", httpMethod: "POST", path: "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId", "subscriptionId"], scopes: S_reseller_v1[1] },
153
155
  params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
154
156
  hasBody: true,
157
+ bodyParams: [{ "field": "kind", "api": "kind" }, { "field": "licensedNumberOfSeats", "api": "licensedNumberOfSeats" }, { "field": "maximumNumberOfSeats", "api": "maximumNumberOfSeats" }, { "field": "numberOfSeats", "api": "numberOfSeats" }],
155
158
  shape: {
156
- account: accountField(),
157
- 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"),
158
- 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"),
159
- body: coerceJson(z.record(z.string(), z.unknown())).describe("Seats JSON request body. Top-level fields: kind, licensedNumberOfSeats, maximumNumberOfSeats, numberOfSeats."),
159
+ account: accountField(() => registry.accountAliases()),
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
+ 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
+ kind: z.string().describe("Identifies the resource as a subscription seat setting. Value: `subscriptions#seats`").optional(),
163
+ licensedNumberOfSeats: z.number().describe("Read-only field containing the current number of users that are assigned a license for the product defined in `skuId`. This field's value is equivalent to the numerical count of users returned by the ").optional(),
164
+ maximumNumberOfSeats: z.number().describe("This is a required property and is exclusive to subscriptions with `FLEXIBLE` or `TRIAL` plans. This property sets the maximum number of licensed users allowed on a subscription. This quantity can be ").optional(),
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(),
160
166
  fields: z.string().optional().describe('Response field mask.'),
161
167
  },
162
- });
168
+ }, deps);
163
169
  registerGeneratedTool(registry, {
164
170
  name: "reseller_subscriptions_delete",
165
171
  cud: "delete",
@@ -168,13 +174,13 @@ export function registerResellerGeneratedTools(registry) {
168
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" }],
169
175
  hasBody: false,
170
176
  shape: {
171
- account: accountField(),
172
- 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"),
173
- 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"),
177
+ account: accountField(() => registry.accountAliases()),
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
+ 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"),
174
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."),
175
181
  fields: z.string().optional().describe('Response field mask.'),
176
182
  },
177
- });
183
+ }, deps);
178
184
  registerGeneratedTool(registry, {
179
185
  name: "reseller_subscriptions_get",
180
186
  cud: "read",
@@ -183,12 +189,12 @@ export function registerResellerGeneratedTools(registry) {
183
189
  params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
184
190
  hasBody: false,
185
191
  shape: {
186
- account: accountField(),
187
- 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"),
188
- 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"),
192
+ account: accountField(() => registry.accountAliases()),
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
+ 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"),
189
195
  fields: z.string().optional().describe('Response field mask.'),
190
196
  },
191
- });
197
+ }, deps);
192
198
  registerGeneratedTool(registry, {
193
199
  name: "reseller_subscriptions_insert",
194
200
  cud: "create",
@@ -197,15 +203,15 @@ export function registerResellerGeneratedTools(registry) {
197
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" }],
198
204
  hasBody: true,
199
205
  shape: {
200
- account: accountField(),
201
- 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"),
206
+ account: accountField(() => registry.accountAliases()),
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"),
202
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(),
203
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(),
204
210
  sourceSkuId: z.string().describe("The sku_id of the existing subscription to be upgraded or downgraded. This is required when action is SWITCH.").optional(),
205
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."),
206
212
  fields: z.string().optional().describe('Response field mask.'),
207
213
  },
208
- });
214
+ }, deps);
209
215
  registerGeneratedTool(registry, {
210
216
  name: "reseller_subscriptions_list",
211
217
  cud: "read",
@@ -214,7 +220,7 @@ export function registerResellerGeneratedTools(registry) {
214
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" }],
215
221
  hasBody: false,
216
222
  shape: {
217
- account: accountField(),
223
+ account: accountField(() => registry.accountAliases()),
218
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(),
219
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(),
220
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(),
@@ -222,7 +228,7 @@ export function registerResellerGeneratedTools(registry) {
222
228
  pageToken: z.string().describe("Token to specify next page in the list").optional(),
223
229
  fields: z.string().optional().describe('Response field mask.'),
224
230
  },
225
- });
231
+ }, deps);
226
232
  registerGeneratedTool(registry, {
227
233
  name: "reseller_subscriptions_start_paid_service",
228
234
  cud: "create",
@@ -231,24 +237,24 @@ export function registerResellerGeneratedTools(registry) {
231
237
  params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
232
238
  hasBody: false,
233
239
  shape: {
234
- account: accountField(),
235
- 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"),
236
- 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"),
240
+ account: accountField(() => registry.accountAliases()),
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
+ 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"),
237
243
  fields: z.string().optional().describe('Response field mask.'),
238
244
  },
239
- });
245
+ }, deps);
240
246
  registerGeneratedTool(registry, {
241
247
  name: "reseller_subscriptions_suspend",
242
- cud: "create",
248
+ cud: "update",
243
249
  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,",
244
250
  method: { id: "reseller.subscriptions.suspend", httpMethod: "POST", path: "apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend", baseUrl: "https://reseller.googleapis.com/", requiredParams: ["customerId", "subscriptionId"], scopes: S_reseller_v1[1] },
245
251
  params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "subscriptionId", "api": "subscriptionId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
246
252
  hasBody: false,
247
253
  shape: {
248
- account: accountField(),
249
- 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"),
250
- 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"),
254
+ account: accountField(() => registry.accountAliases()),
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
+ 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"),
251
257
  fields: z.string().optional().describe('Response field mask.'),
252
258
  },
253
- });
259
+ }, deps);
254
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;